/* Custom Base Styles */
:root {
    --gold: #D4AF37;
    --charcoal: #1A1A1A;
    --cream: #F9F9F9;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* Glassmorphism */
.glass-overlay {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

/* Navbar Styles */
#navbar {
    background: transparent;
    transition: all 0.5s ease;
    color: white;
}

/* Hero Search Responsive Fixes */
@media (max-width: 768px) {
    .glass-overlay {
        border-radius: 1.5rem !important;
        padding: 1rem !important;
    }

    .hero-search-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .search-divider {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .search-btn-col {
        width: 100%;
        margin-top: 0.5rem;
    }

    .custom-dropdown .dropdown-menu {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 85% !important;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 9999;
        transition: opacity 0.3s, visibility 0.3s !important;
    }

    .custom-dropdown .dropdown-menu.active {
        box-shadow: 0 0 0 9999px rgba(11, 11, 11, 0.8), 0 20px 40px rgba(0, 0, 0, 0.5) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

#navbar .logo,
#navbar a,
#navbar #langToggle {
    color: white;
}

#navbar a.active {
    color: var(--gold);
}

/* Scrolled State */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
}

nav.scrolled .logo,
nav.scrolled a,
nav.scrolled #langToggle {
    color: var(--charcoal) !important;
}

nav.scrolled a.active {
    color: var(--gold) !important;
}

/* Magnetic Button Base */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Logo visibility — white at top, natural when scrolled */
.navbar-logo {
    filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
    transition: filter 0.5s ease;
}

nav.scrolled .navbar-logo {
    filter: brightness(1) invert(0) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
}

/* 8. Global Network Arcs */
.animate-dash {
    animation: dash-flow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes dash-flow {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Parallax Image Fix */
.parallax-img {
    height: 120%;
    width: 100%;
    object-fit: cover;
    margin-top: -10%;
}

/* Skeleton Loading State Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Fixed Parallax Background */
.fixed-parallax {
    background-attachment: fixed;
    transform: translateZ(0);
    /* Hardware acceleration */
}

/* Pulsing Mouse Animation */
@keyframes pulse-scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 0.1;
    }

    50% {
        transform: translate(-50%, 15px);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 0.1;
    }
}

.animate-pulse-scroll {
    animation: pulse-scroll 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* No Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Property Card Enhancements */
.property-card,
.prop-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.property-card:hover,
.prop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.property-card:hover .group-hover\:scale-110,
.prop-card:hover .group-hover\:scale-110 {
    transform: scale(1.08);
}

.property-feature-row {
    transition: all 0.3s ease;
}

.property-card:hover .property-feature-row,
.prop-card:hover .property-feature-row {
    border-color: rgba(212, 175, 55, 0.3);
}

/* Custom Dropdown Styles */
.custom-dropdown .dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown .dropdown-trigger svg.rotate {
    transform: rotate(180deg);
}

.custom-dropdown .dropdown-trigger svg {
    transition: transform 0.3s ease;
}

/* ============================================================
   MOBILE NAVIGATION DRAWER
   ============================================================ */
/* ============================================================
   PREMIUM MOBILE DRAWER (App-Like Feel)
   ============================================================ */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 360px;
    height: 100%;
    background: #111111;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    box-shadow: none;
    border-left: 1px solid transparent;
    padding: 0;
    visibility: hidden;
}

#mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(212, 175, 55, 0.15);
}

/* Header Area */
.mobile-menu-header {
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Nav Links Area */
.mobile-menu-body {
    flex: 1;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-menu-body a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateX(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-body a::after {
    content: '→';
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.15;
    color: #ffffff;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-menu-body a {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered link animation */
#mobile-menu.open .mobile-menu-body a:nth-child(1) {
    transition-delay: 0.1s;
}

#mobile-menu.open .mobile-menu-body a:nth-child(2) {
    transition-delay: 0.2s;
}

#mobile-menu.open .mobile-menu-body a:nth-child(3) {
    transition-delay: 0.3s;
}

#mobile-menu.open .mobile-menu-body a:nth-child(4) {
    transition-delay: 0.4s;
}

