/* ===================================
   TN Eiendommer Premium CSS - Modern Design
   =================================== */

/* CSS Variables - Default Theme (overridden by DB theme) */
:root {
    --color-primary: #4A4A4A;
    --color-secondary: #3a3a3a;
    --color-accent: #6D8196;
    --color-accent-light: #8BA0B4;
    --color-text: #5a5a5a;
    --color-text-heading: #3a3a3a;
    --color-bg: #FFFFE3;
    --color-bg-alt: #F5F5D0;
    --color-bg-dark: #3a3a3a;
    --color-text-on-accent: #FFFFE3;
    --font-body: 'Manrope', -apple-system, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 20px rgba(74, 74, 74, 0.06);
    --shadow-md: 0 10px 40px rgba(74, 74, 74, 0.1);
    --shadow-lg: 0 25px 60px rgba(74, 74, 74, 0.12);
    --shadow-accent: 0 10px 40px rgba(109, 129, 150, 0.25);
    --gradient-accent: linear-gradient(135deg, #6D8196 0%, #8BA0B4 50%, #5a7085 100%);
    --gradient-dark: linear-gradient(135deg, #4A4A4A 0%, #3a3a3a 100%);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* ===================================
   Navbar - Glassmorphism Style
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 227, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(74, 74, 74, 0.08);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.navbar:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 45px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: white;
    position: relative;
    padding: 8px 0;
}

.navbar.scrolled .nav-link {
    color: var(--color-text-heading);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-btn {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .mobile-btn {
    color: var(--color-text-heading);
}

.navbar.scrolled .mobile-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ===================================
   Buttons - Premium Style
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-text-on-accent);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(109, 129, 150, 0.35);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    border-color: var(--color-bg);
}

.navbar.scrolled .btn-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.navbar.scrolled .btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-on-accent);
}

/* ===================================
   Hero Section - Immersive
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 74, 74, 0.88) 0%, rgba(58, 58, 58, 0.72) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
    transform: scale(1.05);
    animation: heroZoom 20s infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 25px;
    line-height: 1.1;
    animation: fadeUp 1s ease forwards;
}

.hero-content h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease forwards;
}

.hero-tag::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeUp 1.2s ease forwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: fadeUp 1.4s ease forwards;
}

/* Hero Stats */
.hero-stats {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 80px;
}

.hero-stat {
    text-align: center;
    color: white;
}

.hero-stat .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===================================
   Section Styling
   =================================== */
.section {
    padding: 120px 0;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-tag::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--gradient-accent);
}

.section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* ===================================
   Property Cards - Luxury Style
   =================================== */
.property-card {
    background: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(203, 203, 203, 0.3);
}

.property-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.property-card .card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.property-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .card-image img {
    transform: scale(1.1);
}

.property-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(74, 74, 74, 0.3));
    opacity: 0;
    transition: var(--transition);
}

.property-card:hover .card-image::after {
    opacity: 1;
}

/* Status & Type Badges */
.type-badge,
.status-badge {
    position: absolute;
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 5;
}

.type-badge {
    top: 15px;
    left: 15px;
    background: var(--gradient-accent);
    color: var(--color-primary);
}

.status-badge {
    top: 15px;
    right: 15px;
}

.status-available {
    background: var(--gradient-accent);
    color: var(--color-text-on-accent);
}

.status-rented {
    background: var(--gradient-dark);
    color: var(--color-bg-alt);
}

/* Card Content */
.property-card .card-content {
    padding: 28px;
}

.property-card .card-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.property-card .card-price span {
    font-size: 1rem;
    -webkit-text-fill-color: #CBCBCB;
}

.property-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: var(--transition);
}

.property-card:hover .card-title {
    color: var(--color-accent);
}

.property-card .card-location {
    color: #8a8a8a;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.property-card .card-location i {
    color: var(--color-accent);
}

.property-card .card-features {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(203, 203, 203, 0.4);
    color: #6a6a6a;
    font-size: 0.85rem;
}

.property-card .card-features i {
    color: var(--color-accent);
    margin-right: 6px;
}

/* ===================================
   Responsive Grid System
   =================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ===================================
   Stats Section - Dark Luxury
   =================================== */
