@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

: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 {
    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;
}

.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 .text-xs {
        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: 100%;
    object-fit: contain;
    display: block;
}

.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;
}

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

#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,
#dim-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    display: none;
}

#dim-canvas {
    z-index: 5;
}

#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;
}

.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;
}

.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;
    }
}

/* ═══════════════ PREMIUM GALLERY SHOWCASE ═══════════════ */
body.gallery-open {
    overflow: hidden;
    touch-action: none;
}

.gallery-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.gallery-overlay.show {
    display: block;
    animation: galleryFadeIn 0.45s ease;
}

.gallery-overlay.gallery-lightbox-active {
    overflow: hidden;
}

@keyframes galleryFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-showcase {
    position: relative;
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 0 0 3rem;
}

.gallery-close-top {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9010;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 18, 18, 0.72);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.gallery-close-top:hover {
    transform: scale(1.06);
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Hero */
.gallery-hero {
    position: relative;
    min-height: clamp(280px, 42vh, 480px);
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin-bottom: 2.5rem;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 8s ease;
}

.gallery-overlay.show .gallery-hero-bg {
    transform: scale(1.08);
}

.gallery-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.15) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, transparent 60%);
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(280px, 42vh, 480px);
    padding: clamp(1.5rem, 4vw, 3rem);
    max-width: 720px;
}

.gallery-hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(99, 230, 0, 0.9);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.gallery-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 0.75rem;
    color: #fff;
}

.gallery-hero-meta {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 1.25rem;
    letter-spacing: 0.02em;
}

.gallery-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.gallery-premium-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a0a0a;
    background: linear-gradient(135deg, #c8f56a 0%, #63e600 100%);
    box-shadow: 0 8px 24px rgba(99, 230, 0, 0.22);
}

.gallery-premium-badge--outline {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

/* Masonry grid */
.gallery-masonry-section {
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.gallery-section-head {
    margin-bottom: 1.5rem;
}

.gallery-section-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 0.35rem;
}

.gallery-section-sub {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.gallery-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.14);
}

.gallery-card--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-card--tall {
    grid-row: span 2;
}

.gallery-card--wide {
    grid-column: span 2;
}

.gallery-card-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, #161616 8%, #222 18%, #161616 33%);
    background-size: 200% 100%;
    animation: galleryShimmer 1.4s ease-in-out infinite;
    z-index: 1;
}

.gallery-card-skeleton.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

@keyframes galleryShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gallery-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.gallery-card img.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.gallery-card:hover img.is-loaded {
    transform: scale(1.08);
}

.gallery-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.08) 55%, transparent 100%);
    opacity: 0.75;
    transition: opacity 0.35s ease;
    z-index: 3;
    pointer-events: none;
}

.gallery-card:hover .gallery-card-gradient {
    opacity: 1;
}

.gallery-card-hover {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    z-index: 4;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-card:hover .gallery-card-hover {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card-caption {
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.01em;
}

.gallery-card-fullscreen {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover .gallery-card-fullscreen {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.gallery-card-index {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 5;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.92);
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-card--error {
    opacity: 0.35;
    pointer-events: none;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.gallery-lightbox.is-open {
    display: flex;
    animation: galleryFadeIn 0.35s ease;
}

@keyframes lbZoomIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lb-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.lb-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1rem 7rem;
    animation: lbZoomIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lb-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9610;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
}

.lb-counter {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.lb-close-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    touch-action: manipulation;
}

.lb-close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.05);
}

.lb-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(1200px, 96vw);
    min-height: 0;
}

.lb-main-img {
    max-width: min(1200px, 96vw);
    max-height: calc(100vh - 11rem);
    max-height: calc(100dvh - 11rem);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lb-main-img.lb-main-img--in {
    opacity: 1;
    transform: scale(1);
}

.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9610;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.06);
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-caption-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 5.75rem;
    z-index: 9610;
    padding: 0 1.25rem;
    text-align: center;
    pointer-events: none;
}

.lb-caption {
    display: inline-block;
    max-width: min(720px, 92vw);
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lb-thumbs-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9610;
    padding: 0.85rem 1rem 1.1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35), transparent);
}

.lb-thumbs {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    max-width: min(960px, 100%);
    margin: 0 auto;
    scroll-snap-type: x mandatory;
}

