/* ============================================================
   YesAy Gayrimenkul — Ana Stil Dosyası
   Renk Paleti: Navy #1B2A4A | Gold #D4A853
   ============================================================ */

:root {
    --navy:   #1B2A4A;
    --navy-2: #2d4578;
    --gold:   #D4A853;
    --gold-2: #b8890a;
    --bg:     #F5F6FA;
    --card-shadow: 0 2px 12px rgba(0,0,0,.07);
    --radius: 12px;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: #333;
    line-height: 1.6;
}

/* Görseller hiçbir zaman kapsayıcıyı taşırmasın */
img { max-width: 100%; }

/* ============================================================ */
/* TOP BAR                                                      */
/* ============================================================ */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,.8);
    padding: .4rem 0;
    font-size: .82rem;
}
.topbar a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: color .2s;
}
.topbar a:hover { color: var(--gold); }
.social-link {
    color: rgba(255,255,255,.7) !important;
    font-size: 1rem;
    transition: color .2s;
}
.social-link:hover { color: var(--gold) !important; }

/* ============================================================ */
/* NAVBAR                                                       */
/* ============================================================ */
.main-navbar {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    padding: .6rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.main-navbar .nav-link {
    color: var(--navy);
    font-weight: 500;
    font-size: .88rem;
    padding: .4rem .55rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    background: rgba(27,42,74,.08);
    color: var(--navy);
}
.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1px;
    line-height: 1;
}
.brand-text span { color: var(--gold); }
.brand-sub {
    display: block;
    font-size: .65rem;
    color: #888;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.logo-img { max-height: 95px; width: auto; }

/* Header danışman bloğu */
.header-danisan {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-left: 1rem;
    border-left: 2px solid #eef0f5;
    text-decoration: none;
    transition: opacity .2s;
}
.header-danisan:hover { opacity: .85; }
.header-danisan-foto {
    width: 76px; height: 76px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--gold);
    flex-shrink: 0;
}
.header-danisan-bilgi { display: flex; flex-direction: column; line-height: 1.15; }
.header-danisan-adi {
    font-size: .98rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.header-danisan-unvan { font-size: .75rem; color: #888; }

/* Coldwell Banker logosu (header sağı) */
.header-cb-logo {
    height: 80px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}
.cb-logo-li { border-left: 2px solid #eef0f5; padding-left: 1rem; }

/* ---- Mobil header düzeni ---- */
@media (max-width: 991px) {
    .logo-img { max-height: 64px; }
    .header-danisan { padding-left: .55rem; gap: .4rem; }
    .header-danisan-foto { width: 46px; height: 46px; border-width: 2px; }
    .header-danisan-adi { font-size: .72rem; }
    .header-danisan-unvan { font-size: .58rem; }
    /* Coldwell mobilde menünün altında ortalı + üst çizgi */
    .cb-logo-li {
        border-left: none;
        border-top: 1px solid #eef0f5;
        padding-left: 0;
        padding-top: .75rem;
        width: 100%;
    }
    .header-cb-logo { height: 64px; }
}
@media (max-width: 360px) {
    .header-danisan-unvan { display: none; }
    .header-danisan-foto { width: 40px; height: 40px; }
}

.btn-wa {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: .85rem;
    padding: .4rem 1rem;
    transition: background .2s;
}
.btn-wa:hover { background: #1da851; color: #fff; }

/* ============================================================ */
/* HERO                                                         */
/* ============================================================ */
.hero-section {
    background:
        linear-gradient(rgba(27,42,74,.72), rgba(27,42,74,.82)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(27,42,74,.9) 0%, rgba(45,69,120,.7) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
    text-align: center;
    color: #fff;
}
.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .75rem;
}
.hero-title span { color: var(--gold); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; }

.hero-search {
    background: #fff;
    border-radius: var(--radius);
    max-width: 860px;
    margin: 0 auto;
}
.hero-search .form-select,
.hero-search .form-control {
    border-radius: 8px;
    font-size: .9rem;
    border-color: #ddd;
}
.btn-ara {
    background: var(--gold);
    color: var(--navy);
    border: none;
    font-weight: 700;
    border-radius: 8px;
    padding: .6rem 1.5rem;
    font-size: .95rem;
    transition: background .2s, transform .1s;
}
.btn-ara:hover { background: var(--gold-2); color: #fff; transform: translateY(-1px); }

.hero-stats { color: rgba(255,255,255,.9); }
.hero-stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-lbl { font-size: .8rem; color: rgba(255,255,255,.7); }

/* ============================================================ */
/* SECTION BAŞLIKLARI                                           */
/* ============================================================ */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    position: relative;
    padding-bottom: .5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }
.text-gold { color: var(--gold) !important; }

/* ============================================================ */
/* KATEGORİ KARTLARI                                           */
/* ============================================================ */
.kat-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 2px solid transparent;
    transition: all .25s;
    text-decoration: none;
    color: var(--navy);
}
.kat-card:hover, .kat-card:focus {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27,42,74,.12);
    color: var(--navy);
}
.kat-icon { font-size: 2.2rem; color: var(--navy); }
.kat-card:hover .kat-icon { color: var(--gold); }
.kat-ad { font-weight: 700; font-size: 1rem; }
.kat-cnt { font-size: .8rem; color: #888; }
.kat-all { background: var(--navy); }
.kat-all .kat-icon { color: var(--gold); }
.kat-all .kat-ad, .kat-all .kat-cnt { color: rgba(255,255,255,.9); }
.kat-all:hover { background: var(--navy-2); border-color: var(--gold); color: #fff; }

/* ============================================================ */
/* İLAN KARTLARI                                               */
/* ============================================================ */
.ilan-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.ilan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.ilan-card-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.ilan-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.ilan-card:hover .ilan-card-img-wrap img { transform: scale(1.04); }
.ilan-badges {
    position: absolute;
    top: .6rem; left: .6rem;
    display: flex; gap: .35rem;
}
.badge-durum {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .3px;
}
.badge-durum.satilik { background: var(--gold); color: var(--navy); }
.badge-durum.kiralik { background: var(--navy); color: #fff; }
.badge-kat { background: rgba(0,0,0,.6); color: #fff; padding: .25rem .6rem;
             border-radius: 6px; font-size: .72rem; font-weight: 600; backdrop-filter: blur(4px); }
.ilan-card-body { padding: .85rem 1rem; flex: 1; display: flex; flex-direction: column; }
.ilan-baslik {
    font-weight: 700;
    font-size: .9rem;
    color: var(--navy);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}
.ilan-baslik:hover { color: var(--gold); }
.ilan-lokasyon { font-size: .78rem; color: #888; margin-top: .3rem; }
.ilan-features { font-size: .78rem; color: #666; }
.ilan-features span { background: #f0f2f7; border-radius: 4px; padding: 2px 7px; }
.ilan-card-footer { display: flex; justify-content: space-between; align-items: baseline; margin-top: .5rem; }
.ilan-fiyat { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.ilan-m2p { font-size: .72rem; color: #888; }

/* ============================================================ */
/* NEDEN YESAy? KARTLARI                                       */
/* ============================================================ */
.why-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform .2s;
}
.why-card:hover { transform: translateY(-3px); }
.why-icon { font-size: 2rem; color: var(--gold); display: block; margin-bottom: .5rem; }
.why-title { font-weight: 700; font-size: .95rem; color: var(--navy); }
.why-desc { font-size: .8rem; color: #888; }
.about-text { color: #555; line-height: 1.8; }
.btn-navy { background: var(--navy); color: #fff; border: none; border-radius: 8px;
            font-weight: 600; padding: .6rem 1.5rem; transition: background .2s; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent;
                    border-radius: 8px; font-weight: 600; padding: .4rem 1rem; transition: all .2s; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ============================================================ */
/* BREADCRUMB                                                   */
/* ============================================================ */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: .7rem 0;
}
.breadcrumb { font-size: .82rem; }
.breadcrumb-item a { color: var(--navy); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--gold); }

/* ============================================================ */
/* FİLTRE SIDEBAR                                              */
/* ============================================================ */
.filter-sidebar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.filter-header { padding: .85rem 1rem; border-bottom: 1px solid #f0f0f0; }
.filter-group { padding: .75rem 1rem; border-bottom: 1px solid #f5f5f5; }
.filter-group:last-child { border-bottom: none; }
.filter-label { font-size: .78rem; font-weight: 700; color: #666; text-transform: uppercase;
                letter-spacing: .5px; display: block; margin-bottom: .4rem; }
.filter-form .btn-navy { border-radius: 6px; font-size: .85rem; padding: .5rem; }
.badge-filter {
    display: inline-block;
    padding: .3rem .75rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    border: 1.5px solid #ddd;
    color: #555;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.badge-filter:hover, .badge-filter.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ============================================================ */
/* MOBİL BOTTOM SHEET                                          */
/* ============================================================ */
.filter-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1040;
}
.filter-backdrop.open { display: block; }
.filter-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.15);
    z-index: 1050;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    max-height: 90vh;
    display: flex; flex-direction: column;
}
.filter-sheet.open { transform: translateY(0); }
.filter-sheet-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.filter-sheet-header::before {
    content: '';
    position: absolute;
    top: .5rem; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 4px;
    background: #ddd; border-radius: 2px;
}
.filter-sheet-body { overflow-y: auto; padding: 0 1rem 1rem; flex: 1; }
.filter-sheet .filter-group { padding: .6rem 0; }

/* ============================================================ */
/* İLAN DETAY SAYFASI                                          */
/* ============================================================ */
.detay-galeri { background: #fff; border-radius: var(--radius); overflow: hidden;
                box-shadow: var(--card-shadow); }
.galeri-main {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: zoom-in;
}
.galeri-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.galeri-main:hover img { transform: scale(1.02); }
.galeri-count {
    position: absolute;
    bottom: .75rem; right: .75rem;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: .78rem;
    padding: .3rem .65rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}
.galeri-thumbs {
    display: flex;
    gap: .5rem;
    padding: .75rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) #f0f0f0;
}
.galeri-thumb {
    flex-shrink: 0;
    width: 80px; height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .2s, transform .2s;
    position: relative;
    cursor: pointer;
}
.galeri-thumb img { width: 100%; height: 100%; object-fit: cover; }
.galeri-thumb.active { border-color: var(--gold); }
.galeri-thumb:hover { transform: scale(1.05); border-color: var(--navy); }
.galeri-video-thumb .thumb-play-icon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.45);
    color: #fff; font-size: 1.5rem;
}
.galeri-placeholder {
    aspect-ratio: 16/10;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: #f5f5f5;
}
.video-placeholder {
    width: 80px; height: 60px;
    background: #1B2A4A;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.5rem;
}

.fiyat-kutu .fiyat-buyuk {
    font-size: 2rem; font-weight: 800;
    color: var(--navy);
    margin: .5rem 0 0;
}
.m2-fiyat { font-size: .85rem; color: #888; font-weight: 500; }
.ozellik-table td { font-size: .85rem; padding: .5rem .25rem; border-color: #f0f0f0; }
.ozellik-table td:first-child { color: #666; width: 50%; }
.ozellik-table td:last-child { text-align: right; }
.detay-aciklama .aciklama-metin { color: #555; line-height: 1.85; white-space: pre-wrap; }
.detay-sidebar { background: transparent; }

/* ============================================================ */
/* SERTİFİKALAR                                                */
/* ============================================================ */
.sertifika-section { background: #eef0f8; }
.sertifika-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e4ef;
    background: #fff;
    transition: all .25s;
    text-decoration: none;
}
.sertifika-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}
.sertifika-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.sertifika-card:hover img { transform: scale(1.03); }
.sertifika-label {
    padding: .4rem .5rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================ */
/* FOOTER                                                       */
/* ============================================================ */
.main-footer {
    background: var(--navy);
    color: rgba(255,255,255,.75);
    padding: 3rem 0 0;
    margin-top: 3rem;
}
.footer-brand { font-size: 1.6rem; font-weight: 800; color: #fff; }
.footer-brand span { color: var(--gold); }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: .5rem; }
.footer-heading { font-size: .78rem; font-weight: 700; text-transform: uppercase;
                  letter-spacing: 1px; color: var(--gold); margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .85rem;
                  transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: .6rem;
    margin-bottom: .6rem; font-size: .85rem; color: rgba(255,255,255,.65);
}
.footer-contact i { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 2rem;
    padding: 1rem 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}
.social-links { display: flex; gap: .5rem; }
.social-links a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .95rem;
    transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--gold); color: var(--navy); }

/* Bootstrap Overrides */
.bg-navy { background-color: var(--navy) !important; }
.pagination .page-link { color: var(--navy); }
.pagination .page-item.active .page-link { background: var(--navy); border-color: var(--navy); }
.form-control:focus, .form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 .2rem rgba(27,42,74,.12);
}

/* ============================================================ */
/* HAKKIMIZDA & İLETİŞİM SAYFASI                              */
/* ============================================================ */
.page-hero {
    background: linear-gradient(rgba(27,42,74,.8), rgba(27,42,74,.8)),
                url('../images/hero-bg.jpg') center/cover;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.page-hero h1 { font-weight: 800; }

/* Responsive */
@media (max-width: 767px) {
    .hero-section { min-height: 420px; }
    .hero-title { font-size: 1.4rem; }
    .hero-search .row { flex-direction: column; }
    .ilan-card-img-wrap { aspect-ratio: 16/9; }
    .fiyat-buyuk { font-size: 1.5rem; }
}
