/* WP Leaflet Map Plugin Styles - Valverde Themed */

/* Import Fonts */
@font-face {
    font-family: 'Figtree';
    src: url('../fonts/Figtree-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 900;
    font-display: swap;
}

@font-face {
    font-family: 'Baskerville';
    src: url('../fonts/Baskerville.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

:root {
    --valverde-primary: #394225;
    --valverde-navy: #394225bf;
    --valverde-sage: #3d4c1d;
    --valverde-cream: #394225c4;
    --valverde-dusk: #47532d;
    --valverde-white: #ffffff;
    --valverde-dark: #14180a;
    --valverde-shadow: #1a1f10;
    --valverde-shadow-light: #58653c7b;

    /* Additional variables for consistency */
    --primary-green: #4a6741;
    --secondary-green: #3b4723;
    --text-dark: #333333;
}

/* CRITICAL: Ensure all dropdowns are clickable and visible */
.wp-leaflet-filters,
.wp-leaflet-filters *,
.wp-leaflet-filters .dropdown,
.wp-leaflet-filters .dropdown-toggle,
.wp-leaflet-filters .dropdown-menu,
.wp-leaflet-filters .dropdown-item {
    pointer-events: auto !important;
    position: relative !important;
}

/* Override any theme styles that might block interactions */
.wp-leaflet-filters .dropdown-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.wp-leaflet-map-container {
    margin: 0;
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

#leaflet-map {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: black;
    /* Ensure proper coordinate system on mobile */
    overflow: hidden;
}

/* Enhanced mobile-friendly zoom controls */
@media (max-width: 768px),
(hover: none),
(pointer: coarse) {
    .leaflet-control-zoom {
        margin-bottom: 20px !important;
    }

    .leaflet-control-zoom a {
        width: 44px !important;
        height: 44px !important;
        line-height: 42px !important;
        font-size: 24px !important;
        font-weight: bold !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        color: #4a6741 !important;
        border: 2px solid #4a6741 !important;
        border-radius: 8px !important;
        margin-bottom: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .leaflet-control-zoom a:hover,
    .leaflet-control-zoom a:active {
        background-color: #4a6741 !important;
        color: white !important;
        transform: scale(1.05) !important;
    }

    .leaflet-control-zoom a:first-child {
        margin-bottom: 8px !important;
    }
}

/* Mobile zoom notification animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Add smooth transition to tile pane for dimming effect */
.leaflet-tile-pane {
    transition: opacity 0.3s ease-in-out;
}

.leaflet-interactive:focus {
    border: none;
    outline: none;
}

/* High-Performance CSS-Only Polygon Animations */
.optimized-polygon {
    will-change: opacity;
    /* Enable GPU acceleration for opacity only */
    transition: opacity 0.2s ease-out;
    /* Simple opacity transition */
    transform: translateZ(0);
    /* Force hardware acceleration */
    backface-visibility: hidden;
    /* Reduce flicker */
    opacity: 0;
    /* Start invisible for animation */
}

/* Mobile-specific polygon improvements */
@media (max-width: 768px),
(hover: none),
(pointer: coarse) {

    /* Force proper coordinate calculations for mobile markers */
    .leaflet-marker-icon.leaflet-div-icon {
        /* Ensure Leaflet's coordinate calculations work properly on mobile */
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Remove transform rules to let Leaflet handle positioning naturally */
    }

    /* Specific location marker fixes for mobile */
    .leaflet-marker-icon.location-marker {
        /* Let Leaflet handle positioning naturally - removed transform rules */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .optimized-polygon {
        /* Simple opacity transition for mobile */
        transition: opacity 0.15s ease-out;
        will-change: opacity;
        /* Keep minimal transform for GPU acceleration - removed !important to avoid interfering with Leaflet markers */
        transform: translateZ(0);
    }

    /* Prevent visual jumping during coordinate corrections */
    .optimized-polygon path {
        transition: none !important;
        /* Disable transitions during corrections */
    }

    /* Force hardware acceleration for smooth rendering */
    .leaflet-interactive {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Mobile optimization for polygon rendering */
        image-rendering: optimizeSpeed;
        shape-rendering: optimizeSpeed;
        /* Simple opacity transition only */
        transition: opacity 0.1s ease-out;
        /* Remove transform rules to avoid interfering with Leaflet marker positioning */
    }

    /* Optimize polygon stroke rendering on mobile */
    .optimized-polygon path {
        shape-rendering: optimizeSpeed;
        vector-effect: non-scaling-stroke;
        /* Prevent visual bouncing */
        transition: none;
        /* Remove transform rules to avoid interfering with Leaflet positioning */
    }

    /* Simple fade-in on mobile */
    .optimized-polygon.animate-in {
        animation: polygonFadeInMobile 0.15s ease-out forwards;
    }

    /* Smooth position corrections without visible jumps */
    .leaflet-zoom-anim .optimized-polygon {
        transition: none !important;
    }
}

@keyframes polygonFadeInMobile {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Smooth fade-in animation using CSS only */
.optimized-polygon.animate-in {
    animation: polygonFadeIn 0.3s ease-out forwards;
}

@keyframes polygonFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Status-based color transitions */
.optimized-polygon.status-available {
    fill: #ffffffc6;
    stroke: #ffffffc6;
}

.optimized-polygon.status-reserved {
    fill: #c17410ff;
    stroke: #c17410ff;
}

.optimized-polygon.status-sold {
    fill: #9c000aff;
    stroke: #9c000aff;
}

/* Animated Boundary Polygon */
.animated-boundary-polygon {
    stroke-dasharray: 10, 5;
    animation: dashMove 2s linear infinite;
    filter: drop-shadow(0 0 3px rgba(74, 103, 65, 0.6));
    transition: all 0.3s ease-in-out;
}

.animated-boundary-polygon path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes dashMove {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 15;
    }
}

/* Subtle glow effect for the animated boundary */
.animated-boundary-polygon:hover {
    filter: drop-shadow(0 0 6px rgba(74, 103, 65, 0.8));
}

/* Lightweight hover effects using CSS */
.leaflet-interactive {
    transition: transform 0.15s ease-out;
    transform: translateZ(0);
    /* GPU acceleration */
}

/* Mobile-specific touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .leaflet-interactive:not(.leaflet-marker-icon) {
        /* Disable hover effects on mobile - exclude markers to avoid positioning issues */
        transition: none;
        /* Remove transform to avoid interfering with Leaflet marker positioning */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Add subtle touch feedback instead */
    .leaflet-interactive:active {
        opacity: 0.8;
        /* No scaling to prevent coordinate displacement */
    }
}

.leaflet-interactive:hover {
    transform: translateZ(0) translateY(-2px);
    /* Simple 2px lift effect */
}

/* Simple hover styling for polygons - use JavaScript setStyle instead */

/* Pulse animation for active/selected polygons */
@keyframes polygonPulse {

    0%,
    100% {
        transform: translateZ(0) scale(1);
        filter: brightness(1);
    }

    50% {
        transform: translateZ(0) scale(1.03);
        filter: brightness(1.1);
    }
}

.optimized-polygon.active {
    animation: polygonPulse 2s ease-in-out infinite;
}

/* Loading animation for map updates */
@keyframes polygonUpdate {
    0% {
        transform: translateZ(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateZ(0) scale(1.05);
        opacity: 0.8;
    }

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

.optimized-polygon.updating {
    animation: polygonUpdate 0.6s ease-in-out;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .optimized-polygon,
    .leaflet-interactive {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }

    .optimized-polygon.loaded {
        opacity: 1;
        transform: translateZ(0) scale(1);
    }
}

/* Modern Filter Styles */
.wp-leaflet-filters {
    margin: 0;
    border-radius: 10px;
    padding: 10px;
    background: var(--valverde-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 103, 65, 0.1);
    box-shadow: 0 8px 12px var(--valverde-shadow), 0 2px 8px var(--valverde-shadow-light);
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Burger Menu Button - Hidden by default, only show on mobile */
.filters-burger-toggle {
    display: none !important;
    align-items: center;
    gap: 8px;
    background: rgba(249, 255, 238, 0.1);
    border: 2px solid rgba(74, 103, 65, 0.15);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--valverde-white);
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}

/* Mobile Header - Contains logo and burger menu */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 7px;
    background: var(--valverde-primary);
    border-radius: 12px;
}

/* Hide mobile logo on desktop, show desktop logo */
.mobile-logo {
    display: none !important;
}

.desktop-logo {
    display: block;
}

.filters-burger-toggle:hover {
    background: transparent !important;
    border-color: none !important;
    box-shadow: none !important;
}

.filters-burger-toggle:focus {
    outline: none !important;
    background-color: none !important;
    background: none !important;
}

.filters-burger-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px var(--valverde-shadow-light);
}

/* Active state for burger menu */
.filters-burger-toggle.active {
    background: transparent !important;
    /* border-color: var(--valverde-white); */
    /* box-shadow: 0 6px 20px var(--valverde-shadow); */
}

/* Burger Icon */
.burger-icon {
    display: flex;
    flex-direction: column;
    width: 18px;
    height: 14px;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.burger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--valverde-white);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Animated burger to X when active */
.filters-burger-toggle.active .burger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 5px);
}

.filters-burger-toggle.active .burger-icon span:nth-child(2) {
    opacity: 0;
}

.filters-burger-toggle.active .burger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
}

.logo-container {
    width: 65px;
    position: absolute !important;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.logo-container img {
    width: 100%;
    height: auto;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-container::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: linear-gradient(135deg, var(--valverde-primary) 0%, var(--valverde-sage) 100%);
    border-radius: 20px;
    opacity: 0.02;
    z-index: -1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    position: relative;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--valverde-navy);
    font-size: 14px;
    letter-spacing: 0.025em;
    font-family: 'Figtree', sans-serif;
}

.filter-group select,
.filter-group input {
    padding: 7px 12px;
    border: 2px solid rgba(74, 103, 65, 0.15);
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Figtree', sans-serif;
    background: rgb(249 255 238) !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--valverde-navy);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--valverde-primary);
    box-shadow:
        0 0 0 3px rgba(74, 103, 65, 0.1),
        0 4px 12px var(--valverde-shadow-light);
    transform: translateY(-1px);
    color: var(--valverde-primary) !important;
    border: 2px solid rgba(74, 103, 65, 0.15) !important;
}

