/* ========================================= */
/* --- 1. ROOT VARIABLES & RESET --- */
/* ========================================= */
:root {
    /* Brand Colors */
    --color-primary: #f59e0b;
    --color-primary-dark: #d97706;
    --color-primary-light-bg: #fef3c7;
    --color-primary-light-text: #fde68a;
    
    /* Dark Blues (Brand Identity) */
    --color-dark-blue: #0c2f4e;
    --color-dark-blue-medium: #1f2937;
    --color-dark-blue-light: #374151;
    --color-dark-blue-darkest: #08223a;

    /* Neutrals */
    --color-white: #ffffff;
    --color-black: #111827;
    --color-text-dark: #1f2937;
    --color-text-medium: #4b5563;
    --color-text-light: #6b7280;
    --color-text-inverted: #e5e7eb;
    --color-text-inverted-light: #d1d5db;
    --color-absolute-white: #ffffff;

    /* Backgrounds */
    --color-bg-light-1: #f8f9fa;
    --color-bg-light-2: #f3f4f6;
    --color-bg-light-hover: #f9fafb;

    /* Borders & Shadows */
    --color-border-light: #e5e7eb;
    --color-border-medium: #d1d5db;
    --color-border-dark: #374151;
    --color-icon-gray: #9ca3af;
    --color-overlay: rgba(0, 0, 0, 0.4);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.07);
}

/* Dark Mode Overrides */
:root[data-theme="dark"] {
    --color-primary-light-bg: #374151;
    --color-white: #1f2937; 
    --color-black: #f3f4f6; 
    --color-text-dark: #f3f4f6;
    --color-text-medium: #d1d5db;
    --color-text-light: #9ca3af;
    --color-bg-light-1: #111827; 
    --color-bg-light-2: #374151; 
    --color-bg-light-hover: #4b5563; 
    --color-border-light: #374151;
    --color-border-medium: #4b5563;
    --color-overlay: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light-1);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ========================================= */
/* --- 2. HEADER & NAVIGATION --- */
/* ========================================= */
.header {
    background-color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
}

/* Mobile Menu Toggle Button (Visible on mobile) */
.menu-toggle-btn {
    display: block;
    color: var(--color-black);
    font-size: 1.5rem;
}

/* Desktop Navigation (Hidden on mobile) */
.nav-links-desktop {
    display: none;
}

@media (min-width: 768px) {
    .menu-toggle-btn {
        display: none;
    }

    .nav-links-desktop {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-links-desktop .nav-link {
        font-weight: 500;
        color: var(--color-text-medium);
        transition: color 0.3s;
        font-size: 0.95rem;
    }

    .nav-links-desktop .nav-link:hover,
    .nav-links-desktop .nav-link.active {
        color: var(--color-primary);
    }

    /* Header Search Bar */
    .search-container {
        position: relative;
        width: 240px;
    }

    .search-icon {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--color-text-light);
        font-size: 0.9rem;
    }

    .search-input {
        width: 100%;
        padding: 0.6rem 1rem 0.6rem 2.5rem;
        border-radius: 4px;
        border: 1px solid transparent;
        background-color: var(--color-bg-light-2);
        font-size: 0.9rem;
        color: var(--color-text-dark);
    }
    .search-input:focus {
        outline: none;
        border-color: var(--color-primary);
        background-color: var(--color-white);
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-medium);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle-btn .fa-sun { display: none; }
.theme-toggle-btn .fa-moon { display: block; }
:root[data-theme="dark"] .theme-toggle-btn .fa-sun { display: block; }
:root[data-theme="dark"] .theme-toggle-btn .fa-moon { display: none; }


/* ========================================= */
/* --- 3. HERO SECTION (Cinematic) --- */
/* ========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full Viewport Height */
    overflow: hidden;
    color: var(--color-absolute-white);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1b854b 0%, #0c2f4e 100%); 
    z-index: 0;
    opacity: 1; 
}

.color-palette-wrapper {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.color-swatch {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-slider-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-slide.ui-card-mode {
    position: relative;
    width: 100%; 
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background: #000;
    overflow: hidden; 
    display: flex; 
    flex-direction: column;
}

.hero-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    object-position: center;
    z-index: 1;
    transform: scale(1.05); 
    will-change: transform; 
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.151), rgba(0, 0, 0, 0.699));
    z-index: 2;
}

