/* ==========================================================================
   ilanakhisar.com — Tema
   Bootstrap 5 üzerine kurulu kurumsal emlak teması.
   Renk paleti: lacivert (güven/kurumsal) + altın vurgu (premium).
   ========================================================================== */

:root {
    /* Marka renkleri — lacivert + altın vurgu.
       Değişken adları renkten bağımsız tutuldu (brand); palet değişirse
       yalnızca bu blok güncellenir, kullanım noktaları sabit kalır. */
    --uy-brand: #0f2540;
    --uy-brand-dark: #081729;
    --uy-brand-light: #1b3a5c;
    --uy-gold: #c9a227;
    --uy-gold-light: #e0bd45;

    /* Nötrler */
    --uy-bg: #f6f7f9;
    --uy-surface: #ffffff;
    --uy-border: #e4e7ec;
    --uy-text: #1a2333;
    --uy-muted: #6b7385;

    /* Durum renkleri */
    --uy-sale: #1a7f5a;
    --uy-rent: #1f6fb2;
    --uy-urgent: #d13c3c;

    /* Gölge ve yuvarlaklık */
    --uy-radius: 14px;
    --uy-radius-sm: 8px;
    --uy-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --uy-shadow: 0 4px 14px rgba(16, 24, 40, .08);
    --uy-shadow-lg: 0 18px 40px rgba(16, 24, 40, .14);

    --uy-transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Temel ---------- */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--uy-bg);
    color: var(--uy-text);
    font-size: .95rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--uy-brand);
}

a { text-decoration: none; transition: color var(--uy-transition); }

/* Klavye ile gezinenler için görünür odak halkası (erişilebilirlik). */
:focus-visible {
    outline: 3px solid rgba(201, 162, 39, .5);
    outline-offset: 2px;
}

.text-gold { color: var(--uy-gold) !important; }
.bg-brand { background-color: var(--uy-brand) !important; }

/* ---------- Bölüm başlığı ---------- */

.section-heading { margin-bottom: 2rem; }

.section-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--uy-gold);
    margin-bottom: .35rem;
}

.section-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .25rem; }
.section-heading p { color: var(--uy-muted); margin-bottom: 0; }

/* ---------- Üst bar & navigasyon ---------- */

.topbar {
    background: var(--uy-brand-dark);
    color: rgba(255, 255, 255, .75);
    font-size: .82rem;
    padding: .5rem 0;
}

.topbar a { color: rgba(255, 255, 255, .75); }
.topbar a:hover { color: var(--uy-gold-light); }

.navbar-uy {
    background: var(--uy-brand);
    padding: .85rem 0;
    box-shadow: var(--uy-shadow-sm);
}

.navbar-uy .navbar-brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -.03em;
    display: flex;
    align-items: center;
    gap: .55rem;
}

/* Marka işareti: SVG currentColor ile geldiği için rengi burada verilir.
   Lacivert navbar üzerinde beyaz kullanılır — altın vurgu "GAYRİMENKUL"
   alt yazısında ve butonlarda kalır, işaretle yarışmaz. */
.navbar-uy .brand-mark {
    width: 40px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
}

.navbar-uy .brand-mark .logo-mark { width: 100%; height: 100%; display: block; }

/* Yönetim panelinden yüklenen hazır logo dosyası. */
.navbar-uy .brand-logo { height: 46px; width: auto; max-width: 280px; object-fit: contain; }
/* Dar ekranlarda logo menü düğmesiyle çakışmasın diye biraz küçülür. */
@media (max-width: 400px) { .navbar-uy .brand-logo { height: 38px; } }

/* Logonun serif karakterini yansıtan marka yazısı. */
.navbar-uy .brand-text {
    font-family: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.05;
    color: #fff;
}

.navbar-uy .brand-word {
    font-size: .78rem;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .82);
}

.navbar-uy .brand-sub {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--uy-gold);
    margin-top: 1px;
    line-height: 1;
}

.navbar-uy .nav-link {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
    padding: .5rem .95rem;
    border-radius: var(--uy-radius-sm);
}

.navbar-uy .nav-link:hover,
.navbar-uy .nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); }

.btn-gold {
    background: linear-gradient(135deg, var(--uy-gold), var(--uy-gold-light));
    border: none;
    color: var(--uy-brand-dark);
    font-weight: 700;
    border-radius: var(--uy-radius-sm);
    transition: transform var(--uy-transition), box-shadow var(--uy-transition);
}