.filter-group select:hover,
.filter-group input:hover {
    border-color: var(--valverde-primary);
    box-shadow: 0 2px 8px var(--valverde-shadow-light);
}

.filter-group input[type="number"] {
    width: 120px;
    padding: 7px 12px !important;
    border-radius: 8px;
    border: 2px solid rgba(74, 103, 65, 0.15);
}

.filter-group input::placeholder {
    color: var(--valverde-dusk);
    opacity: 0.7;
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: end;
}

/* Custom Bootstrap Dropdown Styles */
.custom-filter-dropdown {
    min-width: 120px;
    position: relative;
}

/* Ensure buttons are clickable */
.custom-filter-dropdown .btn.dropdown-toggle {
    background: rgb(249 255 238) !important;
    border: 2px solid rgba(74, 103, 65, 0.15) !important;
    border-radius: 8px !important;
    color: var(--valverde-navy) !important;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 11px;
    padding: 7px 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
    overflow: hidden;
    text-align: left;
    box-shadow: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    justify-content: center;
    align-items: center;
}

.custom-filter-dropdown .btn.dropdown-toggle::after {
    display: none !important;
    /* Hide Bootstrap's default arrow */
}

.custom-filter-dropdown .btn.dropdown-toggle:focus {
    box-shadow: none !important;
    outline: none !important;
}

.custom-filter-dropdown .btn.dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 103, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.custom-filter-dropdown .btn.dropdown-toggle:hover::before {
    left: 100%;
}

.custom-filter-dropdown .btn.dropdown-toggle:hover,
.custom-filter-dropdown .btn.dropdown-toggle:active,
.custom-filter-dropdown .btn.dropdown-toggle:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: var(--valverde-primary) !important;
    border: 2px solid rgba(255, 255, 255, 0.752) !important;
    color: var(--valverde-navy) !important;
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1),
        0 4px 12px var(--valverde-shadow-light) !important;
    transform: translateY(-1px);
    outline: none !important;
}

/* Active state for filter buttons when a filter is selected */
.custom-filter-dropdown .btn.dropdown-toggle.filter-active {
    background: #2c341b !important;
    border-color: #446200 !important;
    color: var(--valverde-white) !important;
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.2),
        0 4px 12px rgba(74, 103, 65, 0.3) !important;
    transform: translateY(-1px);
}

.custom-filter-dropdown .btn.dropdown-toggle.filter-active .dropdown-arrow::before {
    color: var(--valverde-white);
}

.custom-filter-dropdown .btn.dropdown-toggle.filter-active:hover {
    background: var(--valverde-sage) !important;
    border-color: var(--valverde-sage) !important;
    color: var(--valverde-white) !important;
}

.custom-filter-dropdown .selected-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.custom-filter-dropdown .dropdown-arrow {
    transform: rotate(232deg);
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
    pointer-events: none;
}

.custom-filter-dropdown .dropdown-arrow::before {
    content: '▼';
    color: var(--valverde-navy);
}

.custom-filter-dropdown .btn[aria-expanded="true"] .dropdown-arrow,
.custom-filter-dropdown .btn.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    /* Arrow rotation removed for performance */
    opacity: 0.8;
}

/* Custom Dropdown Menu - Enhanced for visibility */
.custom-filter-dropdown .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid rgba(74, 103, 65, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px var(--valverde-shadow-light) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-top: 4px !important;
    padding: 8px 0 !important;
    min-width: 100% !important;
    z-index: 999999 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: none !important;
    pointer-events: auto !important;
}

.custom-filter-dropdown .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: dropdownSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-filter-dropdown .dropdown-item {
    color: var(--valverde-navy) !important;
    padding: 8px 16px !important;
    font-family: 'Figtree', sans-serif !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: none !important;
    position: relative;
    overflow: hidden;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    top: 16px;
    left: 0px;
}

.custom-filter-dropdown .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 103, 65, 0.1), transparent);
    transition: left 0.3s ease;
}

.custom-filter-dropdown .dropdown-item:hover::before {
    left: 100%;
}

.custom-filter-dropdown .dropdown-item:hover,
.custom-filter-dropdown .dropdown-item:focus {
    background: rgba(74, 103, 65, 0.1) !important;
    color: var(--valverde-primary) !important;
    text-decoration: none !important;
}

.custom-filter-dropdown .dropdown-item.active {
    background: rgba(74, 103, 65, 0.15) !important;
    color: var(--valverde-primary) !important;
    font-weight: 600 !important;
}

/* Custom Price Input */
.custom-price-input {
    padding: 7px 12px;
    border: 2px solid rgba(74, 103, 65, 0.15);
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Figtree', sans-serif;
    background: rgb(249 255 238) !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--valverde-navy);
    width: 120px;
}

.custom-price-input::placeholder {
    color: var(--valverde-dusk);
    opacity: 0.7;
}

.custom-price-input:focus {
    outline: none;
    border-color: var(--valverde-primary);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1),
        0 4px 12px var(--valverde-shadow-light);
    transform: translateY(-1px);
}

.custom-price-input:hover {
    border-color: var(--valverde-primary);
    box-shadow: 0 2px 8px var(--valverde-shadow-light);
}

.filter-actions button {
    padding: 7px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

#clear-filters {
    background: rgb(249 255 238);
    color: #394225;
    transition: 0.3s ease;
}

#clear-filters:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.36);
    color: #ffffff;
    background-color: #465a4198;
}

#clear-filters:active {
    transform: translateY(0);
}

/* Popup Styles */
.listing-popup-content {
    font-family: Arial, sans-serif;
    max-width: 280px;
    line-height: 1.4;
}

.popup-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.popup-image {
    margin-bottom: 10px;
}

.popup-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-status {
    margin-bottom: 10px;
}

/* Modern Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    color: white;
    font-family: 'Figtree', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-available {}

.status-reserved {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.status-sold {
    background: red;
    box-shadow: 0 2px 8px rgba(66, 66, 66, 0.3);
}

.popup-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 14px;
}

.detail-item-full {
    grid-column: 1 / -1;
}

/* New Modal Layout Styles */
.custom-width {
    max-width: 95vw !important;
    width: 95vw !important;
    height: 90vh !important;
    background-color: #3d4c1c1a !important;
    border: 2px solid white !important;
    display: flex;
    flex-direction: column;
}

.modal-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: transparent;
}

/* Left Side - Main Content */
.modal-left-side {
    /* flex: 1; */
    width: 60%;
    display: flex;
    flex-direction: column;
    border-right: 2px solid white;
    /* background: var(--valverde-cream); */
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 20px;
}

/* Right Side - Unit Information Panel */
.modal-right-side {
    width: 40%;
    background: var(--valverde-white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.unit-type-selector {
    padding: 16px 20px 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    /* .modal-right-side is overflow:hidden, so the open list must stay inside the column —
       it does, since the selector sits at the top and the list is capped at 240px */
}

.unit-type-selector-label {
    display: block;
    color: var(--valverde-dusk);
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.unit-type-dropdown {
    position: relative;
}

/* Scoped to the wrapper so theme/Elementor button rules can't win on specificity */
.unit-type-selector .unit-type-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    margin: 0;
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
    color: var(--valverde-primary);
    background: var(--valverde-white);
    border: 1px solid var(--primary-green);
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
}

/* Themes tend to restyle button hover/focus/active; pin all three to brand green */
.unit-type-selector .unit-type-toggle:hover,
.unit-type-selector .unit-type-toggle:active,
.unit-type-selector .unit-type-toggle:focus {
    color: var(--valverde-primary);
    background: rgba(74, 103, 65, 0.08);
    border-color: var(--primary-green);
    box-shadow: none;
}

/* Keep a visible focus ring for keyboard users — green, not the theme's colour */
.unit-type-selector .unit-type-toggle:focus-visible,
.unit-type-selector .unit-type-option:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.unit-type-caret {
    flex-shrink: 0;
    /* margin-left:auto pushes it to the right edge in the flex row; the inline-block and
       vertical-align keep it beside the label, not floating high, if flex is overridden */
    margin-left: auto;
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--primary-green);
    transition: transform 0.15s ease;
}

.unit-type-dropdown.open .unit-type-caret {
    transform: rotate(180deg);
}

.unit-type-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--valverde-white);
    border: 1px solid var(--valverde-primary);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(15, 36, 59, 0.18);
}

