/* ================================================================
   EMLAK EKLENTISI - Ana Stil Dosyasi (Emojisiz)
   ================================================================ */

:root {
    --emlak-renk-ana:      #1a4d8f;
    --emlak-renk-ikinci:   #e8f0fb;
    --emlak-renk-vurgu:    #ff6b35;
    --emlak-renk-yesil:    #2d8653;
    --emlak-renk-metin:    #1c2333;
    --emlak-renk-acik:     #6b7280;
    --emlak-renk-sinir:    #e5e7eb;
    --emlak-yari-cerceve:  8px;
    --emlak-cerceve:       12px;
    --emlak-golge:         0 2px 12px rgba(0,0,0,.07);
    --emlak-golge-hover:   0 6px 24px rgba(0,0,0,.12);
    --emlak-gecis:         all 0.22s ease;
}

/* ── Kapsayici ─────────────────────────────────────────────────── */
.emlak-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* ── Filtre Butonu Cubugu ────────────────────────────────────────── */
.emlak-filtre-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.emlak-filtre-btn {
    padding: 7px 18px;
    border: 1.5px solid var(--emlak-renk-sinir);
    border-radius: 50px;
    background: #fff;
    color: var(--emlak-renk-metin);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--emlak-gecis);
    line-height: 1;
}

.emlak-filtre-btn:hover,
.emlak-filtre-btn.aktif {
    background: var(--emlak-renk-ana);
    border-color: var(--emlak-renk-ana);
    color: #fff;
}

/* ── Toplam ────────────────────────────────────────────────────── */
.emlak-toplam {
    font-size: 13px;
    color: var(--emlak-renk-acik);
    margin-bottom: 20px;
}

/* ── Grid ────────────────────────────────────────────────────── */
.emlak-grid { display: grid; gap: 22px; }
.emlak-sutun-1 { grid-template-columns: 1fr; }
.emlak-sutun-2 { grid-template-columns: repeat(2, 1fr); }
.emlak-sutun-3 { grid-template-columns: repeat(3, 1fr); }
.emlak-sutun-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .emlak-sutun-3, .emlak-sutun-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .emlak-sutun-2, .emlak-sutun-3, .emlak-sutun-4 { grid-template-columns: 1fr; }
}

/* ── Kart ────────────────────────────────────────────────────── */
.emlak-kart {
    background: #fff;
    border-radius: var(--emlak-cerceve);
    box-shadow: var(--emlak-golge);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--emlak-gecis);
    border: 1.5px solid transparent;
}

.emlak-kart:hover {
    transform: translateY(-3px);
    box-shadow: var(--emlak-golge-hover);
    border-color: var(--emlak-renk-sinir);
}

.emlak-kart--vurgula { border-color: var(--emlak-renk-vurgu); }
.emlak-kart--vurgula:hover { border-color: var(--emlak-renk-vurgu); }

.emlak-kart-gorsel-link { display: block; text-decoration: none; }

.emlak-kart-gorsel {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--emlak-renk-ikinci);
}

.emlak-kart-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.emlak-kart:hover .emlak-kart-gorsel img { transform: scale(1.04); }

.emlak-gorsel-yok {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--emlak-renk-ikinci);
}

.emlak-gorsel-yok svg { opacity: .35; }