.btn-gold:hover {
    color: var(--uy-brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, .35);
}

.btn-outline-brand { border: 1.5px solid var(--uy-brand); color: var(--uy-brand); font-weight: 600; }
.btn-outline-brand:hover { background: var(--uy-brand); color: #fff; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(115deg, rgba(8, 23, 41, .93) 0%, rgba(15, 37, 64, .78) 55%, rgba(15, 37, 64, .45) 100%),
        var(--uy-brand);
    overflow: hidden;
}

/* Dekoratif arka plan dokusu — görsel yüklenmese de hero boş görünmez. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 78% 25%, rgba(201, 162, 39, .18), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(31, 111, 178, .22), transparent 40%);
    pointer-events: none;
}

.hero > .container { position: relative; z-index: 2; }

.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero p.lead { color: rgba(255, 255, 255, .82); max-width: 620px; font-size: 1.05rem; }

.hero .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    padding: .4rem .9rem;
    border-radius: 100px;
    font-size: .8rem;
    margin-bottom: 1.25rem;
}

/* ---------- Arama kutusu ---------- */

.search-panel {
    background: var(--uy-surface);
    border-radius: var(--uy-radius);
    box-shadow: var(--uy-shadow-lg);
    padding: 1.35rem;
}

.search-panel .nav-tabs { border: none; gap: .4rem; margin-bottom: 1.1rem; }

.search-panel .nav-tabs .nav-link {
    border: none;
    border-radius: 100px;
    padding: .4rem 1.15rem;
    font-weight: 600;
    font-size: .85rem;
    color: var(--uy-muted);
    background: var(--uy-bg);
}

.search-panel .nav-tabs .nav-link.active { background: var(--uy-brand); color: #fff; }

.search-panel .form-label,
.filter-panel .form-label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--uy-muted);
    margin-bottom: .3rem;
}

.form-control, .form-select {
    border: 1px solid var(--uy-border);
    border-radius: var(--uy-radius-sm);
    padding: .55rem .8rem;
    font-size: .9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--uy-brand-light);
    box-shadow: 0 0 0 3px rgba(27, 58, 92, .12);
}

/* ---------- İlan kartı ---------- */

.property-card {
    background: var(--uy-surface);
    border: 1px solid var(--uy-border);
    border-radius: var(--uy-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--uy-transition), box-shadow var(--uy-transition), border-color var(--uy-transition);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--uy-shadow-lg);
    border-color: transparent;
}

.property-card .card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dde3ea, #eef1f5);
}

.property-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.property-card:hover .card-media img { transform: scale(1.06); }

.card-badges {
    position: absolute;
    top: .7rem;
    left: .7rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    z-index: 2;
}

.badge-listing {
    font-size: .7rem;
    font-weight: 700;
    padding: .32rem .7rem;
    border-radius: 100px;
    color: #fff;
    letter-spacing: .02em;
}

.badge-listing.sale { background: var(--uy-sale); }
.badge-listing.rent { background: var(--uy-rent); }
.badge-listing.featured { background: linear-gradient(135deg, var(--uy-gold), var(--uy-gold-light)); color: var(--uy-brand-dark); }
.badge-listing.urgent { background: var(--uy-urgent); }

.btn-fav {
    position: absolute;
    top: .7rem;
    right: .7rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: var(--uy-muted);
    display: grid;
    place-items: center;
    z-index: 2;
    transition: all var(--uy-transition);
}

.btn-fav:hover, .btn-fav.active { background: var(--uy-urgent); color: #fff; }

.property-card .card-body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; }

.property-card .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--uy-brand);
    letter-spacing: -.02em;
    margin-bottom: .3rem;
}

