/* Reset and Base Styles */
html {
    font-size: 16px; /* Base font size for rem calculations */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

:root {
    /* Yeni Logo Uyumlu Renk Şeması */
    --primary-color: #1e40af;      /* Koyu Mavi - Ana renk */
    --primary-light: #3b82f6;      /* Açık Mavi - Vurgu */
    --primary-dark: #1e3a8a;      /* Çok Koyu Mavi - Hover */
    --secondary-color: #059669;    /* Yeşil - İkincil renk */
    --secondary-light: #10b981;    /* Açık Yeşil */
    --accent-color: #f59e0b;       /* Turuncu - Aksan */
    --accent-light: #fbbf24;       /* Açık Turuncu */
    
    /* Nötr Renkler */
    --text-primary: #1e293b;       /* Ana metin rengi */
    --text-secondary: #64748b;     /* İkincil metin */
    --text-light: #94a3b8;         /* Açık metin */
    --background-primary: #ffffff;  /* Ana arka plan */
    --background-secondary: #f8fafc; /* İkincil arka plan */
    --background-dark: #0f172a;    /* Koyu arka plan */
    
    /* Gölge ve Efektler */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Geçiş Efektleri */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Fixed navbar height for layout calculations */
    --nav-height: 88px;
}

/* Dark mode palette overrides */
body.dark {
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --background-primary: #0b1220;
    --background-secondary: #0f172a;
}

body.dark {
    background-color: var(--background-primary);
    color: var(--text-primary);
}

body.dark .navbar { background: rgba(15, 23, 42, 0.9); border-bottom-color: rgba(255,255,255,0.08); }
body.dark .nav-link { color: var(--text-primary); }
body.dark .hero { background: linear-gradient(135deg, #0f172a, #0b1220); }
body.dark .properties { background: var(--background-secondary); }
body.dark .property-card { background: #0b1220; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
body.dark .property-title { color: var(--text-primary); }
body.dark .property-price { color: var(--primary-light); }
body.dark .property-details, body.dark .property-location, body.dark .property-description { color: var(--text-secondary); }
body.dark .footer { background: #0b1220; color: var(--text-primary); }
body.dark .footer-section ul li a { color: var(--text-secondary); }
/* Dark mode: improve contrast for theme + language controls */
body.dark .theme-toggle {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
body.dark .language-selector {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
body.dark .language-current span { color: var(--text-primary); }
body.dark .language-menu {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
body.dark .language-option span { color: var(--text-primary); }
body.dark .language-option:hover { background: rgba(30, 64, 175, 0.2); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: var(--background-primary);
    
    /* Mobile optimizations */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Selector */
.ui-controls {
    position: fixed;
    top: 25px;
    right: 15px;
    z-index: 1004;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ui-controls .language-selector,
.ui-controls .theme-toggle {
    position: static;
    top: auto;
    right: auto;
    left: auto;
}

.language-selector {
    position: fixed;
    top: 25px;
    right: 15px;
    z-index: 1003; /* Higher than hamburger */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 25px;
    right: auto;
    left: 15px; /* JS ile dil menüsünün soluna taşınacak */
    z-index: 1003;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
}
.theme-toggle:hover { background: rgba(30,64,175,0.1); }
.theme-toggle i { color: var(--text-primary); }

@media (max-width: 768px) {
    .ui-controls { top: 24px; right: 58px; gap: 4px; } /* align with hamburger */
    .theme-toggle { top: 28px; width: 40px; height: 40px; }
    .language-selector { top: 28px; right: 60px; height: 40px; padding: 0; display: flex; align-items: center; transform: none; }
    .language-current { height: 40px; padding: 0 12px; gap: 0.4rem; align-items: center; }
    .language-current img { width: 18px; height: 13px; }
    .language-current span { font-size: 0.9rem; }
    /* Avoid overlap with mobile nav when opened */
    .nav-menu.active { padding-top: 80px; }
}

/* Ensure language selector and theme toggle never overlap */
.theme-toggle { left: 15px !important; right: auto !important; }

.language-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition-normal);
}

.language-current:hover {
    background: rgba(30, 64, 175, 0.1);
}

.language-current img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    display: block;
}

.language-current span {
    font-weight: 600;
    color: var(--text-primary);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    display: none;
    z-index: 1004; /* Higher than parent */
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition-normal);
}

.language-option:hover {
    background: rgba(30, 64, 175, 0.1);
}

.language-option img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

.language-option span {
    color: #1e293b;
    font-weight: 500;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Leave space for fixed UI controls on desktop so nav links don't collide */
@media (min-width: 769px) {
    .nav-container {
        padding-right: 150px; /* space for theme + language controls (tighter) */
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    position: relative;
}

.logo-img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    transform: scale(1.35);
    transform-origin: left center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0B4687;
    line-height: 1;
    transition: text-shadow var(--transition-normal), color var(--transition-normal);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Visually enlarge only the logo image without changing navbar height or text size */
.nav-logo { transform: translateX(-16px); transform-origin: left center; }
@media (max-width: 768px) { 
    .logo-img { transform: scale(1.2); }
    .nav-logo { transform: translateX(-8px); }
}

/* Adjust gap for smaller screens for balance */
@media (max-width: 768px) {
    /* Shrink logo and text by ~50% for mobile and align with controls */
    .nav-logo { gap: 0.8rem; transform: none; }
    /* 1.5x mobile logo */
    .logo-img { width: 84px; height: 84px; transform: none; }
    .logo-title { font-size: 1.25rem; line-height: 1.05; }
    .logo-subtitle { font-size: 0.6rem; letter-spacing: 0.35px; }
    .nav-logo { gap: 1rem; }
    .hamburger { display: flex; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

/* Logo hover glow + shine */
.nav-logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
}

.nav-logo:hover .logo-title {
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.65);
}

.nav-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 300%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
    pointer-events: none;
    opacity: 0;
}

.nav-logo:hover::after {
    animation: logoShine 1.1s ease forwards;
}

.admin-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition-normal);
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
    background: transparent;
    backdrop-filter: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-normal);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-normal);
}
/* Dark mode overrides for hamburger */
body.dark .hamburger { background: transparent; border: none; }
body.dark .bar {
    background: #e2e8f0; /* light bar on dark bg */
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-3px, 4px);
    background: var(--primary-color) !important;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-3px, -4px);
    background: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: visible; /* Allow carousel shadows to extend beyond hero section */
    padding-top: 80px;
    z-index: 10; /* Increased to ensure carousel is visible */
}

/* Hero Visual Cards */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: fadeInRight 1s ease 0.8s both;
    z-index: 15; /* Higher than carousel cards to ensure visibility */
    position: relative;
    padding-right: 4rem;
    margin-left: 2rem;
}

