/* ============================================================
   EKİNOX DENGE GAYRİMENKUL — Premium Design System
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS Değişkenleri (Design Tokens)
   ============================================================ */
:root {
    /* Brand Colors */
    --red-primary:    #CC2222;
    --red-hover:      #A51C1C;
    --red-light:      rgba(204, 34, 34, 0.1);

    /* Dark Tones */
    --dark-900:       #1A1D23;
    --dark-800:       #22262F;
    --dark-700:       #2D3035;
    --dark-600:       #3A3F4A;

    /* Neutral */
    --gray-400:       #9AA0B4;
    --gray-200:       #E5E7EB;
    --gray-100:       #F5F5F7;

    /* Text */
    --text-light:     #F0EDE8;
    --text-white:     #FFFFFF;
    --text-dark:      #1A1D23;
    --text-muted:     #6B7280;

    /* Backgrounds */
    --bg-page:        #F8F8FA;
    --bg-white:       #FFFFFF;

    /* Fonts */
    --font-heading:   'Playfair Display', Georgia, serif;
    --font-body:      'Inter', system-ui, sans-serif;

    /* Sizing */
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      16px;
    --radius-xl:      24px;
    --radius-full:    9999px;

    /* Shadows */
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.15);
    --shadow-red:     0 8px 30px rgba(204,34,34,0.20);

    /* Transitions */
    --transition:     all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
}

a { color: var(--red-primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--red-hover); }

img { max-width: 100%; height: auto; }

/* ============================================================
   Super Bar (Üst Şerit)
   ============================================================ */
.super-bar {
    background-color: var(--dark-900);
    color: var(--gray-400);
    font-size: 0.8rem;
    padding: 8px 0;
    font-family: var(--font-body);
}

.super-bar a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
}

.super-bar a:hover { color: var(--text-white); }

.super-bar .social-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 14px;
}

.super-bar .social-links a:last-child { margin-right: 0; }

.btn-home-return {
    background-color: var(--red-primary);
    color: var(--text-white) !important;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-home-return:hover {
    background-color: var(--red-hover);
    color: var(--text-white) !important;
}

/* ============================================================
   Navbar
   ============================================================ */
.main-navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-navbar .navbar-brand img {
    height: 52px;
    width: auto;
    transition: var(--transition);
}

.main-navbar .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 18px !important;
    margin: 0 4px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.main-navbar .nav-link:hover {
    background-color: var(--red-light);
    color: var(--red-primary);
}

.main-navbar .nav-link.active {
    background-color: var(--red-primary);
    color: var(--text-white) !important;
    box-shadow: var(--shadow-red);
}

.main-navbar .nav-link::after { display: none; }

.btn-nav-login {
    background-color: var(--red-primary);
    color: var(--text-white) !important;
    padding: 9px 22px !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    border: none;
    margin-left: 8px;
}

.btn-nav-login:hover {
    background-color: var(--red-hover);
    box-shadow: var(--shadow-red);
    transform: translateY(-1px);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--red-primary), var(--red-hover));
    border: none;
    color: var(--text-white);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    transition: var(--transition);
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--red-hover), #8B1515);
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
    color: var(--text-white);
}

.btn-outline-primary {
    border: 2px solid var(--red-primary);
    color: var(--red-primary);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 10px 26px;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--red-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-red);
    transform: translateY(-1px);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    min-height: 75vh;
    background-color: var(--dark-900);
    background-image: linear-gradient(
        135deg,
        rgba(26, 29, 35, 0.92) 0%,
        rgba(45, 48, 53, 0.85) 50%,
        rgba(204, 34, 34, 0.15) 100%
    ), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-page), transparent);
}

.hero-content { position: relative; z-index: 2; }

.hero-content .hero-badge {
    display: inline-block;
    background: var(--red-light);
    border: 1px solid rgba(204,34,34,0.3);
    color: #FF6B6B;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 span { color: var(--red-primary); }

.hero-content p {
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 36px;
    max-width: 520px;
}

/* Hero Arama Kutusu */
.hero-search {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    max-width: 720px;
}

.hero-search .form-select,
.hero-search .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-white);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.9rem;
}

.hero-search .form-select option { background: var(--dark-800); color: var(--text-white); }
.hero-search .form-select:focus,
.hero-search .form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(204,34,34,0.2);
    color: var(--text-white);
    outline: none;
}

