/* --- Değişkenler ve Reset (Scandi Modern Palette) --- */
:root {
    --sidebar-width: 260px;
    
    /* Renkler */
    --color-bg: #F5F7FA;        /* Soğuk Açık Gri */
    --color-sidebar: #1A237E;   /* Derin İndigo Mavisi */
    --color-text: #424242;      /* Koyu Gri */
    --color-heading: #283593;   /* İndigo */
    --color-indigo-light: #E8EAF6;
    --color-accent: #FF7043;    /* Mercan (Küçük dokunuşlar için) */
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;
    
    /* Fontlar */
    --font-heading: 'Jost', sans-serif; /* Modern, Geometrik */
    --font-body: 'Open Sans', sans-serif; /* Okunaklı */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 400;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; border-radius: 8px; }
ul { list-style: none; }

/* --- Ana Düzen --- */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar (Indigo) --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-sidebar);
    color: var(--color-white);
    position: fixed;
    height: 100vh;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--color-white);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}
.house-icon { font-size: 1.5rem; margin-left: 10px; }

.nav-menu li { margin-bottom: 5px; }
.nav-menu a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--color-white);
    background-color: rgba(255,255,255,0.15);
    font-weight: 500;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.email-link { display: block; margin-top: 5px; color: var(--color-white); font-weight: 600; font-size: 0.95rem; }

.search-box { margin-top: 15px; display: flex; }
.search-box input { width: 100%; padding: 8px; border: none; border-radius: 4px 0 0 4px; outline: none; font-size: 0.8rem; }
.search-box button { background: var(--color-accent); border: none; color: #fff; padding: 0 10px; border-radius: 0 4px 4px 0; cursor: pointer; }

/* --- Sağ Ana İçerik --- */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
}

/* --- Hero & Header --- */
.hero-header, .page-header {
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-header.compact { height: 40vh; }

.overlay {
    background: rgba(0,0,0,0.3);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
}

.hero-card {
    background: rgba(255,255,255,0.95);
    padding: 50px;
    border-radius: 4px;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid var(--color-sidebar);
}

.hero-header h1, .page-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-sidebar);
}
.page-header .overlay { background: rgba(26, 35, 126, 0.7); align-items: center; text-align: center; }
.page-header h1 { color: #fff; }

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-text);
}

.cta-group { display: flex; gap: 15px; }

/* --- İçerik Konteyneri --- */
.content-container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 80px 40px;
    width: 100%;
}

/* --- Tipografi ve Bölümler --- */
.text-section { margin-bottom: 60px; }
h2 { 
    font-family: var(--font-heading); 
    font-size: 2.2rem; 
    margin-bottom: 20px; 
    color: var(--color-sidebar);
    font-weight: 600;
}
h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 10px; color: var(--color-heading); margin-top: 15px; }
p { margin-bottom: 20px; text-align: justify; font-size: 1rem; color: #555; }

.bg-indigo-light {
    background-color: var(--color-indigo-light);
    padding: 60px;
    border-radius: 8px;
    border: 1px solid #C5CAE9;
}

/* --- Grid ve Kartlar (Listings) --- */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}

.listing-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid var(--color-border);
}
.listing-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.img-container { position: relative; height: 220px; }
.listing-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.badge {
    position: absolute; top: 10px; left: 10px;
    padding: 5px 10px; color: #fff; font-size: 0.8rem; font-weight: bold; border-radius: 4px;
}
.badge.sale { background-color: var(--color-accent); }
.badge.rent { background-color: var(--color-sidebar); }

.card-body { padding: 20px; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--color-sidebar); }
.location { color: #888; font-size: 0.9rem; margin-bottom: 15px; }
.features { display: flex; gap: 15px; font-size: 0.9rem; color: #555; margin-bottom: 15px; list-style: disc; padding-left: 15px; }
.price { font-size: 1.4rem; font-weight: 700; color: var(--color-sidebar); }

/* Split Layout */
.split-layout { display: flex; gap: 50px; align-items: center; margin-bottom: 70px; }
.split-layout img { width: 45%; border-radius: 8px; }
.split-layout .split-content { width: 55%; }

.custom-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.custom-list li::before { content: '▪'; color: var(--color-sidebar); position: absolute; left: 0; font-size: 1.2rem; line-height: 1; top: -3px; }

/* --- Formlar --- */
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.contact-info { background: var(--color-white); padding: 40px; border: 1px solid var(--color-border); border-top: 4px solid var(--color-sidebar); border-radius: 4px; }
.contact-info h3 { color: var(--color-sidebar); }

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--color-text); font-size: 0.95rem; }
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCC;
    background: #FFF;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: 0.2s;
}
input:focus, textarea:focus { border-color: var(--color-sidebar); outline: none; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
    text-align: center;
}
.btn-indigo { background-color: var(--color-sidebar); color: #fff; }
.btn-indigo:hover { background-color: #303F9F; }
.btn-outline { background: transparent; border: 1px solid var(--color-sidebar); color: var(--color-sidebar); }
.btn-outline:hover { background: var(--color-sidebar); color: #fff; }
.btn-dark { background-color: #263238; color: #fff; }
.full-width { width: 100%; }

/* --- Yorumlar --- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card {
    background: #FFF;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.stars { color: #FFB300; margin-bottom: 10px; letter-spacing: 2px; }
blockquote { font-style: italic; color: #666; margin-bottom: 20px; font-size: 1rem; }
cite { font-weight: 600; font-size: 0.9rem; display: block; color: var(--color-sidebar); }

/* --- Footer --- */
.page-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #E0E0E0;
    color: #999;
    font-size: 0.9rem;
    margin-top: auto;
    background: #FFF;
}

.indigo-line { border: 0; height: 3px; background: var(--color-sidebar); margin: 20px 0; width: 60px; }

/* --- Mobil Menü Butonu --- */
.menu-toggle { display: none; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        transition: transform 0.3s ease;
        padding-top: 80px;
    }
    .sidebar.active { transform: translateX(0); }
    
    .main-content { margin-left: 0; width: 100%; }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: var(--color-sidebar);
        border: 1px solid #fff;
        width: 45px;
        height: 45px;
        border-radius: 4px;
        cursor: pointer;
    }
    .line {
        display: block;
        width: 25px;
        height: 2px;
        background: #fff;
    }

    .hero-header h1 { font-size: 2.5rem; }
    .hero-card { margin: 0 20px; padding: 30px; }
    .content-container { padding: 50px 25px; }
    .split-layout, .contact-layout { display: block; }
    .split-layout img, .split-layout .split-content { width: 100%; }
    .split-layout img { margin-bottom: 20px; }
    .contact-info { margin-bottom: 30px; }
}