.unit-type-dropdown.open .unit-type-options {
    display: block;
}

.unit-type-selector .unit-type-option {
    display: block;
    width: 100%;
    padding: 9px 10px;
    margin: 0;
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
    color: var(--valverde-primary);
    background: none;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    cursor: pointer;
}

.unit-type-selector .unit-type-option:hover,
.unit-type-selector .unit-type-option:active,
.unit-type-selector .unit-type-option:focus {
    color: var(--valverde-primary);
    background: rgba(74, 103, 65, 0.1);
    border: 0;
    box-shadow: none;
}

.unit-type-selector .unit-type-option.selected {
    font-weight: 700;
}

.unit-info-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.unit-info-header h3 {
    color: var(--valverde-primary);
    font-family: 'Figtree', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.unit-info-header p {
    color: var(--valverde-dusk);
    font-size: 14px;
    margin: 0 0 20px 0;
    opacity: 0.8;
}

#unit-info-content {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#unit-info-content.active {
    opacity: 1;
    transform: translateY(0);
}

.unit-image-container {
    margin: 20px 0;
}

.unit-floor-plan {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.unit-specifications h4 {
    color: var(--valverde-primary);
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px 0;
}

.unit-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(25, 42, 20, 0.1);
    font-size: 14px;
}

.unit-spec-item:last-child {
    border-bottom: none;
}

.unit-spec-label {
    color: var(--valverde-dusk);
    font-weight: 500;
}

.unit-spec-value {
    color: var(--valverde-navy);
    font-weight: 600;
}

/* View Container Styles */
.view-container {
    position: relative;
    width: 98%;
    height: 65%;
    overflow: hidden;
    flex-shrink: 0;
    align-self: center;
    border: 2px solid white;
    margin: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.panorama-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panorama-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.no-panorama-message {
    text-align: center;
    color: var(--valverde-navy);
    font-family: 'Figtree', sans-serif;
    padding: 40px 20px;
}

.no-panorama-message p {
    margin: 0;
    font-size: 16px;
    opacity: 0.7;
}

/* View Switch Styles */
.view-switch-container {
    background: #ffffff;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.view-switch {
    position: relative;
    display: flex;
    background: #cbcbcb;
    border-radius: 20px;
    padding: 3px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    left: -6px;
}

.view-switch-input {
    display: none;
}

.view-switch-label {
    flex: 1;
    text-align: center;
    padding: 8px 14px;
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--valverde-dusk);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    margin: 0;
}

.view-switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: linear-gradient(135deg, var(--valverde-primary) 0%, var(--valverde-sage) 100%);
    border-radius: 17px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(57, 66, 37, 0.3);
}

#view-renders:checked~.view-switch-slider {
    transform: translateX(100%);
}

#view-panorama:checked~label[for="view-panorama"],
#view-renders:checked~label[for="view-renders"] {
    color: white;
}

/* Unit Type Circles */
.unit-type-circles {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: center;
    position: relative;
}

.unit-type-circles::before {
    content: 'Available Unit Types:';
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--valverde-primary);
    margin-right: 8px;
    white-space: nowrap;
}

.unit-type-circle {
    width: 32px;
    height: 34px;
    border-radius: 50%;
    background: var(--valverde-white);
    color: var(--valverde-primary);
    border: 2px solid var(--valverde-primary);
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.unit-type-circle:hover {
    background: var(--valverde-primary);
    color: white;
    /* transform: scale(1.1); */
    box-shadow: 0 2px 8px rgba(57, 66, 37, 0.3);
}

.unit-type-circle.active {
    background: var(--valverde-primary);
    color: white;
    /* box-shadow: 0 2px 8px rgba(57, 66, 37, 0.3); */
    transform: scale(1.05);
}

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

.unit-type-circle:hover::before {
    left: 100%;
}

/* Mobile responsive adjustments for unit type circles */
@media (max-width: 768px) {
    .view-switch-container {}

    .unit-type-circles {}

    .unit-type-circles::before {
        font-size: 10px;
        margin-right: 6px;
        display: none;
    }

    .unit-type-circles::after {
        height: 20px;
        right: -6px;
    }

    .unit-type-circle {
        width: 28px;
        height: 33px;
        font-size: 12px;
    }
}

/* Property Details Section */
.property-details-section {
    flex: 1;
    /* background: var(--valverde-cream); */
}

.property-details-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--valverde-primary);
    margin-bottom: 12px;
    font-family: 'Figtree', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-details-section .section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, var(--valverde-primary) 0%, var(--valverde-sage) 100%);
    border-radius: 2px;
}

.detail-category {
    background: var(--valverde-white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-title {
    background: #587121;
    color: white;
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    padding: 8px 14px;
}

.detail-items {
    padding: 0 14px 12px 14px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(25, 42, 20, 0.1);
    font-size: 12px;
    padding: 6px 0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--valverde-dusk);
    font-weight: 500;
}

.detail-value {
    color: var(--valverde-navy);
    font-weight: 600;
    text-align: right;
}

/* Compact Details Layout */
.compact-details {
    padding: 12px 0px 0px 12px;
    background: var(--valverde-white);
    line-height: 1.4;
    font-size: 12px;
    color: var(--valverde-navy);
    font-family: 'Figtree', sans-serif;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.compact-details:last-child {
    margin-bottom: 0;
}

.compact-details.pricing-section {
    font-size: 12px;
    font-weight: 600;
}

.compact-detail-item {
    font-weight: 500;
    display: block;
    display: flex;
    justify-content: space-between;
    /* padding: 4px 0; */
    /* border-bottom: 1px solid rgba(74, 103, 65, 0.1); */
}

.compact-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Section Dividers */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 103, 65, 0.3), transparent);
    margin: 8px 0;
    border-radius: 1px;
}

/* Unit Types Buttons */
.unit-types-buttons {
    padding: 14px;
}

