html,
body {
    height: 100%;
}

body {
    overflow: hidden;
}

#wrap {
    box-sizing: border-box;
    height: 100svh;
    min-height: 0;
    padding: 54px 0 0 0;
    overflow: hidden;
}

.mapnew-page {
    position: relative;
    width: 100%;
    height: calc(100svh - 54px);
    overflow: hidden;
    background: #111111;
}

.mapnew-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#mapnew2dContainer,
#mapnewCesiumContainer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #111111;
}

#mapnew2dContainer {
    display: block;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    background: #d6d2c4;
}

#mapnewCesiumContainer {
    display: none;
}

#mapnewCesiumContainer .cesium-viewer,
#mapnewCesiumContainer .cesium-viewer-cesiumWidgetContainer,
#mapnewCesiumContainer .cesium-widget,
#mapnewCesiumContainer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#mapnew2dTilePane,
#mapnew2dOverlayPane {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#mapnew2dTilePane {
    z-index: 1;
}

#mapnew2dOverlayPane {
    z-index: 5;
    pointer-events: none;
}

.mapnew-2d-tile {
    position: absolute;
    width: 256px;
    height: 256px;
    user-select: none;
    pointer-events: none;
    image-rendering: auto;
    background: #d6d2c4;
    opacity: 1;
    transition: opacity 120ms ease-out;
}

.mapnew-2d-tile-loading {
    opacity: 0;
}

.mapnew-2d-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -100%);
    pointer-events: auto;
    cursor: pointer;
    z-index: 20;
}

.mapnew-2d-marker img {
    display: block;
    width: 100%;
    height: 100%;
}

.mapnew-2d-user-location-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.25), 0 0 12px rgba(26, 115, 232, 0.65);
}

.mapnew-2d-user-location-dot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.18);
}

.mapnew-leaflet-label-tooltip {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    font: 700 12px Arial, Helvetica, sans-serif;
    text-align: center;
    white-space: nowrap;
    pointer-events: none !important;
    text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px  1px 0 #000000,
            1px  1px 0 #000000,
            0    0   4px #000000;
}

.mapnew-leaflet-label-tooltip::before {
    display: none;
}

.mapnew-workspace-waypoint-label-tooltip {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: rgba(34,34,34,.72);
    font: 700 11px/1.15 Arial, Helvetica, sans-serif;
    text-align: center;
    white-space: nowrap;
    pointer-events: none !important;
    text-shadow:
            0 1px 1px rgba(255,255,255,.9),
            0 -1px 1px rgba(255,255,255,.75),
            1px 0 1px rgba(255,255,255,.75),
            -1px 0 1px rgba(255,255,255,.75);
}

.mapnew-workspace-waypoint-label-tooltip::before {
    display: none !important;
    border: 0 !important;
}

.mapnew-leaflet-polygon-label-tooltip {
    z-index: 675;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    font: 700 12px Arial, Helvetica, sans-serif;
    text-align: center;
    white-space: nowrap;
    pointer-events: none !important;
    text-shadow:
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px  1px 0 #000000,
            1px  1px 0 #000000,
            0    0   5px #000000;
}

.mapnew-leaflet-polygon-label-tooltip::before {
    display: none;
}

.mapnew-2d-marker-label {
    color: #ffffff;
    white-space: nowrap;
    font: 700 12px Arial, Helvetica, sans-serif;
    pointer-events: none;
}


.mapnew-2d-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.mapnew-2d-route-line {
    pointer-events: stroke;
    cursor: pointer;
}

.mapnew-2d-map-label {
    position: absolute;
    right: 8px;
    bottom: 22px;
    z-index: 998;
    display: none;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.82);
    color: #333333;
    font: 700 11px Arial, Helvetica, sans-serif;
    pointer-events: none;
}

.cesium-widget-credits {
    right: 8px !important;
    bottom: 4px !important;
}

.cesium-viewer,
.cesium-viewer-cesiumWidgetContainer,
.cesium-widget,
.cesium-widget canvas {
    width: 100% !important;
    height: 100% !important;
}

.cesium-viewer-bottom {
    text-align: right !important;
    padding-right: 6px;
}

.cesium-viewer-bottom div.cesium-widget-credits a.cesium-credit-expand-link {
    display: none !important;
}

