:root {
    --navy-950: #080e1c;
    --navy-900: #0b1424;
    --navy-800: #101d33;
    --navy-700: #16263f;
    --gold: #d4af37;
    --gold-soft: #f0d78c;
    --ink-100: #eef1f7;
    --ink-300: #aab4c8;
    --ink-500: #6f7c94;
    --green: #34d399;
    --amber: #f5b942;
    --rose: #f0556b;
    --glass: rgba(12, 20, 36, .62);
    --glass-brd: rgba(212, 175, 55, .28);
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--navy-950);
    color: var(--ink-100);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand,
.num-display {
    font-family: 'Outfit', sans-serif;
}

::selection {
    background: var(--gold);
    color: var(--navy-950);
}


/* ---------- Scrollbar ---------- */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--navy-700);
    border-radius: 8px;
}


/* ================= HEADER ================= */

.topbar {
    background: linear-gradient(180deg, #101c34 0%, #070d1a 72%, #060b16 100%);
    border-bottom: 1px solid rgba(212, 175, 55, .18);
    padding: .72rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 40;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .38);
}

.topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, .15) 18%, var(--gold) 50%, rgba(212, 175, 55, .15) 82%, transparent 100%);
    pointer-events: none;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-shrink: 0;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #4a6088 0%, #1a2a46 48%, #0c1628 100%);
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, .1), 0 8px 22px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.brand-logo i {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, .45));
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .98rem;
    letter-spacing: .09em;
    line-height: 1.1;
    color: #f7f4ea;
    white-space: nowrap;
}

.brand-sub {
    margin-top: .22rem;
    font-size: .6rem;
    letter-spacing: .24em;
    color: var(--gold);
    font-weight: 500;
    white-space: nowrap;
    opacity: .9;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
    border: 1px solid rgba(212, 175, 55, .38);
    color: var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.icon-btn:hover {
    background: linear-gradient(180deg, #f3d98a, #c9a227);
    border-color: var(--gold);
    color: var(--navy-950);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(212, 175, 55, .28);
}

.icon-btn i {
    width: 17px;
    height: 17px;
}

.search-wrap {
    width: min(380px, 42vw);
    display: flex;
    align-items: center;
    background: rgba(8, 16, 32, .72);
    border: 1px solid rgba(212, 175, 55, .22);
    border-radius: 999px;
    padding: 0 .28rem 0 1rem;
    height: 44px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 8px 20px rgba(0, 0, 0, .18);
    transition: border-color .2s, box-shadow .2s;
}

.search-wrap:focus-within {
    border-color: rgba(212, 175, 55, .7);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .12), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.search-wrap i {
    width: 16px;
    height: 16px;
    color: var(--gold);
    opacity: .75;
    flex-shrink: 0;
}

.search-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--ink-100);
    font-family: 'Poppins', sans-serif;
    font-size: .84rem;
    width: 100%;
    padding: 0 .7rem;
}

.search-wrap input::placeholder {
    color: var(--ink-500);
    letter-spacing: .01em;
}

.go-btn {
    background: linear-gradient(180deg, #f6e2a4 0%, #d4af37 48%, #b8922a 100%);
    color: var(--navy-950);
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .14em;
    padding: .48rem 1.05rem;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 175, 55, .32), inset 0 1px 0 rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: filter .2s, transform .2s;
}

 .go-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.search-wrap.search-error {
    animation: headerSearchShake .24s linear 2;
}
@keyframes headerSearchShake {
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}


/* ================= MAP STAGE ================= */

.stage {
    position: relative;
    width: 100%;
    height: calc(100vh - 74px);
    min-height: 460px;
    background: radial-gradient(ellipse at 50% 0%, #0e1930 0%, var(--navy-950) 70%);
    overflow: hidden;
}

.map-viewport {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    transition: transform .25s ease;
    transform-origin: center center;
}

.map-frame {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-brd);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.map-frame img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.plot-hit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.plot-hit rect,
.plot-hit polygon {
    pointer-events: all;
    cursor: pointer;
    fill: transparent;
}

.plot-hit rect:hover,
.plot-hit polygon:hover {
    fill: rgba(212, 175, 55, .28);
}


/* placeholder look until real plot image is dropped in */

.map-frame.is-placeholder {
    width: min(1100px, 92vw);
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .6rem;
    color: var(--ink-500);
    text-align: center;
    padding: 2rem;
}

.map-frame.is-placeholder i {
    width: 44px;
    height: 44px;
    color: var(--gold);
    opacity: .7;
}

.map-frame.is-placeholder span {
    font-size: .85rem;
    letter-spacing: .02em;
    max-width: 340px;
}


/* ---------- Compass + 3D ---------- */

.stage-topleft {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    align-items: center;
}

.compass {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, #1c2b44 0%, #0c1526 72%);
    border: 1px solid rgba(150, 180, 200, .28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .03);
    position: relative;
    font-family: 'Outfit', sans-serif;
    font-size: .62rem;
    font-weight: 700;
}

.compass>span {
    position: absolute;
    line-height: 1;
}

.compass .n {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #e10600;
}

.compass .s {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #f4f7fb;
}

.compass .e {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #f4f7fb;
}

.compass .w {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #f4f7fb;
}

.rose {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 18px;
    height: 30px;
    transform: translate(-50%, -50%);
}

.rose-n,
.rose-s {
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
}

.rose-n {
    top: 0;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 16px solid #e10600;
}

.rose-s {
    bottom: 0;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 15px solid #f7f9fc;
}

.rose-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10192b;
    border: 1.5px solid #fff;
    transform: translate(-50%, -46%);
}

.mode-btn {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #16233a 0%, #0b1322 74%);
    border: 1.5px solid rgba(46, 140, 130, .75);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .03);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.mode-btn.active {
    border-color: rgba(72, 190, 176, .95);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4), 0 0 0 3px rgba(46, 140, 130, .16);
}

.mode-btn:hover {
    transform: translateY(-1px);
}


/* ---------- Brand badge top right ---------- */

.stage-topright {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 20;
}

.badge-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}

.badge-ring i {
    width: 24px;
    height: 24px;
}


/* ---------- Bottom status bar ---------- */

.stage-bottomleft {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: max-content;
    max-width: calc(100% - 28rem);
    background: rgba(10, 16, 30, .88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: .62rem 1rem .62rem 1.05rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.status-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    flex-shrink: 0;
}

.status-head span {
    font-size: .72rem;
    letter-spacing: .16em;
    color: #d5dce8;
    font-weight: 600;
}

.toggle {
    width: 36px;
    height: 20px;
    border-radius: 20px;
    background: #c9cdd6;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: .2s;
    border: none;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}

.toggle.on {
    background: var(--gold);
}

.toggle.on::after {
    left: 18px;
    background: #fff;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: 0;
    font-size: .84rem;
    flex-shrink: 1;
    min-width: 0;
}

.legend-row .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: .15rem;
    background: transparent;
    border: 2px solid currentColor;
    flex-shrink: 0;
}

.legend-row .lbl {
    display: flex;
    align-items: center;
    color: #eef2f8;
    min-width: 0;
}

.legend-row .lbl-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-row .val {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: .95rem;
    flex-shrink: 0;
}

.dot-available,
.val-available {
    color: #3dce74;
}

.dot-booked,
.val-booked {
    color: #f0c43a;
}

.dot-sold,
.val-sold {
    color: #ff4d67;
}

.status-total {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: 0 0 0 .95rem;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.status-total .lbl {
    font-size: .84rem;
    color: #d5dce8;
}

.status-total .val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0c43a;
    font-family: 'Outfit', sans-serif;
}


/* ---------- Bottom right cluster ---------- */

.stage-bottomright {
    position: absolute;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .7rem;
}

.pill-group {
    display: flex;
    gap: .55rem;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.pill {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .32rem .9rem .32rem .32rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(22, 36, 62, .82), rgba(8, 14, 28, .78));
    border: 1px solid rgba(212, 175, 55, .34);
    color: #f7f4ea;
    font-family: 'Outfit', sans-serif;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    cursor: pointer;
    white-space: nowrap;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}

.pill-ico {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 32% 28%, #3d5278 0%, #121e34 70%);
    border: 1px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .1), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.pill-ico i {
    width: 15px;
    height: 15px;
}

