/* KRONOS Real Estate - Ultra Modern Luxury Design */

/* Import Google Fonts - MUST BE FIRST */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 350px;
    height: 350px;
    margin-bottom: 3rem;
    animation: logoGrow 2s ease-out forwards;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--elite-white);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.loading-slogan {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 300;
    color: var(--elite-white);
    letter-spacing: 2px;
    margin-bottom: 3rem;
    margin-top: -1rem;
}

.loading-progress {
    width: 300px;
    height: 2px;
    background: rgba(154, 154, 154, 0.2);
    position: relative;
    overflow: hidden;
}

.loading-progress-bar {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--kronos-orange), transparent);
    animation: loadingProgress 2s linear infinite;
}

@keyframes logoGrow {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes loadingProgress {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes logoGrowMobile {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes loadingProgressMobile {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Loading Screen Mobile */
@media (max-width: 768px) {
    .loading-progress-bar {
        animation: loadingProgressMobile 2s linear infinite;
    }
    
    .loading-logo {
        animation: logoGrowMobile 2s ease-out forwards;
    }
    
    .loading-logo {
        width: 250px;
        height: 250px;
    }
    
    .loading-text {
        font-size: 1.5rem;
    }
    
    .loading-slogan {
        font-size: 0.875rem;
        padding: 0 2rem;
        text-align: center;
    }
    
    .loading-progress {
        width: 200px;
    }
}

/* CSS Variables */
:root {
    /* KRONOS Brand Colors from Logo */
    --kronos-dark-bg: #4a4a4a; /* Dark gray background */
    --kronos-darker-bg: #3a3a3a; /* Darker variant */
    --kronos-text-gray: #9a9a9a; /* Light gray for text */
    --kronos-orange: #FF6B35; /* Original orange - works on both iOS and Android */
    --kronos-orange-hover: #E55A2B; /* Darker orange for hover */
    
    /* Supporting Colors */
    --elite-charcoal: #2d2d2d;
    --elite-dark-gray: #3a3a3a;
    --elite-gray: #5a5a5a;
    --elite-medium-gray: #7a7a7a;
    --elite-light-gray: #b5b5b5;
    --elite-pale-gray: #e5e5e5;
    --elite-off-white: #f8f8f8;
    --elite-white: #ffffff;
    
    /* Missing variable fix - use orange for prices */
    --kronos-dark: var(--kronos-orange);
    
    /* Typography */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    
    /* Spacing - Increased for luxury feel */
    --space-xs: 0.75rem;
    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 4.5rem;
    --space-xl: 6rem;
    --space-2xl: 9rem;
    --space-3xl: 12rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.10);
    
    /* Border Radius - Minimal */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.8;
    color: var(--elite-white);
    background-color: var(--kronos-dark-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}

body.menu-open {
    overflow: hidden;
}


/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.4;
    color: var(--elite-white);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    color: var(--elite-gray);
    font-weight: 400;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    min-height: 44px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--kronos-darker-bg);
    background: transparent;
    color: var(--kronos-darker-bg);
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    -webkit-transition: var(--transition);
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
}

.btn-primary {
    background: var(--kronos-orange);
    color: var(--elite-white);
    border-color: var(--kronos-orange);
}

.btn-primary:hover {
    background: var(--kronos-orange-hover);
    color: var(--elite-white);
    border-color: var(--kronos-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(242, 101, 34, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--kronos-darker-bg);
    border: 1px solid var(--elite-light-gray);
}

.btn-outline:hover {
    border-color: var(--kronos-darker-bg);
    background: var(--kronos-darker-bg);
    color: var(--elite-white);
}

.btn-white {
    background: transparent;
    color: var(--elite-white);
    border: 1px solid var(--kronos-text-gray);
}

.btn-white:hover {
    background: var(--elite-white);
    color: var(--kronos-darker-bg);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    will-change: transform;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Header hidden state */
header.header-hidden {
    -webkit-transform: translate3d(0, -100%, 0) !important;
    -moz-transform: translate3d(0, -100%, 0) !important;
    -ms-transform: translate3d(0, -100%, 0) !important;
    -o-transform: translate3d(0, -100%, 0) !important;
    transform: translate3d(0, -100%, 0) !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

header.scrolled nav ul li a {
    color: #ffffff;
}

header.scrolled nav ul li a:hover {
    color: var(--kronos-orange);
}

/* Header scrolled additional styles */
header.scrolled .header-info,
header.scrolled .header-info a,
header.scrolled .social-links a {
    color: #ffffff;
}

header.scrolled .header-info a:hover,
header.scrolled .social-links a:hover {
    color: var(--kronos-orange);
}

header.scrolled .header-top {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Language selector in scrolled header */
header.scrolled .nav-language-selector .lang-btn {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

header.scrolled .nav-language-selector .lang-btn:hover {
    border-color: var(--kronos-orange);
    color: var(--kronos-orange);
}

header.scrolled .nav-language-selector .lang-btn.active {
    background: var(--kronos-orange);
    color: #000;
    border-color: var(--kronos-orange);
}

/* Mobile menu toggle in scrolled header */
header.scrolled .mobile-menu-toggle {
    background: var(--kronos-orange);
}

header.scrolled .mobile-menu-toggle span {
    background: #ffffff;
}

/* Flag images in language selector */
.flag img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

/* Flag images in mobile menu */
.mobile-lang-btn .flag img {
    margin-right: 8px;
    width: 24px;
    height: 16px;
}

/* Flag images in desktop nav */
.nav-language-selector .flag img {
    margin-right: 0;
    width: 20px;
    height: 14px;
}

/* Header Top Bar */
.header-top {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.header-info {
    display: flex;
    gap: 2rem;
}

.header-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    color: var(--elite-white);
    opacity: 0.8;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    color: #ff6b35;
}

/* Main Navigation */
nav {
    background: transparent;
    padding: 0.75rem 0;
    border-bottom: none;
    transition: var(--transition);
}

header.scrolled nav {
    padding: 0.5rem 0;
}

nav .container {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
}

.logo {
    height: 60px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    transition: var(--transition);
    -webkit-transition: var(--transition);
    margin-top: 10px;
}

header:not(.scrolled) .logo {
    height: 70px;
}

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

header.scrolled .logo {
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: -webkit-flex;
    display: flex;
    list-style: none;
    -webkit-align-items: center;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
}

nav ul li a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--elite-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

header:not(.scrolled) nav ul li a {
    color: var(--elite-white);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--kronos-darker-bg);
    transition: var(--transition);
}

header:not(.scrolled) nav ul li a::after {
    background: var(--elite-white);
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-cta {
    background: transparent;
    color: var(--elite-white) !important;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--elite-white);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #f26522;
    border-color: #f26522;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(242, 101, 34, 0.3);
}

.nav-cta::after {
    display: none;
}

/* Hero Section */
.hero {
    margin-top: 0;
    min-height: 100vh;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    padding-bottom: 160px;
    padding-top: 0;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 3s ease-in-out, transform 8s ease-out;
    filter: grayscale(100%);
    transform: scale(1.05);
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Slide Animation */
@keyframes slideAnimation {
    0% { opacity: 0; transform: scale(1.1); }
    10% { opacity: 1; transform: scale(1); }
    90% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); }
}

.hero-content {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-top: 120px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    color: var(--elite-white);
    padding: 0;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.7;
}

.hero h1 {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
    color: var(--elite-white);
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--elite-white);
    font-weight: 400;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--elite-light-gray);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: -webkit-flex;
    display: flex;
    gap: 2rem;
    animation: fadeInUp 0.8s ease 0.4s;
    -webkit-animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: both;
    -webkit-animation-fill-mode: both;
    -webkit-justify-content: center;
    justify-content: center;
}

.hero-image {
    display: none; /* Hide for minimal design */
}

.hero-stats {
    display: none; /* Hide for minimal design */
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--elite-gold);
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Bar */
.search-section {
    position: relative;
    z-index: 10;
    margin-top: 0;
    padding: 40px 0;
    background: #3a3a3a;
    border-bottom: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 1;
    visibility: visible;
}

.search-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2.5rem;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 
                0 0 60px rgba(255,107,53,0.1),
                inset 0 1px 2px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

.search-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), 
                0 0 80px rgba(255,107,53,0.2),
                inset 0 1px 2px rgba(0,0,0,0.7);
}

.search-field {
    position: relative;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2),
                inset 0 1px 3px rgba(0,0,0,0.3);
}

