/* Situm Indoor Map UI Styles (Light Modern Theme) */

:root {
    --explore-edge: 1.25rem;
    --explore-safe-top: max(var(--explore-edge), env(safe-area-inset-top));
    --explore-safe-right: max(var(--explore-edge), env(safe-area-inset-right));
    --explore-safe-bottom: max(var(--explore-edge), env(safe-area-inset-bottom));
    --explore-safe-left: max(var(--explore-edge), env(safe-area-inset-left));
}

.header-venue-name {
    display: block;
    max-width: 120px;
}

.explore-user-menu-wrapper {
    flex: 0 0 auto;
}

/* Main Container Layout */
.explore-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    overflow: hidden;
    background-color: #f1f5f9;
    color: #0f172a;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Glassmorphic Panel Base */
.situm-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 8px 12px -6px rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

/* Left Floating Search & Navigation Card */
.explore-sidebar {
    position: absolute;
    top: var(--explore-safe-top);
    left: var(--explore-safe-left);
    width: min(360px, calc(100% - var(--explore-safe-left) - var(--explore-safe-right)));
    max-height: calc(100vh - var(--explore-safe-top) - var(--explore-safe-bottom));
    max-height: calc(100dvh - var(--explore-safe-top) - var(--explore-safe-bottom));
    z-index: 30;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-sidebar.collapsed {
    transform: translateX(-120%);
}

/* Top Search Bar */
.explore-search-box {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid #e2e8f0;
}

.explore-search-input {
    width: 100%;
    padding: 0.625rem 2.25rem 0.625rem 2.5rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.explore-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.explore-search-icon {
    position: absolute;
    left: 1.375rem;
    color: #64748b;
    pointer-events: none;
    font-size: 1.25rem;
}

/* Situm Category Grid Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    padding: 1rem;
    background: #ffffff;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 0.5rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.category-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.category-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.category-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.15;
}

/* POI Item Row List */
.space-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.space-item:hover {
    background: #f8fafc;
}

.space-item.selected {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
}

/* Horizontal Subcategory Filter Chips */
.filter-chip {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.filter-chip.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* Map Viewport Container */
.explore-map-viewport {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Top Right Building & Floor Switcher Box */
.situm-building-widget {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.venue-select-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.875rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #0f172a;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.venue-select-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -5px rgba(15, 23, 42, 0.12);
}

.venue-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2.875rem;
    padding: 0.375rem 0.375rem 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0.875rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.9);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.venue-info-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -5px rgba(15, 23, 42, 0.12);
}

/* Polished Floor Up/Down Arrow Control */
.floor-arrow-stack {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    overflow: hidden;
    margin-left: 0.375rem;
}

.floor-arrow-btn {
    width: 1.625rem;
    height: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.floor-arrow-btn:hover {
    background: #0f172a;
    color: #ffffff;
}

/* Header Dropdown Wrapper & Overlays */
.header-dropdown-wrapper {
    position: relative;
}

.header-dropdown-overlay {
    position: absolute;
    top: calc(100% + 0.5rem);
    width: min(240px, calc(100vw - var(--explore-safe-left) - var(--explore-safe-right)));
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.16), 0 8px 16px -6px rgba(15, 23, 42, 0.05);
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.header-dropdown-overlay.align-left {
    left: 0;
}

.header-dropdown-overlay.align-right {
    right: 0;
}

/* Dropdown Search Box */
.header-dropdown-search-box {
    position: relative;
    padding-bottom: 0.375rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.header-dropdown-search-input {
    width: 100%;
    padding: 0.4375rem 0.625rem 0.4375rem 2rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-dropdown-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.header-dropdown-search-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

/* Header Dropdown Options List */
.header-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 220px;
    overflow-y: auto;
}

.header-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.625rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.header-dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.header-dropdown-item.active {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.header-dropdown-item.building-active {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.header-dropdown-item.floor-active {
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.floor-option-level {
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    background: #f1f5f9;
    color: #0f172a;
    flex-shrink: 0;
}

.header-dropdown-item.floor-active .floor-option-level {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Layer & Asset Status Filter Flyout Panel (Anchored to Toolbar Stack) */
#layer-filter-dropdown {
    position: fixed;
    right: 4.75rem;
    bottom: 2.5rem;
    width: 18rem;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    z-index: 50;
}

body.nav-active #layer-filter-dropdown {
    bottom: 6rem;
}

body.nav-active .situm-building-widget {
    display: none !important;
}

/* Unified Right Edge Map Toolbar Widget Stack */
.situm-toolbar-stack {
    position: absolute;
    right: 1.25rem;
    bottom: 2.5rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.375rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
}

body.nav-active .situm-toolbar-stack {
    bottom: 6rem;
}

.toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.situm-toolbar-stack.is-collapsed .toolbar-collapsible-group {
    max-height: 0;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.situm-toolbar-stack:not(.is-collapsed) .toolbar-collapsible-group {
    max-height: 450px;
    opacity: 1;
    transform: scale(1);
}

.toolbar-divider {
    height: 1px;
    background: rgba(226, 232, 240, 0.9);
    margin: 0.125rem 0.25rem;
}

.toolbar-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: transparent;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
}

.toolbar-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: scale(1.05);
}

.toolbar-btn:active {
    transform: scale(0.95);
}

.toolbar-btn.toggle-collapse-btn {
    color: #64748b;
}

.toolbar-btn.toggle-collapse-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.toolbar-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* POI Detail Drawer Card */
.room-info-drawer {
    position: absolute;
    bottom: 1.5rem;
    left: 1.25rem;
    z-index: 35;
    width: min(360px, calc(100% - var(--explore-safe-left) - var(--explore-safe-right)));
    border-radius: 1rem;
    padding: 1.25rem;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    border: 1px solid #f1f5f9;
}

/* Room Info Popover Panel */
.room-popover {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: min(360px, calc(100% - var(--explore-safe-left) - var(--explore-safe-right)));
    max-height: calc(100vh - 2.5rem);
    max-height: calc(100dvh - var(--explore-safe-top) - var(--explore-safe-bottom));
    z-index: 45;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.room-popover-cover {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

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

.room-popover-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.875rem 1rem 0;
}

.room-popover-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.room-popover-link:hover {
    background: #eff6ff;
}

.room-popover-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem 1rem;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.room-popover-directions-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transition: background 0.15s ease;
}

.room-popover-directions-btn:hover {
    background: #1e293b;
    color: #ffffff;
}

.room-popover-save-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.room-popover-save-btn:hover {
    background: #e2e8f0;
}

/* Map Object Marker Pulse & Shadow Animation */
.custom-object-marker {
    position: relative;
}

.custom-object-marker::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    z-index: -1;
    animation: marker-pulse 2s infinite ease-out;
}

@keyframes marker-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.4);
        opacity: 0;
    }

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

/* Custom Marker Tooltip Popup */
.custom-marker-tooltip .maplibregl-popup-content {
    background: #0f172a !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.custom-marker-tooltip .maplibregl-popup-tip {
    border-top-color: #0f172a !important;
}

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

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

/* Hide default MapLibre navigation control to prevent overlap with situm custom toolbar */
.maplibregl-ctrl-bottom-right {
    display: none !important;
}

/* Responsive Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1100px) {
    :root {
        --explore-edge: 0.875rem;
    }

    .explore-sidebar {
        width: min(320px, calc(100% - var(--explore-safe-left) - var(--explore-safe-right)));
    }

    .situm-building-widget {
        max-width: calc(100% - 320px - (var(--explore-edge) * 3));
    }

    .venue-select-card,
    .venue-info-card {
        min-width: 0;
    }

    .header-venue-name {
        max-width: clamp(56px, 8vw, 96px);
    }

}

/* Compact landscape kiosk browser windows */
@media (min-width: 768px) and (max-height: 760px) and (orientation: landscape) {
    :root {
        --explore-edge: 0.75rem;
    }

    .explore-sidebar {
        width: min(320px, calc(100% - var(--explore-safe-left) - var(--explore-safe-right)));
    }

    .situm-building-widget {
        top: var(--explore-safe-top);
        right: var(--explore-safe-right);
    }

    .venue-select-card,
    .venue-info-card {
        height: 2.5rem;
        padding-block: 0.25rem;
    }

    .header-dropdown-list {
        max-height: min(160px, calc(100dvh - var(--explore-safe-top) - 9rem));
    }

    .situm-toolbar-stack {
        right: var(--explore-safe-right);
        bottom: var(--explore-safe-bottom);
        padding: 0.25rem;
        gap: 0.125rem;
    }

    .toolbar-group {
        gap: 0.125rem;
    }

    .toolbar-btn {
        width: 2.125rem;
        height: 2.125rem;
    }

    #layer-filter-dropdown {
        right: calc(var(--explore-safe-right) + 3rem);
        bottom: var(--explore-safe-bottom);
        max-height: calc(100dvh - var(--explore-safe-top) - var(--explore-safe-bottom));
    }

    body.nav-active .situm-toolbar-stack,
    body.nav-active #layer-filter-dropdown {
        bottom: calc(var(--explore-safe-bottom) + 5rem);
    }

    #explore-route-selector {
        max-height: calc(100dvh - var(--explore-safe-top) - var(--explore-safe-bottom));
        overflow-y: auto;
    }
}

