:root {
    --text-primary: #ffffff;
    --text-body: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.82);
    --text-muted: rgba(255, 255, 255, 0.72);
}

body {
    background-color: #000;
    color: var(--text-primary);
    font-family: "Poppins", sans-serif;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.text-secondary,
.text-white-50 {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}


.mapdiv {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
}



.glass-panel {
    background-color: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-ui {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Let interactions pass to the map beneath */
    padding: 1.5rem;
    z-index: 10;
}

.dashboard-top-bar,
.dashboard-bottom-bar,
.dashboard-bottom-controls {
    pointer-events: none;
}

.dashboard-top-bar .btn,
.dashboard-top-bar button,
.dashboard-bottom-bar .btn,
.dashboard-bottom-bar button,
.dashboard-bottom-controls .btn,
.dashboard-bottom-controls button,
.map-controls-stack .btn,
.map-controls-stack button,
.map-compass {
    pointer-events: auto;
}

.dashboard-bottom-bar {
    align-self: flex-end;
    width: auto;
    max-width: 100%;
}

.dashboard-bottom-controls {
    width: auto;
    max-width: fit-content;
}

.text-xs {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.dashboard-bottom-controls .stats-pill {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.stats-pill {
    min-height: 52px;
    align-items: center;
}

.stats-pill .stats-col {
    min-width: 4.25rem;
}

.stats-pill .stats-value {
    line-height: 1.1;
}

.stats-pill .stats-label {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

.stats-pill #st-tot {
    color: #ffffff !important;
}

.text-lime {
    color: #63e600 !important;
}

.text-red {
    color: #ff4444 !important;
}

.btn-circle {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    height: 52px;
}

.action-btn:hover {
    background-color: rgba(40, 40, 40, 0.9);
    color: #fff;
    transform: scale(1.05);
}

.menu-icon {
    width: 24px;
    height: 2px;
    background-color: currentColor;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    height: 2px;
    background-color: currentColor;
}

.menu-icon::before {
    top: -6px;
    width: 24px;
}

.menu-icon::after {
    top: 6px;
    width: 16px;
}

.project-trigger {
    transition: background-color 0.2s ease-in-out;
}

.project-trigger:hover {
    background-color: rgba(40, 40, 40, 0.85);
}

.hover-white:hover {
    color: #fff !important;
    background-color: #444 !important;
}

.btn-close:focus {
    outline: 0;
    box-shadow: none;
    opacity: var(--bs-btn-close-focus-opacity);
}

/* Sidebar Styling */
#leftSidebar {
    top: 80px;
    left: 0;
    height: calc(100vh - 80px);
    width: 320px;
    background-color: rgba(18, 18, 18, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-top-right-radius: 16px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 576px) {
    #leftSidebar {
        top: 70px;
        height: calc(100vh - 70px);
        width: 100%;
        border-radius: 0;
    }
}

/* Right Sidebar Styling */
#rightSidebar {
    top: 40px;
    right: 0;
    height: calc(100vh - 80px);
    width: 420px;
    background-color: #050505;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 0;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 576px) {
    #rightSidebar {
        top: 20px;
        height: calc(100vh - 40px);
        width: 100%;
        border-radius: 0;
    }
}

/* Location Advantages — Nearby Places (horizontal row layout) */
.places-offcanvas-header {
    align-items: flex-start;
}

.places-offcanvas-sub {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
}

.places-offcanvas-body {
    overflow-y: auto;
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.place-row {
    transition: background-color 0.2s ease;
    cursor: default;
}

.place-row-thumb {
    width: 70px;
    height: 70px;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-row-thumb--logo {
    background: #f5f5f5;
}

.place-row-thumb--fallback::after {
    content: attr(data-fallback);
    font-size: 1.75rem;
    opacity: 0.45;
}

.place-row-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.place-row-thumb--logo .place-row-img {
    width: 100%;
    height: 100%;
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
}

.place-row-name {
    font-size: 0.9rem;
    line-height: 1.3;
    padding-right: 0.5rem;
}

.place-row-distance {
    color: #63e600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.place-row-type,
.place-row-drive {
    font-size: 0.75rem;
}

.place-row-desc {
    font-size: 0.75rem;
    line-height: 1.45;
}

.place-row-direction-btn {
    font-size: 0.7rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #63e600;
    transition: background-color 0.2s ease;
}

.place-row-direction-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #7fff1a;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.hover-dark:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive Spacing */
@media (max-width: 576px) {
    .dashboard-ui {
        padding: 1rem;
    }

    .btn-circle,
    .action-btn {
        height: 48px;
    }

    .btn-circle {
        width: 48px;
    }

    .stats-pill {
        padding: 0.5rem 1.25rem !important;
        gap: 1.25rem !important;
    }

    .stats-pill .fs-5 {
        font-size: 1.1rem !important;
    }

    .stats-pill .stats-label {
        font-size: 0.6rem;
    }

    .logo-pill {
        /* mobile logo sizing handled by .logo-trigger-pill */
    }
}

.logo-trigger {
    position: relative;
    z-index: 12;
}

.logo-trigger-pill {
    height: 52px;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.logo-trigger-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(99, 230, 0, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.logo-trigger-pill img {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

@media (hover: hover) {
    .logo-trigger-pill:hover {
        transform: translateY(-2px);
        border-color: rgba(99, 230, 0, 0.35);
        box-shadow:
            0 0 20px rgba(99, 230, 0, 0.15),
            0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .logo-trigger-pill:hover::before {
        opacity: 1;
    }

    .logo-trigger-pill:hover img {
        transform: scale(1.05);
    }
}

.logo-full {
    height: 22px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    display: block;
    image-rendering: auto;
}

.logo-icon {
    display: none;
}

@media (max-width: 768px) {
    .logo-full {
        display: none;
    }

    .logo-icon {
        display: block;
        width: 32px;
        height: 32px;
        object-fit: contain;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55)) brightness(1.1);
    }

    .logo-trigger-pill {
        width: 56px;
        height: 56px;
        min-width: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50% !important;
    }

    .project-trigger {
        min-width: 0;
        flex: 1 1 auto;
        max-width: calc(100vw - 48px - 56px - 2.5rem);
    }
}

@media (max-width: 576px) {
    .map-controls-stack {
        top: 73px;
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        --bs-modal-width: 80%;
    }
}

/* ── Map integration (from plot inventory engine) ── */
#map-wrap,
.mapdiv#map-wrap {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #111;
}

#map-wrap,
.mapdiv#map-wrap,
.map-rotate-stage {
    touch-action: manipulation;
}

.leaflet-container,
#leaflet-map.leaflet-container {
    touch-action: none;
    background: #111;
}

.map-rotate-stage {
    position: absolute;
    z-index: 1;
    transform-origin: 50% 50%;
    will-change: transform;
    pointer-events: auto;
    overflow: visible;
}

#leaflet-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
    background: #111;
}

#map3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: none;
    overflow: hidden;
}

#map3d canvas {
    touch-action: none;
}

#deck-canvas-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 3;
}