.lb-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    scroll-snap-align: center;
    transition: border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.65;
}

.lb-thumb:hover,
.lb-thumb.active {
    opacity: 1;
    border-color: rgba(99, 230, 0, 0.85);
    transform: translateY(-2px);
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991.98px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: dense;
        grid-auto-rows: minmax(120px, auto);
        gap: 0.85rem;
    }

    .gallery-card {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 120px;
        aspect-ratio: var(--gallery-aspect, 4 / 3);
    }

    .gallery-card--tall {
        grid-column: span 1;
        grid-row: span 2;
    }

    .gallery-card--wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-card--featured {
        grid-column: span 2;
        grid-row: span 2;
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .gallery-hero {
        border-radius: 0 0 18px 18px;
        margin-bottom: 1.75rem;
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(110px, auto);
        gap: 0.65rem;
    }

    .gallery-card {
        border-radius: 14px;
        min-height: 110px;
    }

    .gallery-card--tall {
        grid-column: span 1;
        grid-row: span 2;
        min-height: 220px;
    }

    .gallery-card--wide {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 140px;
    }

    .gallery-card--featured {
        grid-column: span 2;
        grid-row: span 2;
        min-height: 200px;
    }

    .gallery-card-hover {
        transform: translateY(0);
        opacity: 1;
    }

    .lb-nav {
        width: 44px;
        height: 44px;
    }

    .lb-prev { left: 0.5rem; }
    .lb-next { right: 0.5rem; }

    .lb-thumb {
        width: 64px;
        height: 46px;
    }

    .lb-caption-wrap {
        bottom: 5rem;
    }

    .lb-caption {
        font-size: 0.82rem;
        padding: 0.4rem 0.85rem;
    }
}

.leaflet-container {
    background: #111;
}

.road-label-container {
    background: transparent;
    border: none;
}

.road-label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 0 3px white;
}

.project-modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
}

.project-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9999;
    opacity: 0.85;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

@media (max-width: 768px) {
    .project-modal-content {
        overflow: visible;
    }

    .project-modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 1;
        z-index: 99999;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .project-modal-body {
        border-radius: 12px;
        overflow: hidden;
    }
}

/* ── BHUMINETRA WELCOME MODAL ── */
#bhuminetraModal .modal-backdrop.show {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bhuminetra-modal-dialog {
    width: 94vw;
    max-width: 1250px;
    margin: 0.75rem auto;
}