.stats-section {
    background: var(--gradient-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(109, 129, 150, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item .number {
    font-family: var(--font-heading);
    font-size: 4rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 15px;
}

.stat-item .label {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
}

/* ===================================
   Features Grid - Modern Cards
   =================================== */
.feature-card {
    background: var(--color-bg);
    padding: 50px 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(203, 203, 203, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-text-on-accent);
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-accent);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6a6a6a;
    font-size: 0.95rem;
}

/* ===================================
   Footer - Premium Dark
   =================================== */
.footer {
    background: var(--color-bg-dark);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: var(--color-accent);
    width: 18px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: var(--color-text-on-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ===================================
   Page Header - Subpages
   =================================== */
.page-header {
    position: relative;
    padding: 200px 0 120px;
    overflow: hidden;
    background: var(--gradient-dark);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 74, 74, 0.92) 0%, rgba(58, 58, 58, 0.82) 100%);
    z-index: 1;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.header-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.header-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
}

.header-subtitle {
    font-size: 1.15rem;
    opacity: 0.8;
    max-width: 550px;
    margin: 0 auto;
}

/* ===================================
   CTA Section - Gradient
   =================================== */
.cta-section {
    background: var(--gradient-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 129, 150, 0.2) 0%, transparent 70%);
}

.cta-section::before {
    top: -200px;
    left: -200px;
}

.cta-section::after {
    bottom: -200px;
    right: -200px;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* ===================================
   Responsive Design - Mobile First Enhancement
   =================================== */

/* Tablet and below */
@media (max-width: 1100px) {
    .container {
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section h2 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Navigation - Enhanced */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(74, 74, 74, 0.98) 0%, rgba(58, 58, 58, 0.99) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-actions .btn {
        display: none;
    }

    .nav-actions {
        gap: 15px;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 18px 0;
        color: white !important;
        display: block;
        width: 100%;
        transition: all 0.3s ease;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-accent-light) !important;
        padding-left: 10px;
    }

    .mobile-btn {
        display: flex;
        z-index: 1001;
    }

    /* Mobile menu overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-stats {
        gap: 40px;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile - Enhanced */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 100px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-tag {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .hero-tag::before {
        width: 25px;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .hero-cta .btn {
        text-align: center;
        padding: 16px 28px;
        font-size: 0.8rem;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: row;
        gap: 30px;
        margin-top: 50px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stat .number {
        font-size: 2rem;
    }

    .hero-stat .label {
        font-size: 0.7rem;
    }

    .page-header {
        padding: 140px 0 80px;
    }

    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section {
        padding: 70px 0;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .section-tag {
        font-size: 0.75rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-card {
        padding: 35px 25px;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-item .number {
        font-size: 2.5rem;
    }

    .stat-item .label {
        font-size: 0.75rem;
    }

    .cta-section {
        padding: 70px 0;
    }

    .cta-text h2 {
        font-size: 1.8rem;
    }

    .cta-text p {
        font-size: 1rem;
    }

    .footer {
        padding: 60px 0 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .footer h4 {
        margin-bottom: 20px;
    }

    .footer-brand .logo-img {
        height: 35px;
    }

    .property-card .card-image {
        height: 220px;
    }

    .property-card .card-content {
        padding: 22px;
    }

    .property-card .card-price {
        font-size: 1.4rem;
    }

    .property-card .card-title {
        font-size: 1.1rem;
    }

    .property-card .card-features {
        gap: 15px;
        font-size: 0.8rem;
    }

    /* Touch-friendly improvements */
    .btn {
        min-height: 48px;
        padding: 14px 28px;
    }

    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Mobile form improvements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Property detail mobile fixes */
    .hero-info h1 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-box {
        padding: 20px;
    }

    .feature-box i {
        font-size: 1.4rem;
    }

    .feature-box .value {
        font-size: 1.3rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .amenity-item {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-thumbs img {
        height: 70px;
    }

    /* Lightbox mobile optimization */
    .lightbox {
        padding: 20px;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 80%;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat .number {
        font-size: 1.8rem;
    }

    .hero-stat .label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .header-title {
        font-size: 1.7rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stat-item .number {
        font-size: 2.2rem;
    }

    .features-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .cta-text h2 {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 14px 24px;
        letter-spacing: 1px;
    }

    .property-card .card-image {
        height: 200px;
    }

    .property-card .card-price {
        font-size: 1.3rem;
    }

    .property-card .card-features {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn,
    .filter-pill {
        padding: 12px 20px;
        font-size: 0.8rem;
    }

    .info-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        margin: 0 auto;
    }

    .contact-form-card {
        padding: 30px 20px;
    }

    .hero-badges {
        top: 100px;
        left: 20px;
        flex-direction: column;
        gap: 8px;
    }

    .hero-badges .badge {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .hero-info {
        padding: 30px 20px;
    }

    .price-card {
        padding: 30px 25px;
    }

    .price-card .price {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile scroll snap for cards */
    .properties-grid {
        scroll-snap-type: y proximity;
    }

    .property-card {
        scroll-snap-align: start;
    }

    .feature-card {
        scroll-snap-align: start;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.75rem;
    }

    .nav-menu {
        width: 90%;
        padding: 90px 25px 30px;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 15px 0;
    }
}

/* ===================================
   Preloader
   =================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(203, 203, 203, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.bg-dark {
    background: var(--gradient-dark);
}

.bg-alt {
    background: var(--color-bg-alt);
}

.text-gold {
    color: var(--color-accent);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}