.unit-types-description {
    color: var(--valverde-dusk);
    font-size: 12px;
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.unit-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.unit-type-button {
    background: var(--valverde-white);
    color: var(--valverde-primary);
    border: 2px solid var(--valverde-primary);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.unit-type-button:hover {
    background: var(--valverde-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(57, 66, 37, 0.3);
}

.unit-type-button.active {
    background: var(--valverde-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(57, 66, 37, 0.3);
}

/* Modal Action Buttons */
.modal-action-buttons {
    padding: 12px 16px;
    background: var(--valverde-cream);
    border-top: 1px solid rgba(25, 42, 20, 0.1);
}

.enquire-now-btn {
    background: linear-gradient(135deg, var(--valverde-primary) 0%, var(--valverde-sage) 100%);
    color: white !important;
    border: 2px solid white !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-family: 'Figtree', sans-serif;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: 0.025em;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    outline: none !important;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 250px;
}

.enquire-now-btn:hover {
    background: white !important;
    color: #3b4723 !important;
    border: 2px solid #3b4723 !important;
}

.enquire-now-btn:active {
    transform: translateY(0);
}

/* Enquiry Form Styles */
.enquiry-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.enquiry-form-container {
    background: #5265149e;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.enquiry-form-header {
    background: var(--primary-green);
    color: white;
    padding: 15px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enquiry-form-header h3 {
    margin: 0;
    font-family: 'Valverde', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.enquiry-form-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.enquiry-form-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.gravity-form-container {
    padding: 25px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--valverde-primary);
    font-size: 16px;
}

/* Gravity Forms styling within modal */
.gravity-form-container .gform_wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.gravity-form-container .gform_fields {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gravity-form-container .gfield {
    margin-bottom: 20px !important;
    padding: 0 !important;
}

/* Hide all labels and form text */
.gravity-form-container .gfield_label,
.gravity-form-container .gfield_description,
.gravity-form-container .gform_description,
.gravity-form-container .gform_title,
.gravity-form-container .gsection_title,
.gravity-form-container .gsection_description,
.gravity-form-container .gfield_required,
.gravity-form-container .ginput_complex label,
.gravity-form-container .gchoice_label {
    display: none !important;
    visibility: hidden !important;
}

.gravity-form-container input[type="text"],
.gravity-form-container input[type="email"],
.gravity-form-container input[type="tel"],
.gravity-form-container textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: 'Valverde', Arial, sans-serif !important;
    transition: border-color 0.3s ease !important;
    background: white !important;
}

.gravity-form-container input[type="text"]:focus,
.gravity-form-container input[type="email"]:focus,
.gravity-form-container input[type="tel"]:focus,
.gravity-form-container textarea:focus {
    border-color: var(--valverde-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(57, 66, 37, 0.1) !important;
}

.gravity-form-container .gform_button {
    background: var(--valverde-primary) !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    font-family: 'Valverde', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
}

.gravity-form-container .gform_button:hover {
    background: var(--valverde-sage) !important;
    transform: translateY(-1px) !important;
}

.enquiry-form-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.enquiry-form-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.enquiry-form {
    padding: 25px;
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Valverde', Arial, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #c0c0c0;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-cancel,
.btn-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Valverde', Arial, sans-serif;
    min-width: 100px;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-cancel:hover {
    background: #e8e8e8;
    border-color: #c0c0c0;
}

.btn-submit {
    background: var(--primary-green);
    color: white;
    border: 2px solid var(--primary-green);
}

.btn-submit:hover {
    background: var(--secondary-green);
    border-color: var(--secondary-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 103, 65, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Force override any theme/Elementor button styles */
.enquiry-form-container .btn-cancel,
.enquiry-form-container .btn-submit,
.enquiry-form-container button[type="submit"],
.enquiry-form-container button[type="button"] {
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Valverde', Arial, sans-serif !important;
    min-width: 100px !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

.enquiry-form-container .btn-cancel {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 2px solid #e0e0e0 !important;
}

.enquiry-form-container .btn-cancel:hover {
    background: #e8e8e8 !important;
    border-color: #c0c0c0 !important;
    color: #555 !important;
}

.enquiry-form-container .btn-submit,
.enquiry-form-container button[type="submit"] {
    background: var(--primary-green) !important;
    color: white !important;
    border: 2px solid var(--primary-green) !important;
}

.enquiry-form-container .btn-submit:hover,
.enquiry-form-container button[type="submit"]:hover {
    background: var(--secondary-green) !important;
    border-color: var(--secondary-green) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(74, 103, 65, 0.2) !important;
}

.enquiry-form-container .btn-submit:disabled {
    background: #ccc !important;
    border-color: #ccc !important;
    color: #999 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.enquiry-success {
    padding: 25px;
    text-align: center;
}

.enquiry-success h4 {
    color: var(--primary-green);
    margin: 0 0 15px 0;
    font-family: 'Valverde', Arial, sans-serif;
    font-size: 1.25rem;
}

.enquiry-success p {
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Form validation states */
.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Loading state for submit button */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-width {
        max-width: 98vw !important;
        width: 98vw !important;
        height: 95vh !important;
    }

    .modal-content {}

    .modal-left-side {
        border-right: none;
        border-bottom: 2px solid white;
        width: 100%;
        height: 100%;
        padding: 20px;
    }

    .modal-right-side {
        width: 100%;
        max-height: 40%;
    }

    .view-container {}

    .unit-type-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    /* Enquiry form mobile adjustments */
    .enquiry-form-overlay {
        padding: 10px;
    }

    .enquiry-form-container {
        max-width: 100%;
        max-height: 95vh;
    }

    .enquiry-form-header {
        padding: 15px 20px;
    }

    .enquiry-form-header h3 {
        font-size: 1.1rem;
    }

    .enquiry-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        padding: 14px 24px;
    }

    /* Enquire button mobile adjustments */
    .enquire-now-btn {
        right: 15px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* Status Badge in Modal */
.modal-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
}

/* Active state for view buttons */
.view-btn.active {
    color: #ffffff !important;
    background-color: #2b7e1698 !important;
    border: 2px solid white !important;
    box-shadow: 0 4px 12px rgba(57, 66, 37, 0.3);
}

.view-btn.active:hover {
    background-color: #3f6b34fc !important;
    border: 2px solid white !important;
    box-shadow: 0 6px 20px rgba(57, 66, 37, 0.4);
}

/* When view buttons are hidden, make enquire button full width */
.modal-action-buttons .view-buttons-container[style*="display: none"]~.enquire-now-btn {
    flex: none;
    width: 100%;
}

/* Loading Spinner */
.map-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px var(--valverde-shadow);
    border: 1px solid rgba(74, 103, 65, 0.1);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--valverde-sage);
    border-top: 3px solid var(--valverde-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Popup Styles */
.leaflet-popup-content {
    margin: 16px 20px;
    line-height: 1.5;
    font-family: 'Figtree', sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--valverde-shadow);
    border: 1px solid rgba(74, 103, 65, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.listing-popup-content {
    font-family: 'Figtree', sans-serif;
    max-width: 280px;
    line-height: 1.5;
}

.popup-title {
    margin: 0 0 12px 0;
    color: var(--valverde-navy);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Figtree', sans-serif;
}

.popup-image {
    margin-bottom: 12px;
}

.popup-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(74, 103, 65, 0.1);
    box-shadow: 0 4px 16px var(--valverde-shadow-light);
}

.popup-status {
    margin-bottom: 12px;
}

.popup-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 14px;
    color: var(--valverde-navy);
    box-shadow: 3px 6px 14px 0px #000000ba;
}

.detail-item-full {
    grid-column: 1 / -1;
}

/* Tooltip Styles */
.listing-tooltip-content {
    font-family: 'Baskerville';
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    padding: 10px;
}

.listing-tooltip-content .title {
    font-family: 'Figtree';
}

.listing-tooltip-content hr {
    margin: 22px 0;
}

.leaflet-tooltip {
    background: #4a6741;
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: 'Figtree', sans-serif;
    box-shadow: 0 4px 16px var(--valverde-shadow);
    font-weight: 500;
}

.leaflet-tooltip:before {
    border-top-color: rgba(36, 36, 36, 0.9);
}

/* Additional Polish */
.filter-group select option {
    color: var(--valverde-navy);
    background: white;
}

.leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 103, 65, 0.1) !important;
    color: var(--valverde-navy) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--valverde-primary) !important;
    color: white !important;
}

/* Location Control Styles */
.leaflet-control-location {
    margin-top: 10px !important;
}

.leaflet-control-location:focus, .leaflet-control-location:focus-visible {
    outline: none;
    background: white !important;
}

.location-button {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 103, 65, 0.1) !important;
    color: var(--valverde-navy) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px var(--valverde-shadow-light);
    position: relative;
    overflow: hidden;
    padding: 6px;
}

.location-icon {
    width: 18px;
    height: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.location-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--valverde-shadow);
    border: 1px solid var(--valverde-primary);
}

.location-button:focus {
    background: rgb(255 255 255) !important;
    outline: none;
    border: 1px solid var(--valverde-primary);
}

.location-button:active {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(0.98);
}

.location-button.tracking {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid var(--valverde-primary);
    animation: locationPulse 2s infinite;
}

.location-button.tracking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    animation: locationRipple 1.5s infinite;
}

/* @keyframes locationPulse {
    0%, 100% {
        box-shadow: 0 4px 16px var(--valverde-shadow), 0 0 0 0 rgba(74, 103, 65, 0.7);
    }
    50% {
        box-shadow: 0 4px 16px var(--valverde-shadow), 0 0 0 8px rgba(74, 103, 65, 0);
    }
}

@keyframes locationRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
} */

/* Location Marker Styles */
.location-marker {
    border: none !important;
    background: transparent !important;
}

.location-dot {
    width: 20px;
    height: 20px;
    background: rgb(255, 239, 11);
    border: 2px solid white;
    border-radius: 50%;
    animation: locationDotPulse 2s infinite;
}

/* @keyframes locationDotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
} */

/* Overlay Toggle Control Styles */
.leaflet-control-overlay {
    margin-bottom: 10px !important;
}

.overlay-toggle-button {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 103, 65, 0.1) !important;
    color: var(--valverde-primary) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px var(--valverde-shadow-light);
    position: relative;
    overflow: hidden;
    padding: 6px;
    font-weight: bold;
}

.overlay-toggle-button:hover {
    background: var(--valverde-primary) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--valverde-shadow);
}

.overlay-toggle-button:active {
    transform: scale(0.95);
}

/* Dim Toggle Control Styles - moved to bottom-left */
.leaflet-control-dim {
    margin-bottom: 10px !important;
    /* Remove fixed positioning to work with Leaflet's positioning */
}

.dim-toggle-button {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 103, 65, 0.1) !important;
    color: var(--valverde-primary) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px var(--valverde-shadow-light);
    position: relative;
    overflow: hidden;
    padding: 6px;
    font-weight: normal;
    line-height: 1;
}

.dim-toggle-button:hover {
    background: var(--valverde-primary) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--valverde-shadow);
}

.dim-toggle-button:active {
    transform: scale(0.95);
}

/* Action Buttons Control Styles */
.leaflet-control-action-buttons {
    top: 90px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: auto;
    margin: 0px !important;
    border: none !important;
    right: 15px;
}

.action-button {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: var(--valverde-primary) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Figtree', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(57, 66, 37, 0.15),
        0 2px 6px rgba(57, 66, 37, 0.1);
    position: relative;
    overflow: hidden;
    line-height: 1;
}

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

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

.action-button:hover {
    background: #878f74c4 !important;
    color: white !important;
    transform: scale(1.1);
    border: 2px solid white !important;
    box-shadow:
        0 6px 20px rgba(57, 66, 37, 0.25),
        0 3px 10px rgba(57, 66, 37, 0.15);
}

.action-button:active {
    transform: scale(1.05);
}

.leaflet-control-backbtn {
    top: 73px;
    border: none !important;
    box-shadow: none !important;
}

.leaflet-control-tutorialbtn {
    top: 19px;
    left: 60px;
    border: none !important;
    box-shadow: none !important;
}