/* Cards Container */
.hero-cards-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: visible; /* Allow shadows to extend beyond container */
    width: 100%;
    max-width: 800px;
    transition: transform var(--transition-slow);
}

/* Floating Cards - Düz Durum */
.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    width: 280px;
    height: auto;
    opacity: 0.7;
    transform: scale(0.9) rotate(0deg);
    display: block !important;
    visibility: visible !important;
    z-index: 10;
}

/* Active Card */
.floating-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 5;
}

/* Navigation Buttons */
.card-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.card-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.card-nav-prev {
    left: -25px;
}

.card-nav-next {
    right: -25px;
}

/* Card Hover Effects */
.floating-card:hover {
    transform: scale(1.05) rotate(0deg);
    opacity: 1;
    z-index: 6;
}

/* Active card hover */
.floating-card.active:hover {
    transform: scale(1.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    color: white;
    z-index: 3;
    position: relative;
    padding: 0 2rem;
    margin-right: 4rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-search {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.4);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat {
    text-align: center;
    transition: var(--transition-normal);
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: var(--transition-normal);
}

.stat:hover .stat-number {
    color: var(--accent-light);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.8s both;
    position: relative;
}



/* Properties Section */
.properties {
    padding: 5rem 0;
    background: var(--background-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.property-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.filter-btn {
    background: #ffffff;
    border: 2px solid rgba(226,232,240,0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    font-weight: 700;
    color: #111827; /* siyah metin */
    box-shadow: 0 0 0 rgba(0,0,0,0); /* base: no shadow */
}

/* Dark mode base state for filter buttons: koyu zeminde açık buton ve koyu metin */
body.dark .filter-btn {
    background: #f8fafc;
    border-color: rgba(203,213,225,0.9);
    color: #111827; /* siyah metin (okunabilir) */
}

/* remove pseudo overlay to avoid edge artifacts */

.filter-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.28), 0 10px 20px rgba(0,0,0,0.20);
}

/* Dark mode hover: aynı ters renk, fakat biraz daha parlak kenar çizgisi */
body.dark .filter-btn:hover {
    border-color: var(--primary-color);
}

/* no overlay */

.filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0,0,0,0.30), 0 12px 24px rgba(0,0,0,0.22);
}

/* Dark mode active: aynı görünüm, kenar çizgisi iyileştirme */
body.dark .filter-btn.active { border-color: #3b82f6; }

/* Force base (idle) state: black text, light background in both themes */
.filter-btn:not(.active):not(:hover) {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(226,232,240,0.9) !important;
    transform: none !important;
    box-shadow: none !important;
}

body.dark .filter-btn:not(.active):not(:hover) {
    background: #f8fafc !important;
    color: #111827 !important;
    border-color: rgba(203,213,225,0.9) !important;
}

/* Stronger, scoped overrides for property filter buttons to ensure correct colors */
.property-filters .filter-btn { background: #ffffff !important; color: #111827 !important; border-color: rgba(226,232,240,0.9) !important; }
body.dark .property-filters .filter-btn { background: #f8fafc !important; color: #111827 !important; border-color: rgba(203,213,225,0.9) !important; }
.property-filters .filter-btn:hover,
.property-filters .filter-btn.active { background: var(--primary-color) !important; color: #ffffff !important; border-color: var(--primary-color) !important; }
.property-filters .filter-btn:hover { transform: translateY(-5px) scale(1.02) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.28), 0 10px 20px rgba(0,0,0,0.20) !important; }
.property-filters .filter-btn.active { transform: translateY(-5px) scale(1.02) !important; box-shadow: 0 24px 48px rgba(0,0,0,0.30), 0 12px 24px rgba(0,0,0,0.22) !important; }

/* FINAL OVERRIDES: ensure active/hover navy + white text; idle always black text */
.property-filters button.filter-btn:not(.active):not(:hover) {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(226,232,240,0.9) !important;
}
body.dark .property-filters button.filter-btn:not(.active):not(:hover) {
    background: #f8fafc !important;
    color: #111827 !important;
    border-color: rgba(203,213,225,0.9) !important;
}
.property-filters button.filter-btn.active,
.property-filters button.filter-btn:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-5px) scale(1.02) !important;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Tablet: 2 sütun sabit, kart genişliği sabit kalsın */
@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Pager styles under properties grid */
.properties-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.pager-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
}
.pager-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pager-dots { display: flex; gap: 0.5rem; }
.pager-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-normal);
}
.pager-dot.active,
.pager-dot:hover {
    background: var(--primary-color);
}