.cesium-credit-textContainer {
    display: none !important;
}

.cesium-viewer-bottom img {
    max-height: 18px !important;
}

.cesium-viewer-animationContainer .cesium-animation-button-reverse,
.cesium-viewer-animationContainer .cesium-animation-button-play-reverse {
    display: none !important;
}

.cesium-viewer-toolbar {
    display: block;
    position: sticky;
    bottom: 2px;
    left: 1px;
    z-index: 100005;
}

.cesium-navigation-help-button {
    margin: 0;
}

.cesium-navigation-help {
    position: fixed;
    bottom: 40px;
    top: revert;
    right: revert;
    transform-origin: 2px 234px;
    transition: visibility 0s 0.25s, transform 0.25s ease-in;
}

.cesium-navigation-help-visible {
    visibility: visible;
    transform: scale(1);
    transition: transform 0.25s ease-out;
}

/* -------------------------------------------------------------------------
   Map legends
   ------------------------------------------------------------------------- */

.mapnew-legend {
    position: absolute;
    right: 8px;
    bottom: 62px;
    z-index: 1001;
    min-width: 155px;
    padding: 8px 9px;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.94);
    color: #222222;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.30);
    font: 11px Arial, Helvetica, sans-serif;
    line-height: 1.25;
    pointer-events: auto;
}

.mapnew-legend-title {
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid #d0d5dd;
    color: #222222;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.mapnew-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 19px;
    white-space: nowrap;
}

.mapnew-legend-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.mapnew-legend-logo-row {
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid #d0d5dd;
    text-align: center;
}

.mapnew-legend-snotel-logo {
    max-width: 118px;
    height: auto;
}

.mapnew-legend-swatch-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
    white-space: nowrap;
}

.mapnew-legend-swatch {
    display: inline-block;
    width: 18px;
    height: 13px;
    flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}


/* -------------------------------------------------------------------------
   Top-right base map selector
   ------------------------------------------------------------------------- */

.mapnew-basemap-control {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1000;
    min-width: 150px;
    pointer-events: auto;
}

.mapnew-basemap-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    width: 100%;
    min-height: 40px;
    padding: 4px 8px;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.96);
    color: #333333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.mapnew-basemap-selected:hover {
    background: #ffffff;
}

#mapnewBaseMapSelectedContent {
    display: flex;
    align-items: center;
    min-width: 112px;
    min-height: 30px;
}

#mapnewBaseMapSelectedContent img {
    max-width: 118px;
    max-height: 30px;
}

.mapnew-basemap-selected > i {
    color: #444444;
    font-size: 11px;
}

.mapnew-basemap-menu {
    position: absolute;
    top: 45px;
    right: 0;
    display: none;
    min-width: 158px;
    padding: 5px;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.mapnew-basemap-menu.is-open {
    display: block;
}

.mapnew-basemap-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 4px 26px 4px 5px;
    border: 0;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
}

.mapnew-basemap-option:hover {
    background: #f2f4f7;
}

.mapnew-basemap-option img {
    max-width: 118px;
    max-height: 28px;
}

.mapnew-basemap-check {
    position: absolute;
    top: 50%;
    right: 8px;
    display: none;
    transform: translateY(-50%);
    color: #f47a20;
    font-size: 13px;
}

.mapnew-google-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #222222;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.mapnew-google-label img {
    width: 22px;
    height: 22px;
}

/* -------------------------------------------------------------------------
   Left map controls + slide-out panels
   ------------------------------------------------------------------------- */

#mapnewControlsLeft {
    position: absolute;
    top: 8px;
    left: 0;
    z-index: 50001;
    pointer-events: none;
}

.mapnew-slider-trigger {
    position: absolute;
    left: 4px;
    width: 42px;
    height: 42px;
    box-sizing: border-box;
    padding: 3px 2px 2px 2px;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.4);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.1s ease;
}

.mapnew-slider-trigger:hover {
    transform: scale(1.05);
}

#mapnewLayersTrigger {
    top: 0;
}

#mapnewPeaksTrigger {
    top: 50px;
}

.mapnew-slider-trigger img {
    display: block;
    width: 38px;
    height: 38px;
}