#mobile-menu.open .mobile-menu-body a:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-menu-body a:hover,
.mobile-menu-body a.active {
    color: #D4AF37;
    border-bottom-color: rgba(212, 175, 55, 0.25);
    padding-left: 4px;
}

.mobile-menu-body a:hover::after,
.mobile-menu-body a.active::after {
    opacity: 1;
    color: #D4AF37;
    transform: translateX(0);
}

/* Footer Area */
.mobile-menu-footer {
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-close-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close-btn:hover {
    background: #D4AF37;
    color: white;
}

/* White logo rule for mobile sidebar & footer */
.mobile-sidebar-logo,
.footer-logo {
    filter: brightness(0) invert(1);
}

/* Hamburger icon animation */
#hamburger-btn {
    cursor: pointer;
    z-index: 51;
    position: relative;
}

#hamburger-btn.is-open .bar-top {
    transform: rotate(45deg) translate(6px, 6px);
}

#hamburger-btn.is-open .bar-mid {
    opacity: 0;
    transform: scaleX(0);
}

#hamburger-btn.is-open .bar-bot {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger-bar {
    display: block;
    width: 28px;
    height: 2px;
    background: #D4AF37;
    margin: 5px 0;
    transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: left center;
}

/* ============================================================
   MOBILE PARALLAX FIX (iOS Safari doesn't support fixed bg)
   ============================================================ */
@media (max-width: 1024px) {
    .fixed-parallax {
        background-attachment: scroll;
    }
}

/* ============================================================
   TABLET RESPONSIVE (641px – 1024px)
   ============================================================ */
@media (min-width: 641px) and (max-width: 1024px) {

    /* Navbar */
    #navbar {
        padding: 1.25rem 1.5rem;
    }

    /* Section spacing */
    .py-32 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* About: Vision 2040 decorative box */
    .vision-deco-box {
        display: none;
    }

    /* Hero search bar on tablet */
    .search-pill-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    /* Community tiles text */
    .community-tile-text {
        left: 1.5rem;
        bottom: 1.5rem;
    }

    /* Map height tablet */
    #map {
        height: 380px !important;
    }
}

/* ============================================================
   MOBILE RESPONSIVE (≤640px)
   ============================================================ */
@media (max-width: 640px) {

    /* --- Navbar --- */
    #navbar {
        padding: 1rem 1.25rem;
    }

    #navbar .logo {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    /* --- Section Padding --- */
    .py-32 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .py-24 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* --- Hero Search Bar responsive styles inherited from max-width: 768px --- */

    /* --- Community Tile Text --- */
    .community-tile-text {
        left: 1rem !important;
        bottom: 1rem !important;
    }

    .community-tile-text h3 {
        font-size: 1.25rem;
    }

    /* --- Off-Plan Section --- */
    .offplan-date-card {
        display: none;
    }

    .offplan-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .offplan-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.7rem;
    }

    /* --- Property Cards --- */
    .property-card-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* --- Featured Property CTAs --- */
    .featured-cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .featured-cta-group button {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.7rem;
    }

    /* --- Pillars section --- */
    .pillar-cell {
        padding: 2rem 1.5rem;
        border-right: none !important;
    }

    /* --- About: Vision 2040 decorative box --- */
    .vision-deco-box {
        display: none;
    }

    /* --- Timeline (Desktop: horizontal / Mobile: vertical) --- */
    #timeline-section {
        overflow: visible;
        min-height: auto;
    }

    /* --- Global Network aspect ratio --- */
    .network-map-wrap {
        aspect-ratio: 4 / 3;
    }

    /* --- Map (contact page) --- */
    #map {
        height: 280px !important;
    }

    /* --- Footer Grid --- */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* --- Stats Section --- */
    .stats-counter {
        font-size: 3rem;
    }

    /* --- Contact header --- */
    .contact-hero-h1 {
        font-size: 2.5rem;
    }
}