.property-card .title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--uy-text);
    line-height: 1.45;
    margin-bottom: .5rem;
    /* İki satırda kes: kartların yüksekliği eşit kalsın. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.75em;
}

.property-card .title:hover { color: var(--uy-gold); }

.property-card .location {
    font-size: .84rem;
    color: var(--uy-muted);
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .8rem;
}

.property-specs {
    display: flex;
    gap: .35rem;
    padding-top: .8rem;
    border-top: 1px solid var(--uy-border);
    margin-top: auto;
}

.property-specs .spec {
    flex: 1;
    text-align: center;
    font-size: .8rem;
    color: var(--uy-muted);
}

.property-specs .spec i { display: block; color: var(--uy-brand-light); font-size: .95rem; margin-bottom: .1rem; }
.property-specs .spec strong { color: var(--uy-text); font-weight: 600; }

.card-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: var(--uy-muted);
    padding: .6rem 1.1rem;
    border-top: 1px solid var(--uy-border);
    background: #fafbfc;
}

/* ---------- İstatistik şeridi ---------- */

.stats-strip { background: var(--uy-brand); padding: 3rem 0; }

.stat-item { text-align: center; color: #fff; }
.stat-item .value { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--uy-gold); line-height: 1; }
.stat-item .label { font-size: .85rem; color: rgba(255, 255, 255, .72); margin-top: .35rem; }

/* ---------- Tür kutuları ---------- */

.type-tile {
    background: var(--uy-surface);
    border: 1px solid var(--uy-border);
    border-radius: var(--uy-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--uy-transition);
    display: block;
    height: 100%;
}

.type-tile:hover { transform: translateY(-3px); box-shadow: var(--uy-shadow); border-color: var(--uy-gold); }

.type-tile i {
    font-size: 1.75rem;
    color: var(--uy-brand);
    display: block;
    margin-bottom: .6rem;
    transition: color var(--uy-transition);
}

.type-tile:hover i { color: var(--uy-gold); }
.type-tile .name { font-weight: 600; color: var(--uy-text); font-size: .92rem; }
.type-tile .count { font-size: .78rem; color: var(--uy-muted); }

/* ---------- Filtre kenar çubuğu ---------- */

.filter-panel {
    background: var(--uy-surface);
    border: 1px solid var(--uy-border);
    border-radius: var(--uy-radius);
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}

.filter-panel h6 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--uy-muted);
    margin: 1.25rem 0 .6rem;
}

.filter-panel h6:first-of-type { margin-top: 0; }
.filter-panel .form-check-label { font-size: .88rem; }

/* ---------- Detay sayfası ---------- */

.detail-gallery-main {
    border-radius: var(--uy-radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e9edf2;
}

.detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.detail-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .5rem; }

.detail-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--uy-radius-sm);
    cursor: pointer;
    opacity: .65;
    transition: opacity var(--uy-transition);
}

.detail-thumbs img:hover, .detail-thumbs img.active { opacity: 1; outline: 2px solid var(--uy-gold); }

.detail-price-box {
    background: var(--uy-surface);
    border: 1px solid var(--uy-border);
    border-radius: var(--uy-radius);
    padding: 1.4rem;
    box-shadow: var(--uy-shadow-sm);
}

.detail-price-box .price { font-size: 2rem; font-weight: 800; color: var(--uy-brand); letter-spacing: -.03em; }

.spec-table { width: 100%; font-size: .9rem; }
.spec-table tr { border-bottom: 1px solid var(--uy-border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: .65rem .25rem; }
.spec-table td:first-child { color: var(--uy-muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; text-align: right; }

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--uy-bg);
    border: 1px solid var(--uy-border);
    border-radius: 100px;
    padding: .35rem .85rem;
    font-size: .85rem;
    margin: 0 .35rem .5rem 0;
}

.feature-chip i { color: var(--uy-sale); }

/* ---------- Genel panel ---------- */

.panel {
    background: var(--uy-surface);
    border: 1px solid var(--uy-border);
    border-radius: var(--uy-radius);
    padding: 1.4rem;
}

.panel + .panel { margin-top: 1.25rem; }

/* ---------- Footer ---------- */

.footer { background: var(--uy-brand-dark); color: rgba(255, 255, 255, .68); padding: 3.5rem 0 0; }
.footer h5 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.footer a { color: rgba(255, 255, 255, .68); font-size: .89rem; }
.footer a:hover { color: var(--uy-gold-light); }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: .5rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    font-size: .82rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: inline-grid;
    place-items: center;
    color: #fff;
    margin-right: .4rem;
    transition: all var(--uy-transition);
}

.social-link:hover { background: var(--uy-gold); color: var(--uy-brand-dark); }

/* ---------- WhatsApp yüzen buton ---------- */

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    z-index: 1030;
    transition: transform var(--uy-transition);
}