.property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    opacity: 1; /* Changed from 0 to 1 to make cards visible */
    transform: translateY(0);
    will-change: transform, box-shadow;
}

/* Placeholder cards to keep consistent grid height; invisible but preserve space */
.property-card.placeholder {
    visibility: hidden;
    pointer-events: none;
    background: transparent;
    box-shadow: none;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }

.property-card:hover {
    transform: translateY(-25px) scale(1.05);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(30, 64, 175, 0.4);
    z-index: 15;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.property-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-slow);
    z-index: -1;
}

/* Hover efektleri kaldırıldı */

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

/* Hover efekti kaldırıldı */

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.property-card:hover .property-image img {
    transform: scale(1.15);
}

.property-badge {
    display: none;
}

.property-video-badge {
    display: none; /* hidden per request */
}

.property-video-badge:hover {}

/* Hover efekti kaldırıldı */

.property-content {
    padding: 1.5rem;
    transition: var(--transition-normal);
}

/* Keep card height consistent: clamp description lines and hide overflow */
.property-description {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* show up to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em; /* fallback for non-webkit (approx 3 lines) */
}

.property-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

/* Hover efekti kaldırıldı */

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.property-card:hover .property-price {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.property-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

/* Hover efekti kaldırıldı */

.property-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

/* Hover efekti kaldırıldı */

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

/* Dark mode for About section */
body.dark .about { background: var(--background-secondary); }
body.dark .about-text h2 { color: var(--text-primary); }
body.dark .about-text p { color: var(--text-secondary); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features {
    display: grid;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition-normal);
}

.feature:hover {
    transform: translateX(10px);
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
    transition: var(--transition-normal);
}

.feature:hover i {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.contact .section-header h2,
.contact .section-header p {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-top: 0.2rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.2);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
}

.footer-logo-text small {
    font-size: 0.7rem;
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #6366f1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #3b82f6; /* default brand-ish */
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a[data-social="instagram"] { background: #E1306C; }
.social-links a[data-social="linkedin"] { background: #0A66C2; }
.social-links a[data-social="youtube"] { background: #FF0000; }
.social-links a[data-social="sahibinden"] { background: #f59e0b; color: #111827; font-weight: 700; }
.social-links a[data-social="brand"] { background: #0ea5e9; }
/* Make brand button deeper navy */
.social-links a[data-social="brand"] { background: #0B4687; }

.social-links a[data-social]:hover { filter: brightness(1.05) saturate(1.1); }

/* Dark mode tweaks for footer icons */
body.dark .social-links a[data-social="sahibinden"] { color: #111827; }

.social-links a:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 25px 0 0 25px;
    outline: none;
}

.newsletter-form button {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #8b5cf6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #cbd5e1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    /* Stable centering */
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.open { display: flex; }

.modal-content {
    background-color: white;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto; /* Modal scroll'u geri aktif */
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

/* Property Modal Media Gallery - Yeni Düzen */
.property-modal-content {
    display: flex;
    flex-direction: column;
    min-height: 600px; /* Minimum yükseklik - auto olsun */
}

/* Yeni Modal Düzeni: Sol tarafa media + thumbnails, sağ tarafa info */
.modal-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Sol: media+thumbnails, Sağ: info */
    gap: 0;
    flex: 1;
    min-height: 500px; /* Minimum yükseklik - auto height */
}

/* Sol taraf: Media ve thumbnails kombinasyonu */
.left-column {
    display: flex;
    flex-direction: column;
    background: #000;
    border-radius: 20px 0 0 20px;
}

.property-modal-media {
    position: relative;
    background: #000;
    overflow: hidden;
    height: 350px; /* Sabit optimum boyut - scroll gerektirmez */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 0 0 0;
}

.media-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    background: #000;
    padding: 15px; /* Optimum padding - görsel için yeterli alan */
    box-sizing: border-box;
}

.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Tüm fotoğraflar aynı boyutta */
    display: block;
    border-radius: 8px;
    cursor: pointer; /* Tıklanabilir olduğunu göster */
    transition: transform 0.2s ease;
}

.media-image:hover {
    transform: scale(1.02); /* Hafif büyüme efekti */
}

.media-video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Video için contain daha uygun */
    display: block;
    background: #000;
    border-radius: 8px; /* Hafif köşe yuvarlama */
}

/* Embedded video iframe (YouTube/Vimeo) */
.media-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    border-radius: 8px;
    background: #000;
}

/* External open hint for blocked embeds */
.media-open-original {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease;
    z-index: 101;
}

.media-open-original:hover {
    background: rgba(0, 0, 0, 0.9);
}

.media-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.media-type-badge.video {
    background: rgba(255, 0, 0, 0.8);
    display: none !important; /* Hide per request without touching JS */
}

.media-type-badge i {
    margin-right: 0.5rem;
}

/* Navigation arrows */
.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7); /* Daha koyu arka plan */
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 100; /* Daha yüksek z-index */
    backdrop-filter: blur(5px); /* Blur efekti */
}

.media-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.media-nav.prev {
    left: 15px;
}

.media-nav.next {
    right: 15px;
}

/* Media counter */
.media-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 100;
}

/* Fullscreen button */
.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.fullscreen-btn i {
    font-size: 1rem;
}

/* Thumbnails artık sol alt kısımda */
.media-thumbnails-container {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0 0 0 20px;
    max-height: 150px;
    overflow-y: auto;
}

/* Sağ taraf: Property bilgileri */
.property-modal-info-container {
    padding: 2rem;
    background: #fafafa;
    border-radius: 0 20px 20px 0;
    display: block; /* Flex yerine block - butonlar açıklamanın altında kalır */
    border-left: 1px solid #e2e8f0;
}

/* Media thumbnails */
.media-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0;
    justify-content: flex-start;
}

/* Hide thumbnails container if only one item */
.media-thumbnails:has(.thumbnail:only-child) {
    display: none;
}

.media-thumbnails-container:has(.media-thumbnails:empty),
.media-thumbnails-container:has(.thumbnail:only-child) {
    display: none;
}

.thumbnail {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.3);
}

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