/* Hero UI Elements */
.ui-top-nav-pill {
    position: absolute;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.ui-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.ui-link.active, .ui-link:hover { color: #ffffff; }
.ui-separator { color: rgba(255, 255, 255, 0.2); }

/* Slender Navbar Buttons */
.ui-top-right {
    position: absolute;
    top: 2rem;      
    right: 2rem;    
    gap: 0.8rem;    
    display: flex;
    align-items: center;
    z-index: 201; /* On top of mobile menu */
}

.ui-icon-btn {
    width: 38px;      
    height: 38px;     
    font-size: 1rem;  
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    cursor: pointer;
}
.ui-icon-btn:hover { background: rgba(255, 255, 255, 0.25); }

.ui-get-started-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;     
    border-radius: 100px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}
.ui-get-started-btn:hover { 
    background: var(--color-primary); 
    border-color: var(--color-primary); 
    color: white;
}

.ui-center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
}

.ui-bottom-left {
    position: absolute;
    bottom: 5rem;
    left: 5rem;
    z-index: 10;
    text-align: left;
    max-width: 700px;
}
.ui-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
}
.ui-headline {
    font-family: 'Inter', sans-serif; 
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    min-height: 1.1em;
}
.ui-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    line-height: 1.6;
}

.ui-bottom-right {
    position: absolute;
    bottom: 5rem;
    right: 5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: right;
}
.explore-text { display: flex; flex-direction: column; }
.explore-label { font-size: 1.2rem; color: white; font-weight: 700; }
.explore-sub { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

.explore-circle-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.3s;
}
.explore-circle-btn:hover { transform: scale(1.1) rotate(45deg); }

/* Scroll Indicator (Homepage) */
.scroll-indicator-wrapper { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; color: var(--color-absolute-white); opacity: 0.8; }
.scroll-down-icon { font-size: 1.5rem; animation: bounce 2s infinite; }

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    background-color: var(--color-white);
    width: 4px;
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: baseline;
}

/* Hero Responsiveness */
@media (max-width: 1024px) {
    .ui-headline { font-size: 3.5rem; }
    .ui-bottom-left { left: 3rem; bottom: 4rem; }
    .ui-bottom-right { right: 3rem; bottom: 4rem; }
}

@media (max-width: 768px) {
    .color-palette-wrapper { top: 1rem; padding: 0.5rem; gap: 0.5rem; }
    .color-swatch { width: 1.5rem; height: 1.5rem; }
    .hero-slide.ui-card-mode { width: 100%; height: 100%; border-radius: 0; }
    .ui-top-nav-pill { display: none; }
    .ui-top-right { top: 1.5rem; right: 1.5rem; gap: 0.5rem; }
    .ui-top-right .ui-get-started-btn { display: none !important; }
    .play-btn-circle { width: 60px; height: 60px; font-size: 1.2rem; }
    .ui-bottom-left { left: 1.5rem; bottom: 6rem; max-width: 100%; padding-right: 1rem; }
    .ui-headline { font-size: 2.5rem; margin-bottom: 1rem; }
    .ui-description { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .ui-bottom-right { bottom: 1.5rem; right: 1.5rem; gap: 0.5rem; }
    .explore-label { font-size: 0.9rem; }
    .explore-sub { display: none; }
    .explore-circle-btn { width: 45px; height: 45px; font-size: 1rem; }
}


/* ========================================= */
/* --- 4. MOBILE MENU OVERLAY (Pop-over) --- */
/* ========================================= */
.mobile-menu {
    position: fixed;
    top: 5.5rem; 
    right: 1.5rem; 
    left: auto; 
    width: 90%; 
    max-width: 320px; 
    height: auto; 
    background-color: var(--color-white);
    z-index: 200; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--color-border-light);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px) scale(0.95); 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.menu-close-btn {
    position: absolute;
    top: 1rem;  
    right: 1rem; 
    color: var(--color-text-light);
    font-size: 1.2rem; 
    cursor: pointer;
    transition: color 0.3s;
}
.menu-close-btn:hover { color: var(--color-primary); }

.mobile-menu > .theme-toggle-btn {
    position: absolute;
    top: 0.8rem;  
    left: 1rem; 
    font-size: 1.2rem; 
    width: auto;
    height: auto;
    padding: 0;
}

.nav-links-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 1rem; 
    margin-top: 1rem;
}

.nav-links-mobile .nav-link {
    font-size: 1.1rem; 
    font-weight: 500;
    color: var(--color-text-dark);
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid transparent;
}

.nav-links-mobile .nav-link:hover {
    color: var(--color-primary);
    padding-left: 5px; 
}

.mobile-menu .search-container {
    margin-top: 1.5rem;
    width: 100%;
}
.mobile-menu .search-input {
    background-color: var(--color-bg-light-2);
}

.mobile-menu .btn-primary {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}