.pill:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(32, 48, 78, .9), rgba(12, 20, 36, .86));
    box-shadow: 0 16px 32px rgba(0, 0, 0, .42), 0 0 18px rgba(212, 175, 55, .2);
}

.pill:hover .pill-ico {
    background: linear-gradient(180deg, #f3d98a, #c9a227);
    color: var(--navy-950);
}

.zoom-cluster {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(22, 36, 62, .82), rgba(8, 14, 28, .78));
    border: 1px solid rgba(212, 175, 55, .38);
    color: var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
}

.zoom-btn:hover {
    background: linear-gradient(180deg, #f3d98a, #c9a227);
    color: var(--navy-950);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(212, 175, 55, .28);
}

.zoom-btn i {
    width: 16px;
    height: 16px;
}

.rst-btn {
    height: 40px;
    padding: 0 .95rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(22, 36, 62, .82), rgba(8, 14, 28, .78));
    border: 1px solid rgba(212, 175, 55, .38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--gold-soft);
    cursor: pointer;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}

.rst-btn:hover {
    background: linear-gradient(180deg, #f3d98a, #c9a227);
    color: var(--navy-950);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(212, 175, 55, .28);
}

.zoom-pct {
    height: 40px;
    min-width: 68px;
    padding: 0 .9rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f6e2a4 0%, #d4af37 48%, #b8922a 100%);
    border: 1px solid rgba(255, 236, 180, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--navy-950);
    cursor: default;
    box-shadow: 0 8px 18px rgba(212, 175, 55, .32), inset 0 1px 0 rgba(255, 255, 255, .45);
}


/* ================= RESPONSIVE ================= */

@media (max-width:768px) {
    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand actions" "search search";
        align-items: center;
        column-gap: .55rem;
        row-gap: .65rem;
        padding: .6rem .8rem;
    }

    .header-right {
        display: contents;
    }

    .brand-block {
        grid-area: brand;
        min-width: 0;
        gap: .6rem;
    }

    .header-actions {
        grid-area: actions;
        gap: .4rem;
    }

    .brand-title {
        font-size: .72rem;
        letter-spacing: .04em;
    }

    .brand-sub {
        font-size: .48rem;
        letter-spacing: .12em;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        box-shadow: 0 0 0 3px rgba(212, 175, 55, .1);
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .search-wrap {
        grid-area: search;
        width: 100%;
    }

    .stage {
        height: calc(100vh - 116px);
        min-height: 520px;
    }

    .stage-topleft {
        transform: scale(.85);
        transform-origin: top left;
    }

    .stage-topright {
        transform: scale(.8);
        transform-origin: top right;
    }

    .stage-bottomleft {
        left: .6rem;
        right: .6rem;
        bottom: .6rem;
        width: auto;
        max-width: none;
        flex-wrap: wrap;
        row-gap: .4rem;
        column-gap: .7rem;
        padding: .55rem .75rem;
        border-radius: 14px;
    }

    .status-head span {
        font-size: .62rem;
        letter-spacing: .1em;
    }

    .legend-row {
        font-size: .74rem;
        gap: .28rem;
        flex-shrink: 0;
    }

    .legend-row .val {
        font-size: .82rem;
    }

    .legend-row .lbl-text {
        max-width: none;
    }

    .status-total {
        padding-left: .7rem;
        gap: .4rem;
    }

    .status-total .lbl {
        font-size: .74rem;
    }

    .status-total .val {
        font-size: 1rem;
    }

    .stage-bottomright {
        right: .7rem;
        bottom: 5.6rem;
        gap: .5rem;
    }

    .pill-group {
        flex-direction: column;
        align-items: flex-end;
        gap: .4rem;
    }

    .pill {
        padding: .28rem;
        border-radius: 50%;
    }

    .pill-label {
        display: none;
    }

    .pill-ico {
        width: 36px;
        height: 36px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
    }

    .zoom-btn {
        width: 36px;
        height: 36px;
    }

    .rst-btn,
    .zoom-pct {
        height: 36px;
        width: auto;
        min-width: 0;
        padding: 0 .65rem;
        font-size: .62rem;
    }
}

@media (max-width:420px) {
    .stage-topleft {
        top: .7rem;
        left: .7rem;
    }

    .stage-topright {
        top: .7rem;
        right: .7rem;
    }
}


/* ================= GALLERY MODAL ================= */

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(3, 7, 14, .72);
    backdrop-filter: blur(6px);
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-dialog {
    width: min(1080px, 96vw);
    max-height: min(88vh, 860px);
    display: flex;
    flex-direction: column;
    background: #0c1424;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    padding: 1.15rem 1.15rem 1rem;
    position: relative;
}

.gallery-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 .35rem .85rem;
}

.gallery-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
}

.gallery-head p {
    margin: .35rem 0 0;
    max-width: 760px;
    font-size: .72rem;
    letter-spacing: .04em;
    color: #9aa6bb;
    font-weight: 500;
}

.gallery-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #161f33;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #e8eef8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.gallery-close:hover {
    background: var(--gold);
    color: var(--navy-950);
    border-color: var(--gold);
}

.gallery-close i {
    width: 18px;
    height: 18px;
}

.gallery-scroll {
    overflow: auto;
    padding: .15rem .35rem .2rem;
    margin-right: -.15rem;
}

.gallery-scroll::-webkit-scrollbar {
    width: 8px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #c5cedd;
    border-radius: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.gallery-card {
    background: #10192c;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 12px;
    overflow: hidden;
}

.gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #0b1220;
}

.gallery-card p {
    margin: 0;
    padding: .7rem .8rem .75rem;
    color: #fff;
    font-size: .86rem;
    font-weight: 600;
}

@media (max-width:900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-head h2 {
        font-size: 1.15rem;
    }
}

@media (max-width:560px) {
    .gallery-modal {
        padding: .6rem;
    }

    .gallery-dialog {
        padding: .85rem .7rem .7rem;
        border-radius: 14px;
        max-height: 92vh;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-head p {
        font-size: .62rem;
    }
}

/* ================= PLOT OFFCANVAS ================= */
.plot-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(3, 7, 14, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.plot-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.plot-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 90;
    width: min(440px, 100%);
    background: #0b1222;
    color: #fff;
    box-shadow: 24px 0 60px rgba(0, 0, 0, .45);
    transform: translateX(-104%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
}

.plot-drawer.is-open {
    transform: translateX(0);
}

.plot-drawer-scroll {
    overflow: auto;
    padding: 1.35rem 1.35rem 1.5rem;
    height: 100%;
}

.plot-drawer-scroll::-webkit-scrollbar {
    width: 8px;
}

.plot-drawer-scroll::-webkit-scrollbar-thumb {
    background: #c5cedd;
    border-radius: 8px;
}

.plot-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.plot-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .8rem;
    border-radius: 999px;
    border: 1.5px solid #e0b33a;
    color: #e0b33a;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.plot-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0b33a;
}

.plot-badge.is-available {
    border-color: #3dce74;
    color: #3dce74;
}

.plot-badge.is-available .plot-badge-dot {
    background: #3dce74;
}

.plot-badge.is-sold {
    border-color: #ff4d67;
    color: #ff4d67;
}

.plot-badge.is-sold .plot-badge-dot {
    background: #ff4d67;
}

.plot-x {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #d5dce8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.plot-x:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.plot-x i {
    width: 18px;
    height: 18px;
}

.plot-title {
    margin: 1.15rem 0 0;
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    color: #fff;
}

.plot-loc {
    margin: .55rem 0 0;
    font-size: .78rem;
    letter-spacing: .16em;
    color: #8b97ab;
    font-weight: 500;
}

.plot-shape {
    margin-top: 1.15rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .02);
    padding: .4rem .2rem .15rem;
}

.plot-shape svg {
    display: block;
    width: 100%;
    height: auto;
}

.plot-specs {
    margin-top: .4rem;
}

.plot-spec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.plot-spec span {
    font-size: .72rem;
    letter-spacing: .08em;
    color: #8b97ab;
    font-weight: 600;
}

.plot-spec strong {
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    text-align: right;
}