.tutorialbtn-button {
    border-radius: 5px !important;
    width: 150px !important;
    padding: 10px 20px 10px 50px !important;
    border: 2px solid #eb3323;
}

.tutorialbtn-button:hover {
    background: #ff1115c4 !important;
    color: white !important;
    transform: scale(1.1);
    border: 2px solid white !important;
    box-shadow:
        0 6px 20px rgba(57, 66, 37, 0.25),
        0 3px 10px rgba(57, 66, 37, 0.15);
}

/* Button Icon Styles */
.button-icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
    position: absolute;
}

.tutorialbtn-button .button-icon {
    /* position: relative; */
    left: 20px;
}

.button-icon.default-icon {
    opacity: 1;
}

.button-icon.hover-icon {
    opacity: 0;
}

.action-button:hover .button-icon.default-icon {
    opacity: 0;
}

.action-button:hover .button-icon.hover-icon {
    opacity: 1;
}

/* Active button state */
.action-button.active {
    background: #878f74c4 !important;
    color: white !important;
    border-color: var(--valverde-primary) !important;
    border: 2px solid white !important;
}

.action-button.active .button-icon.default-icon {
    opacity: 0;
}

.action-button.active .button-icon.hover-icon {
    opacity: 1;
}

/* Mobile-specific fixes for action buttons */
@media (hover: none) and (pointer: coarse) {

    /* Ensure icons are always visible on mobile */
    .action-button .button-icon.default-icon {
        opacity: 1 !important;
    }

    .action-button .button-icon.hover-icon {
        opacity: 0 !important;
    }

    /* Show hover icon only when button is active */
    .action-button.active .button-icon.default-icon {
        opacity: 0 !important;
    }

    .action-button.active .button-icon.hover-icon {
        opacity: 1 !important;
    }

    /* Touch feedback for mobile */
    .action-button:active {
        background: #878f74c4 !important;
        transform: scale(0.95);
    }
}

/* Amenity Marker Styles */
.amenity-marker {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.amenity-marker-visible {
    opacity: 1 !important;
}

.amenity-pin {
    background: linear-gradient(135deg, var(--valverde-primary) 0%, var(--valverde-sage) 100%);
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    margin: 0 auto 8px auto;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(57, 66, 37, 0.3);
    animation: amenityPulse 2s infinite;
}

.amenity-icon {
    background: white;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 2px solid var(--valverde-primary);
}

.amenity-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--valverde-primary);
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: amenityRipple 2s infinite;
}

.amenity-label {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--valverde-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(57, 66, 37, 0.2);
    box-shadow: 0 2px 8px rgba(57, 66, 37, 0.15);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* @keyframes amenityPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(57, 66, 37, 0.3), 0 0 0 0 rgba(57, 66, 37, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(57, 66, 37, 0.3), 0 0 0 8px rgba(57, 66, 37, 0);
    }
}

@keyframes amenityRipple {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
} */

/* POI Marker Styles */
.poi-marker {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.poi-marker-visible {
    opacity: 1 !important;
}

.poi-pin {
    background: linear-gradient(135deg, #394225 0%, #394225 100%);
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    margin: 0 auto;
    border: 1px solid white;
    box-shadow: 0 3px 8px rgba(44, 90, 160, 0.4);
    animation: poiPulse 2s infinite;
}

/* Simplified POI Icons - Direct SVG styling */
.poi-marker-simple {
    background: transparent !important;
    border: none !important;
}

.poi-icon-direct {
    height: 36px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.2s ease-in-out;
}

.poi-icon-direct:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* Legacy POI styling - keeping for compatibility */
.poi-icon {
    background: white;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 1px solid #2c5aa0;
}

/* New SVG icon styling for POI */
.poi-icon-svg {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

/* Enhanced POI pin styling for custom icons */
.poi-pin {
    position: relative;
    background: var(--valverde-white);
    border: 3px solid var(--valverde-primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poi-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #2c5aa0;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: poiRipple 2s infinite;
}

/* POI Tooltip Styles */
.poi-tooltip {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #2c5aa0 !important;
    border: 1px solid rgba(44, 90, 160, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15) !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
}

.poi-tooltip::before {
    border-top-color: rgba(255, 255, 255, 0.95) !important;
}

/* Facility Icon Tooltips - positioned above icons */
.poi-tooltip-facility {
    background: var(--valverde-primary) !important;
    color: var(--valverde-white) !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
}

.poi-tooltip-facility::before {
    border-top-color: var(--valverde-primary) !important;
}

/* @keyframes poiPulse {
    0%, 100% {
        box-shadow: 0 3px 8px rgba(44, 90, 160, 0.4), 0 0 0 0 rgba(44, 90, 160, 0.4);
    }
    50% {
        box-shadow: 0 3px 8px rgba(44, 90, 160, 0.4), 0 0 0 6px rgba(44, 90, 160, 0);
    }
}

@keyframes poiRipple {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
} */

/* Video Modal Styles */
.video-modal-container .video-modal {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
}

.video-modal-container .modal-content {
    padding: 20px !important;
}

.video-modal-container .modal-title {
    color: white !important;
}

.modal-title.price-list-title {
    color: white !important;
    margin: 0px !important;
    padding: 0px !important;
}

.video-container {
    position: relative;
    width: 75vw;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    object-fit: cover;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}



/* Modern Modal Styles */
/* Cool Unfolding Modal Animation - Valverde Themed */
body.modal-active {
    overflow: hidden;
}

#modal-container {
    position: fixed;
    display: table;
    height: 100dvh;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 10000;
}

#modal-container.one {
    transform: scaleY(.01) scaleX(0);
    animation: unfoldIn 1s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

#modal-container.one .modal-background .custom-modal {
    transform: scale(0);
    animation: zoomIn .5s .8s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

#modal-container.one.out {
    transform: scale(1);
    animation: unfoldOut 1s .3s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

#modal-container.one.out .modal-background .custom-modal {
    animation: zoomOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.modal-background {
    display: table-cell;
    background: #39422554;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    vertical-align: middle;
    width: 100%;
    height: 100dvh;
}

.custom-modal {
    background: #394225ae;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    max-width: 900px;
    width: 95%;
    max-height: 90dvh;
    /* overflow: hidden; */
    position: relative;
    box-shadow:
        0 20px 60px rgba(15, 36, 59, 0.3),
        0 8px 32px rgba(15, 36, 59, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(74, 103, 65, 0.1);
    display: inline-flex;
    flex-direction: column;
    text-align: left;
    vertical-align: middle;
    font-family: 'Figtree', sans-serif;
    margin: 0 auto;
}

/* Unfolding Animation Keyframes */
@keyframes unfoldIn {
    0% {
        transform: scaleY(.005) scaleX(0);
    }

    50% {
        transform: scaleY(.005) scaleX(1);
    }

    100% {
        transform: scaleY(1) scaleX(1);
    }
}

@keyframes unfoldOut {
    0% {
        transform: scaleY(1) scaleX(1);
    }

    50% {
        transform: scaleY(.005) scaleX(1);
    }

    100% {
        transform: scaleY(.005) scaleX(0);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
    }

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

.modal-close {
    position: absolute;
    top: 13px !important;
    right: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--valverde-navy);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: var(--valverde-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 103, 65, 0.3);
    border: 2px solid white !important;
}

.modal-close:focus,
:focus-visible {
    border-style: none !important;
    outline: none !important;
    background-color: #394225 !important;
    color: white !important;
    border: 1px solid white !important;
}

.modal-content {
    padding: 0;
    overflow-y: auto;
    min-height: 0;
    font-family: 'Figtree', sans-serif;
    scroll-behavior: smooth;
    max-height: 90vh;
    background-color: #394225;
    display: flex;
    flex-direction: row !important;
    /* background: url(../images/curve-green.png);
    background-position: left;
    background-repeat: no-repeat; */
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(74, 103, 65, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--valverde-primary) 0%, var(--valverde-sage) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-close {
    position: absolute;
    top: -19px !important;
    right: -16px;
    background: #394225;
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #ffffff;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: var(--valverde-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 103, 65, 0.3);
}

.modal-content {
    padding: 0;
    border-radius: 17px !important;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    font-family: 'Figtree', sans-serif;
    scroll-behavior: smooth;
    background: white !important;
    padding: 20px !important;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(74, 103, 65, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--valverde-primary) 0%, var(--valverde-sage) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--valverde-sage) 0%, var(--valverde-primary) 100%);
}

/* Modal Header with Brand Element */
.modal-header {
    padding: 0;
    background: var(--valverde-cream);
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.modal-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 10px 10px 0;
}

.modal-brand img {
    width: 49px;
    height: 49px;
    object-fit: contain;
    color: #334630;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #3c4721;
    margin: 0;
    font-family: 'Figtree', sans-serif;
    letter-spacing: -0.025em;
}

/* Image Carousel Styles */
.modal-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: none;
    display: none;
    /* Initially hidden, will be toggled by JavaScript */
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.gallery-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--valverde-navy);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
}

.modal-gallery:hover .gallery-nav {
    opacity: 1;
    pointer-events: all;
}

.gallery-nav:hover {
    background: var(--valverde-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 103, 65, 0.3);
}

.gallery-nav.prev {
    left: 16px;
}

.gallery-nav.next {
    right: 16px;
}

.floor-plan-nav:focus,
:focus-visible {
    background-color: none !important;
    background: none !important;
}

/* Remove focus styles from all navigation buttons */
.gallery-nav:focus,
.gallery-nav:focus-visible,
.floor-plan-nav:focus,
.floor-plan-nav:focus-visible,
.lightbox-nav:focus,
.lightbox-nav:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background-color: rgba(57, 66, 37, 0.8) !important;
    border: none !important;
}