/* ========================================= */
/* --- 5. ANIMATIONS --- */
/* ========================================= */
@keyframes slideInDown {
    0% { transform: translate(-50%, -150%); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}
@keyframes slideInLeft {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes zoomFadeIn {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.animate-slide-down { opacity: 0; animation: slideInDown 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.2s; }
.animate-slide-left { opacity: 0; animation: slideInLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.4s; }
.animate-slide-right { opacity: 0; animation: slideInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.animate-zoom-in { opacity: 0; animation: zoomFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.6s; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 0.7s; }
.delay-4 { animation-delay: 0.9s; }


/* ========================================= */
/* --- 6. SEARCH SECTION (Floating Desktop Pill) --- */
/* ========================================= */
.search-section {
    padding: 3rem 0;
    background-color: var(--color-bg-light-1);
    position: relative; 
    z-index: 20;
}

.section-title {
    font-size: 2.25rem; 
    font-weight: 700;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 1.5rem; 
}

/* Default Mobile Styles for Form */
.find-home-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; 
    background-color: var(--color-white);
    padding: 1rem; 
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px; 
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
    background: var(--color-bg-light-2);
    border-radius: 8px;
}
.form-input-wrapper.flex-full { flex-basis: 100%; }
.form-input-wrapper.flex-half { flex-basis: calc(50% - 0.25rem); }

.form-input-icon {
    position: absolute;
    left: 1rem; 
    color: var(--color-text-light);
}

.form-input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem; 
    border: 1px solid transparent;
    font-size: 1rem; 
    background: transparent;
    color: var(--color-text-dark);
    border-radius: 8px;
}
.form-input-wrapper input:focus { outline: none; border-color: var(--color-primary); background: var(--color-white); }

.form-submit-btn {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    flex-grow: 1;
    transition: background 0.3s;
}

/* DESKTOP PILL OVERRIDE (Redesigned Main Filter) */
@media (min-width: 1024px) {
    .find-home-form {
        display: flex !important;
        flex-direction: row !important; /* Forces side-by-side */
        flex-wrap: nowrap !important;   /* Prevents stacking */
        align-items: center !important;
        gap: 0 !important;
        padding: 0.5rem !important;
        background-color: var(--color-white);
        border: 1px solid var(--color-border-light);
        border-radius: 100px; /* Pill Shape */
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        max-width: 980px;
        width: 90%; 
        margin: -3.5rem auto 0 auto !important; /* Float over hero */
        position: relative;
        z-index: 30;
    }

    .form-input-wrapper, 
    .form-input-wrapper.flex-full, 
    .form-input-wrapper.flex-half {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 1.5rem !important;
        height: 3.5rem;
        display: flex;
        align-items: center;
        border-right: 1px solid var(--color-border-light);
        margin: 0 !important;
    }

    /* Remove divider from the last input */
    .form-input-wrapper:nth-last-child(2) {
        border-right: none !important;
    }

    .form-input-icon {
        position: absolute;
        left: 1.5rem !important;
        top: 50%;
        transform: translateY(-50%);
        color: var(--color-primary);
        font-size: 1.1rem;
    }

    .form-input-wrapper input {
        padding: 0 0 0 2.5rem !important;
        margin: 0 !important;
        border: none !important;
        height: 100%;
        font-weight: 600;
        color: var(--color-text-dark);
        background: transparent !important;
    }
    
    .form-input-wrapper:hover {
        background-color: var(--color-bg-light-2) !important;
        border-radius: 30px !important;
    }

    .form-submit-btn {
        width: auto !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
        padding: 1rem 2rem !important;
        margin-left: 0.5rem !important;
        border-radius: 50px !important;
        font-size: 1rem;
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .search-section {
        padding-top: 2rem; 
        padding-bottom: 5rem;
        margin-top: 0;
    }
    .search-section .section-title {
        display: none;
    }
    
    /* Search Bar Overlay Fix for Inner Pages */
    .page-header .find-home-form {
        margin: 3rem auto 0 auto !important; /* Positive margin pushes it down */
        transform: none !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
}

/* Hide Search on Mobile (since we use the Sticky Pill) */
@media (max-width: 1023px) {
    .search-section,
    .page-header .find-home-form {
        display: none !important;
    }
    .ui-top-right a.ui-icon-btn {
        display: none !important;
    }
}


/* ========================================= */
/* --- 7. PROPERTY CARDS (Tiny 2.0) --- */
/* ========================================= */
.property-card {
    background: transparent;
    border: none;
    box-shadow: none; 
    display: flex;
    flex-direction: column;
    gap: 8px; 
    position: relative;
    cursor: pointer;
}

.property-card .property-image {
    width: 100%;
    height: auto !important; 
    aspect-ratio: 1 / 1 !important; /* Forces Square */
    object-fit: cover; 
    border-radius: 16px !important;
    display: block;
    background-color: var(--color-bg-light-2);
}

.card-content { padding: 0; display: flex; flex-direction: column; gap: 2px; }

.property-title {
    font-size: 0.9rem; font-weight: 700; color: var(--color-text-dark);
    margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.property-location { 
    font-size: 0.8rem; color: var(--color-text-medium); margin: 0; 
    display: flex; align-items: center; gap: 4px; 
}
.property-location i { color: var(--color-text-light); font-size: 0.8rem; }

.card-footer { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.property-amenities { display: flex; gap: 10px; margin: 0; }
.property-amenities span { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 0.8rem; color: var(--color-text-dark); }
.property-amenities span i { color: var(--color-primary); font-size: 0.8rem; }

.property-price strong { color: var(--color-primary); font-size: 0.95rem; font-weight: 800; }
.property-price span { font-size: 0.85rem; color: var(--color-text-dark); }

/* Favorite Button */
.favorite-btn {
    border-radius: 100%;
    font-size: 1.2rem;
    color: var(--color-absolute-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px; 
    right: 8px; 
    z-index:30;
    width: 28px; height: 28px; border: none; background: transparent;
}
.favorite-btn:hover {
    background-color:var(--color-primary);
    border-color:var(--color-absolute-white);
    color:var(--color-absolute-white);
}
.favorite-btn.active {
    background-color:var(--color-primary-dark);
    border-color:var(--color-absolute-white);
    color:var(--color-absolute-white);
}
.favorite-btn.active i { font-weight: 200; }

/* --- A. GALLERY PAGE (GRID) --- */
.property-grid { 
    display: grid;
    gap: 1rem; 
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 cols */
}
@media (min-width: 600px) { .property-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .property-grid { grid-template-columns: repeat(5, 1fr); } } 
@media (min-width: 1400px) { .property-grid { grid-template-columns: repeat(6, 1fr); } }

/* ========================================= */
/* --- B. HOMEPAGE (SCROLL LAYOUT) --- */
/* ========================================= */
.featured-section .property-grid {
    display: flex !important;       
    overflow-x: auto !important;    
    flex-wrap: nowrap !important;   
    gap: 1rem;
    padding-bottom: 2rem;
    scrollbar-width: none;          
    grid-template-columns: none !important; 
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}
.featured-section .property-grid::-webkit-scrollbar { display: none; }

/* 1. DEFAULT SIZE (Mobile) - 200px */
.featured-section .property-card-link {
    flex: 0 0 auto;       
    width: 200px !important;      /* Set to 200px for mobile */
    min-width: 200px !important;
    scroll-snap-align: start;
}

/* Mobile Image & Text Adjustments */
.featured-section .property-card .property-image { 
    height: 135px; /* Reduced height to match 200px width */
}
.featured-section .property-card .card-content { 
    padding: 0.8rem; /* Tighter padding */
}
.featured-section .property-card .property-title { 
    font-size: 0.9rem; /* Smaller font */
}

/* 2. TABLET OVERRIDE (768px+) - Larger Cards */
@media (min-width: 768px) {
    .featured-section .property-card-link { width: 300px !important; }
    .featured-section .property-card .property-image { height: 180px; }
}

/* 3. DESKTOP OVERRIDE (1024px+) - Back to Tiny */
@media (min-width: 1024px) {
    .featured-section .property-card-link { width: 200px !important; min-width: 200px !important; }
}

/* Homepage Carousel Rows */
.carousel-row { margin-bottom: 3rem; }
.row-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1rem; padding-right: 1rem; }
.row-title { font-size: 1.5rem; font-weight: 700; color: var(--color-text-dark); margin: 0; }
.see-all-link { font-size: 0.9rem; font-weight: 600; color: var(--color-primary); text-decoration: none; transition: color 0.3s; }
.see-all-link:hover { color: var(--color-primary-dark); text-decoration: underline; }

@media (max-width: 768px) {
    .row-title { font-size: 1.25rem; }
    .carousel-row { margin-bottom: 2.5rem; }
}


/* ========================================= */
/* --- 8. INNER PAGES (About, Contact, etc.) --- */
/* ========================================= */

/* Page Headers */
.page-header {
    background-color: var(--color-dark-blue);
    padding: 4rem 1.5rem;
    text-align: center;
    color: var(--color-absolute-white);
}
.page-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-subtitle { font-size: 1.125rem; color: var(--color-text-inverted); font-weight: 400; }
.page-subtitle-link { color: var(--color-text-inverted-light); margin-top: 1rem; }
.page-subtitle-link a { color: var(--color-primary); text-decoration: underline; }
.page-header-form { margin-top: 2.5rem; }

/* Testimonials */
.featured-section, .testimonials-section, .faq-section { padding: 4rem 0; background-color: var(--color-white); }
.testimonial-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-primary);
}
.testimonial-text { font-size: 1.125rem; color: var(--color-text-medium); font-style: italic; line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-author { font-size: 1.125rem; font-weight: 600; color: var(--color-text-dark); margin-bottom: 0.25rem; }
.testimonial-location { font-size: 0.875rem; color: var(--color-text-light); }

/* FAQ */
.faq-section { border-top: 1px solid var(--color-border-light); }
.faq-grid { display: flex; flex-direction: column; gap: 1rem; max-width: 900px; margin: 2rem auto 0 auto; }
.faq-item { background-color: var(--color-white); border: 1px solid var(--color-border-light); border-radius: 8px; overflow: hidden; }
.faq-question { padding: 1.5rem; font-weight: 600; color: var(--color-text-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; transition: transform 0.3s; }
.faq-item[open] .faq-question::after { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem 1.5rem 1.5rem; border-top: 1px solid var(--color-border-light); color: var(--color-text-medium); }

/* About Page */
.about-story-section { padding: 4rem 0; background-color: var(--color-white); }
.about-story-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .about-story-grid { grid-template-columns: 1fr 1fr; } }
.section-title-left { font-size: 2.25rem; font-weight: 700; color: var(--color-text-dark); text-align: left; margin-bottom: 1.5rem; }
.about-story-content p { font-size: 1rem; color: var(--color-text-medium); line-height: 1.8; margin-bottom: 1.5rem; }
.about-story-image img { width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* Values */
.values-section { padding: 4rem 0; background-color: var(--color-bg-light-1); }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { background: var(--color-white); border-radius: 1rem; padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border-light); }
.value-icon-wrapper { width: 64px; height: 64px; border-radius: 50%; background-color: var(--color-primary-light-bg); color: var(--color-primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto; font-size: 1.5rem; }
.value-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--color-text-dark); }
.value-description { font-size: 1rem; color: var(--color-text-medium); line-height: 1.7; }

/* Mission & Stats */
.mission-section { padding: 4rem 0; background-color: var(--color-white); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-item { padding: 1rem; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--color-primary); }
.stat-label { font-size: 1.125rem; color: var(--color-text-medium); margin-top: 0.25rem; }

/* Contact Page */
.contact-info-section { padding: 4rem 0; background-color: var(--color-bg-light-1); }
.contact-info-text { font-size: 1rem; color: var(--color-text-medium); line-height: 1.7; }
.contact-form-section { padding: 4rem 0; background-color: var(--color-white); }
.contact-form-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-form-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.form-group { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-text-dark); }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-border-medium); border-radius: 0.5rem; font-size: 1rem; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.form-submit-btn-full { padding: 0.75rem; width: 100%; font-size: 1rem; }
.contact-map-wrapper iframe { width: 100%; height: 500px; border-radius: 1rem; border: 1px solid var(--color-border-light); }

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--color-text-medium);
}
.form-group-checkbox input { margin-top: 4px; width: auto; accent-color: var(--color-primary); }
.form-group-checkbox a { color: var(--color-primary); text-decoration: underline; }