.plot-actions {
    display: flex;
    gap: .7rem;
    margin-top: 1.15rem;
}

.plot-wa,
.plot-call {
    flex: 1;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    text-decoration: none;
    font-weight: 700;
    font-size: .98rem;
    color: #fff;
}

.plot-wa {
    background: #22c55e;
}

.plot-wa:hover {
    filter: brightness(1.06);
    color: #fff;
}

.plot-call {
    background: #4457d2;
}

.plot-call:hover {
    filter: brightness(1.08);
    color: #fff;
}

.plot-wa svg,
.plot-call i {
    width: 18px;
    height: 18px;
}

@media (max-width:560px) {
    .plot-title {
        font-size: 1.9rem;
    }

    .plot-drawer-scroll {
        padding: 1rem 1rem 1.2rem;
    }

    .plot-actions {
        flex-direction: column;
    }
}

/* =========================================================
   PREMIUM PROJECT HOME / 3D MASTER PLAN
========================================================= */
.home3d {
    max-width: 1540px;
    margin: 0 auto;
    padding: 28px 30px 40px
}

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
    gap: 24px;
    padding: 32px;
    border: 1px solid rgba(212, 175, 55, .18);
    border-radius: 24px;
    background: linear-gradient(135deg, #101b31 0%, #0b1424 52%, #080f1d 100%);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .32);
    position: relative;
    overflow: hidden
}

.project-hero:after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -150px;
    top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, .14), transparent 68%);
    pointer-events: none
}

.hero-copy {
    position: relative;
    z-index: 2
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #c7a64a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em
}

.eyebrow span {
    width: 24px;
    height: 1px;
    background: #d4af37;
    display: block
}

.hero-copy h1 {
    font-family: Outfit, sans-serif;
    font-size: clamp(36px, 4vw, 62px);
    line-height: .98;
    margin: 15px 0;
    color: #f5f2e9;
    font-weight: 600
}

.hero-copy h1 strong {
    color: #d4af37;
    font-weight: 800
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #b9c2d2;
    font-size: 11px;
    margin: 18px 0 8px
}

.hero-location svg {
    width: 15px;
    color: #d4af37
}

.hero-text {
    max-width: 680px;
    color: #7f8da8;
    font-size: 12px;
    line-height: 1.8;
    margin: 0 0 24px
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px
}

.primary-hero,
.secondary-hero {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 11px;
    border: 1px solid rgba(212, 175, 55, .3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer
}

.primary-hero {
    background: linear-gradient(135deg, #f0d078, #b98f26);
    color: #10151e;
    border: 0
}

.secondary-hero {
    background: rgba(255, 255, 255, .035);
    color: #d9dfeb
}

.primary-hero svg,
.secondary-hero svg {
    width: 16px
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    align-content: center;
    position: relative;
    z-index: 2
}

.stat-card {
    padding: 20px;
    border: 1px solid #1d2940;
    border-radius: 16px;
    background: rgba(5, 11, 21, .55);
    backdrop-filter: blur(12px)
}

.stat-card span {
    display: block;
    color: #75839b;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .08em
}

.stat-card strong {
    display: block;
    margin: 6px 0 3px;
    font: 800 29px Outfit, sans-serif;
    color: #eef2f8
}

.stat-card small {
    color: #56657d;
    font-size: 9px
}

.stat-card.available strong {
    color: #35d58a
}

.stat-card.booked strong {
    color: #f3c84b
}

.stat-card.sold strong {
    color: #ff6872
}

.map-panel {
    margin-top: 24px;
    border: 1px solid #1b2638;
    border-radius: 24px;
    background: #080f1c;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .24)
}

.map-panel-head {
    padding: 22px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #172237
}

.map-panel-head h2 {
    font: 800 26px Outfit, sans-serif;
    margin: 7px 0 4px;
    color: #f0f3f8
}

.map-panel-head p {
    margin: 0;
    color: #65738a;
    font-size: 10px
}

.map-tools {
    display: flex;
    align-items: center;
    gap: 14px
}

.live-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #83d8ae;
    font-size: 9px;
    font-weight: 800;
    padding: 9px 11px;
    border: 1px solid rgba(53, 213, 138, .18);
    border-radius: 20px;
    background: rgba(53, 213, 138, .05)
}

.live-pill span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #35d58a;
    box-shadow: 0 0 10px #35d58a
}

.map-panel .stage {
    height: min(680px, 72vh);
    min-height: 480px;
    position: relative;
    overflow: hidden;
    background: #050a12;
    isolation: isolate
}

.map-panel .map-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform-origin: center center;
    transition: transform .45s cubic-bezier(.2, .75, .25, 1);
    z-index: 1
}

.map-panel .map-frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center
}

.map-panel .map-frame>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: saturate(.9) contrast(1.05)
}

.plot-hit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible
}

.plot-hit rect,
.plot-hit polygon {
    fill: rgba(212, 175, 55, .01);
    stroke: rgba(212, 175, 55, 0);
    stroke-width: .18;
    cursor: pointer;
    transition: fill .16s, stroke .16s
}

.plot-hit rect:hover,
.plot-hit polygon:hover {
    fill: rgba(212, 175, 55, .22);
    stroke: #f0d078;
    stroke-width: .28;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, .6))
}

.stage-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(rgba(212, 175, 55, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 175, 55, .035) 1px, transparent 1px);
    background-size: 45px 45px;
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    opacity: .3
}

.stage-3d .map-viewport {
    transform: perspective(1500px) rotateX(7deg) rotateZ(-.5deg) scale(1.04);
    transform-origin: center 55%
}

.stage-3d .map-frame {
    transform: translateY(1.5%) scale(1.02)
}

.stage-3d:after {
    content: "";
    position: absolute;
    inset: 10% 8%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(212, 175, 55, .07), transparent 68%);
    pointer-events: none;
    z-index: 0
}

.stage-topleft {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 8;
    display: flex;
    gap: 10px;
    align-items: center
}

.compass {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, .35);
    background: rgba(6, 12, 22, .78);
    backdrop-filter: blur(12px);
    position: relative;
    color: #d4af37;
    font-size: 8px;
    font-weight: 800
}

.compass .n {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%)
}

.compass .s {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%)
}

.compass .e {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%)
}

.compass .w {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%)
}

.rose {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%
}

.rose:before,
.rose:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 3px;
    bottom: 3px;
    width: 1px;
    background: rgba(212, 175, 55, .35);
    transform: translateX(-50%)
}

.rose:after {
    top: 50%;
    left: 3px;
    right: 3px;
    width: auto;
    height: 1px;
    bottom: auto;
    transform: translateY(-50%)
}

.rose-n {
    position: absolute;
    left: 50%;
    top: 3px;
    transform: translateX(-50%);
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 7px solid #d4af37
}

.rose-s {
    position: absolute;
    left: 50%;
    bottom: 3px;
    transform: translateX(-50%);
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 7px solid #56657d
}

.rose-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    background: #d4af37;
    border-radius: 50%;
    transform: translate(-50%, -50%)
}

.mode-btn {
    height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(212, 175, 55, .32);
    border-radius: 11px;
    background: rgba(6, 12, 22, .82);
    color: #9ba8bc;
    backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer
}

.mode-btn.active {
    color: #111721;
    background: #d4af37;
    border-color: #d4af37
}

.stage-topright {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 8
}

.badge-ring {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(212, 175, 55, .3);
    border-radius: 50%;
    background: rgba(6, 12, 22, .78);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    backdrop-filter: blur(12px)
}

.badge-ring svg {
    width: 19px
}

.stage-bottomleft {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 190px;
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, .16);
    border-radius: 15px;
    background: rgba(5, 11, 20, .82);
    backdrop-filter: blur(15px);
    z-index: 8
}

.status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #75839a;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    margin-bottom: 11px
}

.legend-row,
.status-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0
}

.lbl {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #9ca8ba;
    font-size: 9px
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%
}

.dot-available {
    background: #35d58a
}

.dot-booked {
    background: #f3c84b
}

.dot-sold {
    background: #ff6872
}

.val {
    font: 800 11px Outfit, sans-serif
}

.val-available {
    color: #35d58a
}

.val-booked {
    color: #f3c84b
}

.val-sold {
    color: #ff6872
}