#label-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 460;
    display: none;
}

#dim-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    display: none;
}

#tip {
    position: fixed;
    z-index: 9000;
    pointer-events: none;
    display: none;
}

.map-controls-stack {
    right: 1.5rem;
    top: 100px;
    z-index: 15;
    pointer-events: none;
}

/* Interactive map compass — premium GIS navigation control */
.map-compass {
    position: fixed;
    z-index: 16;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
}

.map-compass-orbit {
    --compass-orbit-size: 150px;
    --compass-dial-size: 120px;
    position: relative;
    width: var(--compass-orbit-size);
    height: var(--compass-orbit-size);
    flex-shrink: 0;
}

.map-compass-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(74, 222, 128, 0.25);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.06);
    pointer-events: none;
}

.map-compass:hover .map-compass-orbit-ring {
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.08);
}

.map-compass-dial {
    cursor: grab;
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--compass-dial-size);
    height: var(--compass-dial-size);
    min-width: var(--compass-dial-size);
    min-height: var(--compass-dial-size);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 1;
}

.map-compass:hover .map-compass-dial {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(74, 222, 128, 0.08);
}

.map-compass.is-dragging {
    cursor: grabbing;
}

.map-compass.is-dragging .map-compass-dial {
    cursor: grabbing;
    border-color: rgba(74, 222, 128, 0.25);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(74, 222, 128, 0.12);
}

.map-compass.is-dragging .map-compass-orbit-ring {
    border-color: rgba(74, 222, 128, 0.35);
}

.map-compass.is-rotating {
    cursor: grab;
}