/* Booking Page */
.intro-text { padding-top: 2rem; max-width: 900px; margin: 0 auto; text-align: left; }
.book-direct-section { padding: 4rem 0; background-color: var(--color-bg-light-1); }
.book-direct-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; text-align: center; }
.book-direct-list li { padding: 1.5rem; background: var(--color-white); border-radius: 8px; border: 1px solid var(--color-border-light); transition: transform 0.3s; }
.book-direct-list li:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.book-direct-list .fas { color: var(--color-primary); font-size: 1.75rem; margin-bottom: 0.75rem; }
.book-direct-list p { margin: 0; font-weight: 600; font-size: 1rem; color: var(--color-text-dark); }

/* Booking & Reviews Form Inputs */
.form-row-2-col { display: flex; gap: 10px; width: 100%; margin-bottom: 1rem; }
.form-row-2-col .custom-input { margin-bottom: 0; width: 100%; }

.star-rating-widget { display: flex; gap: 5px; font-size: 1.5rem; cursor: pointer; margin-bottom: 1rem; }
.star-rating-widget i { color: var(--color-border-medium); transition: color 0.2s; }
.star-rating-widget i.active, .star-rating-widget i.hovered { color: var(--color-primary); }

/* Details Paragraph (Replaced version) */
.modern-subtitle-paragraph {
    color: var(--color-text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-bottom: 2rem;
}

/* Read More / See Less Logic */
.description-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.read-more-btn {
    display: block; 
    width: fit-content;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}
.read-more-btn:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* Show More Amenities Button */
.show-more-amenities-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.5rem 0;
}
.show-more-amenities-btn:hover { color: var(--color-primary-dark); text-decoration: underline; }
.show-more-amenities-btn i { font-size: 0.8rem; transition: transform 0.3s; }