.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Property modal info */
.property-modal-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.property-modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.property-modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.property-modal-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.property-modal-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.property-modal-location {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

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

.property-modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem; /* Daha az boşluk */
}

.property-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0; /* Açıklamanın hemen altında */
}

/* Mobile modal improvements - Yeni düzen için güncellenmiş */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 0;
        max-height: 95vh;
        border-radius: 15px;
    }
    .modal { padding: 1rem; }
    
    .property-modal-content {
        flex-direction: column;
    }
    
    .modal-main-content {
        grid-template-columns: 1fr; /* Tek sütun - mobilde üst üste */
        gap: 0;
    }
    
    /* Mobilde sol sütun = üst kısım */
    .left-column {
        border-radius: 15px 15px 0 0;
        background: #000;
    }
    
    .property-modal-media {
        border-radius: 15px 15px 0 0;
        height: 250px; /* Mobilde sabit boyut */
    }
    
    .media-container {
        padding: 10px; /* Mobilde daha az padding */
    }
    
    .fullscreen-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        right: 60px; /* leave space for close button */
        top: 15px;
    }
    
    /* Thumbnails container - mobilde görsel altında */
    .media-thumbnails-container {
        border-radius: 0;
        padding: 0.75rem;
        max-height: 100px;
        background: rgba(0, 0, 0, 0.95);
    }
    
    /* Mobilde sağ sütun = alt kısım */
    .property-modal-info-container {
        border-radius: 0 0 15px 15px;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 1.5rem;
        display: block; /* Mobilde de block layout */
    }
    
    .property-modal-info h2 {
        font-size: 1.5rem;
    }
    
    .property-modal-price {
        font-size: 1.6rem;
    }
    
    .media-nav {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .media-nav.prev {
        left: 10px;
    }
    
    .media-nav.next {
        right: 10px;
    }
    
    .media-thumbnails {
        padding: 0;
        max-width: none;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .thumbnail {
        width: 50px;
        height: 38px;
    }
    
    .close {
        right: 15px;
        top: 10px;
        font-size: 24px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        z-index: 1100; /* above fullscreen button */
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: rotate(5deg) translateY(0px);
    }
    50% {
        transform: rotate(5deg) translateY(-20px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardPulse {
    0% {
        box-shadow: var(--shadow-xl), 0 0 30px rgba(30, 64, 175, 0.2);
    }
    50% {
        box-shadow: var(--shadow-xl), 0 0 40px rgba(30, 64, 175, 0.4);
    }
    100% {
        box-shadow: var(--shadow-xl), 0 0 30px rgba(30, 64, 175, 0.2);
    }
}

@keyframes logoShine {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateX(50%);
        opacity: 0;
    }
}

/* Desktop: Hide mobile menu footer */
.mobile-menu-footer {
    display: none; /* Hide by default on desktop */
}

/* Responsive Design - Improved Mobile Experience */
@media (max-width: 768px) {
    html {
        font-size: 14px; /* Smaller base font for mobile */
    }
    
    .language-selector {
        top: 18px;
        right: 60px; /* Move left to avoid hamburger */
        z-index: 1003;
        padding: 0.3rem;
        transform: scale(0.9); /* Make smaller */
    }
    
    .navbar {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
        position: relative;
    }
    
    .hamburger {
        display: flex;
        z-index: 1002;
        padding: 0.4rem 0.5rem;
        margin-right: 0;
        position: relative;
        background: transparent;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        height: 40px;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger:hover { background: transparent; }
    
    .hamburger .bar {
        width: 20px;
        height: 2px;
        margin: 2px 0;
        background: var(--text-primary) !important;
        display: block !important;
        border-radius: 1px;
    }
    
    .hamburger:hover .bar {
        background: var(--primary-color) !important;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 3rem;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        padding: 1rem;
        min-height: 44px; /* Touch target minimum */
        display: flex;
        align-items: center;
    }

    /* Dark mode for mobile menu */
    body.dark .nav-menu {
        background-color: rgba(15, 23, 42, 0.98);
        border-left: 1px solid rgba(255,255,255,0.08);
    }
    body.dark .nav-link { color: #e2e8f0; }
    body.dark .mobile-menu-footer { border-top-color: rgba(255,255,255,0.12); }
    
    /* Mobile Menu Footer - ONLY for mobile */
    .mobile-menu-footer {
        margin-top: auto;
        padding: 2rem 1rem 1rem;
        text-align: center;
        border-top: 1px solid rgba(30, 64, 175, 0.2);
        display: block; /* Show in mobile menu */
    }
    
    .mobile-footer-info {
        margin-bottom: 1.5rem;
    }
    
    .mobile-footer-info p {
        margin: 0.5rem 0;
        font-size: 0.9rem;
        color: var(--text-secondary);
    }
    
    .mobile-footer-info p:first-child {
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 1rem;
    }
    
    .mobile-footer-social {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    
    .mobile-footer-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        text-decoration: none;
        transition: var(--transition-normal);
        font-size: 0.9rem;
        font-weight: bold;
    }
    
    .mobile-footer-social a:hover {
        background: var(--secondary-color);
        transform: translateY(-2px);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 1rem 3rem; /* More top padding to avoid navbar overlap */
        min-height: auto;
        overflow: hidden;
    }
    
    .hero-content {
        margin-right: 0;
        max-width: 100%;
        padding: 2rem 0 2rem;
        order: 1;
        margin-top: 1rem;
    }
    
    .hero-visual {
        order: 2;
        width: 100%;
        margin: 1rem 0 0 0;
        padding: 0;
        min-height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
        hyphens: auto;
        color: white !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: white !important;
        background-clip: unset !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .search-box {
        padding: 0.75rem;
        margin: 0 1rem;
    }
    
    .search-box input {
        padding: 1rem 1rem;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 1rem 1.25rem;
        min-width: 44px;
        min-height: 44px;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Section spacing adjustments */
    .properties {
        padding: 3rem 0;
    }
    
    .about {
        padding: 3rem 0;
    }
    
    .contact {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .property-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .section-header {
        padding: 0 1rem;
    }
    
    /* Filter buttons mobile optimization */
    .property-filters {
        padding: 0 1rem;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .filter-btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
    }
    
    .submit-btn {
        min-height: 44px;
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-section ul li {
        margin: 0;
    }
    
    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    /* Hide navigation buttons on mobile */
    .card-nav-btn {
        display: none;
    }
    
    .hero-cards-container {
        max-width: 100%;
        gap: 1rem;
    }
    
    .floating-card {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px; /* Even smaller base font for small screens */
    }
    
    .ui-controls { right: 54px; gap: 3px; top: 24px; }
    .theme-toggle { width: 40px; height: 40px; top: 24px; }
    .language-selector { transform: none; top: 24px; right: 56px; height: 40px; padding: 0; display: flex; align-items: center; }
    .language-current { height: 40px; padding: 0 12px; }
    .nav-menu.active { padding-top: 86px; }
    
    .language-current {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    /* 1.5x logo on small phones */
    .logo-img { width: 72px; height: 72px; transform: none; }
    .logo-title { font-size: 1.15rem; line-height: 1.05; }
    .logo-subtitle { font-size: 0.55rem; letter-spacing: 0.3px; }

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        color: white !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: white !important;
        background-clip: unset !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 7rem 1rem 2rem;
    }

    .hero-content {
        margin-top: 1.5rem;
        padding: 1.5rem 0 1.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .container {
        padding: 0 15px;
    }

    .property-filters {
        flex-wrap: wrap;
        gap: 0.6rem;
        padding: 0 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .properties-grid {
        padding: 0 0.5rem;
    }
    
    .property-card {
        max-width: 320px;
    }
    
    /* Form inputs smaller screens */
    .search-box {
        margin: 0 0.5rem;
        padding: 0.6rem;
    }
    
    .search-box input {
        font-size: 15px; /* Slightly smaller to prevent zoom */
        padding: 0.9rem 1rem;
    }
    
    .search-btn {
        padding: 0.9rem 1.1rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    /* About section small screens */
    .features {
        gap: 1.2rem;
    }
    
    .feature {
        text-align: center;
        align-items: center;
    }
    
    .feature i {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    /* Contact form small screens */
    .contact-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 15px;
        padding: 0.9rem;
        min-height: 40px;
    }
    
    .submit-btn {
        min-height: 44px;
        font-size: 1rem;
    }
    
    /* Footer small screens */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-logo-text span {
        font-size: 1.3rem;
    }
    
    .footer-logo-text small {
        font-size: 0.65rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .newsletter-form input {
        font-size: 15px;
        padding: 0.6rem;
    }
    
    /* Modal actions mobile */
    .property-modal-actions {
        margin-top: 1rem; /* Açıklamanın hemen altında */
    }
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.8s both;
    position: relative;
    perspective: 1000px; /* 3D perspective for carousel */
}

/* 3D Circular Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 550px; /* Increased height for better spacing */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Allow shadows to show outside container */
    perspective: 1500px; /* Increased perspective for better 3D effect */
    padding: 50px 0; /* Extra space for hover shadows */
    z-index: 20; /* High enough to be visible above other elements */
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center; /* Tek nokta etrafında dönme */
}

/* Individual Property Card in Carousel */
.carousel-card {
    position: absolute;
    width: 200px; /* Reduced from 238px to prevent overlap */
    height: 250px; /* Reduced proportionally */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    opacity: 0.35; /* Yarı saydam başlangıç (yazılar karışmasın) */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    left: 50%; /* Merkez noktası */
    top: 50%; /* Merkez noktası */
    margin-left: -100px; /* width / 2 */
    margin-top: -125px; /* height / 2 */
}

/* 3D Positioning for Cards - 12 kart için optimize edilmiş düzen */
.carousel-card:nth-child(1) { 
    transform: rotateY(0deg) translateZ(550px) scale(0.9); 
    z-index: 32; 
    opacity: 1; 
}
.carousel-card:nth-child(2) { 
    transform: rotateY(30deg) translateZ(550px) scale(0.85); 
    z-index: 31; 
    opacity: 0.85; 
}
.carousel-card:nth-child(3) { 
    transform: rotateY(60deg) translateZ(550px) scale(0.8); 
    z-index: 30; 
    opacity: 0.8; 
}
.carousel-card:nth-child(4) { 
    transform: rotateY(90deg) translateZ(550px) scale(0.75); 
    z-index: 29; 
    opacity: 0.7; 
}
.carousel-card:nth-child(5) { 
    transform: rotateY(120deg) translateZ(550px) scale(0.7); 
    z-index: 28; 
    opacity: 0.65; 
}
.carousel-card:nth-child(6) { 
    transform: rotateY(150deg) translateZ(550px) scale(0.65); 
    z-index: 27; 
    opacity: 0.6; 
}
.carousel-card:nth-child(7) { 
    transform: rotateY(180deg) translateZ(550px) scale(0.6); 
    z-index: 26; 
    opacity: 0.55; 
}
.carousel-card:nth-child(8) { 
    transform: rotateY(210deg) translateZ(550px) scale(0.65); 
    z-index: 27; 
    opacity: 0.6; 
}
.carousel-card:nth-child(9) { 
    transform: rotateY(240deg) translateZ(550px) scale(0.7); 
    z-index: 28; 
    opacity: 0.65; 
}
.carousel-card:nth-child(10) { 
    transform: rotateY(270deg) translateZ(550px) scale(0.75); 
    z-index: 29; 
    opacity: 0.7; 
}
.carousel-card:nth-child(11) { 
    transform: rotateY(300deg) translateZ(550px) scale(0.8); 
    z-index: 30; 
    opacity: 0.8; 
}
.carousel-card:nth-child(12) { 
    transform: rotateY(330deg) translateZ(550px) scale(0.85); 
    z-index: 31; 
    opacity: 0.85; 
}

/* Hover Effects - Enhanced visibility and z-index management */
.carousel-card:hover {
    /* Transform intentionally omitted to preserve 3D ring position */
    z-index: 1000 !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.35);
}

/* Active card (front card) should always be visible */
.carousel-card.active {
    opacity: 1;
    z-index: 50; /* Hover'dan düşük ama diğerlerinden yüksek */
}

/* Force lower z-index for non-hovered cards when any card is hovered */
.carousel-container:hover .carousel-card:not(:hover) {
    z-index: 1 !important;
    opacity: 0.25 !important;
}

/* Ensure proper layering for cards behind hovered card */
.carousel-card:hover ~ .carousel-card {
    z-index: 1 !important;
    opacity: 0.2 !important;
    pointer-events: none;
}

/* Additional z-index management for better layering */
.carousel-card:nth-child(n):not(:hover) {
    z-index: auto !important;
}

/* Enhanced transition for better performance */
.carousel-card {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                z-index 0s, 
                opacity 0.3s ease;
}

/* Card content visibility improvements */
.carousel-card-content {
    padding: 0.8rem; /* Even more compact for smaller cards */
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-card-title {
    font-size: 0.88rem; /* bir tık daha küçük */
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.95);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-card-price {
    font-size: 1.05rem; /* daha küçük */
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-card-location {
    font-size: 0.7rem; /* daha küçük */
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

/* Location metni taşmasın */
.carousel-card-location span {
    display: inline-block;
    max-width: 80%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Navigation Controls */
/* Controls hidden (removed) */
.carousel-controls { display: none; }

.carousel-btn { display: none; }

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn i {
    font-size: 1.2rem;
}

/* Carousel Indicators */
.carousel-indicators { display: none; height: 0; padding: 0; margin: 0; overflow: hidden; }

.carousel-indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #fbbf24;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-container {
        height: 500px;
        padding: 40px 0; /* Adjusted padding for medium screens */
        perspective: 1300px;
    }
    
    .carousel-card {
        width: 180px;
        height: 220px;
        margin-left: -90px; /* width / 2 */
        margin-top: -110px; /* height / 2 */
    }
    
    .carousel-card:nth-child(1) { transform: rotateY(0deg) translateZ(450px) scale(0.85); }
    .carousel-card:nth-child(2) { transform: rotateY(30deg) translateZ(450px) scale(0.8); }
    .carousel-card:nth-child(3) { transform: rotateY(60deg) translateZ(450px) scale(0.75); }
    .carousel-card:nth-child(4) { transform: rotateY(90deg) translateZ(450px) scale(0.7); }
    .carousel-card:nth-child(5) { transform: rotateY(120deg) translateZ(450px) scale(0.65); }
    .carousel-card:nth-child(6) { transform: rotateY(150deg) translateZ(450px) scale(0.6); }
    .carousel-card:nth-child(7) { transform: rotateY(180deg) translateZ(450px) scale(0.55); }
    .carousel-card:nth-child(8) { transform: rotateY(210deg) translateZ(450px) scale(0.6); }
    .carousel-card:nth-child(9) { transform: rotateY(240deg) translateZ(450px) scale(0.65); }
    .carousel-card:nth-child(10) { transform: rotateY(270deg) translateZ(450px) scale(0.7); }
    .carousel-card:nth-child(11) { transform: rotateY(300deg) translateZ(450px) scale(0.75); }
    .carousel-card:nth-child(12) { transform: rotateY(330deg) translateZ(450px) scale(0.8); }
}

@media (max-width: 768px) {
    /* Mobile: Simple Single Card Slider */
    .carousel-container {
        height: 450px;
        perspective: none;
        padding: 1rem;
        overflow: visible;
        position: relative;
        margin-top: 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .carousel-track {
        display: flex;
        transform: translateX(0) !important;
        transition: transform 0.5s ease;
        width: 100%;
        height: 100%;
    }
    
    .carousel-card {
        position: relative !important;
        width: 95% !important;
        max-width: 350px !important;
        height: 350px !important;
        flex-shrink: 0;
        margin: 0 auto !important;
        transform: none !important;
        opacity: 1 !important;
        z-index: 1 !important;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        left: auto !important;
        top: auto !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Override all desktop 3D positioning */
    .carousel-card:nth-child(1),
    .carousel-card:nth-child(2),
    .carousel-card:nth-child(3),
    .carousel-card:nth-child(4),
    .carousel-card:nth-child(5),
    .carousel-card:nth-child(6),
    .carousel-card:nth-child(7),
    .carousel-card:nth-child(8),
    .carousel-card:nth-child(9),
    .carousel-card:nth-child(10),
    .carousel-card:nth-child(11),
    .carousel-card:nth-child(12) {
        transform: none !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 auto !important;
        opacity: 1 !important;
    }

    /* Hide non-active cards on mobile */
    .carousel-card:not(:first-child) {
        display: none !important;
    }
    
    .carousel-card:hover {
        transform: none !important;
        z-index: 1;
    }
    
    /* Mobile card content */
    .carousel-card-content {
        padding: 1.25rem;
        text-align: center;
        color: white;
    }
    
    .carousel-card-title {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .carousel-card-price {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        color: #fbbf24;
        font-weight: 700;
    }
    
    .carousel-card-location {
        font-size: 0.85rem;
        opacity: 0.9;
    }
    
    .carousel-card-image {
        width: 100% !important;
        height: 200px !important;
        border-radius: 20px 20px 0 0 !important;
        overflow: hidden;
        position: relative;
        background: #f0f0f0;
    }
    
    .carousel-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Simple navigation dots */
    .carousel-indicators {
        display: flex !important;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
        order: 3;
        height: auto;
    }
    
    .carousel-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .carousel-indicator.active {
        background: #fbbf24;
        transform: scale(1.2);
    }
    
    /* Hide 3D controls on mobile */
    .carousel-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 420px;
        padding: 1rem 0.5rem;
        margin-top: 0.5rem;
        overflow: visible;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .carousel-card {
        position: relative !important;
        width: 92% !important;
        max-width: 320px !important;
        height: 320px !important;
        margin: 0 auto !important;
        transform: none !important;
        opacity: 1 !important;
        z-index: 1 !important;
        left: auto !important;
        top: auto !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Override all desktop 3D positioning for small screens */
    .carousel-card:nth-child(1),
    .carousel-card:nth-child(2),
    .carousel-card:nth-child(3),
    .carousel-card:nth-child(4),
    .carousel-card:nth-child(5),
    .carousel-card:nth-child(6),
    .carousel-card:nth-child(7),
    .carousel-card:nth-child(8),
    .carousel-card:nth-child(9),
    .carousel-card:nth-child(10),
    .carousel-card:nth-child(11),
    .carousel-card:nth-child(12) {
        transform: none !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 auto !important;
        opacity: 1 !important;
    }

    /* Hide non-active cards on small mobile */
    .carousel-card:not(:first-child) {
        display: none !important;
    }
    
    .carousel-card-image {
        width: 100% !important;
        height: 180px !important;
        border-radius: 20px 20px 0 0 !important;
        overflow: hidden;
        position: relative;
        background: #f0f0f0;
    }
    
    .carousel-card-content {
        padding: 1rem;
    }
    
    .carousel-card-title {
        font-size: 1rem;
        line-height: 1.2;
        font-weight: 600;
        margin-bottom: 0.6rem;
    }
    
    .carousel-card-price {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
        color: #fbbf24;
    }
    
    .carousel-card-location {
        font-size: 0.8rem;
    }
    
    .carousel-indicators {
        display: flex !important;
        justify-content: center;
        gap: 0.6rem;
        margin-top: 1.2rem;
        padding: 0 1rem;
        order: 3;
        height: auto;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
}

/* Smooth animations for better performance */
.carousel-track {
    will-change: transform;
}

.carousel-card {
    will-change: transform, opacity;
}

/* Loading state */
.carousel-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    font-size: 1.2rem;
}

.carousel-loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Card Image Container */
.carousel-card-image {
    width: 100%;
    height: 140px; /* Reduced for smaller cards */
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    position: relative;
}

.carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-card:hover .carousel-card-image img {
    transform: scale(1.1);
}

.carousel-card-location i {
    color: #fbbf24;
    font-size: 0.8rem;
}


/* === Hero Layout Overrides: center carousel, title above, search below === */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 100vh;
    padding-top: 128px; /* safe top space for fixed navbar */
    padding-bottom: 20px;
}

.hero-title { font-size: 2rem; line-height: 1.2; margin-bottom: 0.15rem; }
.hero-subtitle { margin-bottom: 0.1rem; }

.hero-header {
    width: 100%;
    max-width: 1000px;
    color: #fff;
    text-align: center;
    padding: 0 1.25rem;
    margin: 0 auto 0.2rem;
}

.hero-visual {
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0 auto;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 0;
    height: 410px;
}

.hero-search {
    margin-top: 0.2rem;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .carousel-container { max-width: 980px; padding: 10px 0; height: 380px; }
}

@media (max-width: 768px) {
    .hero { min-height: 100vh; padding: 9.25rem 0.75rem 1.25rem; }
    .hero-header { max-width: 760px; padding: 0.25rem 0; }
    .hero-visual { min-height: 320px; }
    .hero-title { margin-bottom: 0.2rem; }
    .hero-subtitle { margin-bottom: 0.2rem; }
}