/* Responsive Mobile Adjustments */
@media (max-width: 767.98px) {
    :root {
        --explore-edge: 0.75rem;
    }

    .explore-sidebar {
        top: var(--explore-safe-top);
        left: var(--explore-safe-left);
        right: var(--explore-safe-right);
        width: auto;
        max-width: 420px;
        margin-inline: auto;
        max-height: min(55vh, calc(100dvh - var(--explore-safe-top) - 8rem));
        z-index: 40;
    }

    .explore-sidebar.collapsed {
        transform: translateY(-120%);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .category-card {
        padding: 0.625rem 0.375rem;
    }

    .category-icon-box {
        width: 2.25rem;
        height: 2.25rem;
        margin-bottom: 0.25rem;
    }

    .category-card-label {
        font-size: 0.7rem;
    }

    .situm-building-widget {
        top: calc(var(--explore-safe-top) + 4.625rem);
        right: var(--explore-safe-right);
        left: var(--explore-safe-left);
        z-index: 35;
        gap: 0.375rem;
    }

    .header-dropdown-wrapper {
        flex: 1 1 0;
        min-width: 0;
    }

    .explore-user-menu-wrapper {
        flex: 0 0 auto;
        width: auto;
    }

    .venue-select-card {
        width: 100%;
        min-width: 0;
        height: 2.5rem;
        padding: 0.25rem 0.5rem;
        border-radius: 0.625rem;
        gap: 0.25rem;
        flex-shrink: 0;
    }

    .venue-info-card {
        width: 100%;
        min-width: 0;
        height: 2.5rem;
        padding: 0.25rem 0.375rem 0.25rem 0.5rem;
        border-radius: 0.625rem;
        flex-shrink: 0;
    }

    .header-venue-name {
        max-width: none;
    }

    .header-dropdown-overlay {
        position: fixed;
        top: calc(var(--explore-safe-top) + 7.5rem);
        right: var(--explore-safe-right) !important;
        left: var(--explore-safe-left) !important;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - var(--explore-safe-top) - 8.5rem);
        overflow: hidden;
        z-index: 50;
    }

    #explore-user-dropdown-panel,
    .explore-user-menu-wrapper .header-dropdown-overlay {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        right: 0 !important;
        left: auto !important;
        width: min(16rem, calc(100vw - var(--explore-safe-left) - var(--explore-safe-right))) !important;
        max-width: calc(100vw - var(--explore-safe-left) - var(--explore-safe-right)) !important;
        max-height: calc(100dvh - var(--explore-safe-top) - 8.5rem);
        overflow: visible;
        z-index: 60;
    }

    .header-dropdown-list {
        max-height: min(220px, calc(100dvh - var(--explore-safe-top) - 13rem));
    }

    #layer-filter-dropdown {
        position: fixed;
        bottom: calc(var(--explore-safe-bottom) + 0.5rem);
        right: var(--explore-safe-right);
        left: var(--explore-safe-left);
        width: auto;
        max-width: 380px;
        margin-inline: auto;
        max-height: min(75vh, calc(100dvh - var(--explore-safe-top) - 4rem));
        overflow-y: auto;
        z-index: 50;
    }

    body.nav-active #layer-filter-dropdown {
        bottom: calc(var(--explore-safe-bottom) + 5.75rem);
    }

    .situm-toolbar-stack {
        right: var(--explore-safe-right);
        bottom: var(--explore-safe-bottom);
        z-index: 20;
        padding: 0.2rem;
        border-radius: 0.75rem;
        gap: 0.125rem;
        box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
    }

    body.nav-active .situm-toolbar-stack {
        bottom: calc(var(--explore-safe-bottom) + 5.75rem);
    }

    .situm-toolbar-stack .toolbar-group {
        gap: 0.125rem;
    }

    .situm-toolbar-stack .toolbar-divider {
        margin: 0.1rem 0.2rem;
    }

    .toolbar-btn {
        width: 1.875rem;
        height: 1.875rem;
        border-radius: 0.375rem;
    }

    .toolbar-btn.toggle-collapse-btn {
        height: 1.25rem;
    }

    .toolbar-btn .material-symbols-outlined {
        font-size: 1.05rem !important;
    }

    .toolbar-btn.toggle-collapse-btn .material-symbols-outlined {
        font-size: 0.95rem !important;
    }

    .situm-toolbar-stack #active-filter-indicator {
        top: 2px;
        right: 2px;
        width: 5px;
        height: 5px;
    }

    .room-info-drawer {
        bottom: var(--explore-safe-bottom);
        left: var(--explore-safe-left);
        right: var(--explore-safe-right);
        width: auto;
        max-width: none;
        z-index: 35;
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .room-popover {
        top: auto;
        bottom: var(--explore-safe-bottom);
        left: var(--explore-safe-left);
        right: var(--explore-safe-right);
        width: auto;
        max-width: none;
        max-height: min(70vh, calc(100dvh - var(--explore-safe-top) - var(--explore-safe-bottom)));
        z-index: 45;
        border-radius: 1.25rem;
    }

    .room-popover-cover {
        height: 130px;
    }

    #explore-route-selector {
        position: fixed;
        top: var(--explore-safe-top);
        right: var(--explore-safe-right);
        left: var(--explore-safe-left);
        width: auto;
        max-width: 420px;
        margin-inline: auto;
        max-height: calc(100dvh - var(--explore-safe-top) - var(--explore-safe-bottom));
        overflow-y: auto;
        z-index: 45;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.375rem;
        padding: 0.5rem;
    }

    .category-card {
        padding: 0.5rem 0.25rem;
    }

    .category-card-label {
        font-size: 0.65rem;
    }

    .situm-building-widget {
        gap: 0.25rem;
    }

    .venue-select-card {
        padding: 0.2rem 0.375rem;
    }

    .venue-info-card {
        padding: 0.2rem 0.25rem 0.2rem 0.375rem;
    }

    .venue-select-card > div:first-child,
    .venue-info-card > div:first-child > div:first-child {
        display: none;
    }

    .room-popover-footer {
        padding: 0.75rem;
    }

    .room-popover-directions-btn,
    .room-popover-save-btn {
        padding-right: 0.625rem;
        padding-left: 0.625rem;
    }
}

