/* ==========================================================================
   GENEL AYARLAR & KURUMSAL DEĞİŞKENLER
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --primary: #0f172a;    /* Kurumsal Koyu Lacivert */
    --secondary: #1e293b;  /* Antrasit */
    --accent: #e2b13c;     /* Gold / Altın Sarısı */
    --light: #f8fafc;      /* Genel Arka Plan */
    --white: #ffffff;
    --success: #25d366;    /* WhatsApp Yeşili */
}

body {
    background-color: var(--light);
    color: var(--secondary);
    scroll-behavior: smooth;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   NAVİGASYON BARU (ÜST MENÜ)
   ========================================================================== */
.navbar {
    background-color: var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 400;
    transition: 0.3s;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--accent);
}

.btn-whatsapp-nav {
    background-color: var(--success);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-whatsapp-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   HERO & ARAMA MOTORU
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 40px;
}

.search-box {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    max-width: 800px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    color: var(--secondary);
    border-bottom: 3px solid transparent;
    font-size: 15px;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.search-inputs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-inputs select {
    flex: 1;
    min-width: 180px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    background-color: var(--white);
}

.btn-search {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-search:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* ==========================================================================
   PORTFÖY VİTRİNİ & KARTLAR
   ========================================================================== */
.featured-properties {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary);
}

.section-title p {
    color: #64748b;
    margin-top: 5px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

.card-image {
    position: relative;
    height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.label-satilik { background-color: var(--primary); }
.label-kiralik { background-color: #0284c7; }

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}

.location {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.features {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: var(--secondary);
}

.features i {
    color: var(--accent);
    margin-right: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.btn-detail {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    border: 1px solid var(--primary);
    padding: 6px 15px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-detail:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   İLAN DETAY SAYFASI ÖZEL TASARIMI
   ========================================================================== */
.property-header {
    padding: 30px 0 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.detail-badge {
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.header-left h1 {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
}

.header-right {
    text-align: right;
}

.detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    background-color: var(--primary);
    padding: 8px 20px;
    border-radius: 6px;
}

.detail-container {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.detail-main-content {
    flex: 2;
}

.detail-sidebar {
    flex: 1;
}

.gallery-wrapper, .detail-description {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.main-img-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.main-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-description h2 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

.detail-description p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}

.sidebar-sticky-card {
    position: sticky;
    top: 100px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
    border-top: 5px solid var(--primary);
}

.btn-whatsapp-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--success);
    color: var(--white);
    text-decoration: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-whatsapp-direct:hover {
    box-shadow: 0 4px 10px rgba(37,211,102,0.2);
}

/* ==========================================================================
   YATIRIM HESAPLAMA ARAÇLARI TASARIMI
   ========================================================================== */
.calc-header {
    text-align: center;
    padding: 40px 0 20px 0;
}

.calc-header h1 {
    font-size: 32px;
    color: var(--primary);
}

.calc-container {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.calc-inputs-card, .calc-results-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
}

.form-group-calc {
    margin-bottom: 20px;
}

.form-group-calc label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group-calc input {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
}

.btn-calc-execute {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-calc-execute:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    background-color: var(--light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.result-item.ve-wide {
    grid-column: span 2;
}

.res-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.res-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 5px;
}

.calc-cta {
    background-color: #f0fdf4;
    border: 1px dashed var(--success);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.btn-whatsapp-calc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--success);
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
}

/* ==========================================================================
   MOBİL SABİTLER & RESPONSIVE
   ========================================================================== */
.whatsapp-sticky {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--success);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .detail-container, .calc-container { flex-direction: column; }
    .sidebar-sticky-card { position: static; }
    .calc-inputs-card, .calc-results-card { width: 100%; }
}

@media (max-width: 768px) {
    .navbar-flex { flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .hero { height: auto; padding: 80px 20px; }
    .hero-content h1 { font-size: 30px; }
    .search-inputs { flex-direction: column; }
    .search-inputs select, .btn-search { width: 100%; }
    .results-grid { grid-template-columns: 1fr; }
    .result-item.ve-wide { grid-column: span 1; }
    .property-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .header-right { text-align: left; }
}