.mapnew-slider-panel {
    position: absolute;
    top: 0;
    left: -184px;
    z-index: 1002;
    width: 175px;
    max-height: calc(100svh - 70px);
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    transition: left 180ms ease, box-shadow 180ms ease;
    pointer-events: auto;
    user-select: none;
}

#mapnewPeaksPanel {
    top: 48px;
}

.mapnew-slider-panel.mapnew-slider-panel-open {
    left: 0;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.4);
}

.mapnew-slider-panel-header {
    display: grid;
    grid-template-columns: 34px 1fr 24px;
    align-items: center;
    min-height: 38px;
    background: #424242;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
}

.mapnew-slider-panel-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapnew-slider-panel-header-icon img {
    width: 28px;
    height: 28px;
}

.mapnew-slider-panel-header-title {
    font: 700 13px Arial, Helvetica, sans-serif;
    letter-spacing: 0.4px;
}

.mapnew-slider-panel-header-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mapnew-dropdown-options-list {
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #ffffff;
    color: #222222;
    font: 12px Arial, Helvetica, sans-serif;
}

.mapnew-dropdown-options-list li {
    min-height: 19px;
    padding: 1px 8px;
    cursor: pointer;
    line-height: 17px;
}

.mapnew-dropdown-options-list li:hover {
    background: #f2f4f7;
}

.mapnew-dropdown-options-list input[type="checkbox"],
.mapnew-dropdown-options-list input[type="radio"] {
    margin: 0 4px 0 0;
    vertical-align: middle;
}

.mapnew-dropdown-options-list label {
    cursor: pointer;
    vertical-align: middle;
}

.mapnew-dropdown-options-list-peaks {
    padding-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e6ec;
}

.mapnew-dropdown-options-list-peaks:last-child {
    border-bottom: 0;
}

.mapnew-peak-label-option {
    margin-top: 1px;
    padding-left: 21px !important;
    color: #555555;
    font-size: 11px;
}

.mapnew-peak-label-option label {
    font-style: italic;
}

.mapnew-panel-heading {
    font-weight: 800;
    text-transform: uppercase;
}

.mapnew-color-14ers {
    color: #d71920;
}

.mapnew-color-13ers {
    color: #225ea8;
}

.mapnew-section-label {
    margin-bottom: 5px;
    font-weight: 800;
    color: #424242;
    text-transform: uppercase;
}

.mapnew-basemap-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 34px;
    padding: 4px 24px 4px 4px;
    border: 1px solid #d0d5dd;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
}

.mapnew-basemap-option:hover {
    background: #f7f8fa;
}

.mapnew-basemap-option img {
    max-width: 118px;
    max-height: 28px;
}

.mapnew-basemap-check {
    position: absolute;
    top: 50%;
    right: 7px;
    display: none;
    transform: translateY(-50%);
    color: #f47a20;
    font-size: 13px;
}

.mapnew-google-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #222222;
    font-size: 12px;
    font-weight: 700;
}

.mapnew-google-label img {
    width: 22px;
    height: 22px;
}

#mapnewControlsAdditional {
    position: absolute;
    top: 100px;
    left: 4px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.mapnew-frame.mapnew-fake-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999999 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    background: #111111;
}

.mapnew-frame.mapnew-fake-fullscreen #mapnew2dContainer,
.mapnew-frame.mapnew-fake-fullscreen #mapnewCesiumContainer {
    width: 100vw !important;
    height: 100vh !important;
}

#triggerFakeFullscreen {
    position: absolute;
    right: 8px;
    bottom: 105px;
    background-color: #FFF;
    text-decoration: none;
    padding: 3px 2px 2px 2px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 1001;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 0;
    border-radius: 0;
    color: gray;
    box-sizing: border-box;
    pointer-events: auto;
}

#triggerFakeFullscreen i {
    font-size: 38px;
    color: gray;
    transition: color 0.2s;
    z-index: 9999999;
}

#triggerFakeFullscreen.mapnew-fake-fullscreen-active i.fa-solid {
    font-weight: 600 !important;
    font-size: 38px;
}

#triggerFakeFullscreen div.icon-stack span {
    font-size: 0.7em;
    text-shadow: none;
}

.triggerButton {
    cursor: pointer;
    transition: transform 0.1s ease;
    user-select: none;
}

.triggerButton:hover {
    transform: scale(1.05);
}