/* Ensure hover states still work */
.gallery-nav:hover,
.floor-plan-nav:hover,
.lightbox-nav:hover {
    background-color: rgba(57, 66, 37, 1) !important;
}

.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: white;
    transform: scale(1.25);
}

.gallery-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
}

.accordion-header {
    margin: 0px !important;
    position: relative !important;
    background-color: rgba(76, 76, 76, 0.485) !important;
    color: white !important;
}

.accordion-header::after {
    content: '' !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: transform 0.3s ease !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 6px solid white !important;
    border-top: 4px solid transparent !important;
    border-bottom: 4px solid transparent !important;
}

.accordion-header:has(.accordion-button:not(.collapsed))::after {
    transform: translateY(-50%) rotate(90deg) !important;
}

/* Unit Types Accordion Styles */
.accordion-button {
    display: flex !important;
    width: 100% !important;
    justify-content: left !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

.accordion-button.collapsed {
    color: rgb(255, 255, 255) !important;
}

.accordion-button:hover,
.accordion-button:focus,
.accordion-button:active {
    background: rgba(76, 76, 76, 0.485) !important;
    /* Lighter version of --valverde-primary */
    color: white !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(76, 76, 76, 0.485) !important;
    color: white !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button::after {
    display: none !important;
    content: none !important;
    filter: none !important;
    background-image: none !important;
}

.accordion-button:not(.collapsed)::after {
    display: none !important;
    content: none !important;
    filter: none !important;
    background-image: none !important;
}

.unit-types-section {
    padding: 0px;
}

.unit-types-description {
    margin-bottom: 15px;
    color: var(--valverde-dark);
    font-size: 14px;
    line-height: 1.5;
    /* padding: 20px 15px 0px 16px; */
}

.unit-type-dropdown-container {
    display: flex;
    justify-content: center;
}

.unit-type-dropdown-btn {
    border-color: var(--valverde-primary);
    color: var(--valverde-primary);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Figtree', sans-serif;
}

.unit-type-dropdown-btn:hover,
.unit-type-dropdown-btn:focus {
    background-color: var(--valverde-primary);
    border-color: var(--valverde-primary);
    color: white;
}

.unit-type-dropdown-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(57, 66, 37, 0.25);
}

/* Unit Type Popup Styles */
.unit-type-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.unit-type-popup-container.show {
    opacity: 1;
    visibility: visible;
}

.unit-type-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.unit-type-popup-content {
    position: relative;
    background: #394225ae;
    ;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: auto;
    overflow-y: auto;
    transition: transform 0.3s ease;
    font-family: 'Figtree', sans-serif;
}

.unit-type-popup-container.show .unit-type-popup-content {
    transform: translateY(0);
}

.unit-type-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--valverde-dark);
}

.unit-type-popup-close:hover {
    background: var(--valverde-dark);
    transform: scale(1.1);
}

.unit-type-popup-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.unit-type-popup-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: white;

}

.unit-type-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--valverde-primary);
}

.unit-type-popup-body {
    padding: 20px 25px 25px;
    display: flex;
    gap: 20px;
}

.unit-type-images {
    display: flex;
    height: auto;
    width: auto;
}

.unit-type-image-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unit-type-image-secondary img {
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: auto;
}

.floor-plan-label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--valverde-sage);
    text-align: center;
}

.unit-type-details {
    display: flex;
    gap: 20px;
}

.unit-type-specs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-item {
    text-align: center;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.spec-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--valverde-sage);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--valverde-dark);
}

.unit-type-description p {
    margin: 0;
    color: var(--valverde-dark);
    line-height: 1.6;
    font-size: 15px;
}

/* Enquiry Form */
#gform_submit_button_1 {
    margin-top: 15px;
}

#enquiry-form-container .gfield_label {
    display: none !important;
}

#enquiry-form-container .ginput_complex {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

#enquiry-form-container #field_1_1 {
    padding: 0px !important;
}

#enquiry-form-container #field_1_25 {
    color: grey !important;
}

#enquiry-form-container #field_1_25 a {
    text-decoration: underline !important;
    color: white !important;
    transition: 0.3s ease !important;
}

#enquiry-form-container #field_1_25 a::hover {
    color: darkgray !important;
}

#enquiry-form-container .gfield {
    margin-bottom: 10px !important;
    color: var(--valverde-dusk) !important;
}

#enquiry-form-container #gform_submit_button_1 {
    background: var(--valverde-dusk) !important;
    color: white !important;
    outline: none !important;
    border: 1px solid var(--valverde-dusk) !important;
    transition: 0.3s ease !important;
}

#enquiry-form-container #gform_submit_button_1 {
    border: 1px solid white !important;
}

#field_1_25,
a {
    font-size: 12px
}

.accordion-body {
    padding: 0 16px !important;
}

#field_1_27 {
    padding: 0px !important;
}

