/* --- DEĞİŞKENLER VE SIFIRLAMA --- */
:root {
    --gold: #c5a880;
    --navy-deep: #0a1425;
    --card-white: #ffffff;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
}

body {
    background: var(--navy-deep) url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
    margin: 0;
}

/* --- NAVBAR --- */
.navbar {
    background: var(--navy-deep) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- LOGO --- */
.navbar-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* --- NAVBAR TYPEWRITER ANİMASYONU --- */
.typewriter-container-navbar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.typewriter-text-navbar {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    overflow: hidden;
    border-right: 3px solid var(--gold);
    white-space: nowrap;
    margin: 0;
    animation: typing-navbar 3.5s steps(20, end), blink-caret 0.75s step-end infinite, remove-border 0s 4.25s forwards;
    display: inline-block;
}

@keyframes typing-navbar {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes remove-border {
    to { border-right: none; }
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-left: 15px;
}

.nav-link.active {
    color: var(--gold) !important;
    border-bottom: 2px solid var(--gold);
}

/* --- HERO: İNCELTİLMİŞ VE DARALTILMIŞ --- */
.hero-slim {
    height: 320px; /* Görseldeki gibi daha fit bir yükseklik */
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(10, 20, 37, 0.7), rgba(10, 20, 37, 0.7)), 
                url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=1600');
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
}

.gold-txt { color: var(--gold); }

/* --- CURSOR YANIP SÖNME ANİMASYONU (4.25 saniye sonra durur) --- */
@keyframes blink-caret {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--gold); }
}

/* --- FİLTRELEME ÇUBUĞU: KOMPAKT VE KİBAR --- */
.search-filter-compact {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

/* İlan No Arama Formu - Hero'ya yapışık */
.search-filter-compact.quick-search {
    margin-top: -40px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(10, 25, 47, 0.95) 100%);
    border: 1.5px solid var(--gold);
}

/* Detaylı Filtreler - Normal konumda */
.search-filter-compact.detailed-filters {
    margin-top: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(10, 25, 47, 0.95) 100%);
    border: 1.5px solid var(--gold);
}

.filter-label-compact {
    font-size: 10px;
    color: var(--text-gray);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-compact, .form-select-compact {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none;
    border-radius: 4px;
    height: 36px;
    width: 100%;
    padding: 0 10px;
    color: #333;
    font-size: 13px;
    transition: all 0.2s;
}

.form-control-compact:focus, .form-select-compact:focus {
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.3);
    outline: none;
}

/* Fiyat Range Container */
.price-range-container {
    position: relative;
    padding-top: 8px;
}

.gold-range-compact {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--gold) 0%, var(--gold) 50%, rgba(197, 168, 128, 0.3) 50%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.gold-range-compact::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.gold-range-compact::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(197, 168, 128, 0.5);
}

.gold-range-compact::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--gold);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.gold-range-compact::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(197, 168, 128, 0.5);
}

/* Fiyat Göstergesi */
.price-display {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #0a1425;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    pointer-events: none;
}

.btn-search-compact {
    background: rgba(26, 35, 50, 0.8);
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 100%;
    height: 36px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-search-compact:hover {
    background: var(--gold);
    color: #0a1425;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(197, 168, 128, 0.4);
}

/* --- İLAN KARTLARI: BEYAZ VE KESKİN --- */
.card-luxury {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    color: #1a202c;
    transition: 0.3s;
}

.card-luxury:hover { transform: translateY(-10px); }

.card-luxury .card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.badge-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d32f2f;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.card-body-luxury { padding: 20px; }

.prop-title { font-weight: 700; font-size: 1.1rem; }
.prop-price { font-size: 1.4rem; font-weight: 800; color: #0a1425; }
.prop-stats { font-size: 11px; color: #718096; text-align: right; border-left: 1px solid #e2e8f0; padding-left: 10px; }

/* --- ELMAS BUTON --- */
.btn-diamond-special {
    background: var(--gold);
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    color: #000;
}

/* --- FOOTER --- */
.footer-premium {
    background: #050a15;
    padding: 60px 0;
    border-top: 1px solid var(--gold);
    margin-top: 100px;
}

.tugra-img {
    max-height: 80px;
    filter: sepia(1) brightness(1.2);
}

/* --- ADMIN PANEL BUTONLARI --- */
.btn-gold {
    background: var(--gold);
    color: #000;
    border: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-gold:hover {
    background: #d4b890;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(197, 168, 128, 0.3);
}

/* --- RESPONSIVE TASARIM --- */
@media (max-width: 992px) {
    .search-filter-compact {
        padding: 12px;
    }
    
    .search-filter-compact .col-md-2,
    .search-filter-compact .col-md-3,
    .search-filter-compact .col-md-9 {
        margin-bottom: 10px;
    }
    
    .btn-search-compact {
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .search-filter-compact {
        padding: 10px;
        margin-top: 0 !important;
    }
    
    .search-filter-compact.quick-search {
        margin-top: -30px !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .typewriter-text-navbar {
        font-size: 1.5rem;
    }
    
    .price-display {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 80px;
    }
    
    /* Mobilde typewriter'ı gizle veya logonun altına al */
    .typewriter-container-navbar {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        margin-top: 10px;
        order: 3;
        text-align: center;
    }
    
    .typewriter-text-navbar {
        font-size: 1rem;
        letter-spacing: 1px;
        /* Mobilde animasyonu kaldır - direkt göster */
        animation: none !important;
        border-right: none !important;
        width: auto !important;
        overflow: visible !important;
        white-space: normal !important;
    }
    
    /* Navbar'ı flex column yap ki logo ve yazı alt alta gelsin */
    .navbar .container {
        flex-direction: column;
    }
    
    .navbar-brand {
        order: 1;
    }
    
    .navbar-toggler {
        order: 2;
        position: absolute;
        right: 15px;
        top: 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .search-filter-compact {
        padding: 10px;
    }
    
    .filter-label-compact {
        font-size: 9px;
    }
    
    .form-control-compact, .form-select-compact {
        height: 32px;
        font-size: 12px;
    }
    
    .btn-search-compact {
        height: 32px;
        font-size: 12px;
    }
}