/*
 Theme Name:   Astra Child
 ... (diğer tema bilgileriniz)
*/

:root {
    --primary-color: #0d6efd;
    --dark-text: #212529;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.06);
    --border-radius: 12px;
}

/* --- Ana Konteyner ve 2 Sütunlu Grid --- */
.ilan-detay-container {
    max-width: 1360px;
    margin: 40px auto;
    padding: 0 20px;
}
.ilan-detay-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: flex-start;
}

/* --- Sol Sütun: Ana İçerik --- */
.ilan-baslik h1 { font-size: 2rem; font-weight: 700; margin-bottom: 20px; }

/* Düzeltilmiş Galeri Stilleri */
.ilan-galeri { margin-bottom: 25px; position: relative; }
.gallery-main { width: 100%; height: 500px; border-radius: var(--border-radius); margin-bottom: 10px; background-color: #eee; }
.gallery-main .swiper-slide img, .gallery-main .swiper-slide video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbnails { overflow: hidden; padding: 2px; } /* Swiper için önemli */
.gallery-thumbnails .swiper-slide { width: 100px; height: 70px; opacity: 0.6; cursor: pointer; transition: opacity 0.3s; border-radius: 8px; overflow: hidden; position: relative; }
.gallery-thumbnails .swiper-slide-thumb-active { opacity: 1; border: 2px solid var(--primary-color); }
.gallery-thumbnails .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; background: rgba(0,0,0,0.5); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 12px; }

.content-card { margin-top: 30px; }
.content-card h2 { font-size: 1.5rem; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.aciklama-content { line-height: 1.7; }
.map-box { height: 400px; border-radius: var(--border-radius); overflow: hidden; border: 1px solid var(--border-color); }


/* --- Sağ Sütun: Kenar Çubuğu --- */
.ilan-detay-sidebar .sidebar-sticky { position: sticky; top: 30px; display: flex; flex-direction: column; gap: 20px; }
.card { background: #fff; border-radius: var(--border-radius); border: 1px solid #e9ecef; box-shadow: var(--card-shadow); }

/* Detaylar Kartı (Fiyat dahil) */
.details-card { padding: 0; overflow: hidden; }
.price-section { padding: 20px; background-color: #f8f9fa; border-bottom: 1px solid var(--border-color); }
.price-section .fiyat-deger { font-size: 2.1rem; font-weight: 700; color: var(--dark-text); }
.price-section .adres-sidebar { font-size: 0.95rem; color: var(--light-text); margin-top: 5px; }
.details-list { list-style: none; padding: 10px 20px 20px 20px; margin: 0; font-size: 0.95rem; }
.details-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f1f3f5; }
.details-list li:last-child { border-bottom: none; }
.details-list li span { color: var(--light-text); }
.details-list li strong { font-weight: 600; text-align: right; }

/* Yetkili Danışman Kartı */
.agent-card { padding: 20px; }
.agent-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.agent-header .avatar { border-radius: 50%; flex-shrink: 0; }
.agent-info .agent-username { font-weight: 600; font-size: 1.1rem; }
.agent-info .agent-fullname { font-size: 0.9rem; color: var(--light-text); }
.agent-actions { display: flex; flex-direction: column; gap: 10px; }
.agent-actions .btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; }
.btn.btn-primary { background: var(--primary-color); color: #fff; }
.btn.btn-whatsapp { background: #25D366; color: #fff; }
.agent-eids { text-align: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f1f3f5; font-size: 0.9rem; }
.agent-eids span { color: var(--light-text); display: block; margin-bottom: 4px; }
.agent-eids strong { font-weight: 600; }

/* --- Benzer İlanlar --- */
.benzer-ilanlar { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border-color); }
.benzer-ilanlar h2 { font-size: 1.8rem; margin-bottom: 20px; }
.similar-listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.similar-listing-card { text-decoration: none; display: block; border-radius: var(--border-radius); overflow: hidden; background: #fff; box-shadow: var(--card-shadow); transition: transform 0.2s; }
.similar-listing-card:hover { transform: translateY(-4px); }
.similar-listing-image { width: 100%; aspect-ratio: 1 / 1; }
.similar-listing-image img { width: 100%; height: 100%; object-fit: cover; }
.similar-listing-content { padding: 15px; }
.similar-listing-title { font-weight: 600; margin: 0 0 8px 0; }
.similar-listing-price { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); }

/* --- Mobil Uyumluluk --- */
@media (max-width: 992px) {
    .ilan-detay-grid { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; }
    .gallery-main { height: 400px; }
}