.status-total {
    border-top: 1px solid #172237;
    margin-top: 6px;
    padding-top: 10px
}

.status-total .val {
    color: #f0f3f8
}

.stage-bottomright {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 8
}

.hint-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    border-radius: 11px;
    border: 1px solid rgba(212, 175, 55, .18);
    background: rgba(5, 11, 20, .82);
    color: #9ca8ba;
    font-size: 9px;
    font-weight: 800;
    backdrop-filter: blur(12px)
}

.hint-chip svg {
    width: 14px;
    color: #d4af37
}

.map-panel .zoom-cluster {
    display: flex;
    align-items: center;
    gap: 5px
}

.map-panel .zoom-btn,
.map-panel .rst-btn,
.map-panel .zoom-pct {
    background: #0b1424;
    border: 1px solid #253148;
    color: #cbd3e0
}

.map-panel .zoom-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.map-panel .zoom-btn svg {
    width: 15px
}

.map-panel .rst-btn {
    height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center
}

.map-panel .zoom-pct {
    height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    font-size: 9px;
    font-weight: 800
}

@media(max-width:900px) {
    .home3d {
        padding: 0
    }

    .project-hero {
        grid-template-columns: 1fr;
        padding: 24px
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr)
    }

    .map-panel .stage {
        height: 65vh;
        min-height: 420px
    }

    .map-panel-head {
        align-items: flex-start;
        flex-direction: column
    }

    .map-tools {
        width: 100%;
        justify-content: space-between
    }

    .stage-3d .map-viewport {
        transform: perspective(1000px) rotateX(4deg) scale(1.02)
    }
}

@media(max-width:600px) {
    .topbar {
        padding: .65rem .8rem;
        grid-template-areas: "brand actions" "search search";
    }

    .brand-logo {
        width: 42px;
        height: 42px
    }

    .brand-title {
        font-size: .72rem
    }

    .brand-sub {
        font-size: .48rem
    }

    .search-wrap {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 .35rem 0 .75rem;
        display: flex;
        justify-content: flex-start;
        gap: .45rem;
    }

    .search-wrap input {
        display: block;
        width: 100%;
        min-width: 0;
        font-size: .78rem;
    }

    .search-wrap .go-btn {
        display: inline-flex;
        flex: 0 0 auto;
        min-width: 48px;
        height: 32px;
        padding: 0 .65rem;
        font-size: .68rem;
    }

    .search-wrap>svg {
        margin: 0;
        flex: 0 0 auto;
    }

    .header-actions .icon-btn:first-child {
        display: none
    }

    .home3d {
        padding: 0
    }

    .project-hero {
        padding: 20px;
        border-radius: 18px
    }

    .hero-copy h1 {
        font-size: 34px
    }

    .hero-text {
        font-size: 11px
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr
    }

    .stat-card {
        padding: 14px
    }

    .stat-card strong {
        font-size: 23px
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .primary-hero {
        grid-column: 1/-1
    }

    .map-panel {
        border-radius: 18px
    }

    .map-panel-head {
        padding: 18px
    }

    .map-panel-head h2 {
        font-size: 21px
    }

    .live-pill {
        display: none
    }

    .map-panel .stage {
        height: 62vh;
        min-height: 370px
    }

    .stage-bottomleft {
        left: 10px;
        bottom: 10px;
        width: 165px;
        padding: 11px
    }

    .stage-topleft {
        top: 10px;
        left: 10px
    }

    .stage-topright {
        top: 10px;
        right: 10px
    }

    .stage-bottomright {
        right: 10px;
        bottom: 10px
    }

    .hint-chip {
        padding: 9px
    }

    .compass {
        width: 48px;
        height: 48px
    }

    .mode-btn {
        height: 38px
    }

    .stage-3d .map-viewport {
        transform: none
    }

    .map-panel .zoom-cluster {
        gap: 3px
    }

    .map-panel .zoom-btn {
        width: 34px;
        height: 34px
    }

    .map-panel .rst-btn,
    .map-panel .zoom-pct {
        height: 34px;
        padding: 0 8px
    }
}

/* ================= LANDING / PROJECT EXPLORER ================= */
.home3d {
    background: var(--navy-950);
    max-width: none;
    margin: 0;
    padding: 0;
}

.landing-hero {
    position: relative;
    min-height: calc(100vh - 74px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 82% 20%, rgba(212, 175, 55, .14), transparent 26%), radial-gradient(circle at 8% 90%, rgba(49, 104, 180, .16), transparent 28%), linear-gradient(135deg, #07101e 0%, #0b1729 52%, #0a1220 100%);
    border-bottom: 1px solid rgba(212, 175, 55, .12);
}

.hero-inner {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 42px 3.2vw 28px;
    display: grid;
    grid-template-columns: minmax(380px, .82fr) minmax(0, 1.18fr);
    gap: 36px;
    align-items: stretch;
}

.hero-copy {
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-kicker,
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-soft);
    font-size: .68rem;
    letter-spacing: .18em;
    font-weight: 700
}

.hero-kicker span,
.eyebrow span {
    width: 28px;
    height: 2px;
    background: var(--gold);
    display: inline-block;
    box-shadow: 0 0 12px rgba(212, 175, 55, .45)
}

.hero-copy h1 {
    font-size: clamp(3.4rem, 6vw, 6.6rem);
    line-height: .92;
    letter-spacing: -.045em;
    margin: 22px 0 26px;
    font-weight: 700;
    color: #fff
}

.hero-copy h1 strong {
    color: var(--gold);
    font-weight: 800
}

.hero-lead {
    max-width: 630px;
    color: #aeb9cb;
    font-size: 1.02rem;
    line-height: 1.9;
    margin: 0 0 30px
}

.hero-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
    max-width: 560px;
}

.hero-steps div {
    padding: 12px 12px 11px;
    border: 1px solid rgba(212, 175, 55, .2);
    border-radius: 12px;
    background: rgba(8, 14, 28, .45);
}

.hero-steps b {
    display: block;
    color: #f0d78c;
    font-family: 'Outfit', sans-serif;
    font-size: .78rem;
    letter-spacing: .08em;
}

.hero-steps span {
    display: block;
    margin-top: 4px;
    color: #d5dceb;
    font-size: .78rem;
}

.hero-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(212, 175, 55, .2);
    background: rgba(6, 11, 20, .72);
}

.hero-stats div {
    padding: 16px 3.2vw;
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.hero-stats div:last-child { border-right: 0; }

.hero-stats strong {
    display: block;
    color: #f0d78c;
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    line-height: 1;
}

.hero-stats span {
    display: block;
    margin-top: 6px;
    color: #8b97ab;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 27px;
    color: #7f8da5;
    font-size: .75rem
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 7px
}

.hero-trust i {
    width: 14px;
    color: var(--gold)
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.primary-hero,
.secondary-hero {
    min-height: 48px;
    border-radius: 12px;
    padding: 0 18px;
    border: 1px solid rgba(212, 175, 55, .28);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition: .22s
}

.primary-hero {
    background: linear-gradient(135deg, #f0d78c, #c89f2e);
    color: #0a1220;
    box-shadow: 0 12px 30px rgba(212, 175, 55, .2)
}

.secondary-hero {
    background: rgba(255, 255, 255, .035);
    color: #e9edf5
}

.primary-hero:hover,
.secondary-hero:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.primary-hero i,
.secondary-hero i {
    width: 17px
}

.hero-visual {
    display: flex;
    min-width: 0;
    min-height: 100%;
}

.hero-map-card {
    width: 100%;
    max-width: none;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, .24);
    border-radius: 22px;
    background: rgba(11, 20, 36, .72);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.hero-map-top,
.hero-map-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: #8290a8;
    font-size: .65rem;
    letter-spacing: .14em;
    font-weight: 700
}

.hero-map-top b {
    color: #74e3b1;
    font-size: .6rem;
    display: flex;
    gap: 6px;
    align-items: center
}

.hero-map-top b i,
.project-live i {
    width: 6px;
    height: 6px;
    background: #38d996;
    border-radius: 50%;
    box-shadow: 0 0 10px #38d996
}

.hero-map-art {
    position: relative;
    flex: 1;
    height: auto;
    min-height: 460px;
    border-radius: 16px;
    overflow: hidden;
    background: #dfe2d7
}

.hero-map-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
    filter: saturate(.78) contrast(1.02)
}

.hero-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 13, 25, .08), rgba(6, 13, 25, .5))
}