/* ============================================================
   MOBILE VERTICAL TIMELINE STYLES
   ============================================================ */
.mobile-timeline {
    display: none;
}

.mobile-timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 3rem;
}

.mobile-timeline-item:last-child {
    padding-bottom: 0;
}

.mobile-timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: rgba(212, 175, 55, 0.2);
}

.mobile-timeline-item:last-child::before {
    display: none;
}

.mobile-timeline-dot {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #F9F9F9;
    border: 2px solid #D4AF37;
    position: relative;
    z-index: 1;
    margin-top: 0.25rem;
}

.mobile-timeline-content {
    flex: 1;
    background: #F9F9F9;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-timeline-content img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #D4AF37;
    opacity: 0.4;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Midnight Royal Footer Styles (Refined) --- */
.footer-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.bento-item {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 32px;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(212, 175, 55, 0.1);
}

/* Sliding Underline Effect */
.footer-nav-link {
    position: relative;
    padding-bottom: 4px;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Social Icon Circles */
.social-circle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    color: var(--gold);
}

.social-circle:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

/* Newsletter Styling */
.newsletter-input {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s ease;
}

.newsletter-input:focus {
    border-color: var(--gold);
    outline: none;
}

.join-btn-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Floating Contact Bar (Slim) */
.floating-contact-bar {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 110px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 99;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: scale(1.1) translateY(-5px);
}

@media (max-width: 1024px) {
    .footer-bento-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .bento-item {
        padding: 30px;
    }
}

/* ============================================================
   WHATSAPP CONCIERGE & MODAL
   ============================================================ */
.whatsapp-badge {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 98;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.whatsapp-badge:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-badge::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* WhatsApp Popup */
#whatsapp-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

#whatsapp-modal.active {
    opacity: 1;
    visibility: visible;
}

.whatsapp-card {
    background: #FFFFFF;
    width: 90%;
    max-width: 360px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

#whatsapp-modal.active .whatsapp-card {
    transform: translateY(0);
}

.whatsapp-card-header {
    background: #FFFFFF;
    padding: 2.5rem 1.5rem 1rem;
    text-align: center;
    position: relative;
}

.status-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #25D366;
    margin-bottom: 12px;
}

.status-dot-green {
    width: 6px;
    height: 6px;
    background: #25D366;
    border-radius: 50%;
}

.whatsapp-card-body {
    padding: 0 1.5rem 2.5rem;
    text-align: center;
}

.chat-preview-card {
    background: #F2F2F2;
    border-radius: 16px;
    padding: 1.2rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.preview-label {
    font-size: 9px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
}

.preview-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.whatsapp-btn-primary {
    background: #25D366;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.whatsapp-btn-primary:hover {
    background: #20BD5A;
}

.whatsapp-btn-secondary {
    display: block;
    margin-top: 1.2rem;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.whatsapp-btn-secondary:hover {
    color: #111;
}

/* Remove bulk */
.secure-footer {
    display: none;
}

.whatsapp-close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    color: white;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.whatsapp-close-modal:hover {
    opacity: 1;
}

.whatsapp-btn-primary {
    background: var(--gold);
    color: white;
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn-primary:hover {
    background: #c29d2d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.whatsapp-btn-secondary {
    color: var(--charcoal);
    opacity: 0.4;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.whatsapp-btn-secondary:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    .whatsapp-badge {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    #back-to-top {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Hero Background Animation (Ken Burns) */
@keyframes ken-burns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-2%, -1%);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

.animate-ken-burns {
    animation: ken-burns 30s ease-in-out infinite;
}

/* Floating Geometrical Elements */
@keyframes float-shape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(15px, -20px) rotate(5deg);
    }

    66% {
        transform: translate(-10px, 15px) rotate(-5deg);
    }
}

.floating-shape {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    opacity: 0.15;
    animation: float-shape 15s ease-in-out infinite;
}

.shape-circle {
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.shape-square {
    border: 1px solid var(--gold);
}

.shape-line {
    background: var(--gold);
    width: 2px;
}

/* Timeline Progress Enhancements */
.desktop-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(to right, rgba(212, 175, 55, 0.1) 0, rgba(212, 175, 55, 0.1) 10px, transparent 10px, transparent 20px);
    transform: translateY(-50%);
    z-index: 0;
}

#timeline-progress {
    position: relative;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.timeline-progress-head {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold);
}

.timeline-progress-head::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.milestone-card.active {
    border-color: var(--gold) !important;
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.15) !important;
}