.search-field input::placeholder {
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: rgba(255,107,53,0.5);
    background: rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(255,107,53,0.2),
                0 8px 25px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.search-field select option {
    background: #2a2a2a;
    color: #fff;
}

.search-button {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255,107,53,0.3),
                inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255,107,53,0.4),
                inset 0 1px 0 rgba(255,255,255,0.3);
}

.search-button:hover::before {
    left: 100%;
}

.search-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 20px rgba(255,107,53,0.3),
                inset 0 1px 3px rgba(0,0,0,0.2);
}

/* Featured Properties */
.featured-section {
    padding: var(--space-3xl) 0;
    background: var(--elite-white);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-subtitle {
    color: var(--elite-gray);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1rem;
    color: var(--elite-gray);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Property Grid */
.property-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

/* Property Card Link */
.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card-link:hover {
    text-decoration: none;
}

.property-card-link:hover .property-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.property-card {
    background: var(--elite-white);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    -webkit-transition: var(--transition);
    position: relative;
    height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    border: 1px solid var(--elite-pale-gray);
    margin-top: 15px;
}

.property-card:hover {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--kronos-darker-bg);
}

.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--kronos-darker-bg);
    color: var(--elite-white);
    padding: 0.5rem 1rem;
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--kronos-darker-bg);
}