/* CTA Section */
.cta-section { background: var(--color-dark-blue); padding: 5rem 1.5rem; text-align: center; color: white; }
.cta-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.cta-subtitle { font-size: 1.125rem; color: var(--color-text-inverted); max-width: 650px; margin: 0 auto 2rem auto; line-height: 1.7; }
.cta-btn { background: var(--color-primary); color: white; padding: 1rem 2.5rem; border-radius: 8px; font-weight: 600; }

/* Global Buttons */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    padding: 0.6rem 1.25rem; 
    transition: background-color 0.3s;
    display: inline-block;
    border-radius: 4px;
}
.btn-primary:hover { background-color: var(--color-primary-dark); }

.btn-secondary {
    padding: 0.75rem 2rem;
    border: 1px solid var(--color-border-dark);
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}
.btn-secondary:hover { background: var(--color-black);  color: var(--color-white); }
.section-subtitle { text-align: center; color: var(--color-text-medium); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========================================= */
/* --- 9. MOBILE SPECIFIC (Overflow Fixes) --- */
/* ========================================= */
.property-main-content {
    min-width: 0; 
    width: 100%;
}

@media (max-width: 768px) {
    /* Map Overflow */
    .contact-map-wrapper,
    .contact-map-wrapper iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
        border-radius: 8px;
    }

    /* About Text Overflow */
    .modern-subtitle-paragraph {
        font-size: 0.95rem;
        width: 100%;
        word-break: break-word;
        hyphens: auto;
    }

    /* Amenities Chips */
    .amenities-chips { width: 100%; gap: 0.5rem; }
    .amenity-chip {
        max-width: 100%;
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
        white-space: nowrap;      
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .property-main-content {
        padding-right: 0;
        overflow-x: hidden;
    }
}


/* ========================================= */
/* --- 10. NEW: MOBILE STICKY PILL (Search) --- */
/* ========================================= */
/* ========================================= */
/* --- 10. NEW: MOBILE STICKY PILL (Search) --- */
/* ========================================= */
.mobile-search-wrapper {
    /* STRICTLY HIDDEN BY DEFAULT (Desktop) */
    display: none !important; 
    
    position: sticky;
    top: 1rem;
    z-index: 900;
    margin-top: -4.5rem;
    margin-bottom: 1rem;
    justify-content: center;
    transition: all 0.3s ease;
}

/* ONLY Show on Mobile/Tablet (Screens narrower than 1023px) */
@media (max-width: 1023px) {
    .mobile-search-wrapper { display: flex !important; }
}

.mobile-search-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    height: 50px; 
    padding: 0 0.5rem 0 1rem; 
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.search-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1; 
    min-width: 0; 
}