.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Sayfalama ---------- */

.pagination .page-link {
    border: 1px solid var(--uy-border);
    color: var(--uy-text);
    border-radius: var(--uy-radius-sm) !important;
    margin: 0 .15rem;
    font-weight: 500;
}

.pagination .page-item.active .page-link { background: var(--uy-brand); border-color: var(--uy-brand); color: #fff; }

/* ---------- Boş durum ---------- */

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--uy-muted); }
.empty-state i { font-size: 3rem; color: var(--uy-border); display: block; margin-bottom: 1rem; }

/* ---------- Mobil ---------- */

@media (max-width: 991.98px) {
    .hero { min-height: 460px; }
    .filter-panel { position: static; margin-bottom: 1.5rem; }
    .navbar-uy .navbar-nav { padding-top: .75rem; }
}

@media (max-width: 575.98px) {
    .detail-thumbs { grid-template-columns: repeat(3, 1fr); }
    .property-specs .spec { font-size: .74rem; }
    .whatsapp-float { width: 48px; height: 48px; font-size: 1.4rem; bottom: 1rem; right: 1rem; }
}

/* Hareket hassasiyeti olan kullanıcılar için animasyonlar kapatılır. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================================
   Yazdırma stili
   İlan detay sayfası yazdırıldığında (veya tarayıcıdan PDF'e kaydedildiğinde)
   gezinme, formlar ve butonlar çıkmaz; yalnızca ilan bilgisi kalır.
   ========================================================================== */

@media print {
    /* Ekrana özgü öğeler çıktıda yer kaplamaz. */
    .topbar,
    .navbar-uy,
    .footer,
    .whatsapp-float,
    .detail-thumbs,
    .btn,
    button,
    form,
    .alert,
    .breadcrumb,
    nav,
    iframe {
        display: none !important;
    }

    /* Benzer ilanlar ve son görüntülenenler çıktıda gereksiz sayfa şişirir. */
    .property-card,
    section.mt-5 {
        display: none !important;
    }

    body {
        background: #fff !important;
        font-size: 11pt;
        color: #000;
    }

    /* Gölge ve yuvarlaklık mürekkep harcar, çıktıda karşılığı yok. */
    .panel,
    .detail-price-box,
    .ad-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        border-radius: 0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Detay sayfası tek kolona iner: iki kolonlu düzen A4'te sıkışıyor. */
    .container,
    .col-lg-8,
    .col-lg-4 {
        max-width: 100% !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .detail-gallery-main {
        max-height: 9cm;
        break-inside: avoid;
    }

    .spec-table td { padding: .25rem .2rem; }

    /* Sayfa kenar boşlukları tarayıcı varsayılanından bağımsız sabitlenir. */
    @page {
        margin: 1.4cm;
    }

    /* Bağlantı adresleri kâğıtta görünmez olduğu için metne eklenir. */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #555;
    }

    a[href^="/"]::after,
    a[href^="tel:"]::after,
    a[href^="mailto:"]::after {
        content: "";
    }
}

/* ============================================================
   Çerez onayı ve yasal metin sayfaları
   ============================================================ */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080; /* modal-backdrop (1050) üzerinde kalmalı ama modal (1055) altında değil */
    background: var(--uy-brand-dark);
    color: #fff;
    border-top: 3px solid var(--uy-gold, #c9a227);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .25);
    padding: 1rem 0;
}