/* Responsive Timeline Sync */
@media (max-width: 768px) {
    .desktop-timeline {
        display: none !important;
    }

    .mobile-timeline {
        display: block !important;
    }
}

/* Property Filter Tabs */
.filter-btn {
    padding: 0.6rem 1.5rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(26, 26, 26, 0.4);
    transition: all 0.4s ease;
    white-space: nowrap;
    border-radius: 50px;
    border: 1px solid transparent;
}

.filter-btn:hover {
    color: var(--gold);
}

.filter-btn.active {
    color: white;
    background: var(--gold);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

/* Desktop override for more architectural look */
@media (min-width: 768px) {
    .filter-btn {
        border-radius: 0;
        padding: 0.5rem 1.5rem;
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: 2px solid transparent;
    }

    .filter-btn.active {
        color: var(--gold);
        border-bottom-color: var(--gold);
    }
}

/* Mobile Edge Fade Indicator */
@media (max-width: 767px) {
    .filter-btns-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, transparent, var(--royalWhite));
        pointer-events: none;
    }
}

/* ============================================================
   PROPERTIES PAGE — TOP DROPDOWN FILTERS
   ============================================================ */
/* Dropdown Filter Bar container */
.prop-filter-bar-top {
    z-index: 40;
}

.custom-filter-dropdown {
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.cf-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.1rem;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.08);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cf-trigger:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cf-trigger svg {
    transition: transform 0.3s ease;
}

.custom-filter-dropdown.active .cf-trigger {
    border-color: var(--gold);
    background: var(--cream);
}

.custom-filter-dropdown.active .cf-trigger svg {
    transform: rotate(180deg);
}

.cf-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    width: 220px;
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-filter-dropdown.active .cf-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cf-option {
    padding: 0.65rem 1rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    text-align: left;
}

.cf-option:hover {
    background: var(--cream);
    color: var(--gold);
    border-left-color: var(--gold);
}

.cf-option.active {
    background: var(--charcoal);
    color: #ffffff;
    border-left-color: var(--gold);
}

/* Custom scrollbar for dropdown location menus */
.cf-menu.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.cf-menu.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.cf-menu.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 2px;
}

.cf-menu.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Property card hover enhancements */
.prop-card {
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.45s ease;
    cursor: pointer;
}

.prop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.08);
}

/* Custom scrollbar for sidebar location list */
#filter-sidebar .custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

#filter-sidebar .custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

#filter-sidebar .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 2px;
}

#filter-sidebar .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Vertical filter item buttons */
.filter-chip-v {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 0.875rem;
    background: var(--cream);
    border: 1px solid rgba(26, 26, 26, 0.05);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    text-align: left;
}

.filter-chip-v:hover {
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold);
    background: white;
}

.filter-chip-v.active {
    background: var(--charcoal);
    color: white;
    border-color: var(--charcoal);
}

/* Subtle gold left border on active chip */
.filter-chip-v.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
}

/* Sort Select styles (reused) */
.prop-sort-select {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--charcoal);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.15);
    padding-bottom: 2px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A1A1A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.prop-sort-select:hover {
    border-color: var(--gold);
    color: var(--gold);
}



/* ============================================================
   PROPERTIES PAGE — SIDE PANEL
   ============================================================ */