.search-item label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffffff; 
    line-height: 1;
    margin-bottom: 2px;
    transition: color 0.3s;
}

.search-item input {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff; 
    font-size: 0.75rem;
    padding: 0;
    outline: none;
    text-overflow: ellipsis; 
    transition: color 0.3s;
}

.search-item input::placeholder { color: rgba(255,255,255, 0.7); transition: color 0.3s; }

.divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.4);
    margin: 0 8px; 
    transition: background-color 0.3s;
}

.search-btn-circle {
    width: 38px;
    height: 38px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
    margin-left: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Scrolled State */
.mobile-search-wrapper.scrolled .mobile-search-pill {
    transform: scale(0.95); 
    background: var(--color-white); 
    border-color: var(--color-border-medium);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.mobile-search-wrapper.scrolled .search-item label { color: var(--color-text-dark); }
.mobile-search-wrapper.scrolled .search-item input { color: var(--color-text-dark); }
.mobile-search-wrapper.scrolled .search-item input::placeholder { color: var(--color-text-light); }
.mobile-search-wrapper.scrolled .divider { background: var(--color-border-medium); }

/* Inner Page Search Pill Fix */
.mobile-search-wrapper.inner-page-search {
    margin-top: 1rem; 
    margin-bottom: 2rem;
    top: 80px; 
    z-index: 90; 
}
.mobile-search-wrapper.inner-page-search .mobile-search-pill {
    background: var(--color-white);
    border-color: var(--color-border-medium);
}
.mobile-search-wrapper.inner-page-search .search-item label,
.mobile-search-wrapper.inner-page-search .search-item input,
.mobile-search-wrapper.inner-page-search .search-item input::placeholder {
    color: var(--color-text-dark);
}
.mobile-search-wrapper.inner-page-search .divider {
    background: var(--color-border-medium);
}

/* ========================================= */
/* --- 11. NEW: MASONRY GALLERY MODAL --- */
/* ========================================= */
.masonry-modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-light-1);
    z-index: 10005; 
    overflow-y: auto; 
    padding-bottom: 5rem;
    animation: slideInUp 0.3s ease-out;
}