.map-compass.is-rotating .map-compass-dial {
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(74, 222, 128, 0.18);
}

.map-compass.is-rotating .map-compass-orbit-ring {
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.12);
}

.map-compass-face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.map-compass-cardinal {
    position: absolute;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.map-compass-n {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #4ade80;
    font-weight: 700;
    font-size: 12px;
}

.map-compass-e {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.map-compass-s {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.map-compass-w {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.map-compass-needle {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform 0.15s linear;
    pointer-events: none;
}

.map-compass.is-rotating .map-compass-needle {
    transition: none;
}

.map-compass-needle-arrow {
    display: block;
    font-size: 22px;
    line-height: 1;
    color: #4ade80;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.45);
    transform: translateY(-2px);
}

.map-compass-rotate-handle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    margin: 0;
    border: 2px solid #4ade80;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #4ade80;
    line-height: 1;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    pointer-events: auto;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
    transform: translate(-50%, -50%);
    transform-origin: center center;
    will-change: transform;
    transition:
        transform 0.15s linear,
        opacity 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.map-compass-rotate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 16px;
    line-height: 1;
    color: #4ade80;
    filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.5));
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.15s linear;
    pointer-events: none;
}

.map-compass.is-rotating .map-compass-rotate-handle,
.map-compass.is-rotating .map-compass-rotate-icon {
    transition: none;
}

.map-compass-rotate-handle:hover,
.map-compass-rotate-handle:focus-visible {
    opacity: 1;
    background: rgba(0, 0, 0, 0.92);
    box-shadow:
        0 0 12px rgba(74, 222, 128, 0.5),
        0 0 0 1px rgba(74, 222, 128, 0.35);
    outline: none;
}

.map-compass-rotate-handle:hover .map-compass-rotate-icon,
.map-compass-rotate-handle:focus-visible .map-compass-rotate-icon {
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.65));
}

.map-compass.is-rotating .map-compass-rotate-handle {
    cursor: grabbing;
    opacity: 1;
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.55);
}

@media (max-width: 575.98px) {
    .map-compass-orbit {
        --compass-dial-size: clamp(110px, 18vw, 140px);
        --compass-orbit-size: calc(var(--compass-dial-size) + 30px);
    }

    .map-compass-cardinal {
        font-size: 12px;
    }

    .map-compass-n {
        top: 12px;
        font-size: 13px;
    }

    .map-compass-s {
        bottom: 12px;
    }

    .map-compass-e {
        right: 14px;
    }

    .map-compass-w {
        left: 14px;
    }

    .map-compass-needle-arrow {
        font-size: 24px;
    }

    .map-compass-rotate-handle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .map-compass-rotate-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

.map-ctrl-btn {
    width: 38px;
    height: 38px;
    transition: all 0.2s;
}

/* Splash */
#splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.7s ease;
}

#splash.hide {
    opacity: 0;
    pointer-events: none;
}

.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.35rem;
    padding: 1.5rem;
    text-align: center;
    animation: splashContentIn 0.45s ease-out both;
}

@keyframes splashContentIn {
    from {
        opacity: 0.72;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-globe-wrap {
    position: relative;
    width: min(300px, 82vw);
    height: min(340px, 92vw);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
}

#splash-globe-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

#splash-globe-canvas.is-ready {
    opacity: 1;
    visibility: visible;
}

.splash-globe-wrap.globe-ready .splash-globe-glow {
    opacity: 1;
}

.splash-globe-wrap .splash-globe-glow {
    opacity: 0.55;
    transition: opacity 0.75s ease;
}

.splash-globe-placeholder {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.splash-globe-placeholder.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-globe-placeholder-orbit {
    position: relative;
    width: 72%;
    height: 72%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-globe-placeholder-sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 68% 62%, rgba(217, 217, 217, 0.12) 0%, transparent 38%),
        radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.2px);
    background-size: 100% 100%, 100% 100%, 14px 14px;
    background-color: #030303;
    box-shadow:
        inset -16px -20px 32px rgba(0, 0, 0, 0.92),
        0 0 40px rgba(98, 255, 0, 0.12);
    animation: splashGlobeSpin 16s linear infinite;
}

.splash-globe-placeholder-ring {
    position: absolute;
    inset: -5%;
    border-radius: 50%;
    border: 1px solid rgba(98, 255, 0, 0.28);
    animation: splashGlobePulse 2.2s ease-in-out infinite;
}