/* Mobile and Tablet Responsive Design */
@media (max-width: 1024px) {
    .filter-group input[type="number"] {
        width: 100%;
    }

    #clear-filters {
        width: 100%;
    }

    /* Position relative for absolute positioning of filters container */
    .wp-leaflet-filters {
        position: relative;
    }

    /* Show mobile header with logo left, burger right */
    .mobile-header {
        display: flex !important;
    }

    /* Hide desktop logo, show mobile logo */
    .desktop-logo {
        display: none !important;
    }

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

    /* Show burger menu button on mobile and tablet */
    .filters-burger-toggle {
        display: flex !important;
        padding: 12px 20px;
        font-size: 16px;
        width: auto;
        margin-left: auto;
        margin-right: 0;
        border: none !important;
    }

    .burger-icon {
        width: 20px;
        height: 16px;
    }

    /* Hide filters container by default on mobile and tablet */
    .filters-container {
        display: none;
        flex-direction: column;
        overflow: hidden;
        overflow-y: auto;
        gap: 10px;
        position: absolute;
        top: 115%;
        left: 0;
        right: 0;
        background: var(--valverde-primary);
        border: 1px solid rgba(74, 103, 65, 0.2);
        border-radius: 10px;
        padding: 24px;
        margin-top: 5px;
        max-height: 70vh;
        box-shadow: 0 8px 25px var(--valverde-shadow), 0 4px 15px var(--valverde-shadow-light);
        z-index: 1000;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Show filters when burger menu is active on mobile and tablet */
    .wp-leaflet-filters.filters-open .filters-container {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        position: absolute !important;
    }

    .filter-group {
        min-width: 100%;
    }

    .custom-filter-dropdown {
        width: 100%;
        min-width: unset;
    }

    .custom-filter-dropdown .btn {
        width: 100%;
        min-width: unset;
        justify-content: space-between;
    }

    .custom-price-input {
        width: 100%;
    }

    .filter-actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .leaflet-control-backbtn {
        position: absolute;
        left: -10px;
        transform: translateY(6px);
    }

    .leaflet-control-tutorialbtn {
        top: 73px;
        left: 40px;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Tablet-specific optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .filters-container {
        padding: 30px 20px;
        gap: 20px;
        max-height: 60vh;
    }

    .filters-burger-toggle {
        padding: 15px 25px;
        font-size: 18px;
        border-radius: 10px;
    }

    .burger-icon {
        width: 22px;
        height: 18px;
    }

    .filter-group {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Mobile-only styles */
@media (max-width: 768px) {
    .custom-modal {
        min-width: 96vw !important;
        min-height: 95vh !important;
        max-height: 95vh !important;
        border-radius: 20px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: block !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .enquiry-form-container {
        width: 101%;
    }

    .enquiry-form-header {}

    .enquiry-form {
        padding: 15px;
    }

    .modal-content {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        display: block !important;
        padding: 0px !important;
        padding-right: 0px !important;
        padding-bottom: 0px !important;
        min-height: auto !important;
        overflow-y: scroll !important;
    }

    .modal-left-side {}

    .modal-right-side {
        order: 2 !important;
        width: 100% !important;
        display: block !important;
        position: relative !important;
    }

    .modal-header,
    .modal-body {
        width: 100%;
        flex-shrink: unset !important;
    }

    .listing-details-grid {}

    /* BIG PROMINENT VIEW CONTAINER */
    .view-container {
        height: 45vh !important;
        width: 100% !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #000 !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .modal-gallery,
    .panorama-iframe-container {
        height: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
    }

    .modal-gallery .gallery-container {
        height: 100% !important;
        border-radius: 0 !important;
    }

    .modal-gallery .gallery-slide img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
    }

    /* SCROLLABLE CONTENT BELOW VIEW */
    .modal-scrollable-content {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* VIEW SWITCH AND CONTROLS */
    .view-switch-container {
        order: 2 !important;
        width: 100% !important;
        background: white !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .view-switch {
        align-self: center !important;
        margin: 0 !important;
        width: 100%;
    }

    /* PROMINENT UNIT TYPE CIRCLES */
    .unit-type-circles {
        display: flex !important;
        justify-content: space-between !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
        margin: 0 !important;
        flex-direction: row;
    }

    .unit-type-circle {
        width: 45px !important;
        height: 45px !important;
        font-size: 12px !important;
        border: 3px solid var(--valverde-primary) !important;
        background: white !important;
        color: var(--valverde-primary) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        transition: all 0.3s ease !important;
    }

    .unit-type-circle.active {
        background: var(--valverde-primary) !important;
        color: white !important;
        transform: scale(1.1) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    }

    /* BIG ENQUIRE BUTTON */
    .enquire-now-btn {
        width: 100% !important;
        height: 45px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, var(--valverde-primary) 0%, var(--valverde-sage) 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 15px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
        transition: all 0.3s ease !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }

    .enquire-now-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    }

    /* TITLE AND BRANDING */
    .modal-brand {
        order: 3 !important;
        padding: 20px 16px 10px !important;
        /* border-bottom: 1px solid rgba(0,0,0,0.1) !important; */
        text-wrap: nowrap;
    }

    .modal-title {
        font-size: 24px !important;
        font-weight: 800 !important;
        color: var(--valverde-primary) !important;
        text-align: center !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        text-wrap: nowrap;
    }

    /* PRICING SECTION */
    .prominent-pricing-section {
        order: 4 !important;
        margin: 0 !important;
        padding: 20px 16px !important;
        background: rgba(57, 66, 37, 0.03) !important;
        border: none !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    .price-item {
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    .price-label {
        font-size: 16px !important;
        font-weight: 600 !important;
        display: block !important;
        margin-bottom: 8px !important;
    }

    .price-value {
        font-size: 22px !important;
        font-weight: 800 !important;
        display: block !important;
    }

    /* PROPERTY DETAILS */
    .property-details-section {
        order: 5 !important;
        padding: 20px 0px !important;
        background: white !important;
    }

    .detail-category {}

    .compact-details {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .detail-item {
        padding: 16px !important;
        background: rgba(57, 66, 37, 0.02) !important;
        border: 1px solid rgba(57, 66, 37, 0.1) !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    .detail-label {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: var(--valverde-primary) !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    .detail-value {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: var(--valverde-primary) !important;
    }

    /* UNIT INFO PANEL */
    .unit-info-panel {
        order: 6 !important;
        padding: 20px 16px 40px !important;
        background: rgba(57, 66, 37, 0.02) !important;
        border-top: 3px solid var(--valverde-primary) !important;
    }

    .unit-info-content {
        background: white !important;
        padding: 20px !important;
        border-radius: 15px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }

    /* MODAL CLOSE BUTTON */
    .modal-close {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 10000 !important;
        width: 50px !important;
        height: 50px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        color: white !important;
        border: 2px solid white !important;
        border-radius: 50% !important;
        font-size: 24px !important;
        font-weight: bold !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(10px) !important;
    }

    /* GALLERY IMPROVEMENTS */
    .gallery-nav {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(10px) !important;
        border: 2px solid white !important;
    }

    .gallery-dots {
        bottom: 15px !important;
    }

    .gallery-dot {
        width: 12px !important;
        height: 12px !important;
        margin: 0 6px !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border: 2px solid white !important;
    }

    .gallery-dot.active {
        background: white !important;
        transform: scale(1.3) !important;
    }

    .gallery-counter {
        top: 15px !important;
        right: 15px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        color: white !important;
        padding: 8px 12px !important;
        border-radius: 20px !important;
        font-weight: bold !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .gallery-nav.prev {
        left: 12px;
    }

    .gallery-nav.next {
        right: 12px;
    }

    .price-highlight {
        font-size: 24px;
        padding: 12px;
    }

    .wp-leaflet-filters {
        padding: 5px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .modal-title {
        font-size: 20px;
    }

    .modal-gallery {
        height: 100%;
    }

    .listing-details-grid {}

    .detail-section {
        padding: 16px;
    }

    .price-highlight {
        font-size: 20px;
        margin: 16px 0;
    }

}

/* Responsive Design for Unit Type Popup */
@media (max-width: 768px) {
    .unit-type-popup-content {
        width: 95%;
        max-height: 90vh;
    }

    .unit-type-popup-header,
    .unit-type-popup-body {
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    .unit-type-popup-header h3 {
        font-size: 20px;
    }

    .unit-type-price {
        font-size: 16px;
    }

    .unit-type-images {
        gap: 10px;
    }

    .unit-type-image-main img,
    .unit-type-image-secondary img {
        height: 180px;
    }

    .unit-type-image-secondary img {
        height: auto;
    }

    .unit-type-specs {
        display: flex;
        gap: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .spec-item {
        padding: 10px 8px;
        width: 48%;
    }

    .spec-value {
        font-size: 14px;
    }

    /* Mobile responsive for view container and action buttons */
    .view-container {}

    .modal-action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .view-buttons-container {
        width: 100%;
    }

    .view-toggle-btn,
    .view-btn,
    .enquire-now-btn {}

    .fallback-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .amenity-pin {
        width: 32px;
        height: 32px;
    }

    .amenity-icon {
        font-size: 14px;
    }

    .amenity-label {
        font-size: 10px;
        padding: 4px 8px;
        max-width: 100px;
        transform: translateX(12px);
    }

    .poi-pin {
        width: 20px;
        height: 20px;
    }

    .poi-icon {
        width: 6px;
        height: 6px;
    }

    /* Simplified POI icon styling for mobile - let Leaflet handle positioning */
    .poi-marker-simple {
        background: transparent !important;
        border: none !important;
    }

    .poi-marker-simple .poi-icon-direct {
        height: 28px !important;
        width: auto !important;
        display: block !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        transition: all 0.2s ease-in-out;
    }

    .poi-tooltip {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }

    .action-button {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px;
    }

    .leaflet-control-action-buttons {}

    .video-modal-container .video-modal {
        width: auto !important;
        min-height: auto !important;
        top: calc(1rem + env(safe-area-inset-top));
        ;
    }

    .video-container {
        margin: 30px;
        border-radius: 8px;
    }

    .update-notification {
        top: 100px !important;
        right: 10px !important;
        height: 90px !important;
        transform: translateY(-100%);
    }

    .update-notification.show {
        transform: translateY(0);
        top: 100px !important;
        right: 10px !important;
        height: 90px !important;
    }

    .update-notification:hover {
        transform: translateY(-2px);
    }

    .notification-content {
        gap: 10px;
    }

    .notification-title {
        font-size: 13px;
    }

    .notification-message {
        font-size: 12px;
    }

    .video-modal-container .modal-title {
        font-size: 12px !important;
    }

    .leaflet-left {
        display: flex;
        flex-direction: row-reverse;
        gap: 6px;
        align-items: flex-end;
        left: 20px;
        bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .leaflet-control-location {
        margin: 0px !important;
    }

    .leaflet-control-zoom {
        margin: 0px !important;
        margin-left: 5px !important;
        border: none !important;
    }

    .location-button {
        width: 42px !important;
        height: 43px !important;
    }

    .leaflet-control-dim {
        margin: 0px !important;
    }

    .dim-toggle-button {
        width: 43px !important;
        height: 43px !important;
    }

    .unit-info-panel {
        padding: 0px;
    }
}

/* Desktop styles - hide burger menu and show normal layout */
@media (min-width: 1025px) {
    .filters-burger-toggle {
        display: none !important;
    }

    .mobile-header {
        display: none !important;
    }

    .mobile-logo {
        display: none !important;
    }

    .desktop-logo {
        display: block !important;
    }

    .filters-container {
        display: flex !important;
        position: relative !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        flex-direction: row !important;
        gap: 20px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin-top: 0 !important;
        padding: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        z-index: auto !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Unit Type Notice Styling */
.unit-type-notice {
    margin: 15px 0;
    padding: 12px 16px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 6px;
    line-height: 1.4;
}

.unit-type-notice p {
    margin: 0;
    color: var(--valverde-primary);
    font-size: 10px;
}

.unit-type-notice strong {
    color: var(--valverde-primary);
    font-weight: 600;
}

.unit-price-notice {
    line-height: 1.4;
    margin-top: 5px;
}

.unit-price-notice p {
    margin: 0;
    color: var(--valverde-primary);
    font-size: 10px;
}

.unit-price-notice strong {
    color: var(--valverde-primary);
    font-weight: 600;
}

/* Prominent Pricing Section */
.prominent-pricing-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
    padding: 0px 0px 0px 11px;
    border-radius: 8px;
}

.price-item {
    text-align: left;
}

.price-label {
    display: inline;
    font-size: 14px;
    font-weight: 600;
    color: var(--valverde-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    display: inline;
    font-size: 18px;
    font-weight: 700;
    color: var(--valverde-primary);
    line-height: 1.2;
    margin-left: 5px;
}

.total-price .price-value {
    font-size: 18px;
    color: #f0a107;
}

.land-price {
    border: none;
}

/* Floor Plan Carousel Styles */
.floor-plan-container {
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.floor-plan-single {
    width: 100%;
    position: relative;
    text-align: center;
}

.floor-plan-carousel {
    width: 100%;
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.floor-plan-track {
    width: 100%;
    position: relative;
    height: 300px;
    overflow: hidden;
}

.floor-plan-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floor-plan-slide.active {
    opacity: 1;
}

.floor-plan-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.floor-plan-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.floor-plan-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(57, 66, 37, 0.8);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.floor-plan-nav:hover {
    background: var(--valverde-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floor-plan-nav.prev {
    left: 15px;
}

.floor-plan-nav.next {
    right: 15px;
}

.floor-plan-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.floor-plan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    pointer-events: auto;
}

.floor-plan-dot.active {
    background: white;
    transform: scale(1.3);
}

.floor-plan-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.no-floorplan-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

/* PDF Download Button Styles */
.unit-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--valverde-primary) 0%, var(--valverde-sage) 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(57, 66, 37, 0.3);
    border: 2px solid transparent;
}

.pdf-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 66, 37, 0.4);
    color: white;
    text-decoration: none;
}

.pdf-download-btn:active {
    transform: translateY(0);
}

.pdf-icon {
    font-size: 16px;
}

.pdf-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .floor-plan-track {
        height: 250px;
    }

    .floor-plan-nav {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .floor-plan-nav.prev {
        left: 10px;
    }

    .floor-plan-nav.next {
        right: 10px;
    }

    .pdf-download-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* Floor Plan Carousel Styles */
.floor-plan-container {
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.floor-plan-single {
    position: relative;
    text-align: center;
}

.floor-plan-single .floor-plan-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.floor-plan-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #f8f8f8;
}

.floor-plan-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.floor-plan-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.floor-plan-slide.active {
    opacity: 1;
}

.floor-plan-slide .floor-plan-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.floor-plan-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(57, 66, 37, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.floor-plan-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(57, 66, 37, 0.8);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.floor-plan-nav:hover {
    background: var(--valverde-primary);
    transform: translateY(-50%) scale(1.1);
}

.floor-plan-nav.prev {
    left: 15px;
}

.floor-plan-nav.next {
    right: 15px;
}

.floor-plan-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.floor-plan-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floor-plan-dot.active {
    background: white;
    transform: scale(1.2);
}

.floor-plan-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.floor-plan-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(57, 66, 37, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

/* PDF Download Button Styles */
.unit-actions {
    margin-top: 20px;
    text-align: center;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--valverde-primary) 0%, var(--valverde-sage) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(57, 66, 37, 0.3);
    border: 2px solid transparent;
}

.pdf-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 66, 37, 0.4);
    color: white;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.pdf-download-btn:active {
    transform: translateY(0);
}

.pdf-icon {
    font-size: 20px;
    line-height: 1;
}

.pdf-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Mobile responsiveness for floor plan carousel */
@media (max-width: 768px) {
    .floor-plan-carousel {
        height: 300px;
    }

    .floor-plan-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .floor-plan-nav.prev {
        left: 10px;
    }

    .floor-plan-nav.next {
        right: 10px;
    }

    .floor-plan-label {
        font-size: 12px;
        padding: 6px 12px;
    }

    .pdf-download-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .leaflet-control-tutorialbtn {
        top: 125px;
        left: -10px;
    }

    .tutorialbtn-button {
        width: 120px !important;
        padding-left: 40px !important;
    }

    .button-text {
        font-size: 10px;
    }

    .tutorialbtn-button .button-icon {
        left: 9px !important;
    }
}

/* ============================================
   IMAGE LIGHTBOX STYLES
   ============================================ */

.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: var(--valverde-white);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--valverde-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--valverde-white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--valverde-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10001;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-counter {
        bottom: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .lightbox-container {
        padding: 15px;
    }
}

/* Smooth transitions */
.image-lightbox {
    transition: opacity 0.3s ease;
}

.lightbox-image {
    transition: transform 0.3s ease;
}

/* Hover effect for clickable floor plan images */
.clickable-floor-plan:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Additional styling for floor plan lightbox */
.floorplan-lightbox .lightbox-image {
    max-height: 90vh;
}

.wp-leaflet-filters a {
    width: 65px;
    position: absolute !important;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.gform_required_legend {
    display: none !important;
}

#gform_wrapper_9 input:focus-visible {
    color: black !important;
}

.loading-spinner-gf {
    color: white !important;
}

.gf_name_has_2 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px !important;
}

.enquiry-form-overlay #field_1_25 {
    color: white !important;
}

.enquiry-form-overlay #field_1_25 a {
    font-style: bold !important;
    text-decoration: underline !important;
}

/* ========================================
   PRICE LIST MODAL STYLES
   ======================================== */

.price-list-modal-container .modal-background {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

.price-list-modal-container .modal-close {
    top: 6px !important;
    right: 5px !important;
    border: 1px solid white !important;
}

.price-list-modal {
    max-width: 95vw;
    width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.price-list-modal .modal-header {
    background: var(--valverde-primary);
    color: white;
    padding: 2px 20px;
    border-bottom: none;
}

.price-list-modal .modal-title {
    font-family: 'Baskerville', serif;
    font-size: 28px;
    margin: 0;
    font-weight: 400;
}

.price-list-modal .modal-subtitle {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    opacity: 0.9;
}

.price-list-content {
    padding: 5px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column !important;
    height: 100% !important;
}

.table-container {
    flex: 1;
    overflow: auto;
    /* max-height: calc(90vh - 200px); */
}

.price-list-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    background: white;
}

.price-list-table thead {
    background: var(--valverde-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.price-list-table th,
.price-list-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    text-wrap: nowrap;
}

.price-list-table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: white;
    padding: 10px;
    text-align: left;
}

.price-list-table tbody tr:hover {
    background: #f9fafb;
}

.price-list-table tbody tr.status-sold {
    background: #f5f5f5;
    opacity: 0.7;
}

.price-list-table tbody tr.status-reserved {
    background: #fff8dc;
}

.price-list-table tbody tr.status-available {
    background: #f0f9ff;
}

/* Column specific styling */
.unit-col {
    width: 80px;
    font-weight: 600;
    color: var(--valverde-primary);
}

.type-col,
.floor-col,
.bed-col,
.bath-col,
.parking-col {
    width: 60px;
    text-align: center;
}

.interior-col,
.exterior-col,
.total-col {
    width: 90px;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.price-col {
    width: 120px;
    text-align: right;
    font-weight: 600;
    color: var(--valverde-primary);
    font-family: 'Courier New', monospace;
}

.status-col {
    width: 80px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
}

.status-badge.status-available {
    background: #10b981;
    color: white;
}

.status-badge.status-reserved {
    background: #f59e0b;
    color: white;
}

.status-badge.status-sold {
    background: #6b7280;
    color: white;
}

.price-list-footer {
    background: #f9fafb;
    padding: 10px 15px;
    border-top: 1px solid #e5e7eb;
}

.price-list-footer p {
    margin: 0 0 10px 0;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: #374151;
}

.status-legend {
    display: flex;
    gap: 12px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.disclaimer {
    font-size: 12px !important;
    color: #6b7280 !important;
    font-style: italic;
    margin-top: 15px !important;
}

.ground-col,
.first-col {
    width: 110px;
}

/* Mobile responsiveness for price list table */
@media (max-width: 768px) {
    .price-list-modal {
        width: 95vw;
        max-height: 95vh;
        margin: 2.5vh auto;
    }

    .price-list-content {
        overflow: auto;
        height: calc(95vh - 120px);
        -webkit-overflow-scrolling: touch;
    }

    .table-container {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .price-list-table {
        font-size: 11px;
    }

    .price-list-table th,
    .price-list-table td {
        padding: 2px 4px;
        text-wrap: nowrap;
    }

    .price-list-table th {
        font-size: 10px;
    }

    /* Hide less important columns on mobile */
    .floor-col,
    .exterior-col {
        display: none;
    }

    .price-list-footer {
        padding: 15px 20px;
    }

    .status-legend {
        flex-direction: column;
        gap: 8px;
    }

}

@media (max-width: 480px) {
    .price-list-modal {
        width: 98vw;
        max-height: 98vh;
        margin: 1vh auto;
    }

    .price-list-modal .modal-header {
        padding: 15px 20px;
    }

    .price-list-modal .modal-title {
        font-size: 22px;
    }

    .price-list-content {
        overflow: auto;
        height: calc(98vh - 100px);
        -webkit-overflow-scrolling: touch;
    }

    .table-container {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .price-list-table {
        font-size: 10px;
    }

    /* Hide even more columns on very small screens */
    .bath-col,
    .parking-col,
    .interior-col {
        display: none;
    }

    .unit-col,
    .type-col,
    .bed-col,
    .total-col,
    .price-col,
    .status-col {
        width: auto;
    }
}

.no-padding {
    margin: 0px !important;
    padding: 0px !important;
}

.enquire-booking-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.showTimes {
    font-size: 10px;
    display: none;
}