
        :root {
            --bg-dark: #09090b; /* Pure Carbon Dark */
            --surface: #18181b; /* Solid Flat Surface */
            --primary: #ffffff; /* Stark Accent White */
            --primary-glow: rgba(255, 255, 255, 0.05); /* Flat subtle backdrop */
            --text-main: #f4f4f5;
            --text-sub: #a1a1aa;
            --border-light: rgba(255, 255, 255, 0.08);
            --status-available: #10b981;
            --status-sold: #ef4444;
            --status-reserved: #f59e0b;
            --status-builder: #e4e4e7;
        }

        body,
        html {
            margin: 0;
            padding: 0;
            height: 100%;
            overflow: hidden;
            font-family: 'Outfit', sans-serif;
            background: var(--bg-dark);
            color: var(--text-main);
        }



        #super-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-dark);
            z-index: 1;
            overflow: hidden;
            touch-action: none;
        }

        #map-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000000;
        }

        #map {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 150vmax;
            height: 150vmax;
            margin-top: -75vmax;
            margin-left: -75vmax;
            background: transparent;
            will-change: transform;
        }

        /* --- UI Overlay --- */
        .ui-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            /* Let clicks pass to map */
            z-index: 1000;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 20px;
            box-sizing: border-box;
        }



        img.custom-link-marker,
        canvas.custom-link-marker {
            pointer-events: auto !important;
            cursor: pointer !important;
            transition: box-shadow 0.2s ease !important;
            z-index: 600 !important;
        }

        img.custom-link-marker:hover,
        canvas.custom-link-marker:hover {
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7) !important;
        }

        .pointer-events-auto {
            pointer-events: auto;
        }

        /* Top Bar */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .plotx-mobile-logo {
            display: none;
        }

        .plotx-desktop-logo {
            display: block;
        }

        .brand-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--primary);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .brand-logo i {
            font-size: 1.5rem;
        }

        /* Bottom Control Bar */
        .bottom-bar {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 20px;
        }

        /* Search & Filters Container */
        .controls-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            max-width: 400px;
        }

        /* Search Bar */
        .search-box {
            position: relative;
            background: var(--surface);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 24px;
            display: flex;
            align-items: center;
            padding: 5px 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border-light);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .search-box input {
            background: transparent;
            border: none;
            color: var(--text-main);
            padding: 10px;
            width: 100%;
            outline: none;
            font-family: inherit;
        }

        .search-box:focus-within {
            background: #1f1f23;
            border-color: #ffffff;
            box-shadow: none;
        }

        .search-results {
            position: absolute;
            bottom: 110%;
            left: 0;
            width: 100%;
            background: rgba(30, 41, 59, 0.95);
            border-radius: 12px;
            max-height: 200px;
            overflow-y: auto;
            display: none;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
            border: 1px solid var(--border-light);
            backdrop-filter: blur(15px);
        }

        .search-item {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 1px solid var(--border-light);
            transition: background 0.2s;
        }

        .search-item:hover, .search-item.search-active {
            background: rgba(255, 255, 255, 0.08);
        }

        /* Toggle Switch */
        .switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 22px;
            flex-shrink: 0;
            margin: 0;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.1);
            transition: .4s;
            border-radius: 24px;
            border: 1px solid var(--border-light);
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 14px;
            width: 14px;
            left: 3px;
            bottom: 3px;
            background-color: var(--text-sub);
            transition: .4s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        input:checked+.slider {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        input:checked+.slider:before {
            transform: translateX(18px);
            background-color: #fff;
        }

        /* Filter Toggle */
        .filter-toggles {
            display: flex;
            gap: 10px;
            background: rgba(30, 30, 30, 0.8);
            padding: 8px;
            border-radius: 30px;
            backdrop-filter: blur(5px);
            width: fit-content;
        }

        .filter-btn {
            background: transparent;
            border: 1px solid transparent;
            color: var(--text-sub);
            padding: 5px 13px;
            /* Slightly reduced padding to account for 1px border */
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            align-items: center;
            gap: 6px;
            box-sizing: border-box;
        }

        .filter-btn.active {
            background: #ffffff;
            color: #09090b;
            border-radius: 20px;
            box-shadow: none;
            border: 1px solid #ffffff;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        /* Action Buttons (Right) */
        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            max-width: 180px;
            gap: 12px;
        }

        .circle-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: var(--surface);
            color: var(--text-main);
            border: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .circle-btn:hover {
            transform: translateY(-2px);
            background: #ffffff;
            border-color: #ffffff;
            box-shadow: none;
            color: #09090b;
        }

        .header-btn {
            background: rgba(30, 41, 59, 0.85);
            color: var(--text-main);
            border: 1px solid var(--border-light);
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .header-btn:hover {
            transform: translateY(-1px);
            background: #ffffff;
            border-color: #ffffff;
            box-shadow: none;
            color: #09090b;
        }

        @media (max-width: 480px) {
            .header-btn span {
                display: none;
            }

            .plotx-mobile-logo {
                display: block !important;
            }

            .plotx-desktop-logo {
                display: none !important;
            }
        }

        .info-drawer {
            position: absolute;
            top: 50%;
            right: 20px;
            transform: translateY(-50%) scale(0.9) translate3d(0,0,0);
            transform-origin: right center;
            width: 90%;
            max-width: 320px;
            max-height: calc(100vh - 60px);
            overflow-y: auto;
            background: var(--surface);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
            border-radius: 20px;
            z-index: 1001;
            padding: 20px;
            box-sizing: border-box;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
            border: 1px solid var(--border-light);
            color: var(--text-main);
            will-change: transform, opacity;
        }

        .info-drawer::-webkit-scrollbar {
            width: 6px;
        }

        .info-drawer::-webkit-scrollbar-track {
            background: transparent;
        }

        .info-drawer::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
        }

        .info-drawer::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .info-img-wrapper {
            width: 120px;
            height: 120px;
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(0, 0, 0, 0.3);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 4px 15px rgba(0,0,0,0.25);
        }

        .info-img-wrapper:hover {
            transform: scale(1.05);
            border-color: #2ecc71;
            box-shadow: 0 6px 20px rgba(0,0,0,0.4);
        }

        .info-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .info-img-wrapper:hover img {
            transform: scale(1.08);
        }

        .info-drawer.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(-50%) scale(1) translate3d(0,0,0);
            pointer-events: auto;
        }

        .drawer-header {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 5px;
        }

        .close-btn {
            background: none;
            border: none;
            color: #ddd;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            line-height: 1;
            transition: color 0.2s;
        }

        .close-btn:hover {
            color: #fff;
        }

        .info-row {
            display: flex;
            align-items: center;
            padding: 8px 0;
            font-size: 0.9rem;
        }

        .info-row.compact {
            padding: 4px 0;
        }

        .info-label {
            width: 90px;
            color: #bbb;
            font-weight: 500;
            font-size: 0.85rem;
        }

        .info-value {
            flex: 1;
            color: #fff;
            font-weight: 600;
        }

        #d-status-badge {
            display: inline-block;
            padding: 6px 14px;
            border-radius: 4px;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }



        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }

        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* --- Animations --- */
        @keyframes mapReveal {
            0% {
                opacity: 0;
                transform: scale(0.97);
                filter: blur(10px);
            }

            100% {
                opacity: 1;
                transform: scale(1);
                filter: blur(0);
            }
        }

        @keyframes uiSlideUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .anim-map {
            animation: mapReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .anim-ui {
            animation: uiSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .smooth-rotate-active {
            transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        }

        @keyframes modalPopIn {
            0% {
                opacity: 0;
                transform: scale(0.9) translateY(20px);
            }

            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .anim-modal-content {
            animation: modalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        /* Smooth Modals */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            backdrop-filter: blur(8px);
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-overlay.active .anim-modal-content {
            animation: modalPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }



        .search-box {
            transition: all 0.3s ease;
            cursor: text;
        }

        @media (max-width: 768px) {
            .bottom-bar {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }

            .filter-share-wrapper {
                justify-content: flex-start;
                flex-wrap: nowrap;
            }

            .filter-toggles {
                flex-wrap: nowrap;
                justify-content: flex-start;
                width: auto;
                flex: none;
                box-sizing: border-box;
            }

            .filter-btn {
                flex: 0 0 auto;
                justify-content: center;
            }

            .action-buttons {
                display: flex;
                flex-wrap: nowrap;
                justify-content: space-between;
                gap: 8px;
                width: 100%;
                max-width: 100%;
                padding-bottom: 5px;
            }

            .action-buttons .circle-btn {
                width: 45px;
                height: 45px;
                flex: 0 0 auto;
                font-size: 1.1rem;
            }

            .controls-container {
                max-width: 100%;
            }

            .info-drawer {
                /* width: auto;
                min-width: 180px;
                max-width: 220px; */
                top: 120px;
                padding: 10px;
                border-radius: 10px;
                max-height: 45vh;
                overflow-y: auto;
            }

            .drawer-header {
                margin-bottom: 2px;
            }

            .close-btn {
                font-size: 1.2rem;
            }

            .info-label {
                width: 60px;
                font-size: 0.65rem;
            }

            .info-row {
                padding: 2px 0;
            }

            .info-value {
                font-size: 0.75rem;
            }

            #d-status-badge {
                padding: 2px 6px;
                font-size: 0.65rem;
            }

            #d-number {
                font-size: 0.9rem !important;
            }

            #d-price {
                font-size: 0.75rem !important;
            }

            #d-desc {
                font-size: 0.7rem !important;
                margin-top: 5px !important;
                margin-bottom: 5px !important;
                line-height: 1.2 !important;
            }

            .info-drawer button {
                padding: 6px !important;
                font-size: 0.8rem !important;
                margin-top: 8px !important;
            }

            .circle-btn {
                width: 40px;
                height: 40px;
                font-size: 0.9rem;
            }

            #opacity-popover {
                bottom: 70px !important;
                right: 0 !important;
                left: 0 !important;
                margin: 0 auto !important;
                width: max-content;
                z-index: 9999 !important;
            }

            #rotate-popover {
                bottom: 70px !important;
                right: 0 !important;
                left: 0 !important;
                margin: 0 auto !important;
                width: max-content;
                z-index: 9999 !important;
            }

            .ui-layer {
                padding: 10px;
            }

            .top-bar .brand-logo {
                font-size: 1rem;
            }
        }

        .leaflet-top.leaflet-left {
            margin-top: 60px;
        }

        .masonry-gallery-wrapper {
            max-height: calc(100vh - 120px);
            overflow-y: auto;
            width: 100%;
            padding: 20px;
            box-sizing: border-box;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .masonry-gallery-wrapper::-webkit-scrollbar {
            display: none;
        }

        .masonry-gallery {
            column-count: 3;
            column-gap: 15px;
            width: 100%;
            margin: 0 auto;
        }

        .masonry-gallery a,
        .masonry-gallery div {
            display: inline-block;
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            background: #000;
            margin-bottom: 15px;
            break-inside: avoid;
        }

        @media (max-width: 900px) {
            .masonry-gallery {
                column-count: 2;
                column-gap: 12px;
            }
        }

        @media (max-width: 500px) {
            .masonry-gallery {
                column-count: 1;
                column-gap: 10px;
            }
        }

        .gallery-modal-content {
            background: rgba(30, 30, 30, 0.95) !important;
            padding: 20px !important;
            max-width: 1100px !important;
            border-radius: 12px !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
        }

        /* Status Badge Colors */
        .status-avail { background-color: var(--status-available) !important; }
        .status-sold { background-color: var(--status-sold) !important; }
        .status-res { background-color: var(--status-reserved) !important; }

        /* Branding card wrapper overrides */
        .brand-card-overlay-icon {
            background: none !important;
            border: none !important;
        }

        /* Fixed brand card overlay â€” inside Leaflet pane */
        .brand-card-leaflet-marker {
            background: none !important;
            border: none !important;
            box-shadow: none !important;
            white-space: nowrap;
        }
        .brand-card-inner {
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 16px;
            padding: 12px 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: center;
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
            min-width: 170px;
            box-sizing: border-box;
            pointer-events: auto;
        }

        @keyframes pulse {
            0% {
                transform: scale(0.6);
                opacity: 1;
            }
            100% {
                transform: scale(2.4);
                opacity: 0;
            }
        }
    