.cookie-banner-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cookie-banner-text { flex: 1 1 420px; }
.cookie-banner-text strong { display: block; margin-bottom: .25rem; }
.cookie-banner-text p { font-size: .875rem; opacity: .9; line-height: 1.6; }
.cookie-banner-text a { color: var(--uy-gold, #c9a227); text-decoration: underline; }

.cookie-banner-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Ayar penceresindeki kategori kutuları */
.cookie-option {
    border: 1px solid #e6e9ef;
    border-radius: .5rem;
    padding: .875rem 1rem;
    margin-bottom: .75rem;
}
.cookie-option:last-child { margin-bottom: 0; }
.cookie-option p { margin-top: .35rem; }

/* Yasal metinler admin panelinden HTML olarak girilir; okunabilir tipografi verilir. */
.legal-content { line-height: 1.8; }
.legal-content h2 { font-size: 1.25rem; margin: 1.75rem 0 .75rem; }
.legal-content h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.legal-content h2:first-child, .legal-content h3:first-child { margin-top: 0; }
.legal-content ul, .legal-content ol { padding-left: 1.25rem; }
.legal-content li { margin-bottom: .35rem; }
.legal-content table { width: 100%; margin: 1rem 0; font-size: .9rem; }
.legal-content table th,
.legal-content table td { border: 1px solid #e6e9ef; padding: .5rem .65rem; vertical-align: top; }
.legal-content table th { background: #f6f8fb; text-align: left; }

/* Footer yasal bağlantı şeridi */
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: .85rem;
}
.footer-legal a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-legal a:hover { color: var(--uy-gold, #c9a227); text-decoration: underline; }

@media (max-width: 575.98px) {
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions .btn,
    .cookie-banner-actions form { flex: 1 1 100%; }
    .cookie-banner-actions .btn { width: 100%; }
}

/* Ana sayfa kategori bölümündeki grup başlıkları (Emlak / Vasıta) */
.category-group-title {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--uy-brand);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #e6e9ef;
}

/* ============================================================
   Üyelik: giriş/kayıt ekranları, üye paneli, ilan yayınla butonu
   ============================================================ */

/* Menüdeki ana eylem butonu — dikkat çeksin diye hafif parlama animasyonu */
.btn-publish {
    position: relative;
    background: linear-gradient(135deg, var(--uy-gold) 0%, var(--uy-gold-light) 100%);
    border: none;
    color: var(--uy-brand-dark);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 0 0 0 rgba(201, 162, 39, .55);
    animation: publish-pulse 2.4s ease-in-out infinite;
}

.btn-publish:hover,
.btn-publish:focus {
    background: linear-gradient(135deg, var(--uy-gold-light) 0%, var(--uy-gold) 100%);
    color: var(--uy-brand-dark);
    animation: none;
    box-shadow: 0 4px 16px rgba(201, 162, 39, .45);
}

@keyframes publish-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(201, 162, 39, .55); }
    70%  { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

/* Hareketi rahatsız edici bulan kullanıcılar için animasyon kapatılır. */
@media (prefers-reduced-motion: reduce) {
    .btn-publish { animation: none; }
}

/* Giriş / kayıt kartı */
.auth-card { max-width: 480px; margin: 0 auto; }

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
}
.btn-google:hover { background: #f8f9fa; border-color: #c6c9cd; color: #3c4043; }
.google-mark { display: inline-flex; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
    color: #9aa2ad;
    font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6e9ef;
}

/* Üye paneli yan menüsü */
.member-nav {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: .625rem;
    padding: .5rem;
    position: sticky;
    top: 90px;
}

.member-nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .75rem;
    border-radius: .5rem;
    color: #4b5563;
    text-decoration: none;
    font-size: .925rem;
}
.member-nav-link i { width: 18px; text-align: center; }
.member-nav-link:hover { background: #f6f8fb; color: var(--uy-brand); }
.member-nav-link.active { background: var(--uy-brand); color: #fff; font-weight: 500; }
.member-nav-sep { height: 1px; background: #e6e9ef; margin: .5rem .25rem; }

/* Özet kutuları */
.member-stat {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: .625rem;
    padding: 1rem;
    text-align: center;
    height: 100%;
}
.member-stat i { font-size: 1.5rem; }
.member-stat .value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-top: .25rem; }
.member-stat .label { font-size: .8rem; color: #6b7280; }

.member-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.member-filter .nav-link { color: #4b5563; }
.member-filter .nav-link.active { background: var(--uy-brand); }

.member-table th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    font-weight: 600;
}
.member-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: .375rem;
    background: #f1f3f7;
}

/* Ödeme bilgilendirme ekranı */
.payment-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uy-brand);
    text-align: center;
}
.payment-table td { padding: .5rem .25rem; border-color: #eef1f5; }
.payment-steps { padding-left: 1.1rem; }
.payment-steps li { margin-bottom: .5rem; line-height: 1.6; }

/* ------------------------------------------------------------
   İlan sihirbazı kartları (üye paneli).
   Yönetim panelindeki karşılıklarıyla aynı yapıyı kullanır ama
   public tarafın renk değişkenlerine bağlıdır.
   ------------------------------------------------------------ */

.kind-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    height: 100%;
    padding: 2rem 1.75rem;
    border: 2px solid #e6e9ef;
    border-radius: .75rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.kind-card:hover {
    border-color: var(--uy-brand);
    box-shadow: 0 10px 30px rgba(15, 37, 64, .12);
    transform: translateY(-2px);
    color: inherit;
}

.kind-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: .75rem;
    background: rgba(15, 37, 64, .07);
    color: var(--uy-brand);
    font-size: 2rem;
}

.kind-card-vehicle .kind-card-icon {
    background: rgba(201, 162, 39, .14);
    color: #9a7a10;
}

.kind-card-title { font-size: 1.25rem; font-weight: 600; }
.kind-card-desc { color: #6b7280; font-size: .9rem; line-height: 1.55; }
.kind-card-action { margin-top: auto; padding-top: .75rem; font-weight: 600; color: var(--uy-brand); }

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 100%;
    min-height: 116px;
    padding: 1.25rem .75rem;
    border: 1px solid #e6e9ef;
    border-radius: .625rem;
    background: #fff;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.type-card:hover {
    border-color: var(--uy-brand);
    box-shadow: 0 6px 18px rgba(15, 37, 64, .1);
    color: inherit;
}

.type-card-icon { font-size: 1.75rem; color: var(--uy-brand); }
.type-card-title { font-weight: 500; font-size: .9rem; line-height: 1.3; }

/* Üye ilan formu, yönetim panelinin kart ve alan sınıflarını paylaşır. */
.ad-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: .625rem;
    margin-bottom: 1rem;
}
.ad-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .875rem 1.15rem;
    border-bottom: 1px solid #eef1f5;
}
.ad-card-header h2 { font-size: .95rem; font-weight: 600; margin: 0; }
.ad-card-body { padding: 1.15rem; }

.form-section-title {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--uy-brand);
    margin: 1.5rem 0 .85rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid #eef1f5;
}
.form-section-title:first-child { margin-top: 0; }