.masonry-header {
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 10;
    margin-bottom: 2rem;
}
.masonry-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-text-dark); }

.masonry-close-btn {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}
.masonry-close-btn:hover { background-color: var(--color-bg-light-2); }

.masonry-grid {
    column-count: 1; 
    column-gap: 1rem; 
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}
.masonry-item img { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }
.masonry-item:hover img { transform: scale(1.03); }
.masonry-item::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.2s; }
.masonry-item:hover::after { background: rgba(0,0,0,0.1); }

@media (min-width: 640px) { .masonry-grid { column-count: 2; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 3; } }
@keyframes slideInUp { from { transform: translateY(100%); } to { transform: translateY(0); } }


/* ========================================= */
/* --- 12. NEW: INFINITE SCROLL REVIEWS --- */
/* ========================================= */
.reviews-scroll-wrapper {
    width: 100%;
    max-width: 100%; 
    overflow: hidden; 
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 2rem 0; 
}
.reviews-track {
    display: flex;
    gap: 2rem;
    width: max-content; 
    animation: scroll-horizontal 45s linear infinite; 
}
.reviews-track:hover { animation-play-state: paused; }

.review-card {
    width: 350px; 
    flex-shrink: 0;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-bg-light-2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.review-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.15);
    border-color: var(--color-primary);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-bg-light-2);
    padding-bottom: 1rem;
}
.review-text {
    font-size: 0.95rem;
    color: var(--color-text-medium);
    line-height: 1.6;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@keyframes scroll-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
@media (max-width: 768px) {
    .review-card { width: 280px; padding: 1.5rem; }
}

/* No Reviews State */
.no-reviews-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: var(--color-bg-light-2);
    border-radius: 16px;
    text-align: center;
    border: 2px dashed var(--color-border-medium);
    margin: 2rem 0;
}
.no-reviews-icon { font-size: 3rem; color: var(--color-text-light); margin-bottom: 1.5rem; opacity: 0.6; }
.no-reviews-title { font-size: 1.25rem; font-weight: 700; color: var(--color-text-dark); margin-bottom: 0.5rem; }
.no-reviews-sub { font-size: 1rem; color: var(--color-text-medium); max-width: 400px; line-height: 1.6; }


/* ========================================= */
/* --- 13. FOOTER & FLOATING NAV --- */
/* ========================================= */
.footer { background-color: var(--color-dark-blue); color: var(--color-text-inverted); padding-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr 1.5fr; } }

/* View All Centering Fix */
.view-all-container {
    display: flex;             
    justify-content: center;   
    align-items: center;       
    width: 100%;               
    margin-top: 3rem;          
    text-align: center;        
}

.footer-logo { font-size: 1.8rem; font-weight: 700; color: white; margin-bottom: 1rem; }
.footer-title { font-size: 1.2rem; font-weight: 600; color: white; margin-bottom: 1rem; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a:hover { color: var(--color-primary); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; color: var(--color-text-inverted-light); }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: var(--color-text-inverted-light); font-size: 1.2rem; transition: color 0.3s; }
.social-links a:hover { color: var(--color-primary); }
.footer-bottom { background: var(--color-dark-blue-darkest); padding: 1.5rem 0; text-align: center; font-size: 0.9rem; color: var(--color-icon-gray); border-top: 1px solid var(--color-dark-blue-medium); }
.footer-bottom-content { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a:hover { color: var(--color-absolute-white); }
@media (min-width: 768px) { .footer-bottom-content { flex-direction: row; justify-content: space-between; } }

/* Newsletter */
.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.newsletter-form input { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-border-dark); background-color: var(--color-dark-blue-medium); color: var(--color-absolute-white); font-size: 0.875rem; }
.newsletter-form input:focus { outline: none; border-color: var(--color-primary); }
.newsletter-form button { width: 100%; }
@media (min-width: 768px) { .newsletter-form { flex-direction: row; } .newsletter-form button { width: auto; flex-shrink: 0; } }

/* Floating Buttons */
.floating-btn { position: fixed; right: 1.5rem; width: 4rem; height: 4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px var(--color-shadow-medium); z-index: 1000; color: var(--color-black); transition: transform 0.3s; }
.floating-btn i { font-size: 2.25rem; line-height: 1; }
#whatsapp-btn { background-color: #25D366; color: white; bottom: 1.5rem; }
#whatsapp-btn:hover { transform: scale(1.05); }
#back-to-top-btn { background-color: var(--color-bg-light-2); color: var(--color-text-dark); bottom: 6rem; opacity: 0; visibility: hidden; transform: translateY(10px); }
#back-to-top-btn.active { opacity: 1; visibility: visible; transform: translateY(0); }