.property-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--elite-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    -webkit-transition: var(--transition);
}

.property-favorite:hover {
    background: var(--kronos-darker-bg);
    color: var(--elite-white);
}

.property-views {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--elite-white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.property-views svg {
    width: 16px;
    height: 16px;
}

.property-views span {
    font-weight: 500;
}

.property-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--kronos-dark);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--kronos-darker-bg);
    font-family: var(--font-display);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--elite-medium-gray);
    font-size: 0.8125rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.property-features {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    margin-top: auto;
    border-top: 1px solid var(--elite-pale-gray);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--elite-gray);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Services Section */
.services-section {
    padding: var(--space-3xl) 0;
    background: var(--elite-off-white);
}

.services-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.service-card {
    text-align: center;
    padding: 4rem 3rem;
    background: transparent;
    border-right: 1px solid var(--elite-pale-gray);
    transition: var(--transition);
}

.service-card:last-child {
    border-right: none;
}

.service-card:hover {
    background: var(--elite-white);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2.5rem;
    background: transparent;
    border: 1px solid var(--kronos-darker-bg);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kronos-darker-bg);
}

.service-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    color: #000000;
}

.service-description {
    color: var(--elite-gray);
    line-height: 1.8;
    font-weight: 300;
    font-size: 0.875rem;
}

/* About Section */
.about-section {
    padding: var(--space-3xl) 0;
    background: var(--kronos-darker-bg);
    color: var(--elite-white);
}

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

.about-text h2 {
    color: var(--elite-white);
    margin-bottom: 2rem;
}

.about-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
}