.hero-map-caption {
    position: absolute;
    left: 20px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 2px 10px #000
}

.hero-map-caption strong {
    font-family: 'Outfit';
    font-size: 1.02rem
}

.hero-map-caption span {
    font-size: .67rem;
    color: #d7dde8;
    margin-top: 3px
}

.hero-map-pin {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #0b1424;
    color: #f4d98d;
    border: 1px solid #e0bd56;
    font-family: 'Outfit';
    font-size: .68rem;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .35);
    animation: mapPulse 2.8s infinite
}

.pin-one {
    left: 18%;
    top: 31%
}

.pin-two {
    left: 49%;
    top: 23%
}

.pin-three {
    right: 18%;
    top: 58%;
    animation-delay: .8s
}

.hero-map-bottom b {
    color: #f0d78c;
    font-family: 'Outfit';
    font-size: .78rem
}

@keyframes mapPulse {

    0%,
    100% {
        box-shadow: 0 7px 18px rgba(0, 0, 0, .35), 0 0 0 0 rgba(212, 175, 55, .28)
    }

    50% {
        box-shadow: 0 7px 18px rgba(0, 0, 0, .35), 0 0 0 9px rgba(212, 175, 55, 0)
    }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none
}

.hero-glow-one {
    width: 260px;
    height: 260px;
    right: -100px;
    top: 40px;
    background: rgba(212, 175, 55, .06)
}

.hero-glow-two {
    width: 320px;
    height: 320px;
    left: -160px;
    bottom: -150px;
    background: rgba(45, 109, 191, .08)
}

.projects-section {
    max-width: 1380px;
    margin: auto;
    padding: 86px 5.5% 95px
}

.site-footer {
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, .22);
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .12), transparent 28%),
        linear-gradient(180deg, #101b30 0%, #070d18 100%);
    color: #d5dceb;
}

.site-footer-inner {
    max-width: 1380px;
    margin: auto;
    padding: 58px 5.5% 42px;
    display: grid;
    grid-template-columns: 1.25fr .85fr 1.05fr;
    gap: 48px;
    align-items: start;
}

.site-footer-mark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #1c1404;
    background: linear-gradient(160deg, #f8e7b0, #d4af37 55%, #b8922a);
    box-shadow: 0 10px 24px rgba(212, 175, 55, .22);
}

.site-footer-logo svg { width: 22px; height: 22px; }

.site-footer-kicker {
    display: block;
    color: #f0d78c;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.site-footer-brand strong {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    letter-spacing: .01em;
}

.site-footer-brand p {
    margin: 16px 0 0;
    max-width: 380px;
    color: #8b97ab;
    font-size: .9rem;
    line-height: 1.7;
}

.site-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.site-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #f0d78c;
    border: 1px solid rgba(212, 175, 55, .4);
    background: rgba(8, 14, 28, .45);
    text-decoration: none;
}

.site-social-btn svg {
    width: 16px;
    height: 16px;
}

.site-social-btn:hover {
    color: #1c1404;
    background: linear-gradient(160deg, #f8e7b0, #d4af37);
    border-color: #d4af37;
}

.site-footer h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
    color: #f0d78c;
    font-family: 'Outfit', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.site-footer h3::before {
    content: "";
    width: 22px;
    height: 1px;
    background: #d4af37;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(8, 14, 28, .35);
    color: #e8edf6;
    text-decoration: none;
}

.site-footer-links a b {
    display: block;
    font-weight: 600;
    font-size: .92rem;
}

.site-footer-links a small {
    display: block;
    margin-top: 2px;
    color: #8b97ab;
    font-size: .72rem;
}

.site-footer-links a svg {
    width: 15px;
    height: 15px;
    color: #d4af37;
    flex: 0 0 auto;
}

.site-footer-links a:hover {
    border-color: rgba(212, 175, 55, .4);
    color: #fff;
}

.site-footer-nav a {
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d5dceb;
    font-size: .92rem;
}

.site-footer-nav a svg { margin-left: auto; }

.site-footer-card {
    margin-top: 16px;
    padding: 14px 14px 8px;
    border: 1px solid rgba(212, 175, 55, .22);
    border-radius: 14px;
    background: rgba(8, 14, 28, .45);
}

.site-footer-card p,
.site-footer-phone {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    color: #d5dceb;
    font-size: .84rem;
    line-height: 1.5;
    text-decoration: none;
}

.site-footer-card svg {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: #d4af37;
    flex: 0 0 auto;
}

.site-footer-phone span {
    color: #f0d78c;
    font-weight: 600;
    letter-spacing: .02em;
}

.site-footer-bar {
    max-width: 1380px;
    margin: auto;
    padding: 16px 5.5% 20px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6f7c94;
    font-size: .75rem;
    letter-spacing: .02em;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-end;
    margin-bottom: 30px
}

.section-heading h2 {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    margin: 12px 0 8px;
    color: #fff
}

.section-heading p {
    color: #7f8da5;
    margin: 0
}

.project-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-left: 1px solid rgba(212, 175, 55, .2);
    padding-left: 28px
}

.project-count strong {
    font: 700 2.2rem 'Outfit';
    color: var(--gold)
}

.project-count span {
    font-size: .6rem;
    letter-spacing: .16em;
    color: #6f7c94
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.project-card {
    background: linear-gradient(180deg, #101c30, #0c1627);
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    outline: none
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-7px);
    border-color: rgba(212, 175, 55, .5);
    box-shadow: 0 25px 55px rgba(0, 0, 0, .3)
}

.project-image {
    height: 235px;
    position: relative;
    overflow: hidden;
    background: #121d30
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s
}

.project-card:hover .project-image img {
    transform: scale(1.05)
}

.project-image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 11, 20, .05), rgba(5, 11, 20, .75))
}

.project-live,
.project-map-label,
.project-soon {
    position: absolute;
    top: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .12em
}

.project-live {
    left: 14px;
    background: rgba(5, 16, 22, .72);
    color: #7de4b3;
    border: 1px solid rgba(125, 228, 179, .2);
    display: flex;
    align-items: center;
    gap: 7px
}

.project-map-label {
    right: 14px;
    background: rgba(8, 14, 25, .76);
    color: #e9d28b;
    border: 1px solid rgba(212, 175, 55, .24);
    display: flex;
    align-items: center;
    gap: 6px
}

.project-map-label i {
    width: 13px
}

.project-card-body {
    padding: 22px
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #77869e;
    font-size: .57rem;
    letter-spacing: .13em;
    font-weight: 700
}

.project-card h3 {
    font: 700 1.35rem 'Outfit';
    color: #fff;
    margin: 12px 0 8px
}

.project-card p {
    margin: 0;
    color: #8c99ad;
    font-size: .77rem;
    display: flex;
    gap: 7px;
    align-items: center
}

.project-card p i {
    width: 14px;
    color: var(--gold)
}

.project-footer {
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin-top: 20px;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7f8da5;
    font-size: .7rem
}

.project-footer button {
    border: 0;
    background: none;
    color: #e9d28b;
    font: 700 .72rem 'Outfit';
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px
}

.project-footer i {
    width: 14px
}

.project-placeholder {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, .11), transparent 35%), linear-gradient(135deg, #111e32, #0a1220)
}

.placeholder-city {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #77869e
}

.placeholder-city i {
    width: 46px;
    height: 46px;
    color: #c7a43c
}

.placeholder-city span {
    font: 700 .66rem 'Outfit';
    letter-spacing: .2em
}

.project-soon {
    left: 14px;
    background: rgba(212, 175, 55, .12);
    color: #e8d38f;
    border: 1px solid rgba(212, 175, 55, .2)
}

#projectMap {
    display: none;
    max-width: none;
    padding: 0 5.5% 80px;
    background: #070e1a
}

.map-panel-head {
    max-width: 1380px;
    margin: 0 auto;
    padding: 54px 0 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px
}

.map-panel-head h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin: 10px 0 6px
}