.hero-search .form-control::placeholder { color: rgba(255,255,255,0.45); }

/* Hero Slider & Search */
.hero-slider-container {
    height: 85vh;
    min-height: 700px;
}

.hero-search-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 3rem;
    margin-bottom: 1.5rem;
    z-index: 10;
}

.hero-search-box {
    max-width: 1000px;
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 991px) {
    .hero-slider-container {
        height: 40vh;
        min-height: 300px;
    }
    .hero-search-overlay {
        position: relative;
        padding: 30px 0;
        margin-bottom: 0;
        background: var(--bg-page);
    }
    .hero-search-box {
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: none;
        margin-top: -30px; /* Slider'a hafif binmesi için */
    }
    .border-end-md {
        border-right: none !important;
        border-bottom: 1px solid var(--gray-200);
        padding-bottom: 15px;
        margin-bottom: 10px;
    }
}

/* Slider Slides */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: scale(1);
    transition: transform 8s linear;
}

.swiper-slide-active .slide-img {
    transform: scale(1.15);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

.mainSwiper {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Section Başlıkları
   ============================================================ */
.section-header { margin-bottom: 40px; }

.section-badge {
    display: inline-block;
    width: 32px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 2px;
    margin-bottom: 10px;
    vertical-align: middle;
    margin-right: 10px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text-dark);
    display: inline;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 1rem;
}

/* ============================================================
   Property Cards (İlan Kartları)
   ============================================================ */
.property-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 0 0 1px rgba(204,34,34,0.08);
    border-color: transparent;
}

.property-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.property-card-img-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card-img-wrap img {
    transform: scale(1.06);
}

.property-type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--red-primary);
    color: var(--text-white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.property-type-badge.kiralik {
    background: var(--dark-700);
}

.property-price-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(26,29,35,0.85);
    backdrop-filter: blur(8px);
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
}

.property-card-body {
    padding: 18px 20px 16px;
}

.property-card-location {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-card-location i { color: var(--red-primary); }

.property-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 12px;
}

.property-card-meta span { display: flex; align-items: center; gap: 4px; }
.property-card-meta i { color: var(--dark-600); font-size: 0.85rem; }

.property-card-agent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.property-card-agent img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.property-card-agent .agent-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--red-primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   Blog Cards
   ============================================================ */
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body { padding: 20px; }

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ============================================================
   Footer
   ============================================================ */
.main-footer {
    background-color: var(--dark-900);
    color: var(--gray-400);
    padding: 60px 0 40px;
    margin-top: 80px;
}

.main-footer h5 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.main-footer p,
.main-footer li { font-size: 0.88rem; line-height: 1.8; }

.footer-link {
    color: var(--gray-400);
    display: block;
    margin-bottom: 6px;
    transition: var(--transition-fast);
    font-size: 0.88rem;
}

.footer-link:hover { color: var(--text-white); padding-left: 4px; }

.footer-brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 14px; }

.footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 36px 0 28px;
}

.footer-bottom { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* Legal Bar */
.legal-bar {
    background-color: var(--dark-800);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 10px 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

.legal-bar a {
    color: rgba(255,255,255,0.35);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.legal-bar a:hover { color: var(--text-white); }

.legal-bar .legal-sep {
    margin: 0 8px;
    opacity: 0.3;
}

/* ============================================================
   WhatsApp Floating Button
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 24px rgba(37,211,102,0.4);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(37,211,102,0.5);
    color: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-pulse 2.5s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   Forms
   ============================================================ */
.form-control, .form-select {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 11px 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
    background-color: var(--bg-white);
    font-family: var(--font-body);
}

.form-control:focus, .form-select:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(204,34,34,0.12);
    outline: none;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.5s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   Utilities
   ============================================================ */
.text-red    { color: var(--red-primary) !important; }
.bg-dark-900 { background-color: var(--dark-900); }
.bg-dark-800 { background-color: var(--dark-800); }

.section-light { background-color: var(--bg-white); padding: 80px 0; }
.section-gray  { background-color: var(--gray-100); padding: 80px 0; }
.section-dark  { background-color: var(--dark-900); padding: 80px 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .hero-section { min-height: 100dvh; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-search { padding: 16px; }
    .section-light, .section-gray, .section-dark { padding: 50px 0; }
    .main-footer { padding: 40px 0 30px; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
    .main-navbar .nav-link { padding: 14px 10px !important; }
}