.splash-globe-glow {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(98, 255, 0, 0.2) 0%, rgba(98, 255, 0, 0.06) 42%, transparent 72%);
    filter: blur(22px);
    z-index: 0;
    pointer-events: none;
    animation: splashGlobePulse 3s ease-in-out infinite;
}

.splash-globe-fallback {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    align-items: center;
    justify-content: center;
}

.splash-globe-fallback.is-visible {
    display: flex;
}

.splash-globe-fallback-dots {
    width: 78%;
    height: 78%;
    border-radius: 50%;
    background-color: #000;
    background-image:
        radial-gradient(ellipse 42% 36% at 62% 38%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 34%, transparent 58%),
        radial-gradient(ellipse 28% 22% at 34% 52%, rgba(217, 217, 217, 0.45) 0%, transparent 52%),
        radial-gradient(ellipse 18% 24% at 72% 62%, rgba(255, 255, 255, 0.35) 0%, transparent 50%),
        radial-gradient(circle, rgba(255, 255, 255, 0.75) 1px, transparent 1.2px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 16px 16px;
    box-shadow:
        inset -18px -22px 36px rgba(0, 0, 0, 0.9),
        0 0 52px rgba(98, 255, 0, 0.16);
    animation: splashGlobeSpin 18s linear infinite;
}

.splash-globe-fallback-ring {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    border: 1px solid rgba(98, 255, 0, 0.24);
    animation: splashGlobePulse 2.4s ease-in-out infinite;
}

.splash-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    opacity: 1;
}

.splash-title {
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.15;
}

.splash-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    min-height: 1.25em;
    transition: opacity 0.35s ease;
}

.splash-dots {
    display: flex;
    gap: 7px;
    margin-top: 0.15rem;
}

.splash-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: splashDot 1.1s ease-in-out infinite alternate;
}

.splash-dots span:nth-child(1) { background: #d9d9d9; animation-delay: 0s; }
.splash-dots span:nth-child(2) { background: #62ff00; animation-delay: 0.18s; }
.splash-dots span:nth-child(3) { background: #ffffff; animation-delay: 0.36s; }

@keyframes splashGlobeSpin {
    to { transform: rotate(360deg); }
}

@keyframes splashGlobePulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.02); }
}

@keyframes splashDot {
    to { opacity: 0.2; transform: scale(0.7); }
}

/* Filter chips */
.filter-chip {
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
}

.filter-chip.on {
    border-color: #63e600 !important;
    color: #63e600 !important;
}

/* Map mode toggles */
.map-tb.on,
.mdb.on {
    box-shadow: 0 0 0 2px #63e600;
    color: #63e600 !important;
}

.plot-list-item.plot-selected {
    background-color: rgba(99, 230, 0, 0.08);
    outline: 1px solid rgba(99, 230, 0, 0.35);
}

.search-icon-pos {
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
}

.plot-list-header {
    font-size: 0.75rem;
}

/* Plot detail offcanvas — compact floating bottom-right widget */
.plot-detail-offcanvas {
    --plot-detail-margin: 20px;
    --plot-detail-width: 300px;
    --plot-detail-max-height: 70vh;
    top: auto !important;
    right: var(--plot-detail-margin) !important;
    left: auto !important;
    bottom: var(--plot-detail-margin) !important;
    width: var(--plot-detail-width);
    max-width: calc(100vw - (var(--plot-detail-margin) * 2));
    height: auto !important;
    max-height: var(--plot-detail-max-height);
    background-color: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.42),
        0 4px 12px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 1045;
    overflow: hidden;
}

.plot-detail-offcanvas.offcanvas-end {
    transform: translateX(calc(100% + var(--plot-detail-margin))) !important;
}

.plot-detail-offcanvas.offcanvas-end.showing,
.plot-detail-offcanvas.offcanvas-end.show:not(.hiding) {
    transform: translateX(0) !important;
}

.plot-detail-offcanvas.offcanvas-end.hiding {
    transform: translateX(calc(100% + var(--plot-detail-margin))) !important;
}

.plot-detail-sheet-handle {
    display: none !important;
}

@media (max-width: 991.98px) {
    .plot-detail-sheet-handle {
        display: block !important;
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.35);
        border-radius: 999px;
        margin: 8px auto 4px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .plot-detail-offcanvas.is-expanded {
        --plot-detail-max-height: 92vh;
    }
}

