:root {
    /* Logo Renkleri ve Premium Tonlar */
    --primary-color: #0d2c54;
    /* Koyu Asil Mavi */
    --secondary-color: #1a4b85;
    /* Daha açık mavi */
    --accent-color: #c0c0c0;
    /* Gümüş */
    --gold: #d4af37;
    /* Altın (Premium his için) */

    --text-dark: #222222;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    /* Saf beyaz (Metinler için vb.) */

    /* Dark Mode Semantics */
    --bg-body: var(--bg-light);
    --bg-surface: var(--white);
    --text-main: var(--text-dark);
    --text-muted: var(--text-light);
    --heading-color: var(--primary-color);
    --border-color: #eeeeee;

    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Yumuşak gölge */

    /* Fontlar */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body.dark-mode {
    --bg-body: #121212;
    --bg-surface: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #b0b0b0;
    --heading-color: #6ea8fe;
    /* Açık Mavi */
    --border-color: #2c2c2c;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    --bg-light: #181818;
    /* Darker shade for sections */

    /* Primary color background olduğunda sorun olmasın diye */
    /* --primary-color: #0d2c54; */
    /* Keep standard blue for branding areas */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Top Bar --- */
.main-header {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Mobilde taşarsa aşağı insin */
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info span i {
    color: var(--accent-color);
    margin-right: 5px;
}

.navbar {
    padding: 15px 0;
    background: var(--bg-surface);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Alanı */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    /* Logo yüksekliği */
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigasyon */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--heading-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    /* Altın çizgi */
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    /* Masaüstünde gizli */
    font-size: 1.5rem;
    color: var(--heading-color);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(rgba(13, 44, 84, 0.6), rgba(13, 44, 84, 0.4)), url('https://images.unsplash.com/photo-1600596542815-e32c16e3630c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- Butonlar --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    /* Yuvarlak hatlar */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 44, 84, 0.3);
}

.btn:hover {
    background-color: var(--bg-surface);
    color: var(--primary-color);
    border-color: var(--bg-surface);
}

.btn.btn-nav {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    padding: 8px 20px;
    box-shadow: none;
    margin-top: 0;
    vertical-align: middle;
}

/* Teklif Al butonu için alt çizgi animasyonunu kaldırıyoruz */
.nav-links a.btn-nav::after {
    content: none;
}

.btn.btn-nav:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

/* --- Genel Bölümler --- */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--gold);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Kartlar (Listings) --- */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.listing-card {
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 240px;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    color: white;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.sale {
    background-color: var(--primary-color);
}

.status-badge.rent {
    background-color: var(--gold);
}

.price {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-top-left-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.card-details {
    padding: 25px;
}

.card-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: #e0e0e0;
    /* Hafif gri metin, beyazdan daha iyi okunur koyu zeminde */
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-grid h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    padding-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Mobil Uyumluluk (Responsive) --- */
@media (max-width: 991px) {
    .container {
        width: 95%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Mobilde CSS ile gizle, JS ile açacağız */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .top-bar .contact-info {
        justify-content: center;
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 600px) {
    .top-bar {
        display: none;
    }

    /* Çok küçük ekranda üst barı gizle */
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 40px;
    }

    .brand-title {
        font-size: 1.2rem;
    }
}

/* --- İletişim Sayfası --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Masaüstünde yan yana 50% 50% */
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        /* Mobilde alt alta */
    }
}

/* --- Animasyonlar --- */
@keyframes pulse-gold {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.btn-pulse {
    animation: pulse-gold 2s infinite;
}

/* --- Yorum Formu Grid --- */
.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .comment-form-grid {
        grid-template-columns: 1fr;
        /* Mobilde alt alta */
    }
}

/* --- Utility Classes for Dark Mode --- */
.text-heading-color {
    color: var(--heading-color) !important;
}

.bg-surface {
    background-color: var(--bg-surface) !important;
    box-shadow: var(--shadow);
}

.text-gold {
    color: var(--gold) !important;
}

/* Custom Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: all 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Dark Mode Button and Link Fixes */
body.dark-mode .btn:hover {
    background-color: var(--heading-color);
    color: #000000;
    border-color: var(--heading-color);
    box-shadow: 0 0 15px rgba(110, 168, 254, 0.4);
}

body.dark-mode a {
    color: inherit;
    /* Ensure links don't go dark blue by default unless specified */
}

/* Specific fix for "Yorum Yap" title if it uses primary color class */
body.dark-mode .text-primary-color {
    color: var(--heading-color) !important;
}