.form-hint { font-size: .8rem; color: #6b7280; margin-top: .25rem; }


/* ------------------------------------------------------------
   Görsel yükleme alanları — yönetim panelindeki stillerin
   üye formunda da geçerli olması için paylaşılan kopyası.
   ------------------------------------------------------------ */

/* ---------- Görsel yükleme (drag & drop) ---------- */

.dropzone {
    border: 2px dashed var(--ad-border);
    border-radius: var(--ad-radius);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--ad-muted);
    cursor: pointer;
    transition: all .2s;
    background: #fafbfc;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--ad-gold);
    background: rgba(201, 162, 39, .06);
    color: var(--ad-text);
}

.dropzone i { font-size: 2rem; display: block; margin-bottom: .5rem; color: var(--ad-gold); }

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .85rem;
    margin-top: 1rem;
}

.image-item {
    position: relative;
    border: 1px solid var(--ad-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: grab;
}

.image-item.dragging { opacity: .4; }

.image-item.drop-target { outline: 2px dashed var(--ad-gold); outline-offset: 2px; }

.image-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.image-item .actions {
    display: flex;
    gap: .25rem;
    padding: .4rem;
    border-top: 1px solid var(--ad-border);
    background: #fafbfc;
}

.image-item .actions .btn { flex: 1; padding: .18rem .3rem; font-size: .72rem; }

.image-item .cover-badge {
    position: absolute;
    top: .4rem;
    left: .4rem;
    background: linear-gradient(135deg, var(--ad-gold), #e0bd45);
    color: var(--ad-brand-dark);
    font-size: .66rem;
    font-weight: 700;
    padding: .18rem .5rem;
    border-radius: 100px;
}

.image-item .drag-handle {
    position: absolute;
    top: .4rem;
    right: .4rem;
    background: rgba(255, 255, 255, .9);
    border-radius: 6px;
    padding: .1rem .35rem;
    color: var(--ad-muted);
    font-size: .8rem;
}

/* ---------- Kart (kapak) görseli alanı ---------- */

.cover-slot {
    border: 1px solid var(--ad-border);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--ad-bg);
}

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

.cover-slot.is-empty { border-style: dashed; }

/* Kart görseli alanı galeriden daha küçük bir bırakma bölgesi kullanır. */
.dropzone-sm { padding: 1rem .75rem; }

.dropzone-sm i { font-size: 1.35rem; margin-bottom: .25rem; }

.dropzone-sm strong { font-size: .85rem; }

/* ---------- Henüz kaydedilmemiş görsel işareti ---------- */

.pending-badge {
    position: absolute;
    bottom: 2.4rem;
    left: .4rem;
    background: rgba(26, 35, 51, .82);
    color: #fff;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .12rem .45rem;
    border-radius: 100px;
}

/* Bekleyen görseller sürüklenerek sıralanmaz; imleç bunu belli eder. */
#pendingGrid .image-item { cursor: default; }

/* Menüdeki ikincil eylem: telefon. İnce çerçeveli, altın dolgulu
   "İlan Yayınla" butonunun önüne geçmeyecek ağırlıkta. */
.btn-call {
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.btn-call:hover,
.btn-call:focus {
    border-color: var(--uy-gold);
    background: rgba(201, 162, 39, .12);
    color: var(--uy-gold-light);
}

/* Menüdeki eylem grubu (İlan Yayınla, hesap, telefon).
   Mobilde açılır menüde alt alta gelirken üstteki sayfa
   bağlantılarından ince bir çizgiyle ayrılır. */
@media (max-width: 991.98px) {
    .nav-actions {
        border-top: 1px solid rgba(255, 255, 255, .12);
        margin-top: .5rem;
        padding-top: .75rem;
        gap: .5rem;
    }
    .nav-actions .btn { width: 100%; }
}

/* ============================================================
   ÜYE İLAN SÜRESİ UYARISI (ana sayfa)
   Üyenin ilanını süresi dolmadan fark etmesi için sayfanın en
   üstünde, slider'dan önce tam genişlikte gösterilir.
   ============================================================ */
.expiry-notice {
    padding: 1.1rem 0;
    color: #fff;
}

.expiry-notice--warning {
    background: linear-gradient(135deg, #b8860b 0%, var(--uy-gold) 55%, var(--uy-gold-light) 100%);
}

.expiry-notice--critical {
    background: linear-gradient(135deg, #8f1f1f 0%, var(--uy-urgent) 60%, #e05a5a 100%);
}

.expiry-notice__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expiry-notice__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 1.5rem;
    line-height: 1;
}

.expiry-notice__body { flex: 1 1 auto; min-width: 0; }

.expiry-notice__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.expiry-notice__text {
    margin: .15rem 0 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .88);
}

.expiry-notice__list {
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .5rem;
}

.expiry-notice__list li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: 100%;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    font-size: .82rem;
}

.expiry-notice__list a {
    color: #fff;
    text-decoration: none;
    /* Uzun ilan başlıkları şeridi taşırmasın */
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expiry-notice__list a:hover { text-decoration: underline; }

.expiry-notice__badge {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: .78rem;
    opacity: .95;
}

.expiry-notice__actions { flex: 0 0 auto; }

.expiry-notice__actions .btn {
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

@media (max-width: 767.98px) {
    .expiry-notice__inner {
        flex-wrap: wrap;
        gap: .75rem;
    }
    .expiry-notice__icon { width: 42px; height: 42px; font-size: 1.2rem; }
    .expiry-notice__title { font-size: 1rem; }
    .expiry-notice__body { flex: 1 1 100%; order: 2; }
    .expiry-notice__actions { flex: 1 1 100%; order: 3; }
    .expiry-notice__actions .btn { width: 100%; }
    .expiry-notice__list a { max-width: 100%; }
}

/* ============================================================
   KAMPANYA / DUYURU ŞERİDİ (ana sayfa, slider'ın üstünde)
   ============================================================ */
.campaign-strip {
    background: linear-gradient(90deg, var(--uy-gold) 0%, var(--uy-gold-light) 45%, #f2d477 100%);
    color: var(--uy-brand-dark);
    padding: .7rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.campaign-strip__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    text-align: center;
}

.campaign-strip__tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: var(--uy-brand-dark);
    color: var(--uy-gold-light);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.campaign-strip__body {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: .15rem .5rem;
}

.campaign-strip__title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.campaign-strip__sub {
    font-size: .85rem;
    color: rgba(8, 23, 41, .72);
}

.campaign-strip__cta {
    white-space: nowrap;
    border-radius: 999px;
    padding-inline: .9rem;
}

@media (max-width: 575.98px) {
    .campaign-strip__title { font-size: .95rem; }
    .campaign-strip__cta { width: 100%; }
}

/* Motor seçilince otomatik dolan alanların yanındaki küçük not (üye paneli). */
.autofill-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .3rem;
    font-size: .75rem;
    color: var(--uy-sale);
}

/* Altbilgideki geliştirici imzası. Telif satırıyla aynı ağırlıkta durmamalı;
   bağlantı ise okunabilir kalmalı. */
.footer-credit { color: rgba(255, 255, 255, .55); }

.footer-credit a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    transition: color var(--uy-transition), border-color var(--uy-transition);
}

.footer-credit a:hover,
.footer-credit a:focus {
    color: var(--uy-gold-light);
    border-bottom-color: var(--uy-gold-light);
}

/* Elektronik İlan Doğrulama Sistemi rozeti (altbilgi).
   Rozet açık zeminli olduğundan koyu altbilgide beyaz bir kart üzerine oturur.
   Boyut bilinçli olarak küçük: yasal bağlantı satırıyla aynı ağırlıkta durmalı,
   dikkati altbilgideki asıl içerikten çalmamalı. */
.footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Rozet yuvarlak olduğu için kart da yuvarlak: köşelerde boş beyaz
       kalmıyor, koyu altbilgide temiz bir madalyon gibi duruyor. */
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    line-height: 0;
    opacity: .9;
    transition: opacity var(--uy-transition), transform var(--uy-transition);
}

.footer-badge:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.footer-badge img {
    height: 44px;
    width: auto;
    display: block;
}

@media (max-width: 991.98px) {
    /* Dar ekranda bağlantıların altına, sola hizalı geçer. */
    .footer-badge { margin-top: .5rem; }
}

/* ============================================================
   SATICI KARTI (ilan detayı, sağ sütun)
   ============================================================ */
.seller-card {
    background: var(--uy-surface);
    border: 1px solid var(--uy-border);
    border-radius: var(--uy-radius);
    box-shadow: var(--uy-shadow-sm);
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.seller-card__head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .9rem;
}

.seller-card__avatar {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--uy-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .02em;
}

.seller-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-card__identity {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.seller-card__type {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--uy-gold);
}

.seller-card__name {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--uy-text);
    word-break: break-word;
}

