/* İlan platformu sayfaları (/ilan liste + detay) */

/* İlan sayfalarında hero yok; sabit header şeffaf kalırsa beyaz zeminde görünmez olur */
#main-header { background: #2b2e33; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }

/* --- Detay --- */
.ilan-detay { padding: 110px 0 40px; background: #f5f6f8; }

.ilan-kirinti { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 14px; color: #9ca3af; }
.ilan-kirinti a { color: #4b5563; text-decoration: none; }
.ilan-kirinti a:hover { color: #c79a10; }
.ilan-kirinti em { font-style: normal; color: #9ca3af; }

.ilan-baslik { margin-bottom: 18px; }
.rozet-satir { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.ilan-baslik h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: #111827; line-height: 1.35; }
.ilan-konum { color: #6b7280; font-size: 14px; }
.ilan-kod { color: #6b7280; font-size: 13px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 3px 12px; }
.goruntulenme { color: #9ca3af; font-size: 13px; }
.eids-rozet { display: inline-flex; align-items: center; gap: 6px; background: #e8f5e9; color: #1e7e34; border: 1px solid #c8e6c9; border-radius: 20px; padding: 4px 14px; font-size: 13px; font-weight: 600; }
.eids-rozet.kucuk { font-size: 11px; padding: 2px 10px; }

.ust-blok { margin-bottom: 8px; }

/* Galeri */
.galeri-ana-sarici { position: relative; border-radius: 12px; overflow: hidden; background: #eceef2; }
.galeri-ana { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; cursor: zoom-in; }
.galeri-ana.galeri-bos { object-fit: contain; padding: 40px; cursor: default; }
.galeri-ok { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(17, 24, 39, .55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.galeri-ok:hover { background: rgba(17, 24, 39, .8); }
.galeri-ok.geri { left: 12px; }
.galeri-ok.ileri { right: 12px; }
.galeri-sayac { position: absolute; right: 12px; bottom: 12px; background: rgba(17, 24, 39, .65); color: #fff; font-size: 12px; border-radius: 14px; padding: 3px 12px; }
.galeri-kucukler { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }
.galeri-kucukler::-webkit-scrollbar { height: 4px; }
.galeri-kucukler::-webkit-scrollbar-track { background: transparent; }
.galeri-kucukler::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.galeri-kucukler img { width: 84px; height: 63px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; flex: 0 0 auto; opacity: .85; transition: opacity .15s; }
.galeri-kucukler img:hover { opacity: 1; }
.galeri-kucukler img.aktif { border-color: #f5c31f; opacity: 1; }

/* Mobil paylaş — JS ile header'a (hamburger yanına) taşınır */
.header-paylas { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff; font-size: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-right: 14px; cursor: pointer; transition: background .15s; }
.header-paylas:active, .header-paylas:hover { background: #f5c31f; color: #1f2430; border-color: #f5c31f; }

/* Tam ekran görüntüleme */
.galeri-lightbox { position: fixed; inset: 0; z-index: 1060; background: rgba(10, 12, 16, .94); display: flex; align-items: center; justify-content: center; }
.galeri-lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.galeri-lightbox .galeri-ok { width: 48px; height: 48px; font-size: 18px; }
.galeri-lightbox .kapat { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; cursor: pointer; }
.galeri-lightbox .galeri-sayac { bottom: 20px; right: auto; left: 50%; transform: translateX(-50%); font-size: 14px; }

/* Künye (sahibinden tarzı özet tablo) */
.kunye-kart { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; height: 100%; }
.kunye-fiyat { font-size: 28px; font-weight: 800; color: #1f2430; line-height: 1.2; }
.kunye-konum { font-size: 14px; color: #374151; margin: 6px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.galeri-rozet { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; padding: 5px 13px; box-shadow: 0 2px 8px rgba(17, 24, 39, .18); }
.kunye-konum a { color: #1f2430; text-decoration: none; font-weight: 700; border-bottom: 2px solid #f5c31f; }
.kunye-tablo { width: 100%; border-collapse: collapse; }
.kunye-tablo td { padding: 7px 2px; font-size: 13.5px; border-bottom: 1px dashed #eceef2; vertical-align: top; }
.kunye-tablo tr:last-child td { border-bottom: 0; }
.kunye-tablo td:first-child { color: #6b7280; font-weight: 600; white-space: nowrap; padding-right: 14px; width: 42%; }
.kunye-tablo td:last-child { color: #111827; }

/* Yan kartlar */
.yan-kart { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.yan-kart h5 { font-size: 14px; margin-bottom: 12px; color: #374151; }
.danisman-ust { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.danisman-avatar { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; background: #eef2f7; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.danisman-ad { font-weight: 700; font-size: 16px; color: #111827; }
.danisman-ofis { color: #6b7280; font-size: 13px; }
.danisman-tel { font-size: 15px; font-weight: 700; color: #1f2430; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed #eceef2; }
.danisman-tel i { color: #c79a10; font-size: 13px; }
.btn-ara, .btn-wp { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 8px; padding: 11px; font-weight: 700; text-decoration: none; margin-bottom: 8px; font-size: 15px; }
.btn-ara { background: #23262b; color: #fff; }
.btn-wp { background: #25D366; color: #fff; }
.btn-ara:hover, .btn-wp:hover { color: #fff; filter: brightness(1.06); }
.guvenli-kart { background: #f0fdf4; border-color: #bbf7d0; }
.guvenli-mobil { margin-top: 12px; margin-bottom: 0; }
.guvenli-kart h5 { color: #166534; }
.guvenli-kart div { font-size: 13px; color: #166534; line-height: 1.6; }
.paylas-btnlar { display: flex; gap: 8px; }
.paylas-btnlar a, .paylas-btnlar button { flex: 1; display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #374151; font-size: 17px; text-decoration: none; cursor: pointer; }
.paylas-btnlar a:hover, .paylas-btnlar button:hover { background: #f3f4f6; }

/* İçerik kartları */
.icerik-kart { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px 24px; margin-top: 18px; }
.icerik-baslik { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #111827; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #f0f1f4; }
.icerik-baslik i { color: #c79a10; }

.aciklama-icerik { line-height: 1.75; color: #1f2937; font-size: 14.5px; overflow-wrap: break-word; }
.aciklama-icerik p { margin-bottom: 10px; }
.aciklama-icerik ul, .aciklama-icerik ol { padding-left: 22px; margin-bottom: 12px; }
.aciklama-icerik li { margin-bottom: 4px; }
.aciklama-icerik h2, .aciklama-icerik h3, .aciklama-icerik h4, .aciklama-icerik h5 { font-size: 15.5px; font-weight: 700; margin: 14px 0 8px; }

/* Özellik grupları — öğeler yan yana chip olarak */
.ozellik-gruplar { display: flex; flex-direction: column; gap: 16px; }
.ozellik-grup h3 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #9ca3af; margin: 0 0 8px; }
.ozellik-grup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ozellik-grup li { display: inline-flex; align-items: center; gap: 7px; background: #f7f8fa; border: 1px solid #e6e8ec; border-radius: 18px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: #1f2937; }
.ozellik-grup li i { color: #16a34a; font-size: 12px; }

.harita-kart { padding-bottom: 0; overflow: hidden; }
.harita-kutu { margin: 0 -24px; }
.harita-kutu iframe { width: 100%; height: 400px; border: 0; display: block; }

/* Mobil sekme çubuğu (yalnız mobilde görünür — d-lg-none), sahibinden tarzı bitişik tablar */
.mobil-sekmeler { display: flex; background: #fff; border: 1px solid #e0e2e6; border-radius: 10px 10px 0 0; overflow: hidden; }
.mobil-sekmeler button { flex: 1; border: 0; background: #f6f7f9; padding: 12px 4px; font-size: 14px; font-weight: 700; color: #4b5563; cursor: pointer; }
.mobil-sekmeler button + button { border-left: 1px solid #e0e2e6; }
.mobil-sekmeler button.aktif { background: #f5c31f; color: #1f2430; }
/* Aşağı kayınca ekran üstünde sabit (JS body'ye taşır — smooth-scroll transform fixed'i bozar) */
.mobil-sekmeler.sabit { position: fixed; left: 0; right: 0; z-index: 1029; border-radius: 0; border-left: 0; border-right: 0; box-shadow: 0 4px 12px rgba(17, 24, 39, .10); }

/* Yayından kaldırılmış ilan */
.kaldirildi-kutu { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 48px 24px; text-align: center; }
.kaldirildi-kutu .ikon { font-size: 44px; color: #dc2626; margin-bottom: 14px; }
.kaldirildi-kutu h1 { font-size: 24px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.kaldirildi-kutu p { color: #6b7280; font-size: 14.5px; max-width: 520px; margin: 0 auto 20px; line-height: 1.7; }
.kaldirildi-btn { display: inline-flex; text-decoration: none; }
.kaldirildi-btn:hover { color: #1f2430; }

/* Benzer ilanlar */
.benzer-ilanlar { margin-top: 28px; }
.benzer-ilanlar .icerik-baslik { border-bottom: 0; margin-bottom: 4px; }

/* Mobil sabit iletişim barı */
.mobil-iletisim-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 -4px 16px rgba(17, 24, 39, .08); }
.mobil-iletisim-bar a { margin-bottom: 0; }

/* --- Liste --- */
.ilan-liste { padding: 120px 0 60px; background: #f5f6f8; }
.liste-baslik { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.liste-baslik h1 { font-size: 26px; font-weight: 700; color: #111827; margin: 0; }
.ilan-adet { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 3px 14px; font-size: 13px; font-weight: 600; color: #6b7280; }
.filtre-kutu { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; box-shadow: 0 2px 12px rgba(17, 24, 39, .05); }
.filtre-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.f-alan label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #9ca3af; margin-bottom: 6px; }
.f-input { display: flex; align-items: center; gap: 9px; height: 46px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafbfc; padding: 0 13px; transition: border-color .15s, box-shadow .15s, background .15s; }
.f-input:focus-within { border-color: #f5c31f; background: #fff; box-shadow: 0 0 0 3px rgba(245, 195, 31, .18); }
.f-input i { color: #b3b9c4; font-size: 13px; flex: 0 0 auto; }
.f-input input, .f-input select { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; height: 100%; font-size: 14px; color: #1f2937; appearance: auto; }
.f-aksiyon { display: flex; gap: 8px; }
.filtre-ara-btn { height: 46px; padding: 0 28px; border: 0; border-radius: 10px; background: #23262b; color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, color .15s; }
.filtre-ara-btn:hover { background: #f5c31f; color: #1f2430; }
.filtre-temizle { width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #6b7280; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 16px; }
.filtre-temizle:hover { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.ilan-kart { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s; }
.ilan-kart:hover { box-shadow: 0 8px 24px rgba(28,36,52,.10); }
.ilan-kart a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.ilan-kart .resim { position: relative; aspect-ratio: 4/3; background: #f1f3f7; }
.ilan-kart .resim img { width: 100%; height: 100%; object-fit: cover; }
.ilan-kart .rozet { position: absolute; top: 10px; left: 10px; background: rgba(30,126,52,.92); color: #fff; border-radius: 16px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.ilan-kart .icerik { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.ilan-kart .baslik { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ilan-kart .konum { color: #6b7280; font-size: 13px; margin-bottom: 10px; }
.ilan-kart .fiyat { margin-top: auto; font-size: 18px; font-weight: 700; color: #1f2430; }
.sayfalama { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.sayfalama a, .sayfalama span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; border-radius: 8px; text-decoration: none; color: #374151; padding: 0 10px; }
.sayfalama .aktif { background: #23262b; color: #fff; border-color: #23262b; }
.sonuc-yok { text-align: center; padding: 60px 0; color: #6b7280; }

/* --- Mobil --- */
@media (max-width: 991px) {
    .ilan-detay { padding: 86px 0 84px; }
    .ilan-liste { padding-top: 100px; }
    .filtre-grid { grid-template-columns: 1fr 1fr; }
    .f-genis, .f-aksiyon { grid-column: 1 / -1; }
    .filtre-ara-btn { flex: 1; }
    .ilan-baslik h1 { font-size: 20px; }
    .ilan-kirinti { display: none; }
    .galeri-ana-sarici { border-radius: 0; margin: 0 -12px; }
    .galeri-ana { aspect-ratio: 4/3; }
    .galeri-kucukler { padding: 0 2px; }
    .galeri-kucukler img { width: 72px; height: 54px; }
    .kunye-kart { height: auto; padding: 16px; }
    .kunye-fiyat { font-size: 27px; }
    .icerik-kart { padding: 18px; }
    .icerik-baslik { font-size: 16px; }
    .harita-kutu { margin: 0 -18px; }
    .harita-kutu iframe { height: 300px; }
    /* Sekmeli görünüm: yalnız aktif sekmenin bölümleri görünür */
    [data-sekme] { display: none; }
    [data-sekme].sekme-acik { display: block; }
    .icerik-kart[data-sekme] { margin-top: 14px; }

    /* Sekmeler künyeye yapışık: aradaki bootstrap gutter'ı kapat, üst köşeleri düzleştir */
    div[data-sekme="bilgiler"].col-lg-4 { margin-top: 0; }
    div[data-sekme="bilgiler"].col-lg-4 .kunye-kart { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
}