.plot-detail-header {
    padding: 0.5rem 0.7rem;
    min-height: 0;
    flex-shrink: 0;
}

.plot-detail-title {
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.plot-detail-close {
    width: 0.65rem;
    height: 0.65rem;
    padding: 0.3rem;
    margin: 0;
    opacity: 0.65;
}

.plot-detail-body {
    padding: 0.55rem 0.7rem 0.7rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.plot-detail-area-block {
    text-align: center;
    margin-bottom: 0.4rem;
}

.plot-detail-area-value {
    font-size: clamp(1.22rem, 2.2vw, 1.38rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.plot-detail-area-label {
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.85);
}

.plot-detail-status-wrap {
    text-align: center;
    margin-bottom: 0.45rem;
}

.plot-detail-offcanvas #dp-sb,
.plot-detail-offcanvas .plot-detail-status {
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    padding: 0.16rem 0.45rem !important;
}

.plot-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    margin-bottom: 0.5rem;
}

.plot-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.22rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.plot-detail-row-label {
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    color: rgba(255, 255, 255, 0.82);
}

.plot-detail-row-value {
    font-size: 0.72rem;
    font-weight: 500;
    color: #fff;
    text-align: right;
}

.plot-detail-saved {
    font-size: 0.62rem;
    margin-bottom: 0.28rem;
}

.plot-detail-direction-btn {
    font-size: 0.68rem;
    padding: 0.3rem 0.65rem;
    min-height: 0;
    line-height: 1.2;
}

.plot-detail-direction-btn .bi {
    font-size: 0.65rem;
}

.direction-btn {
    background-color: rgba(99, 230, 0, 0.15);
    color: #63e600;
    border: 1px solid rgba(99, 230, 0, 0.35);
}

.direction-btn:hover {
    background-color: rgba(99, 230, 0, 0.25);
    color: #7fff1a;
}

.dupd-ok {
    display: none;
}

.dupd-ok.show {
    display: block;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .plot-detail-offcanvas {
        --plot-detail-width: 288px;
    }
}

@media (min-width: 1200px) {
    .plot-detail-offcanvas {
        --plot-detail-width: 320px;
        --plot-detail-max-height: 72vh;
    }
}

@media (max-width: 991.98px) {
    .plot-detail-offcanvas {
        --plot-detail-margin: 0;
        --plot-detail-width: 100%;
        --plot-detail-max-height: 65vh;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .plot-detail-offcanvas.offcanvas-end,
    .plot-detail-offcanvas.offcanvas-end.hiding {
        transform: translateX(100%) !important;
    }

    .plot-detail-offcanvas.offcanvas-end.showing,
    .plot-detail-offcanvas.offcanvas-end.show:not(.hiding) {
        transform: translateX(0) !important;
    }

    .plot-detail-header {
        padding: 0.65rem 12px;
    }

    .plot-detail-title {
        font-size: 1rem;
    }

    .plot-detail-close {
        width: 0.85rem;
        height: 0.85rem;
        padding: 0.45rem;
        opacity: 0.85;
    }

    .plot-detail-body {
        padding: 0.65rem 12px 12px;
    }

    .plot-detail-area-block {
        margin-bottom: 0.55rem;
    }

    .plot-detail-area-value {
        font-size: 1.65rem;
    }

    .plot-detail-area-label {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.92);
    }

    .plot-detail-status-wrap {
        margin-bottom: 0.6rem;
    }

    .plot-detail-offcanvas #dp-sb,
    .plot-detail-offcanvas .plot-detail-status {
        font-size: 0.75rem;
        padding: 0.28rem 0.65rem !important;
    }

    .plot-detail-rows {
        gap: 0.35rem;
        margin-bottom: 0.65rem;
    }

    .plot-detail-row {
        padding-bottom: 0.35rem;
    }

    .plot-detail-row-label {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .plot-detail-row-value {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #fff;
    }

    .plot-detail-saved {
        font-size: 0.8125rem;
        margin-bottom: 0.4rem;
    }

    .plot-detail-direction-btn {
        font-size: 0.875rem;
        padding: 0.55rem 0.85rem;
        min-height: 44px;
    }

    .plot-detail-direction-btn .bi {
        font-size: 0.875rem;
    }
}
