/* ============================================================
   INDEX.CSS — Elite Emlak
   Sadece ana sayfaya özel stiller
   Hero · Search Bar · Stats Band · Filter Bar
   ============================================================ */

/* ── HERO ──
   PC    : 88vh — tam ekran hissi, aşağı çok sarkmaz
   Tablet: 70vh
   Mobil : 60vh
   background-size: cover → ekranı tamamen kaplar
   Önerilen foto oranı: 16:9 yatay, min 1280px genişlik.
*/
.hero {
    height: 88vh;
    min-height: 500px;
    max-height: 860px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13,13,13,0.72) 0%,
        rgba(13,13,13,0.40) 50%,
        rgba(13,13,13,0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    animation: fadeUp 1.2s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-overline {
    font-size: 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 300;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-title em { font-style: italic; color: var(--gold-light); }

.hero-desc {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slide göstergeleri */
.hero-indicators {
    position: absolute;
    right: 40px;
    bottom: 50%;
    transform: translateY(50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active { background: var(--gold); transform: scale(1.5); }

/* Scroll aşağı animasyonu */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── SEARCH BAR ── */
.search-section { background: var(--obsidian); padding: 0; }

.search-inner { display: flex; align-items: stretch; }

.search-tab-bar { display: flex; background: var(--smoke); }

.s-tab {
    padding: 22px 32px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.s-tab.active,
.s-tab:hover { color: var(--gold); border-bottom-color: var(--gold); }

.search-fields {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 30px;
}

.search-field {
    flex: 1;
    padding: 22px 24px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.search-field:last-of-type { border-right: none; }

.search-field label {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.btn-search {
    background: var(--gold);
    color: var(--obsidian);
    border: none;
    padding: 0 40px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-search:hover { background: var(--gold-light); }

/* ── STATS BAND ── */
.stats-band { background: var(--charcoal); padding: 60px 0; }

.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.06); }
.stat-item:last-child { border-right: none; }

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* ── LISTINGS SECTION ── */
.listings-section { padding: 100px 0; }

/* ── FILTER BAR ── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 9px 22px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid #ddd;
    background: transparent;
    color: var(--warm-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--charcoal);
    background: var(--charcoal);
    color: var(--gold);
}

/* ── RESPONSIVE (index'e özel) ── */
@media (max-width: 768px) {
    .hero-title { font-size: 34px; }
    .hero-indicators { display: none; }
}

/* ── SEARCH PANELS ── */
.search-panel { display: none; }
.search-panel.active { display: block; }

.search-tab-bar {
    display: flex;
    background: var(--smoke);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.s-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 32px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.s-tab i { font-size: 13px; }
.s-tab.active, .s-tab:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Disabled trigger */
.cs-disabled { opacity: 0.35; cursor: not-allowed !important; pointer-events: none; }
.cs-loading   { color: rgba(255,255,255,0.3) !important; font-style: italic; cursor: default !important; }
.cs-loading:hover { background: transparent !important; padding-left: 20px !important; }

/* Price range */
.search-field--price { min-width: 180px; }

.price-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-input {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255,255,255,0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    width: 80px;
}

.price-input::placeholder { color: rgba(255,255,255,0.3); }

.price-sep {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
    flex-shrink: 0;
}

/* ── MOBİL ── */
@media (max-width: 768px) {

    .hero { height: 70vh; min-height: 380px; max-height: 560px; }
    .hero-title { font-size: 30px; }
    .hero-indicators { display: none; }
    .hero-desc { font-size: 12px; }

    /* Tabs */
    .search-tab-bar { overflow-x: auto; }
    .s-tab { padding: 14px 18px; font-size: 9px; }

    /* Search alanları 2'li grid */
    .search-inner { flex-direction: column; }

    .search-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0;
    }

    .search-field {
        padding: 14px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    /* Tek kolan alanlar (fiyat, oda) */
    .search-field--price { grid-column: 1 / -1; }

    /* Ara butonu tam genişlik */
    .btn-search {
        width: 100%;
        padding: 16px;
        font-size: 11px;
    }

    /* Dropdown yukarı açılsın taşmasın */
    .custom-select-options {
        bottom: calc(100% + 8px);
        top: auto;
    }

    /* Stats */
    .stats-band { padding: 40px 0; }
    .stat-num { font-size: 38px; }
    .stat-item { padding: 10px 0; }

    /* Filter bar scroll */
    .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .filter-btn { white-space: nowrap; flex-shrink: 0; }
}

@media (max-width: 400px) {
    .hero { height: 60vh; min-height: 300px; }
    .hero-title { font-size: 26px; }
    .search-fields { grid-template-columns: 1fr; }
    .search-field--price { grid-column: 1; }
}