.bhuminetra-modal-content {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(18, 18, 18, 0.94) 0%, rgba(6, 6, 6, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: bhuminetraModalIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bhuminetraModalIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bhuminetra-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

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

.bhuminetra-modal-body {
    padding: 20px 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.bhuminetra-modal-split {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .bhuminetra-modal-split {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
}

.bhuminetra-modal-platform {
    flex: 1 1 65%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.bhuminetra-modal-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.bhuminetra-modal-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
    padding: 0;
}

.bhuminetra-modal-logo-glow {
    position: absolute;
    inset: -45%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(98, 255, 0, 0.26) 0%, transparent 70%);
    filter: blur(16px);
    pointer-events: none;
}

.bhuminetra-modal-logo {
    position: relative;
    z-index: 1;
    max-height: 48px;
    height: auto;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.bhuminetra-modal-title {
    font-size: clamp(0.875rem, 1.6vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.25;
    text-align: left;
    width: 100%;
}

.bhuminetra-modal-subtitle {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 0.6rem;
    max-width: none;
    align-self: stretch;
    text-align: left;
}

.bhuminetra-modal-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 12px;
    width: 100%;
    text-align: left;
    align-self: stretch;
}

@media (min-width: 768px) {
    .bhuminetra-modal-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 12px;
        column-gap: 24px;
    }
}

.bhuminetra-modal-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.15rem 0.25rem;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.bhuminetra-modal-highlights li:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(98, 255, 0, 0.05);
    transform: translateX(2px);
}

.bhuminetra-modal-highlights li::before {
    content: "✓";
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: #62ff00;
    margin-top: 0.12rem;
}

.bhuminetra-modal-partners {
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 0;
    padding: 0.65rem 0.6rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

@media (min-width: 768px) {
    .bhuminetra-modal-partners {
        flex: 0 0 35%;
        max-width: 35%;
        padding: 0.5rem 0.65rem 0.5rem 0;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0;
        background: transparent;
        border-top: none;
        border-bottom: none;
        border-left: none;
    }
}

.bhuminetra-partners-label {
    display: block;
    font-family: ui-monospace, 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.5rem;
}

.bhuminetra-partners-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.bhuminetra-partner-card {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    padding: 18px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.bhuminetra-partner-card:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 255, 0, 0.25);
    background: rgba(98, 255, 0, 0.04);
    box-shadow: 0 8px 24px rgba(98, 255, 0, 0.1);
    color: inherit;
}

.bhuminetra-partner-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.bhuminetra-partner-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.bhuminetra-partner-monogram {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
}

.bhuminetra-partner-logo-wrap.is-fallback .bhuminetra-partner-logo {
    display: none;
}

.bhuminetra-partner-logo-wrap.is-fallback .bhuminetra-partner-monogram {
    display: flex;
}

.bhuminetra-partner-name {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.bhuminetra-partner-desc {
    font-size: 0.6875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    max-width: 18ch;
}

.bhuminetra-partner-url {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(98, 255, 0, 0.72);
    transition: color 0.25s ease;
}

.bhuminetra-partner-card:hover .bhuminetra-partner-url {
    color: #62ff00;
}

.bhuminetra-partner-url i {
    font-size: 0.625rem;
}

.bhuminetra-partner-divider {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    align-self: center;
    margin: 8px 0;
    padding: 0;
    opacity: 0.65;
}

.bhuminetra-modal-actions {
    display: flex;
    margin-top: 12px;
    align-self: stretch;
    justify-content: flex-start;
}

.bhuminetra-modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: fit-content;
    margin-bottom: 0;
    padding: 0.65rem 1.45rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #62ff00, #7dff3a);
    color: #000;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bhuminetra-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(98, 255, 0, 0.25);
}

.bhuminetra-modal-cta i {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.bhuminetra-modal-cta:hover i {
    transform: translateX(2px);
}

.project-modal-dialog {
    max-height: calc(100vh - 1.5rem);
    margin: 0.75rem auto;
    width: calc(100% - 1.5rem);
}

.project-modal-dialog .modal-content {
    max-height: calc(100vh - 1.5rem);
}

.project-modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.project-modal-row {
    align-items: stretch;
}

.project-modal-gallery {
    background: #0a0a0a;
    min-height: 0;
}

.project-modal-img-wrap {
    position: relative;
    width: 100%;
    background: #0a0a0a;
    overflow: hidden;
    line-height: 0;
}

.project-modal-img-wrap--hero {
    aspect-ratio: 16 / 10;
}

.project-modal-img-wrap--thumb {
    aspect-ratio: 4 / 3;
}

.project-modal-img-wrap--secondary {
    aspect-ratio: 4 / 3;
    background: #0a0a0a;
}

.project-modal-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.project-modal-img--fallback {
    object-fit: contain;
    padding: 0.75rem;
    background: #111;
}

.project-modal-logo-wrap {
    max-width: min(220px, 70vw);
    overflow: hidden;
    line-height: 0;
}

.project-modal-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: clamp(48px, 12vw, 72px);
    object-fit: contain;
    object-position: center left;
}

.project-modal-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.powered-by-text {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

@media (min-width: 992px) {
    .project-modal-gallery {
        min-height: 100%;
    }

    .project-modal-img-wrap--hero {
        aspect-ratio: unset;
        flex: 1 1 auto;
        min-height: 0;
    }

    .project-modal-thumb-row {
        flex: 0 0 auto;
    }
}

@media (max-width: 991.98px) {
    .project-modal-dialog {
        max-height: calc(100vh - 1rem);
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    .project-modal-dialog .modal-content {
        max-height: calc(100vh - 1rem);
    }

    .project-modal-info {
        padding: 1.25rem !important;
    }
}

@media (max-width: 575.98px) {
    .project-modal-img-wrap--hero {
        aspect-ratio: 4 / 3;
    }

    .project-modal-img-wrap--thumb,
    .project-modal-img-wrap--secondary {
        aspect-ratio: 1 / 1;
    }
}