/* Durum etiketi */
.emlak-kart-durum {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.emlak-durum-satilik  { background: var(--emlak-renk-vurgu); color: #fff; }
.emlak-durum-kiralik  { background: var(--emlak-renk-ana); color: #fff; }
.emlak-durum-devren   { background: #7c3aed; color: #fff; }
.emlak-durum-pazarlik { background: var(--emlak-renk-yesil); color: #fff; }

.emlak-kart-one-cikan {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fbbf24;
    color: #4a2c00;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

/* Kart icerigi */
.emlak-kart-icerik {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.emlak-kart-kategoriler { display: flex; flex-wrap: wrap; gap: 4px; }

.emlak-kart-kategori {
    background: var(--emlak-renk-ikinci);
    color: var(--emlak-renk-ana);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.emlak-kart-baslik {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.emlak-kart-baslik a {
    color: var(--emlak-renk-metin);
    text-decoration: none;
    transition: color 0.2s;
}

.emlak-kart-baslik a:hover { color: var(--emlak-renk-ana); }

.emlak-kart-konum {
    margin: 0;
    font-size: 13px;
    color: var(--emlak-renk-acik);
    display: flex;
    align-items: center;
    gap: 4px;
}

.emlak-kart-ozellikler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

.emlak-ozellik {
    background: #f9fafb;
    border: 1px solid var(--emlak-renk-sinir);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--emlak-renk-metin);
    display: flex;
    align-items: center;
    gap: 4px;
}

.emlak-kart-alt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--emlak-renk-sinir);
}

.emlak-kart-fiyat {
    font-size: 18px;
    font-weight: 800;
    color: var(--emlak-renk-ana);
}

.emlak-fiyat-goruntule {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--emlak-renk-acik) !important;
}

.emlak-kart-btn {
    background: var(--emlak-renk-ana);
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--emlak-gecis);
    white-space: nowrap;
}

.emlak-kart-btn:hover { background: #163e73; }

.emlak-bos {
    text-align: center;
    padding: 60px 20px;
    color: var(--emlak-renk-acik);
    font-size: 16px;
}

.emlak-kart.gizli { display: none !important; }

/* ================================================================
   DETAY SAYFASI
   ================================================================ */

.emlak-detay-sayfa {
    background: #f7f8fc;
    min-height: 100vh;
    padding: 24px 0 60px;
}

.emlak-detay-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Breadcrumb */
.emlak-breadcrumb {
    font-size: 13px;
    color: var(--emlak-renk-acik);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.emlak-breadcrumb a { color: var(--emlak-renk-ana); text-decoration: none; }
.emlak-breadcrumb a:hover { text-decoration: underline; }

/* 2 sutun layout */
.emlak-detay-icerik {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 36px;
}

@media (max-width: 820px) { .emlak-detay-icerik { grid-template-columns: 1fr; } }

/* ── Gorsel / Lightbox Bolumu ─────────────────────────────────── */
.emlak-lightbox-ana {
    position: relative;
    border-radius: var(--emlak-cerceve);
    overflow: hidden;
    background: #e9eef5;
    box-shadow: var(--emlak-golge);
    cursor: zoom-in;
}

.emlak-lightbox-link { display: block; line-height: 0; }

.emlak-ana-gorsel-img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.emlak-lightbox-ana:hover .emlak-ana-gorsel-img { transform: scale(1.015); }

.emlak-gorsel-sayac {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.emlak-gorsel-yok-buyuk {
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    background: #edf0f5;
    border-radius: var(--emlak-cerceve);
}

.emlak-gorsel-yok-buyuk p { font-size: 14px; margin-top: 10px; }

/* Durum badge (detay) */
.emlak-detay-durum-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    pointer-events: none;
}

.emlak-detay-vurgula-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #fbbf24;
    color: #4a2c00;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}

/* Thumbnail Strip */
.emlak-thumb-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 7px;
    margin-top: 8px;
}

.emlak-thumb-btn {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    height: 64px;
    transition: border-color 0.18s;
}

.emlak-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.emlak-thumb-btn:hover { border-color: var(--emlak-renk-ana); }
.emlak-thumb-btn.aktif { border-color: var(--emlak-renk-ana); }

/* Lightbox Overlay */
.emlak-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.emlak-lightbox-overlay.acik { display: flex; }

.emlak-lb-icindeki {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.emlak-lb-icindeki img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
}

.emlak-lb-sayac-text {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    margin: 0;
}

.emlak-lb-kapat {
    position: fixed;
    top: 18px;
    right: 20px;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .2s;
}

.emlak-lb-kapat:hover { background: rgba(255,255,255,.3); }

.emlak-lb-nav {
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 36px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
    line-height: 1;
}

.emlak-lb-nav:hover { background: rgba(255,255,255,.28); }

/* ── Sag Panel ─────────────────────────────────────────────────── */
.emlak-detay-sag {
    background: #fff;
    border-radius: var(--emlak-cerceve);
    padding: 26px;
    box-shadow: var(--emlak-golge);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.emlak-detay-kategoriler { display: flex; flex-wrap: wrap; gap: 6px; }

.emlak-detay-kategori {
    background: var(--emlak-renk-ikinci);
    color: var(--emlak-renk-ana);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.emlak-detay-kategori:hover { background: var(--emlak-renk-ana); color: #fff; }

.emlak-detay-baslik {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--emlak-renk-metin);
    line-height: 1.3;
}

.emlak-detay-konum {
    margin: 0;
    color: var(--emlak-renk-acik);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Fiyat Kutu */
.emlak-detay-fiyat-kutu {
    background: var(--emlak-renk-ikinci);
    border-radius: var(--emlak-yari-cerceve);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.emlak-detay-fiyat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #185fa5;
    font-weight: 600;
    letter-spacing: .8px;
}

.emlak-detay-fiyat {
    font-size: 28px;
    font-weight: 900;
    color: var(--emlak-renk-ana);
}

/* Ozellik Tablosu */
.emlak-detay-ozellikler {
    border: 1px solid var(--emlak-renk-sinir);
    border-radius: var(--emlak-yari-cerceve);
    overflow: hidden;
}

.emlak-detay-ozellikler-baslik {
    margin: 0;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    background: #f9fafb;
    border-bottom: 1px solid var(--emlak-renk-sinir);
    color: var(--emlak-renk-metin);
}

.emlak-ozellik-grid { display: flex; flex-direction: column; }

.emlak-ozellik-satir {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--emlak-renk-sinir);
}

.emlak-ozellik-satir:last-child { border-bottom: none; }

.emlak-ozellik-ikon {
    width: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--emlak-renk-acik);
}

.emlak-ozellik-ad { flex: 1; font-size: 13px; color: var(--emlak-renk-acik); }
.emlak-ozellik-deger { font-size: 13px; font-weight: 600; color: var(--emlak-renk-metin); }

/* Iletisim */
.emlak-iletisim-kutu {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--emlak-yari-cerceve);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emlak-iletisim-baslik {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--emlak-renk-yesil);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.emlak-iletisim-btn,
.emlak-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--emlak-gecis);
}

.emlak-iletisim-btn { background: var(--emlak-renk-ana); color: #fff !important; }
.emlak-iletisim-btn:hover { background: #163e73; }
.emlak-whatsapp-btn { background: #25d366; color: #fff !important; }
.emlak-whatsapp-btn:hover { background: #1da851; }

/* Paylasim */
.emlak-paylasim {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--emlak-renk-acik);
}

.emlak-paylasim-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}

.emlak-paylasim-btn:hover { opacity: .8; }
.emlak-fb { background: #1877f2; color: #fff !important; }
.emlak-tw { background: #1da1f2; color: #fff !important; }
.emlak-kopyala { background: #6b7280; color: #fff; }

/* Aciklama */
.emlak-detay-aciklama {
    background: #fff;
    border-radius: var(--emlak-cerceve);
    padding: 28px;
    box-shadow: var(--emlak-golge);
    margin-bottom: 36px;
}

.emlak-detay-aciklama h2 { margin-top: 0; font-size: 20px; color: var(--emlak-renk-metin); }
.emlak-aciklama-metin { font-size: 15px; line-height: 1.75; color: #374151; }

/* Benzer */
.emlak-benzer { margin-bottom: 36px; }
.emlak-benzer h2 { font-size: 20px; color: var(--emlak-renk-metin); margin-bottom: 18px; }

/* Geri Don */
.emlak-geri-link { margin-top: 8px; }
.emlak-geri-link a { color: var(--emlak-renk-ana); text-decoration: none; font-size: 14px; font-weight: 600; }
.emlak-geri-link a:hover { text-decoration: underline; }