@media (max-width: 767.98px) and (max-height: 500px) and (orientation: landscape) {
    .explore-sidebar {
        right: auto;
        width: min(320px, 42vw);
    }

    .situm-building-widget {
        top: var(--explore-safe-top);
        right: var(--explore-safe-right);
        left: calc(42vw + var(--explore-edge));
    }

    #explore-route-selector {
        top: var(--explore-safe-top);
        right: auto;
        width: min(320px, 42vw);
    }

    .room-popover {
        right: auto;
        width: min(360px, 42vw);
        max-height: calc(100dvh - var(--explore-safe-top) - var(--explore-safe-bottom));
    }

    .room-popover-cover {
        height: 96px;
    }
}

/* Selected Object Marker Glowing Pulse Effect */
@keyframes poi-marker-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.75);
    }
    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 20px rgba(245, 158, 11, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.selected-poi-highlight-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 45;
}

.selected-poi-highlight-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 3px solid #ffffff;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    animation: poi-marker-pulse 1.8s infinite ease-in-out;
}

/* 3D Wayfinding Pin Markers */
@keyframes wayfinding3dPinFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes wayfinding3dShadowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(0.75);
        opacity: 0.25;
    }
}

.wayfinding-3d-pin-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    user-select: none;
    z-index: 40;
}

.wayfinding-3d-pin-head {
    animation: wayfinding3dPinFloat 2.8s ease-in-out infinite;
    transform-origin: center bottom;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
}

.wayfinding-3d-pin-shadow {
    animation: wayfinding3dShadowPulse 2.8s ease-in-out infinite;
    transform-origin: center center;
}