/* İsim ve fotoğraf satıcının ilanlarına götürür; bağlantı olduğu
   üzerine gelindiğinde belli olsun. */
.seller-card__name--link {
    text-decoration: none;
    transition: color var(--uy-transition);
}

.seller-card__name--link:hover,
.seller-card__name--link:focus {
    color: var(--uy-brand-light);
    text-decoration: underline;
}

a.seller-card__avatar {
    text-decoration: none;
    transition: transform var(--uy-transition), box-shadow var(--uy-transition);
}

a.seller-card__avatar:hover {
    transform: translateY(-1px);
    box-shadow: var(--uy-shadow);
}

.seller-card__person {
    font-size: .84rem;
    color: var(--uy-muted);
}

/* Yetki belgesi: kurumsal üyenin en kritik bilgisi, ayrı bir şeritte durur. */
.seller-card__doc {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .55rem .7rem;
    margin-bottom: .8rem;
    border-radius: var(--uy-radius-sm);
    background: rgba(26, 127, 90, .08);
    color: var(--uy-sale);
    font-size: .84rem;
}

.seller-card__doc strong {
    display: block;
    color: var(--uy-text);
    font-size: .92rem;
    letter-spacing: .02em;
}

.seller-card__doc-label {
    display: block;
    font-size: .74rem;
    color: var(--uy-muted);
}

.seller-card__meta {
    list-style: none;
    margin: 0 0 .9rem;
    padding: 0;
    font-size: .84rem;
    color: var(--uy-muted);
}

.seller-card__meta li {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .15rem 0;
}

.seller-card__meta a { color: var(--uy-brand-light); }

/* Üye profili fotoğraf alanı */
.profile-photo {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--uy-bg);
    border: 1px solid var(--uy-border);
    display: grid;
    place-items: center;
}

.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.profile-photo__placeholder {
    font-size: 2.6rem;
    color: var(--uy-muted);
    line-height: 1;
}