.about-features {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--elite-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.about-experience {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--elite-gold);
    color: var(--elite-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.about-experience-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.about-experience-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--kronos-dark-bg);
    color: var(--elite-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--elite-white);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background: var(--elite-white);
    color: #000000;
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid var(--elite-pale-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #000000;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--elite-gold);
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: #000000;
}

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

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

.footer-section ul li a {
    color: #000000;
    transition: var(--transition);
}

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

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

/* WhatsApp Button */
/* WhatsApp button removed */

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: var(--kronos-orange);
    border: none;
    cursor: pointer;
    padding: 0.7rem;
    border-radius: 8px;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mobile-menu-toggle:hover {
    background: var(--kronos-orange-hover);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: white;
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 2px;
}


/* Responsive */
@media (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll and bounce effect */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Page Hero Mobile Padding */
    .page-hero {
        padding-top: 200px !important;
    }
    
    body {
        position: relative;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Header */
    .header-info {
        display: none;
    }
    
    nav {
        padding: 0.75rem 0;
    }
    
    .logo {
        height: 50px;
    }
    
    header:not(.scrolled) .logo {
        height: 50px;
    }
    
    header.scrolled .logo {
        height: 40px;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        max-width: 85%;
        height: 100vh;
        background: var(--elite-white);
        -webkit-flex-direction: column !important;
        flex-direction: column !important;
        padding: 4rem 1.5rem;
        gap: 0.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        -webkit-transition: right 0.3s ease;
        z-index: 1001;
        overflow-x: hidden;
        overflow-y: auto;
        margin: 0;
    }
    
    nav ul.active {
        right: 0 !important;
        left: auto !important;
    }
    
    
    nav ul li a {
        color: var(--kronos-darker-bg) !important;
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    nav ul li a:hover {
        background: rgba(0,0,0,0.05);
        color: var(--kronos-orange) !important;
    }
    
    /* Mobile menu overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 999;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    .mobile-menu-toggle {
        display: block !important;
        position: relative;
        z-index: 1002 !important;
        pointer-events: auto !important;
        touch-action: manipulation;
    }
    
    .mobile-menu-toggle span {
        background: white;
        width: 20px;
        height: 2.5px;
        margin: 4px 0;
        transition: var(--transition);
        border-radius: 2px;
    }
    
    /* Hamburger to X animation */
    .mobile-menu-toggle.active span {
        background: white !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
        padding-top: 200px;
        padding-bottom: 80px;
        transform: none !important;
        will-change: auto;
    }
    
    .hero-content {
        padding-top: 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        -webkit-flex-direction: column;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
    
    /* Search */
    /* Search Section */
    .search-section {
        margin-top: 0;
        padding: 20px 0;
        position: sticky;
        top: 60px;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    /* Initial state for search section */
    body:not(.scrolled) .search-section {
        margin-top: 30vh;
    }
    
    .search-bar {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 0.75rem;
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.12), 
                    0 0 40px rgba(255,107,53,0.08);
    }
    
    .search-field input,
    .search-field select {
        font-size: 0.9rem;
        padding: 1rem 1.25rem;
        border-radius: 10px;
    }
    
    .search-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .search-button {
        width: 100%;
    }
    
    /* Property Grid */
    .property-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Property Types Grid */
    .property-types-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .property-types-grid > a > div {
        padding: 25px !important;
    }
    
    .property-types-grid img {
        width: 36px !important;
        height: 36px !important;
    }
    
    .property-types-grid h4 {
        font-size: 0.85rem !important;
    }
    
    .property-image {
        height: 250px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        border-right: none;
        border-bottom: 1px solid var(--elite-pale-gray);
        padding: 3rem 2rem;
    }
    
    .service-card:last-child {
        border-bottom: none;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Sections */
    .featured-section,
    .services-section,
    .about-section,
    .cta-section {
        padding: 2rem 0;
    }
    
    /* Section headers */
    .section-header {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .section-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }
    
    /* Typography */
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-description {
        font-size: 0.85rem;
    }
}

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

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

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

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(245, 166, 35, 0.3);
    border-radius: 50%;
    border-top-color: var(--elite-gold);
    animation: spin 1s ease-in-out infinite;
}

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

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--kronos-dark);
    color: var(--elite-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--kronos-orange-hover);
    transform: translateY(-4px);
}


.mobile-language-title {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 0 20px;
}

.mobile-language-options {
    display: flex;
    flex-direction: column;
}

.mobile-language-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-language-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-language-option.active {
    background: #ff6b35;
    color: white;
}

.mobile-language-option .flag {
    font-size: 28px;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] * {
    text-align: right;
}

html[dir="rtl"] .container {
    direction: rtl;
}

/* RTL: Keep nav ul column direction in mobile */
@media (min-width: 769px) {
    html[dir="rtl"] header nav ul {
        flex-direction: row-reverse;
    }
}

html[dir="rtl"] .header-info,
html[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .property-location,
html[dir="rtl"] .property-features,
html[dir="rtl"] .property-feature {
    flex-direction: row-reverse;
}

html[dir="rtl"] .property-location svg,
html[dir="rtl"] .property-feature svg {
    margin-left: 8px;
    margin-right: 0;
}

html[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

/* Additional Mobile Image Fixes */
@media (max-width: 768px) {
    /* Force all property images to be visible on mobile */
    .property-image,
    .property-image *,
    .property-card img,
    .property-card .kronos-lazy-img,
    img.kronos-lazy-img {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Disable lazy loading on mobile */
    .kronos-lazy-img {
        background: none !important;
        filter: none !important;
    }
    
    /* Ensure images load immediately */
    .property-image img[data-src],
    .kronos-lazy-img[data-src] {
        content: attr(data-src) !important;
    }
    
    /* Fix property grid on mobile */
    .property-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Ensure featured properties are visible */
    .featured-section .property-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Extra specificity for mobile images */
@media screen and (max-width: 768px) {
    body .property-image img,
    body .property-card img,
    body .kronos-lazy-img {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

html[dir="rtl"] .search-bar {
    direction: rtl;
}

html[dir="rtl"] .mobile-menu-toggle {
    left: 20px;
    right: auto;
}

html[dir="rtl"] nav ul.active {
    left: 0;
    right: auto;
}

html[dir="rtl"] .language-dropdown {
    left: 0;
    right: auto;
}

/* Keep phone numbers in LTR direction even in RTL layout */
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] .phone-number,
html[dir="rtl"] .contact-phone,
html[dir="rtl"] .header-info a[href^="tel:"],
html[dir="rtl"] .footer-section a[href^="tel:"],
html[dir="rtl"] .contact-item a[href^="tel:"],
html[dir="rtl"] .whatsapp-link,
html[dir="rtl"] a[href^="https://wa.me/"] {
    direction: ltr !important;
    unicode-bidi: embed !important;
    display: inline-block !important;
    text-align: left !important;
}

/* Additional Modern Styles */
.section-header {
    position: relative;
    z-index: 1;
}

.section-subtitle {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--kronos-darker-bg);
}

/* Contact Info Grid */
.contact-info {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
    background: var(--kronos-darker-bg);
    padding: 4rem;
    margin: 3rem 0;
}

.contact-item {
    color: var(--elite-white);
}

.contact-item h4 {
    color: var(--elite-white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-item a {
    color: var(--elite-gold);
    text-decoration: none;
    transition: var(--transition);
    -webkit-transition: var(--transition);
}

.contact-item a:hover {
    color: var(--elite-white);
}

/* Safari and iOS Specific Fixes */
@supports (-webkit-appearance: none) {
    /* Fix flexbox for Safari */
    .hero,
    .hero-content,
    .property-card,
    .property-content,
    .property-features,
    .property-feature,
    .services-grid,
    .about-content,
    nav .container,
    nav ul,
    .hero-buttons {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
    }
    
    /* Fix button styles for iOS */
    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        -webkit-appearance: none;
        -webkit-border-radius: 0;
        border-radius: 0;
    }
    
    /* Fix form elements */
    input,
    select,
    textarea {
        -webkit-appearance: none;
        -webkit-border-radius: 0;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Improve font rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -webkit-text-size-adjust: 100%;
    }
    
    /* Fix transitions */
    * {
        -webkit-transition-property: all;
        -webkit-transition-duration: 0.3s;
        -webkit-transition-timing-function: ease;
    }
}

/* Additional Mobile Fixes */
@media (max-width: 768px) {
    /* Ensure proper spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Fix button sizes for touch */
    .btn {
        min-height: 40px;
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Improve readability */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Fix property cards */
    .property-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        margin-top: 10px;
    }
    
    .property-image {
        height: 180px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        overflow: visible !important;
        background-color: #f0f0f0;
    }
    
    .property-image img,
    .property-image .kronos-lazy-img,
    .property-card-image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        object-fit: cover !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Force lazy images to show on mobile */
    .kronos-lazy-img[data-src] {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Ensure property cards are visible */
    .property-card {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .property-content {
        padding: 1rem;
    }
    
    .property-title {
        font-size: 1.1rem;
    }
    
    .property-price {
        font-size: 1.3rem;
    }
    
    .property-price {
        font-size: 1.5rem;
    }
    
    /* Fix navigation colors */
    header:not(.scrolled) nav ul li a {
        color: var(--elite-white);
    }
    
    /* Fix section headers */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Luxury Line */
.luxury-line {
    width: 80px;
    height: 2px;
    background-color: #ffffff;
    margin: 20px auto 0;
    opacity: 0.8;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.current-language:hover {
    background: rgba(255, 255, 255, 0.1);
}

.current-language .flag {
    font-size: 18px;
}

.current-language .name {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.current-language svg {
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.language-option:hover {
    background: #f8f8f8;
}

.language-option.active {
    background: #ff6b35;
    color: white;
}

.language-option .flag {
    font-size: 20px;
}

.language-option .name {
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    display: none;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.mobile-language-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.mobile-language-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}

.mobile-language-option.active {
    background: #ff6b35;
    color: white;
}

/* Navigation Language Selector */
.nav-language-selector {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-btn.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.lang-btn .flag {
    font-size: 18px;
}

.lang-btn .code {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Scrolled state */
.scrolled .lang-btn {
    color: #333;
}

.scrolled .lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.scrolled .lang-btn.active {
    background: #ff6b35;
    color: white;
}

/* Mobile Language Menu */
.mobile-language-menu {
    display: none;
}

.mobile-lang-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.mobile-lang-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.mobile-lang-btn:hover {
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    margin: 0 10px;
}

.mobile-lang-btn.active {
    background: #ff6b35;
    color: white;
    border-radius: 8px;
    margin: 0 10px;
}

.mobile-lang-btn .flag {
    font-size: 20px;
}

@media (max-width: 768px) {
    .language-switcher-desktop {
        display: none;
    }
    
    .nav-language-selector {
        display: none;
    }
    
    .mobile-language-menu {
        display: block;
    }
}

@media (max-width: 480px) {
    nav ul {
        width: 260px;
        right: -100%;
        max-width: 90%;
    }
    
    nav ul.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        padding: 0.6rem;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
        margin: 3px 0;
    }
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    /* Better Typography for Mobile */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Mobile Navigation Improvements */
    header {
        padding: 0.5rem 0;
        background: var(--kronos-darker-bg) !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    
    nav {
        padding: 0.75rem 0;
    }
    
    .nav-content {
        padding: 0 1rem;
    }
    
    /* Mobile Menu */
    nav ul li a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Touch-friendly Buttons */
    .btn {
        min-height: 48px !important;
        padding: 0.875rem 2rem !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        touch-action: manipulation;
    }
    
    /* Property Cards Mobile */
    .property-card {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        border-radius: 12px;
        overflow: hidden;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-details {
        padding: 1rem;
    }
    
    .property-price {
        font-size: 1.25rem;
    }
    
    /* Form Elements */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        min-height: 48px;
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
        border-radius: 8px;
    }
    
    /* Section Spacing */
    section {
        padding: 3rem 0 !important;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding-top: 60px;
    }
    
    .hero-content {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    /* Search Bar Mobile */
    .search-section {
        position: relative;
        top: auto;
        margin-top: 2rem;
        opacity: 1;
        visibility: visible;
    }
    
    .search-bar {
        background: white !important;
        padding: 1rem !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
        border: 1px solid #e0e0e0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .search-field {
        width: 100% !important;
    }
    
    .search-field input,
    .search-field select {
        width: 100% !important;
        padding: 1rem !important;
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        color: #333 !important;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .search-field input::placeholder {
        color: #999 !important;
        opacity: 1 !important;
    }
    
    .search-field select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 1rem center !important;
        padding-right: 2.5rem !important;
    }
    
    .search-button {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 16px !important;
        background: #ff6b35 !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
    }
    
    /* Property Types Grid Mobile */
    .property-types-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 0 1rem;
    }
    
    .property-types-grid > a {
        text-decoration: none;
    }
    
    .property-types-grid > a > div {
        background: white;
        padding: 1.5rem !important;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        text-align: center;
        transition: all 0.3s ease;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .property-types-grid > a > div:active {
        transform: scale(0.98);
    }
    
    /* Footer Mobile */
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 2rem;
        text-align: left;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.75rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
        padding: 0.25rem 0;
        display: inline-block;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Fix horizontal scrolling issues */
    * {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve tap targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Fix CTA Section */
    .cta-section {
        text-align: center;
        padding: 3rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
    }
    
    /* Newsletter Section */
    #newsletterForm {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #newsletterForm input[type="email"] {
        width: 100%;
    }
    
    #newsletterForm button {
        width: 100%;
    }
}

/* Small Mobile Devices */
@media (max-width: 380px) {
    .container {
        padding: 0 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.35rem !important;
    }
    
    .btn {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    .property-types-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Gallery Z-index and Mobile Fixes for Listing Detail */

/* Fix gallery modal z-index to appear above header */
#galleryModal {
    z-index: 9998 !important;
    padding-top: 80px !important;
}

#galleryModal button[onclick="closeGalleryModal()"] {
    z-index: 9999 !important;
    top: 90px !important;
}

/* Fix lightbox z-index */
#imageLightbox {
    z-index: 10000 !important;
}

#imageLightbox button {
    z-index: 10001 !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    /* Gallery section mobile padding */
    .gallery-section {
        padding-top: 100px !important;
    }
    
    /* Gallery modal mobile adjustments */
    #galleryModal {
        padding-top: 60px !important;
    }
    
    #galleryModal button[onclick="closeGalleryModal()"] {
        top: 70px !important;
        right: 10px !important;
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
    
    /* Gallery grid mobile layout */
    #galleryModal > div > div {
        padding: 10px !important;
    }
    
    #galleryModal img {
        height: 150px !important;
        border-radius: 4px !important;
    }
    
    /* Gallery grid container mobile */
    #galleryModal > div > div > div {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }
    
    /* Lightbox mobile adjustments */
    #imageLightbox img {
        max-width: 95% !important;
        max-height: 80% !important;
    }
    
    #imageLightbox button[onclick="previousImage()"],
    #imageLightbox button[onclick="nextImage()"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }
    
    #imageLightbox button[onclick="closeLightbox()"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
        top: 10px !important;
        right: 10px !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    #galleryModal > div > div > div {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }
    
    #galleryModal img {
        height: 120px !important;
    }
}
}