.map-panel-head p {
    color: #8290a8;
    margin: 0
}

.map-head-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.map-back {
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(212, 175, 55, .2);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #d7dde8;
    font: 600 .72rem 'Outfit';
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer
}

.map-back i {
    width: 15px
}

.map-tools {
    display: flex;
    align-items: center;
    gap: 10px
}

.map-panel .stage {
    max-width: 1380px;
    margin: auto;
    height: min(720px, 72vh);
    border: 1px solid rgba(212, 175, 55, .16);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .34)
}

#projectMap.is-visible {
    display: block
}

@media (max-width:1100px) {
    .landing-hero { min-height: auto; }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 24px 28px;
    }

    .hero-map-art { min-height: 360px; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); }

    .hero-stats div:nth-child(2) { border-right: 0; }

    .hero-copy {
        max-width: 800px
    }

    .hero-visual {
        justify-content: flex-start
    }

    .hero-map-card {
        max-width: none;
        width: 100%;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width:700px) {
    .landing-hero {
        min-height: auto
    }

    .hero-inner {
        padding: 42px 16px 24px
    }

    .hero-steps { grid-template-columns: 1fr; max-width: none; }

    .hero-stats div { padding: 14px 16px; }

    .hero-copy h1 {
        font-size: 3.3rem
    }

    .hero-lead {
        font-size: .88rem;
        line-height: 1.75
    }

    .hero-trust {
        gap: 10px;
        flex-direction: column
    }

    .hero-map-card {
        padding: 7px;
        border-radius: 18px
    }

    .hero-map-art {
        height: 275px
    }

    .projects-section {
        padding: 62px 20px 70px
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        padding: 40px 20px 28px;
        gap: 28px;
    }

    .site-footer-bar {
        padding: 14px 20px 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading {
        align-items: flex-start
    }

    .project-count {
        display: none
    }

    .project-grid {
        grid-template-columns: 1fr
    }

    .project-image {
        height: 210px
    }

    .map-panel-head {
        padding: 38px 0 18px;
        align-items: flex-start;
        flex-direction: column
    }

    .map-head-actions {
        width: 100%;
        flex-wrap: wrap
    }

    .map-tools {
        width: 100%;
        justify-content: space-between
    }

    .map-panel {
        padding-left: 20px !important;
        padding-right: 20px !important
    }

    .map-panel .stage {
        height: 65vh;
        min-height: 440px;
        border-radius: 16px
    }

    .hero-actions {
        width: 100%
    }

    .primary-hero,
    .secondary-hero {
        flex: 1;
        min-width: 150px
    }

    .topbar {
        padding: .6rem .8rem
    }

    .brand-title {
        font-size: .72rem
    }

    .brand-sub {
        font-size: .48rem
    }

    .brand-logo {
        width: 42px;
        height: 42px
    }

    .search-wrap {
        display: none
    }

    .header-right {
        gap: .35rem
    }
}

@media (max-width:420px) {
    .hero-copy h1 {
        font-size: 2.8rem
    }

    .hero-actions {
        flex-direction: column
    }

    .primary-hero,
    .secondary-hero {
        width: 100%
    }

    .hero-map-art {
        height: 230px
    }

    .project-card-body {
        padding: 18px
    }

    .map-panel .stage {
        min-height: 400px
    }
}

/* ================= MAP STAGE ================= */

.stage {
    position: relative;
    width: 100%;
    height: calc(100vh - 74px);
    min-height: 460px;
    background: radial-gradient(ellipse at 50% 0%, #0e1930 0%, var(--navy-950) 70%);
    overflow: hidden;
}

.map-viewport {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    transition: transform .25s ease;
    transform-origin: center center;
}

.map-frame {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-brd);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.map-frame img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.plot-hit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.plot-hit rect,
.plot-hit polygon {
    pointer-events: all;
    cursor: pointer;
    fill: transparent;
}

.plot-hit rect:hover,
.plot-hit polygon:hover {
    fill: rgba(212, 175, 55, .28);
}


/* placeholder look until real plot image is dropped in */

.map-frame.is-placeholder {
    width: min(1100px, 92vw);
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .6rem;
    color: var(--ink-500);
    text-align: center;
    padding: 2rem;
}

.map-frame.is-placeholder i {
    width: 44px;
    height: 44px;
    color: var(--gold);
    opacity: .7;
}

.map-frame.is-placeholder span {
    font-size: .85rem;
    letter-spacing: .02em;
    max-width: 340px;
}


/* ---------- Compass + 3D ---------- */

.stage-topleft {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    align-items: center;
}

.compass {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, #1c2b44 0%, #0c1526 72%);
    border: 1px solid rgba(150, 180, 200, .28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .03);
    position: relative;
    font-family: 'Outfit', sans-serif;
    font-size: .62rem;
    font-weight: 700;
}

.compass>span {
    position: absolute;
    line-height: 1;
}

.compass .n {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #e10600;
}

.compass .s {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #f4f7fb;
}

.compass .e {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #f4f7fb;
}

.compass .w {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #f4f7fb;
}

.rose {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 18px;
    height: 30px;
    transform: translate(-50%, -50%);
}

.rose-n,
.rose-s {
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
}

.rose-n {
    top: 0;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 16px solid #e10600;
}

.rose-s {
    bottom: 0;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 15px solid #f7f9fc;
}

.rose-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10192b;
    border: 1.5px solid #fff;
    transform: translate(-50%, -46%);
}

.mode-btn {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #16233a 0%, #0b1322 74%);
    border: 1.5px solid rgba(46, 140, 130, .75);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .03);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.mode-btn.active {
    border-color: rgba(72, 190, 176, .95);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4), 0 0 0 3px rgba(46, 140, 130, .16);
}

.mode-btn:hover {
    transform: translateY(-1px);
}


/* ---------- Brand badge top right ---------- */

.stage-topright {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 20;
}

.badge-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}

.badge-ring i {
    width: 24px;
    height: 24px;
}


/* ---------- Bottom status bar ---------- */

.stage-bottomleft {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: max-content;
    max-width: calc(100% - 28rem);
    background: rgba(10, 16, 30, .88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: .62rem 1rem .62rem 1.05rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.status-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    flex-shrink: 0;
}

.status-head span {
    font-size: .72rem;
    letter-spacing: .16em;
    color: #d5dce8;
    font-weight: 600;
}

.toggle {
    width: 36px;
    height: 20px;
    border-radius: 20px;
    background: #c9cdd6;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: .2s;
    border: none;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}

.toggle.on {
    background: var(--gold);
}

.toggle.on::after {
    left: 18px;
    background: #fff;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: 0;
    font-size: .84rem;
    flex-shrink: 1;
    min-width: 0;
}

.legend-row .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: .15rem;
    background: transparent;
    border: 2px solid currentColor;
    flex-shrink: 0;
}

.legend-row .lbl {
    display: flex;
    align-items: center;
    color: #eef2f8;
    min-width: 0;
}

.legend-row .lbl-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-row .val {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: .95rem;
    flex-shrink: 0;
}

.dot-available,
.val-available {
    color: #3dce74;
}

.dot-booked,
.val-booked {
    color: #f0c43a;
}

.dot-sold,
.val-sold {
    color: #ff4d67;
}

.status-total {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: 0 0 0 .95rem;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.status-total .lbl {
    font-size: .84rem;
    color: #d5dce8;
}

.status-total .val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0c43a;
    font-family: 'Outfit', sans-serif;
}


/* ---------- Bottom right cluster ---------- */

.stage-bottomright {
    position: absolute;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .7rem;
}

.pill-group {
    display: flex;
    gap: .55rem;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.pill {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .32rem .9rem .32rem .32rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(22, 36, 62, .82), rgba(8, 14, 28, .78));
    border: 1px solid rgba(212, 175, 55, .34);
    color: #f7f4ea;
    font-family: 'Outfit', sans-serif;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    cursor: pointer;
    white-space: nowrap;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}

.pill-ico {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 32% 28%, #3d5278 0%, #121e34 70%);
    border: 1px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .1), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.pill-ico i {
    width: 15px;
    height: 15px;
}

.pill:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(32, 48, 78, .9), rgba(12, 20, 36, .86));
    box-shadow: 0 16px 32px rgba(0, 0, 0, .42), 0 0 18px rgba(212, 175, 55, .2);
}