/* Mobile Floating Button Adjustments */
@media (max-width: 760px) {
    .floating-btn { 
        width: 3.5rem; 
        height: 3.5rem; 
        right: 1rem; 
    }
    #whatsapp-btn { bottom: 6rem; }
    #back-to-top-btn { bottom: 11rem; }
    .footer-bottom { padding-bottom: 90px; }
}


/* ========================================= */
/* --- 14. BOTTOM NAVIGATION & VISIBILITY --- */
/* ========================================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 0.75rem;
    font-weight: 500;
    width: 20%; 
    transition: color 0.3s;
}

.nav-item i { font-size: 1.3rem; margin-bottom: 4px; transition: transform 0.2s; }
.nav-item.active, .nav-item:hover { color: var(--color-primary); }

/* Center Floating "Book" Button */
.nav-item.center-item { position: relative; top: -15px; }
.center-circle {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
    border: 4px solid var(--color-bg-light-1);
    margin-bottom: 2px;
}
.nav-item.center-item i { color: white; font-size: 1.2rem; margin-bottom: 0; }

/* Sticky Booking Bar (Details Page) */
.mobile-booking-bar {
    position: fixed;
    bottom: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    border-top: 1px solid var(--color-border-light);
}
.mobile-price-info h4 { margin: 0; color: var(--color-dark-blue); font-size: 1.2rem; }

@media (min-width: 1024px) {
    .mobile-booking-bar { display: none; }
    .mobile-bottom-nav { display: none; }
    
    /* Show Top Hamburger ONLY on Homepage Hero */
    .hero #menu-open-btn { display: flex !important; }
}

@media (max-width: 760px) {
    .mobile-booking-bar { bottom: 70px; }
}

/* Default Hiding for Desktop/Mobile switch */
#menu-open-btn,
.menu-toggle-btn { 
    display: none !important; 
}
/* --- Desktop vs Mobile Video Logic --- */

/* Default: Hide mobile video, show desktop */
.mobile-hero-video {
    display: none;
}
.desktop-hero-video {
    display: block;
}

/* Mobile Breakpoint (switches at 768px) */
@media (max-width: 768px) {
    .mobile-hero-video {
        display: block;
    }
    .desktop-hero-video {
        display: none;
    }
}


.property-card .property-amenities {
    gap: 20px; /* Tighter gap */
    white-space: nowrap; /* Forces single line */
    overflow: hidden; /* Hides anything that doesn't fit */
}

.property-card .property-amenities span {
    font-size: 0.7rem; /* Much smaller text */
    color: var(--color-text-light);
    background: var(--color-bg-light-2); /* Subtle pill background */
    padding: 2px 8px;
    border-radius: 4px;
}

.property-card .property-amenities span i {
    font-size: 0.7rem; /* Match icon to text */
}

/* ========================================= */
/* --- SKELETON LOADING (DETAILS PAGE) --- */
/* ========================================= */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: #f0f0f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: transparent !important; /* Hide any placeholder text */
    border-radius: 4px;
    cursor: default;
}

/* Specific shapes for the details page */
.skeleton-text {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.skeleton-block {
    display: block;
    width: 100%;
    height: 100%;
}

.skeleton-p {
    height: 100px; /* block for description */
    width: 100%;
    display: block;
}
/* ========================================= */
/* --- SKELETON CARD STYLING --- */
/* ========================================= */

/* 1. The Container */
.skeleton-card {
    /* Inherits .property-card styles automatically */
    pointer-events: none; /* User can't click it */
}

/* 2. The Image Placeholder (Crucial: Needs Height) */
.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Forces it to be a square like real images */
    border-radius: 16px;
    background: #e5e7eb; /* Fallback grey */
    margin-bottom: 8px;
    display: block;
}

/* 3. Text Line Placeholders */
.skeleton-text {
    height: 1rem;
    width: 70%;       /* Simulates Title length */
    margin-bottom: 6px;
    border-radius: 4px;
}

.skeleton-text-short {
    height: 0.9rem;
    width: 40%;       /* Simulates Price length */
    margin-top: 4px;
    border-radius: 4px;
}

/* 4. Dark Mode Adjustments */
:root[data-theme="dark"] .skeleton-image,
:root[data-theme="dark"] .skeleton-text,
:root[data-theme="dark"] .skeleton-text-short {
    background: #374151; /* Darker grey for dark mode */
}