.mapnew-fullscreen-trigger .mapnew-icon-stack {
    width: 38px;
    height: 38px;
}

.mapnew-fullscreen-trigger .mapnew-icon-stack i {
    width: 38px;
    line-height: 38px;
    text-align: center;
}

.mapnew-trigger-button {
    width: 38px;
    height: 38px;
    border-radius: 2px;
    background: #ffffff;
    color: #444444;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    text-align: center;
    user-select: none;
}

.mapnew-trigger-button:hover {
    background: #f8f8f8;
}

.mapnew-map-trigger {
    width: 42px;
    height: 42px;
    box-sizing: border-box;
    padding: 3px 2px 2px;
    background: #ffffff;
    color: gray;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.4);
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    border: 0;
    border-radius: 0;
    min-width: 42px;
    display: block;
    line-height: 1;
    margin-left: 0;
    transition: transform 0.1s ease;
}

.mapnew-map-trigger .mapnew-trigger-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 37px;
    line-height: 1;
    text-align: center;
    color: #2563eb;
    font-family: Montserrat, "Segoe UI", sans-serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.7px;
    transform: none;
    text-shadow: none;
    transition: transform 0.2s ease;
}

.mapnew-map-trigger .mapnew-view-mode-text {
    display: block;
    line-height: 0.9;
}

.mapnew-map-trigger .mapnew-view-mode-text-active {
    color: #2563eb;
    font-size: 23px;
}

.mapnew-map-trigger .mapnew-view-mode-text-inactive {
    margin-top: 0;
    color: #667085;
    font-size: 12px;
    opacity: 0.85;
    letter-spacing: -0.2px;
}

.mapnew-map-trigger:hover {
    transform: scale(1.05);
    color: #303030;
}

.mapnew-map-trigger:hover .mapnew-trigger-text {
    transform: scale(1.04);
    text-shadow: none;
}

.mapnew-map-trigger.mapnew-view-mode-3d {
    background: #ffffff;
    color: gray;
}

.mapnew-map-trigger.mapnew-view-mode-3d .mapnew-trigger-text {
    color: #2563eb;
    transform: none;
    letter-spacing: -0.7px;
    text-shadow: none;
}

.mapnew-map-trigger.mapnew-view-mode-3d:hover .mapnew-trigger-text {
    transform: scale(1.04);
    text-shadow: none;
}

.mapnew-locate-button {
    position: absolute;
    right: 8px;
    bottom: 55px;
    z-index: 1001;
    width: 42px;
    height: 42px;
    min-width: 42px;
    box-sizing: border-box;
    padding: 3px 2px 2px 2px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: gray;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    transition: transform 0.1s ease;
}

.mapnew-locate-button:hover {
    transform: scale(1.05);
    background: #ffffff;
    color: #303030;
}

.mapnew-locate-button .mapnew-icon-stack {
    width: 38px;
    height: 38px;
}

.mapnew-locate-button .mapnew-icon-stack i {
    width: 38px;
    font-size: 28px;
    line-height: 38px;
    text-align: center;
}

.mapnew-icon-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    line-height: 1;
}

.mapnew-icon-stack i {
    width: 38px;
    font-size: 17px;
    line-height: 18px;
    text-align: center;
}

.mapnew-icon-stack span {
    display: block;
    margin-top: 1px;
    font-size: 9px;
    font-weight: 800;
    line-height: 10px;
}

/* -------------------------------------------------------------------------
   Standalone compass
   ------------------------------------------------------------------------- */

#mapnewCompassWidget {
    position: fixed;
    top: 8px;
    left: auto;
    right: auto;
    z-index: 1000;
    display: none;
    user-select: none;
    pointer-events: auto;
    transition: top 0.25s ease, left 0.25s ease;
}

#mapnewCompassContainer {
    width: 38px;
    height: 38px;
    background: rgba(35, 35, 35, 0.9);
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#mapnewCompassContainer:hover {
    border-color: orange;
    background: rgba(50, 50, 50, 1);
}

#mapnewCompassNeedle {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.08s linear;
}

.mapnew-needle-north {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 18px solid #ff0000;
}

.mapnew-needle-south {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 18px solid #ffffff;
}

/* -------------------------------------------------------------------------
   Status, credits, and loading UI
   ------------------------------------------------------------------------- */