.sp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.sp-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sp-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 580px;
    height: 100%;
    background: #ffffff;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
    overscroll-behavior: contain;
}

.sp-scroll-container {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

.sp-panel.open {
    transform: translateX(0);
}

.sp-body {
    padding: 2rem 2rem 5rem;
    flex: 1;
}

/* Amenity tags */
.amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.875rem;
    background: var(--cream);
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--charcoal);
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 640px) {
    .sp-panel {
        max-width: 100%;
        border-radius: 0;
    }

    .sp-body {
        padding: 1.5rem 1.5rem 4rem;
    }
}

/* Prevent right-side dropdown menus from overflowing on smaller viewports */
@media (max-width: 1024px) {

    .custom-dropdown[data-group="budget"] .dropdown-menu,
    .custom-dropdown[data-group="beds"] .dropdown-menu {
        left: auto;
        right: 0;
    }
}

/* Custom Dropdown Option Active State */
.custom-dropdown .option.active {
    background-color: var(--gold) !important;
    color: #ffffff !important;
    font-weight: 700;
}

/* ============================================================
   ENHANCED PROPERTIES & SIDE PANEL STYLES
   ============================================================ */

/* Expanded side panel width on larger screens */
@media (min-width: 1024px) {
    .sp-panel {
        max-width: 850px;
    }
}

/* Side panel interior layout */
.sp-body-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .sp-body-grid {
        grid-template-columns: 7fr 5fr;
        gap: 2.5rem;
    }
}

/* Custom visual styling for the filter dropdown bar */
.prop-filter-bar-top {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    overflow: visible;
}

/* Active filter state indicator styling */
.custom-dropdown.has-active-value label {
    color: var(--gold) !important;
}

.custom-dropdown.has-active-value .selected-value {
    color: var(--gold) !important;
    font-weight: 700 !important;
}

/* Search input elements in location dropdown */
.dropdown-search-container {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
}

.dropdown-search-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.dropdown-search-input:focus {
    border-color: var(--gold);
}

/* Active Filter Pill elements */
.active-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -12px;
    margin-bottom: 24px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #F9F9F9;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    font-size: 0.7rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-pill:hover {
    background: #1A1A1A;
    color: #ffffff;
    border-color: #1A1A1A;
}

.filter-pill svg {
    width: 10px;
    height: 10px;
    stroke-width: 2.5;
}

/* Mortgage Estimator widget styling */
.mortgage-widget-container {
    background: #FAF8F2;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Luxury card dividers and styling */
.luxury-card-thin {
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.05);
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.luxury-card-thin:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

/* Booking inquiry form input fields */
.sp-inquiry-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.8rem;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.08);
    outline: none;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.sp-inquiry-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.1);
}

.sp-inquiry-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--charcoal);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.sp-inquiry-submit-btn:hover {
    background: var(--gold);
}

/* ============================================================
   DEVELOPMENT NOTICE BANNER
   ============================================================ */
.dev-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid var(--gold);
    color: #FFFFFF;
    z-index: 9999;
    padding: 14px 24px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: translateY(0);
}

.dev-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.dev-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.dev-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dev-banner-icon svg {
    width: 100%;
    height: 100%;
}

.dev-banner-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.dev-banner-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.dev-banner-close:hover {
    color: var(--gold);
    background-color: rgba(255, 255, 255, 0.05);
}

.dev-banner-close svg {
    width: 16px;
    height: 16px;
}

/* Shift floating badges when dev banner is active */
body.has-dev-banner #back-to-top {
    bottom: 170px;
}
body.has-dev-banner .whatsapp-badge {
    bottom: 100px;
}

@media (max-width: 1024px) {
    .dev-banner {
        padding: 12px 16px;
    }
    .dev-banner-text {
        font-size: 11px;
    }
    .dev-banner-container {
        gap: 8px;
    }
    body.has-dev-banner #back-to-top {
        bottom: 140px;
    }
    body.has-dev-banner .whatsapp-badge {
        bottom: 80px;
    }
}