.pill:hover .pill-ico {
    background: linear-gradient(180deg, #f3d98a, #c9a227);
    color: var(--navy-950);
}

.zoom-cluster {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(22, 36, 62, .82), rgba(8, 14, 28, .78));
    border: 1px solid rgba(212, 175, 55, .38);
    color: var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
}

.zoom-btn:hover {
    background: linear-gradient(180deg, #f3d98a, #c9a227);
    color: var(--navy-950);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(212, 175, 55, .28);
}

.zoom-btn i {
    width: 16px;
    height: 16px;
}

.rst-btn {
    height: 40px;
    padding: 0 .95rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(22, 36, 62, .82), rgba(8, 14, 28, .78));
    border: 1px solid rgba(212, 175, 55, .38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--gold-soft);
    cursor: pointer;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}

.rst-btn:hover {
    background: linear-gradient(180deg, #f3d98a, #c9a227);
    color: var(--navy-950);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(212, 175, 55, .28);
}

.zoom-pct {
    height: 40px;
    min-width: 68px;
    padding: 0 .9rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f6e2a4 0%, #d4af37 48%, #b8922a 100%);
    border: 1px solid rgba(255, 236, 180, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--navy-950);
    cursor: default;
    box-shadow: 0 8px 18px rgba(212, 175, 55, .32), inset 0 1px 0 rgba(255, 255, 255, .45);
}


/* ================= RESPONSIVE ================= */

@media (max-width:768px) {
    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand actions" "search search";
        align-items: center;
        column-gap: .55rem;
        row-gap: .65rem;
        padding: .6rem .8rem;
    }
    .header-right {
        display: contents;
    }
    .brand-block {
        grid-area: brand;
        min-width: 0;
        gap: .6rem;
    }
    .header-actions {
        grid-area: actions;
        gap: .4rem;
    }
    .brand-title {
        font-size: .72rem;
        letter-spacing: .04em;
    }
    .brand-sub {
        font-size: .48rem;
        letter-spacing: .12em;
    }
    .brand-logo {
        width: 40px;
        height: 40px;
        box-shadow: 0 0 0 3px rgba(212, 175, 55, .1);
    }
    .icon-btn {
        width: 36px;
        height: 36px;
    }
    .search-wrap {
        grid-area: search;
        width: 100%;
    }
    .stage {
        height: calc(100vh - 116px);
        min-height: 520px;
    }
    .stage-topleft {
        transform: scale(.85);
        transform-origin: top left;
    }
    .stage-topright {
        transform: scale(.8);
        transform-origin: top right;
    }
    .stage-bottomleft {
        left: .6rem;
        right: .6rem;
        bottom: .6rem;
        width: auto;
        max-width: none;
        flex-wrap: wrap;
        row-gap: .4rem;
        column-gap: .7rem;
        padding: .55rem .75rem;
        border-radius: 14px;
    }
    .status-head span {
        font-size: .62rem;
        letter-spacing: .1em;
    }
    .legend-row {
        font-size: .74rem;
        gap: .28rem;
        flex-shrink: 0;
    }
    .legend-row .val {
        font-size: .82rem;
    }
    .legend-row .lbl-text {
        max-width: none;
    }
    .status-total {
        padding-left: .7rem;
        gap: .4rem;
    }
    .status-total .lbl {
        font-size: .74rem;
    }
    .status-total .val {
        font-size: 1rem;
    }
    .stage-bottomright {
        right: .7rem;
        bottom: 5.6rem;
        gap: .5rem;
    }
    .pill-group {
        flex-direction: column;
        align-items: flex-end;
        gap: .4rem;
    }
    .pill {
        padding: .28rem;
        border-radius: 50%;
    }
    .pill-label {
        display: none;
    }
    .pill-ico {
        width: 36px;
        height: 36px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
    }
    .zoom-btn {
        width: 36px;
        height: 36px;
    }
    .rst-btn,
    .zoom-pct {
        height: 36px;
        width: auto;
        min-width: 0;
        padding: 0 .65rem;
        font-size: .62rem;
    }
}

@media (max-width:420px) {
    .stage-topleft {
        top: .7rem;
        left: .7rem;
    }
    .stage-topright {
        top: .7rem;
        right: .7rem;
    }
}


/* ================= GALLERY MODAL ================= */

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(3, 7, 14, .72);
    backdrop-filter: blur(6px);
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-dialog {
    width: min(1080px, 96vw);
    max-height: min(88vh, 860px);
    display: flex;
    flex-direction: column;
    background: #0c1424;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    padding: 1.15rem 1.15rem 1rem;
    position: relative;
}

.gallery-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 .35rem .85rem;
}

.gallery-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
}

.gallery-head p {
    margin: .35rem 0 0;
    max-width: 760px;
    font-size: .72rem;
    letter-spacing: .04em;
    color: #9aa6bb;
    font-weight: 500;
}

.gallery-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #161f33;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #e8eef8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.gallery-close:hover {
    background: var(--gold);
    color: var(--navy-950);
    border-color: var(--gold);
}

.gallery-close i {
    width: 18px;
    height: 18px;
}

.gallery-scroll {
    overflow: auto;
    padding: .15rem .35rem .2rem;
    margin-right: -.15rem;
}

.gallery-scroll::-webkit-scrollbar {
    width: 8px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #c5cedd;
    border-radius: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.gallery-card {
    background: #10192c;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 12px;
    overflow: hidden;
}

.gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #0b1220;
}

.gallery-card p {
    margin: 0;
    padding: .7rem .8rem .75rem;
    color: #fff;
    font-size: .86rem;
    font-weight: 600;
}

@media (max-width:900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-head h2 {
        font-size: 1.15rem;
    }
}

@media (max-width:560px) {
    .gallery-modal {
        padding: .6rem;
    }
    .gallery-dialog {
        padding: .85rem .7rem .7rem;
        border-radius: 14px;
        max-height: 92vh;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-head p {
        font-size: .62rem;
    }
}

/* ================= PLOT OFFCANVAS ================= */
.plot-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(3, 7, 14, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.plot-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.plot-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 90;
    width: min(440px, 100%);
    background: #0b1222;
    color: #fff;
    box-shadow: 24px 0 60px rgba(0, 0, 0, .45);
    transform: translateX(-104%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
}

.plot-drawer.is-open {
    transform: translateX(0);
}

.plot-drawer-scroll {
    overflow: auto;
    padding: 1.35rem 1.35rem 1.5rem;
    height: 100%;
}

.plot-drawer-scroll::-webkit-scrollbar {
    width: 8px;
}

.plot-drawer-scroll::-webkit-scrollbar-thumb {
    background: #c5cedd;
    border-radius: 8px;
}

.plot-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.plot-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .8rem;
    border-radius: 999px;
    border: 1.5px solid #e0b33a;
    color: #e0b33a;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.plot-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0b33a;
}

.plot-badge.is-available {
    border-color: #3dce74;
    color: #3dce74;
}

.plot-badge.is-available .plot-badge-dot {
    background: #3dce74;
}

.plot-badge.is-sold {
    border-color: #ff4d67;
    color: #ff4d67;
}

.plot-badge.is-sold .plot-badge-dot {
    background: #ff4d67;
}

.plot-x {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #d5dce8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.plot-x:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.plot-x i {
    width: 18px;
    height: 18px;
}

.plot-title {
    margin: 1.15rem 0 0;
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    color: #fff;
}

.plot-loc {
    margin: .55rem 0 0;
    font-size: .78rem;
    letter-spacing: .16em;
    color: #8b97ab;
    font-weight: 500;
}

.plot-shape {
    margin-top: 1.15rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .02);
    padding: .4rem .2rem .15rem;
}

.plot-shape svg {
    display: block;
    width: 100%;
    height: auto;
}

.plot-specs {
    margin-top: .4rem;
}

.plot-spec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.plot-spec span {
    font-size: .72rem;
    letter-spacing: .08em;
    color: #8b97ab;
    font-weight: 600;
}

.plot-spec strong {
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    text-align: right;
}

.plot-actions {
    display: flex;
    gap: .7rem;
    margin-top: 1.15rem;
}