.mapnew-status {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 1001;
    display: none;
    transform: translateX(-50%);
    padding: 7px 11px;
    border-radius: 5px;
    background: rgba(30, 30, 30, 0.86);
    color: #ffffff;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.35);
    font: 700 12px Arial, Helvetica, sans-serif;
}

.mapnew-credit {
    position: absolute;
    left: 5px;
    bottom: 0;
    z-index: 999;
    display: none;
    line-height: 0;
    user-select: none;
}

.mapnew-credit a {
    display: flex;
}

.mapnew-credit img {
    height: 31px;
    width: auto;
    border: 0;
    box-shadow: none;
}

.mapnew-credit-google {
    align-items: center;
    gap: 4px;
    bottom: 3px;
    padding: 2px 6px 2px 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.92);
    color: #3c4043;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    font: 700 12px Arial, Helvetica, sans-serif;
    line-height: 1;
}

.mapnew-credit-usgs {
    bottom: 3px;
    padding: 5px 7px;
    border-radius: 3px;
    background: rgba(234, 242, 255, 0.94);
    color: #1f3f5b;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    font: 700 12px Arial, Helvetica, sans-serif;
    line-height: 1;
}

.mapnew-credit-google img {
    width: 22px;
    height: 22px;
}

.mapnew-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: #666666;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1.5s ease-out;
}

.mapnew-loading-overlay.is-active {
    display: flex;
}

.mapnew-loading-overlay.is-fading {
    opacity: 0;
}

.mapnew-loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    opacity: 0.9;
}

.mapnew-loader img {
    max-width: 60vw;
    width: auto;
    height: auto;
    margin-bottom: 0;
    transform: scale(0.7);
    opacity: 0.4;
}

.mapnew-loading-spinner {
    position: absolute;
    width: 100px;
    height: 100px;
    margin: 0 0 25px 0;
    border: 4px solid rgba(255, 165, 0, 0.1);
    border-left-color: orange;
    border-radius: 50%;
    animation: mapnew-spin 1s linear infinite;
    opacity: 0.9 !important;
}

.mapnew-loading-text {
    color: #ffffff;
    opacity: 0.5;
    font-family: sans-serif;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
}

.mapnew-working-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2500;
    display: none;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border-width: 4px;
    border-color: rgba(255, 255, 255, 0.45);
    border-top-color: #f47a20;
}

@keyframes mapnew-spin {
    to {
        transform: rotate(360deg);
    }
}

/* -------------------------------------------------------------------------
   Hover info
   ------------------------------------------------------------------------- */

.mapnew-hover-info {
    position: absolute;
    z-index: 4000;
    display: none;
    max-width: 280px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 165, 0, 0.88);
    border-radius: 5px;
    background: rgba(20, 20, 20, 0.93);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    white-space: normal;
    font: 700 12px/1.3 Arial, Helvetica, sans-serif;
}

.mapnew-hover-title {
    margin-bottom: 5px;
}

.mapnew-hover-row {
    font-size: 11px;
    font-weight: 600;
}

.mapnew-hover-row span,
.mapnew-hover-click {
    color: #ffcc66;
}

.mapnew-hover-click {
    margin-top: 6px;
    font-size: 11px;
}

.mapnew-hover-info-small {
    max-width: 220px;
    padding: 4px 7px;
    border-color: rgba(255, 255, 255, 0.75);
    border-radius: 3px;
    background: rgba(20, 20, 20, 0.82);
    font: 700 11px/1.15 Arial, Helvetica, sans-serif;
}

.mapnew-hover-info-small .mapnew-hover-title {
    margin-bottom: 0;
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Zoom level indicator
   ------------------------------------------------------------------------- */

.mapnew-zoom-box {
    position: absolute;
    right: 8px;
    bottom: 5px;
    z-index: 1001;
    display: none;
    min-width: 48px;
    padding: 4px 7px;
    border: 1px solid rgba(130, 96, 0, 0.55);
    border-radius: 3px;
    background: #fff2a8;
    color: #3f3300;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    font: 700 11px Arial, Helvetica, sans-serif;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

/* -------------------------------------------------------------------------
   Guest badge and popup
   ------------------------------------------------------------------------- */

.mapnew-guest-badge {
    position: absolute;
    top: 58px;
    right: 8px;
    z-index: 1000;
    border: 0;
    border-radius: 4px;
    padding: 7px 10px;
    background: rgba(244, 122, 32, 0.94);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    font: 700 12px Arial, Helvetica, sans-serif;
}

#mapGuestOverlayPopup,
#mapworkGuestMemberOnlyPopup {
    position: absolute;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

#mapGuestOverlayPopupBox {
    position: relative;
    width: min(420px, calc(100vw - 30px));
    padding: 18px 18px 16px 18px;
    border-radius: 8px;
    background: #ffffff;
    color: #222222;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
    font-family: Arial, Helvetica, sans-serif;
}

#mapGuestOverlayPopupClose,
#mapworkGuestMemberOnlyPopupClose {
    position: absolute;
    top: 6px;
    right: 9px;
    border: 0;
    background: transparent;
    color: #555555;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

#mapGuestOverlayPopupTitle {
    margin: 0 24px 9px 0;
    color: #222222;
    font-size: 17px;
    font-weight: 800;
}

#mapGuestOverlayPopupText {
    color: #344054;
    font-size: 13px;
    line-height: 1.42;
}

/* -------------------------------------------------------------------------
   Responsive adjustments
   ------------------------------------------------------------------------- */

@media (max-width: 700px) {
    #wrap {
        padding-top: 53px;
    }

    .mapnew-page {
        height: calc(100svh - 53px);
    }

    #mapnewControlsLeft {
        top: 6px;
    }

    .mapnew-slider-panel {
        max-height: calc(100svh - 64px);
    }

    #mapnewControlsAdditional {
        top: 100px;
    }

    .mapnew-locate-button .mapnew-icon-stack,
    .mapnew-fullscreen-trigger .mapnew-icon-stack {
        width: 38px;
        height: 38px;
    }

    .mapnew-locate-button .mapnew-icon-stack i {
        width: 38px;
        font-size: 28px;
        line-height: 38px;
    }

    .mapnew-map-trigger,
    .mapnew-slider-trigger {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .mapnew-map-trigger .mapnew-trigger-text {
        width: 38px;
        height: 37px;
        line-height: 1;
    }

    .mapnew-map-trigger .mapnew-view-mode-text-active {
        font-size: 22px;
    }

    .mapnew-map-trigger .mapnew-view-mode-text-inactive {
        font-size: 12px;
    }

    .mapnew-slider-trigger img {
        width: 38px;
        height: 38px;
    }

    .mapnew-trigger-button,
    .mapnew-icon-stack {
        width: 36px;
        height: 36px;
    }

    .mapnew-map-trigger {
        width: 42px;
        height: 42px;
    }

    .mapnew-icon-stack {
        width: 36px;
        height: 36px;
    }

    .mapnew-icon-stack i {
        width: 36px;
        font-size: 16px;
    }

    .mapnew-icon-stack span {
        font-size: 8px;
    }

    .mapnew-zoom-box {
        right: 8px;
        bottom: 5px;
        font-size: 10px;
    }

    .mapnew-credit {
        width: auto;
    }

    .mapnew-credit img {
        height: 31px;
        width: auto;
    }

    .mapnew-basemap-control {
        top: 6px;
        right: 6px;
        min-width: 132px;
    }

    .mapnew-basemap-selected {
        min-height: 36px;
        padding: 3px 7px;
    }

    #mapnewBaseMapSelectedContent {
        min-width: 96px;
    }

    #mapnewBaseMapSelectedContent img {
        max-width: 102px;
        max-height: 27px;
    }

    .mapnew-basemap-menu {
        top: 41px;
        min-width: 142px;
    }

    #mapnewCompassContainer {
        width: 50px;
        height: 50px;
    }

    #mapnewCompassNeedle {
        top: 7px;
        height: 36px;
    }

    .mapnew-needle-north {
        border-left-width: 5px;
        border-right-width: 5px;
        border-bottom-width: 18px;
    }

    .mapnew-needle-south {
        border-left-width: 5px;
        border-right-width: 5px;
        border-top-width: 18px;
    }

    .mapnew-legend {
        right: 8px;
        bottom: 90px;
        max-width: calc(100vw - 22px);
        font-size: 10px;
    }
}