.plot-wa,
.plot-call {
    flex: 1;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    text-decoration: none;
    font-weight: 700;
    font-size: .98rem;
    color: #fff;
}

.plot-wa {
    background: #22c55e;
}

.plot-wa:hover {
    filter: brightness(1.06);
    color: #fff;
}

.plot-call {
    background: #4457d2;
}

.plot-call:hover {
    filter: brightness(1.08);
    color: #fff;
}

.plot-wa svg,
.plot-call i {
    width: 18px;
    height: 18px;
}

@media (max-width:560px) {
    .plot-title {
        font-size: 1.9rem;
    }
    .plot-drawer-scroll {
        padding: 1rem 1rem 1.2rem;
    }
    .plot-actions {
        flex-direction: column;
    }
}
/* ================= MOBILE MAP RESPONSIVE FIX ================= */
@media (max-width: 768px) {
    .stage {
        height: calc(100dvh - 116px);
        min-height: 520px;
        overflow: hidden;
    }


    .map-viewport {
        inset: 0;
        padding: .55rem .55rem 8.8rem;
        overflow: hidden;
        align-items: center;
        justify-content: center;
    }

    .map-frame {
        width: 100%;
        max-width: 100%;
        max-height: none;
        border-radius: 10px;
        overflow: visible;
    }

    .map-frame img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        display: block;
    }

    .stage-topleft {
        top: .7rem;
        left: .6rem;
        transform: scale(.68);
        transform-origin: top left;
        z-index: 31;
    }

    .stage-topright {
        top: .7rem;
        right: .6rem;
        transform: scale(.68);
        transform-origin: top right;
        z-index: 31;
    }

    .stage-bottomright {
        left: .6rem;
        right: .6rem;
        bottom: .65rem;
        align-items: stretch;
        gap: .45rem;
        z-index: 35;
    }

    .stage-bottomright > .pill {
        display: none;
    }

    .pill-group {
        flex-direction: row;
        justify-content: flex-end;
        gap: .38rem;
    }

    .pill {
        padding: .25rem;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .pill-ico {
        width: 34px;
        height: 34px;
    }

    .zoom-cluster {
        justify-content: flex-end;
        gap: .35rem;
    }

    .zoom-btn,
    .rst-btn,
    .zoom-pct {
        height: 38px;
    }

    .zoom-btn {
        width: 38px;
    }

    .zoom-pct {
        min-width: 58px;
        padding: 0 .55rem;
    }

    .stage-bottomleft {
        left: .6rem;
        right: .6rem;
        bottom: 6.25rem;
        width: auto;
        max-width: none;
        padding: .5rem .65rem;
        gap: .5rem .75rem;
        z-index: 34;
        border-radius: 12px;
        justify-content: space-between;
    }

    .status-head {
        gap: .4rem;
    }

    .legend-row {
        font-size: .68rem;
    }

    .status-total {
        padding-left: .5rem;
    }

    .plot-drawer {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 88dvh;
        border-radius: 22px 22px 0 0;
        transform: translateY(104%);
        box-shadow: 0 -24px 60px rgba(0,0,0,.5);
    }

    .plot-drawer.is-open {
        transform: translateY(0);
    }

    .plot-drawer-scroll {
        padding: .9rem .9rem calc(1.1rem + env(safe-area-inset-bottom));
        max-height: 88dvh;
    }

    .plot-drawer-top::before {
        content: '';
        position: absolute;
        top: .45rem;
        left: 50%;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255,255,255,.2);
        transform: translateX(-50%);
    }

    .plot-title {
        font-size: 1.75rem;
        margin-top: .85rem;
    }

    .plot-loc {
        font-size: .65rem;
        letter-spacing: .09em;
        line-height: 1.5;
    }

    .plot-spec {
        padding: .68rem 0;
    }

    .plot-actions {
        flex-direction: row;
        position: sticky;
        bottom: 0;
        padding-top: .7rem;
        background: #0b1222;
    }

    .plot-wa,
    .plot-call {
        height: 46px;
        font-size: .86rem;
    }
}

@media (max-width: 420px) {
    .stage {
        min-height: 500px;
    }

    .stage-bottomleft {
        flex-wrap: wrap;
        justify-content: center;
    }

    .legend-row .lbl-text {
        display: none;
    }

    .status-total {
        border-left: 1px solid rgba(255,255,255,.14);
    }

    .stage-bottomright {
        bottom: .5rem;
    }

    .plot-actions {
        gap: .45rem;
    }
}

/* ================= FINAL HEADER SEARCH MOBILE FIX ================= */
@media (max-width: 768px) {
    .topbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas: "brand actions" "search search" !important;
        width: 100%;
        box-sizing: border-box;
        padding: .6rem .7rem .7rem !important;
        row-gap: .55rem !important;
    }

    .brand-block {
        grid-area: brand !important;
        min-width: 0;
        overflow: hidden;
    }

    .brand-title,
    .brand-sub {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-right {
        display: contents !important;
    }

    .header-actions {
        grid-area: actions !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }

    .search-wrap {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        grid-area: search !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 42px !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 0 .28rem 0 .72rem !important;
    }

    .search-wrap input {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .search-wrap .go-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 54px;
        min-width: 54px !important;
        height: 32px;
        padding: 0 !important;
    }

    .search-wrap > svg {
        display: block !important;
        flex: 0 0 16px;
    }

    .stage {
        height: calc(100dvh - 128px) !important;
        min-height: 460px !important;
    }
}

@media (max-width: 420px) {
    .topbar {
        padding-left: .55rem !important;
        padding-right: .55rem !important;
    }

    .brand-title {
        font-size: .66rem !important;
        letter-spacing: .025em !important;
    }

    .brand-sub {
        font-size: .43rem !important;
        letter-spacing: .09em !important;
    }

    .search-wrap {
        height: 40px !important;
    }

    .search-wrap input {
        font-size: .74rem !important;
        padding-left: .45rem !important;
        padding-right: .35rem !important;
    }

    .search-wrap .go-btn {
        flex-basis: 50px;
        min-width: 50px !important;
        font-size: .64rem;
    }
}

/* ================= FINAL MOBILE MAP CONTROLS FIX ================= */
@media (max-width: 768px) {
    /* Keep every map action available on mobile; only compact the presentation. */
    .stage-bottomright {
        left: auto !important;
        right: .55rem !important;
        bottom: .55rem !important;
        width: auto !important;
        max-width: calc(100vw - 1.1rem) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
        gap: .4rem !important;
        z-index: 40 !important;
    }

    .stage-bottomright > .pill {
        display: flex !important;
        flex: 0 0 auto !important;
        width: 40px !important;
        height: 40px !important;
        padding: .25rem !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .stage-bottomright .pill-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: .38rem !important;
        flex-wrap: nowrap !important;
    }

    .stage-bottomright .pill-group .pill {
        display: flex !important;
        flex: 0 0 auto !important;
    }

    .stage-bottomright .pill-label {
        display: none !important;
    }

    .stage-bottomright .pill-ico {
        width: 34px !important;
        height: 34px !important;
    }

    .stage-bottomright .zoom-cluster {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: .35rem !important;
        flex-wrap: nowrap !important;
    }

    .stage-bottomright .zoom-btn,
    .stage-bottomright .rst-btn,
    .stage-bottomright .zoom-pct {
        flex: 0 0 auto !important;
        height: 38px !important;
    }
}

@media (max-width: 420px) {
    .stage-bottomright {
        right: .45rem !important;
        bottom: .45rem !important;
        gap: .3rem !important;
    }

    .stage-bottomright > .pill,
    .stage-bottomright .pill-group .pill {
        width: 37px !important;
        height: 37px !important;
    }

    .stage-bottomright .pill-ico {
        width: 31px !important;
        height: 31px !important;
    }

    .stage-bottomright .zoom-btn,
    .stage-bottomright .rst-btn,
    .stage-bottomright .zoom-pct {
        height: 35px !important;
    }

    .stage-bottomright .zoom-btn {
        width: 35px !important;
    }

    .stage-bottomright .zoom-pct {
        min-width: 52px !important;
        padding-left: .45rem !important;
        padding-right: .45rem !important;
    }
}
