.nearby-map-page {
    min-height: 100dvh;
    overflow: hidden;
    background: var(--hp-page-bg);
    --nearby-header-height: 54px;
    --nearby-map-gap: 10px;
    --nearby-sheet-collapsed: 66px;
    --nearby-sheet-peek: min(36dvh, 305px);
    --nearby-sheet-expanded: calc(100% - 106px);
}

.nearby-map-page .site-header__bar-search,
.nearby-map-page .site-footer {
    display: none;
}

.nearby-map-page .page-shell {
    width: 100%;
    min-height: calc(100dvh - var(--nearby-header-height) - var(--hp-bottom-nav-height, 0px));
    margin: 0;
}

.nearby-map-shell {
    width: 100%;
    height: calc(100dvh - var(--nearby-header-height) - var(--hp-bottom-nav-height, 0px));
    min-height: 420px;
    overflow: hidden;
}

.nearby-map-app {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #DFE8DC;
    isolation: isolate;
}

.nearby-map-controls {
    position: absolute;
    top: max(8px, env(safe-area-inset-top));
    right: 8px;
    left: 8px;
    z-index: 35;
    display: grid;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.nearby-map-controls__headline {
    display: none;
}

.nearby-map-controls__headline p,
.nearby-map-controls__headline h1 {
    margin: 0;
}

.nearby-map-controls__headline h1 {
    color: var(--hp-green);
    font-size: 1.2rem;
    font-weight: 950;
    line-height: .98;
}

.nearby-map-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-height: 42px;
    padding: 0 6px 0 9px;
    border: 1px solid rgba(223, 212, 195, .86);
    border-radius: 13px;
    background: rgba(255, 253, 247, .98);
    color: var(--hp-muted);
    box-shadow: 0 12px 26px rgba(27, 29, 24, .14);
    pointer-events: auto;
    backdrop-filter: blur(16px) saturate(1.04);
}

.nearby-map-search input {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: var(--hp-ink);
    font-size: .76rem;
    font-weight: 780;
    outline: 0;
}

.nearby-map-search input::placeholder {
    color: rgba(95, 102, 93, .76);
}

.nearby-map-search button {
    min-width: 36px;
    min-height: 32px;
    border: 0;
    border-radius: 10px;
    background: var(--hp-orange);
    color: var(--hp-surface-warm);
    font-size: .66rem;
    font-weight: 950;
}

.nearby-map-filter-bubble {
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 36;
    pointer-events: auto;
}

.nearby-map-filter-bubble summary {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 253, 247, .84);
    border-radius: 999px;
    background: rgba(36, 90, 59, .96);
    color: var(--hp-surface-warm);
    box-shadow: 0 15px 32px rgba(27, 29, 24, .24);
    cursor: pointer;
    list-style: none;
    backdrop-filter: blur(14px);
}

.nearby-map-filter-bubble summary::-webkit-details-marker {
    display: none;
}

.nearby-map-filter-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.nearby-map-filter-bubble[open] summary {
    background: var(--hp-orange);
}

.nearby-map-filter-panel {
    position: absolute;
    top: 48px;
    right: 0;
    display: grid;
    width: min(78vw, 286px);
    max-height: min(54dvh, 380px);
    gap: 9px;
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(223, 212, 195, .84);
    border-radius: 16px;
    background: rgba(255, 253, 247, .985);
    box-shadow: 0 18px 46px rgba(27, 29, 24, .2);
    overscroll-behavior: contain;
    backdrop-filter: blur(18px) saturate(1.06);
}

.nearby-map-filter-panel__header {
    display: grid;
    gap: 2px;
}

.nearby-map-filter-panel__header strong,
.nearby-map-filter-panel__header small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nearby-map-filter-panel__header strong {
    color: var(--hp-ink);
    font-size: .78rem;
    font-weight: 950;
}

.nearby-map-filter-panel__header small {
    color: var(--hp-muted);
    font-size: .6rem;
    font-weight: 760;
    line-height: 1.2;
}

.nearby-map-filter-strip {
    display: grid;
    gap: 5px;
}

.nearby-map-radius,
.nearby-map-type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
}

.nearby-map-radius legend,
.nearby-map-type-filter legend,
.nearby-map-search .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.nearby-map-radius button,
.nearby-map-type-filter button {
    flex: 0 0 auto;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid rgba(223, 212, 195, .78);
    border-radius: 999px;
    background: rgba(255, 253, 247, .92);
    color: var(--hp-muted);
    font-size: .62rem;
    font-weight: 950;
    white-space: nowrap;
}

.nearby-map-radius button[aria-pressed="true"],
.nearby-map-type-filter button[aria-pressed="true"] {
    border-color: rgba(200, 97, 56, .28);
    background: rgba(200, 97, 56, .12);
    color: var(--hp-orange);
}

.nearby-map-department {
    display: grid;
    gap: 4px;
}

.nearby-map-department span {
    color: var(--hp-muted);
    font-size: .56rem;
    font-weight: 900;
    white-space: nowrap;
}

.nearby-map-department select {
    width: 100%;
    min-height: 32px;
    border: 1px solid var(--hp-border-strong);
    border-radius: 10px;
    background: var(--hp-surface);
    color: var(--hp-ink);
    font-size: .68rem;
    font-weight: 850;
}

.nearby-map-load-more {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--hp-border-strong);
    border-radius: 8px;
    background: var(--hp-surface);
    color: var(--hp-green);
    font-size: .68rem;
    font-weight: 900;
}

.nearby-map-viewport,
.nearby-map-canvas {
    position: absolute;
    inset: 0;
}

.nearby-map-canvas {
    z-index: 1;
    overflow: hidden;
    background: #DFE8DC;
}

.nearby-map-canvas .leaflet-tile-pane {
    filter: saturate(.72) contrast(.86) brightness(1.08);
    opacity: .72;
}

.nearby-map-loading {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-muted);
    font-size: .85rem;
    font-weight: 850;
}

.nearby-map-locate {
    position: absolute;
    top: 102px;
    right: 12px;
    z-index: 32;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid rgba(255, 253, 247, .78);
    border-radius: 999px;
    background: rgba(36, 90, 59, .94);
    color: var(--hp-surface-warm);
    box-shadow: 0 16px 34px rgba(27, 29, 24, .22);
    font-size: .66rem;
    font-weight: 950;
    backdrop-filter: blur(12px);
}

.nearby-map-legend {
    position: absolute;
    right: 8px;
    bottom: calc(var(--nearby-sheet-peek) + 8px);
    left: 8px;
    z-index: 28;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    pointer-events: none;
}

.nearby-map-legend span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    padding: 0 7px;
    border: 1px solid rgba(223, 212, 195, .72);
    border-radius: 999px;
    background: rgba(255, 253, 247, .96);
    color: var(--hp-muted);
    box-shadow: 0 10px 24px rgba(27, 29, 24, .1);
    font-size: .56rem;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.nearby-map-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--legend-color);
}

.nearby-map-results {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: var(--nearby-sheet-peek);
    min-height: var(--nearby-sheet-collapsed);
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid var(--hp-border-strong);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: rgba(255, 253, 247, .985);
    box-shadow: 0 -18px 48px rgba(27, 29, 24, .18);
    backdrop-filter: blur(18px) saturate(1.08);
    transition: height 220ms ease;
}

.nearby-map-shell[data-sheet-state="collapsed"] .nearby-map-results {
    height: var(--nearby-sheet-collapsed);
}

.nearby-map-shell[data-sheet-state="expanded"] .nearby-map-results {
    height: var(--nearby-sheet-expanded);
}

.nearby-map-shell[data-sheet-state="collapsed"] .nearby-map-list {
    opacity: 0;
    pointer-events: none;
}

.nearby-map-shell[data-sheet-state="collapsed"] .nearby-map-legend {
    bottom: calc(var(--nearby-sheet-collapsed) + 8px);
}

.nearby-map-shell[data-sheet-state="expanded"] .nearby-map-legend {
    display: none;
}

.nearby-map-results__handle {
    display: grid;
    grid-row: 1;
    justify-self: center;
    width: 74px;
    height: 18px;
    place-items: center;
    margin-bottom: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.nearby-map-results__handle::before {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(95, 102, 93, .32);
    content: "";
}

.nearby-map-results__header {
    position: relative;
    z-index: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding: 0 2px 6px;
    background: rgba(255, 253, 247, .985);
}

.nearby-map-results__header h2,
.nearby-map-status {
    margin: 0;
}

.nearby-map-results__header h2 {
    color: var(--hp-ink);
    font-size: .84rem;
    font-weight: 950;
    line-height: 1.08;
}

.nearby-map-status {
    color: var(--hp-muted);
    font-size: .56rem;
    font-weight: 820;
    line-height: 1.2;
}

.nearby-map-results__states {
    display: inline-flex;
    gap: 3px;
    padding: 2px;
    border: 1px solid rgba(223, 212, 195, .72);
    border-radius: 999px;
    background: rgba(255, 248, 236, .74);
}

.nearby-map-results__states button {
    display: inline-flex;
    min-width: 44px;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--hp-green);
    font-size: .54rem;
    font-weight: 950;
}

.nearby-map-results__states button[aria-pressed="true"] {
    background: var(--hp-green);
    color: var(--hp-surface-warm);
}

.nearby-map-list {
    display: grid;
    grid-row: 3;
    gap: 6px;
    min-height: 0;
    overflow: auto;
    padding: 2px 0 calc(104px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    transition: opacity 180ms ease;
}

.nearby-map-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) minmax(54px, auto);
    grid-template-areas:
        "icon copy meta"
        "icon copy cta";
    gap: 2px 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(223, 212, 195, .76);
    border-radius: 13px;
    background: rgba(255, 253, 247, .96);
    color: var(--hp-ink);
}

.nearby-map-item:hover,
.nearby-map-item.is-active {
    border-color: rgba(200, 97, 56, .26);
    background: var(--hp-surface);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(27, 29, 24, .08);
}

.nearby-map-item__icon {
    display: inline-grid;
    width: 32px;
    height: 32px;
    grid-area: icon;
    place-items: center;
    border-radius: 11px;
    background: var(--item-color, var(--hp-orange));
    color: var(--hp-surface);
    font-size: .68rem;
    font-weight: 950;
}

.nearby-map-item__copy {
    display: grid;
    min-width: 0;
    grid-area: copy;
    gap: 2px;
}

.nearby-map-item__meta {
    display: grid;
    max-width: 78px;
    justify-items: end;
    grid-area: meta;
    gap: 2px;
}

.nearby-map-item__cta {
    grid-area: cta;
    justify-self: end;
    color: var(--hp-orange);
    font-size: .58rem;
    font-weight: 950;
}

.nearby-map-item--orange { --item-color: var(--hp-orange); }
.nearby-map-item--green { --item-color: var(--hp-green); }
.nearby-map-item--blue { --item-color: #27627A; }
.nearby-map-item--amber { --item-color: #BA7A12; }
.nearby-map-item--terracotta { --item-color: #A64F31; }
.nearby-map-item--muted { --item-color: #6B7568; }

.nearby-map-item strong,
.nearby-map-item small,
.nearby-map-item em {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
}

.nearby-map-item strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--hp-ink);
    font-size: .72rem;
    font-weight: 950;
    line-height: 1.12;
}

.nearby-map-item small {
    white-space: nowrap;
    color: var(--hp-muted);
    font-size: .56rem;
    font-weight: 750;
    line-height: 1.18;
}

.nearby-map-item em {
    white-space: nowrap;
    color: var(--hp-orange);
    font-size: .66rem;
    font-style: normal;
    font-weight: 950;
}

.nearby-map-empty {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px dashed rgba(223, 212, 195, .88);
    border-radius: 14px;
    background: rgba(255, 248, 236, .62);
}

.nearby-map-empty strong,
.nearby-map-empty p {
    margin: 0;
}

.nearby-map-empty strong {
    color: var(--hp-ink);
    font-size: .86rem;
    font-weight: 950;
}

.nearby-map-empty p {
    color: var(--hp-muted);
    font-size: .68rem;
    font-weight: 760;
}

.nearby-map-empty--compact {
    gap: 2px;
    padding: 9px 10px;
    border-style: solid;
    background: rgba(223, 232, 220, .42);
}

.nearby-map-empty--compact strong {
    color: var(--hp-green);
    font-size: .68rem;
}

.nearby-map-empty--compact p {
    font-size: .6rem;
    line-height: 1.2;
}

.nearby-map-canvas .leaflet-control-attribution,
.nearby-map-canvas .leaflet-control-zoom a {
    border-color: var(--hp-border-strong);
    background: rgba(255, 253, 247, .94);
    color: var(--hp-ink);
}

.nearby-map-canvas .leaflet-top.leaflet-left {
    top: 92px;
    left: 8px;
}

.nearby-map-canvas .leaflet-control-zoom {
    border: 1px solid var(--hp-border-strong);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(27, 29, 24, .12);
}

.nearby-map-canvas .leaflet-control-zoom a {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-weight: 900;
}

.nearby-map-canvas .leaflet-control-attribution {
    border-top-left-radius: 10px;
    font-size: .62rem;
    font-weight: 700;
}

.nearby-map-canvas .leaflet-tooltip {
    border: 1px solid rgba(223, 212, 195, .9);
    border-radius: 999px;
    background: rgba(255, 253, 247, .96);
    color: var(--hp-green);
    font-size: .72rem;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(27, 29, 24, .12);
}

.nearby-map-canvas .leaflet-tooltip-top::before {
    border-top-color: rgba(255, 253, 247, .96);
}

.nearby-leaflet-radius {
    filter: drop-shadow(0 8px 18px rgba(36, 90, 59, .12));
    stroke-linecap: round;
}

.nearby-leaflet-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--hp-surface);
    border-radius: 999px 999px 999px 5px;
    background: var(--poi-color, var(--hp-orange));
    color: var(--hp-surface);
    box-shadow: 0 12px 24px rgba(27, 29, 24, .24);
    transform: rotate(-45deg);
    transition: transform .18s ease, box-shadow .18s ease;
}

.nearby-leaflet-marker span {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 950;
    transform: rotate(45deg);
}

.nearby-leaflet-marker.is-active,
.nearby-leaflet-marker:hover {
    box-shadow: 0 18px 34px rgba(27, 29, 24, .3);
    transform: rotate(-45deg) scale(1.14);
}

.nearby-leaflet-marker--orange { --poi-color: var(--hp-orange); }
.nearby-leaflet-marker--green { --poi-color: var(--hp-green); }
.nearby-leaflet-marker--blue { --poi-color: #27627A; }
.nearby-leaflet-marker--amber { --poi-color: #BA7A12; }
.nearby-leaflet-marker--terracotta { --poi-color: #A64F31; }
.nearby-leaflet-marker--muted { --poi-color: #6B7568; }

.nearby-leaflet-marker--visitor {
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: #1B1D18;
    transform: none;
}

.nearby-leaflet-marker--visitor span {
    width: auto;
    height: auto;
    padding: 0 8px;
    font-size: .64rem;
    transform: none;
}

.nearby-leaflet-popup-shell .leaflet-popup-content-wrapper {
    border: 1px solid rgba(223, 212, 195, .88);
    border-radius: 14px;
    background: rgba(255, 253, 247, .97);
    box-shadow: 0 18px 40px rgba(27, 29, 24, .18);
}

.nearby-leaflet-popup-shell .leaflet-popup-content {
    width: min(230px, 72vw) !important;
    margin: 11px 12px;
}

.nearby-leaflet-popup {
    display: grid;
    gap: 4px;
}

.nearby-leaflet-popup strong,
.nearby-leaflet-popup small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearby-leaflet-popup strong {
    color: var(--hp-ink);
    font-size: .84rem;
    font-weight: 950;
}

.nearby-leaflet-popup small {
    color: var(--hp-muted);
    font-size: .68rem;
    font-weight: 760;
}

.nearby-leaflet-popup a {
    color: var(--hp-orange);
    font-size: .68rem;
    font-weight: 950;
}

@media (min-width: 700px) {
    .nearby-map-page {
        --nearby-sheet-peek: min(34dvh, 330px);
        --nearby-sheet-expanded: calc(100% - 118px);
    }

    .nearby-map-controls {
        right: 16px;
        left: 16px;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .nearby-map-controls__headline {
        display: none;
    }

    .nearby-map-search {
        max-width: 560px;
        margin-right: 52px;
    }

    .nearby-map-filter-bubble {
        top: 0;
        right: 0;
    }

    .nearby-map-filter-strip {
        grid-template-columns: 1fr;
    }

    .nearby-map-department {
        grid-template-columns: 1fr;
        gap: 4px;
        align-self: end;
    }

    .nearby-map-locate {
        top: 54px;
        right: 20px;
    }

    .nearby-map-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 1024px), (orientation: landscape) and (min-width: 780px) and (min-height: 560px) {
    .nearby-map-page {
        overflow: hidden;
        --nearby-header-height: 54px;
    }

    .nearby-map-shell {
        padding: 10px;
        background: var(--hp-page-bg);
    }

    .nearby-map-app {
        display: grid;
        grid-template-columns: clamp(360px, 34vw, 430px) minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        grid-template-areas:
            "controls map"
            "results map";
        gap: var(--nearby-map-gap);
        border: 1px solid var(--hp-border-strong);
        border-radius: 20px;
        background: rgba(255, 253, 247, .72);
        box-shadow: var(--hp-soft-shadow);
    }

    .nearby-map-controls,
    .nearby-map-results,
    .nearby-map-viewport,
    .nearby-map-canvas {
        position: relative;
        inset: auto;
    }

    .nearby-map-controls {
        grid-area: controls;
        grid-template-columns: 1fr;
        margin: 10px 0 0 10px;
        box-shadow: none;
    }

    .nearby-map-controls__headline {
        display: none;
    }

    .nearby-map-search {
        max-width: none;
        margin-right: 0;
    }

    .nearby-map-filter-bubble {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
    }

    .nearby-map-filter-bubble summary {
        display: inline-flex;
        width: 100%;
        height: 36px;
        gap: 6px;
        padding: 0 12px;
        border-color: rgba(223, 212, 195, .76);
        border-radius: 12px;
        background: rgba(255, 253, 247, .96);
        color: var(--hp-green);
        box-shadow: none;
    }

    .nearby-map-filter-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        color: inherit;
        font-size: .66rem;
        font-weight: 950;
        white-space: nowrap;
    }

    .nearby-map-filter-bubble[open] summary {
        border-color: rgba(200, 97, 56, .24);
        background: rgba(200, 97, 56, .1);
        color: var(--hp-orange);
    }

    .nearby-map-filter-panel {
        position: static;
        width: 100%;
        max-height: min(32dvh, 260px);
        margin-top: 6px;
        box-shadow: none;
    }

    .nearby-map-viewport {
        grid-area: map;
        min-height: 0;
        margin: 10px 10px 10px 0;
        overflow: hidden;
        border-radius: 18px;
    }

    .nearby-map-canvas {
        width: 100%;
        height: 100%;
        border: 1px solid rgba(36, 90, 59, .1);
        border-radius: 18px;
        box-shadow: inset 0 1px 0 rgba(255, 253, 247, .6);
    }

    .nearby-map-canvas .leaflet-top.leaflet-left {
        top: 12px;
        left: 12px;
    }

    .nearby-map-locate {
        top: 14px;
        right: 14px;
    }

    .nearby-map-legend {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }

    .nearby-map-results,
    .nearby-map-shell[data-sheet-state="collapsed"] .nearby-map-results,
    .nearby-map-shell[data-sheet-state="expanded"] .nearby-map-results {
        grid-area: results;
        height: auto;
        min-height: 0;
        margin: 0 0 10px 10px;
        padding: 8px 10px 10px;
        border: 1px solid var(--hp-border-strong);
        border-radius: 18px;
        box-shadow: none;
    }

    .nearby-map-shell[data-sheet-state="collapsed"] .nearby-map-list,
    .nearby-map-shell[data-sheet-state="expanded"] .nearby-map-list {
        opacity: 1;
        pointer-events: auto;
    }

    .nearby-map-results__handle,
    .nearby-map-results__states {
        display: none;
    }

    .nearby-map-list {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }
}

@media (min-width: 1280px) {
    .nearby-map-app {
        grid-template-columns: clamp(400px, 31vw, 460px) minmax(0, 1fr);
    }

    .nearby-map-shell {
        padding: 12px;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .nearby-map-page {
        --hp-bottom-nav-height: 0px;
        --nearby-header-height: 0px;
    }

    .nearby-map-page .site-header,
    .nearby-map-page .home-bottom-nav {
        display: none;
    }

    .nearby-map-shell {
        height: 100dvh;
        min-height: 100dvh;
        padding: 6px;
    }

    .nearby-map-app {
        display: grid;
        grid-template-columns: minmax(280px, 34vw) minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        grid-template-areas:
            "controls map"
            "results map";
        gap: 6px;
        border-radius: 16px;
    }

    .nearby-map-controls,
    .nearby-map-results,
    .nearby-map-viewport,
    .nearby-map-canvas {
        position: relative;
        inset: auto;
    }

    .nearby-map-controls {
        grid-area: controls;
        grid-template-columns: 1fr;
        gap: 6px;
        margin: 6px 0 0 6px;
        padding: 0;
        border-radius: 14px;
    }

    .nearby-map-controls__headline {
        display: none;
    }

    .nearby-map-search {
        min-height: 34px;
    }

    .nearby-map-filter-bubble {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
    }

    .nearby-map-filter-bubble summary {
        display: inline-flex;
        width: 100%;
        height: 32px;
        gap: 6px;
        padding: 0 10px;
        border-color: rgba(223, 212, 195, .76);
        border-radius: 11px;
        background: rgba(255, 253, 247, .96);
        color: var(--hp-green);
        box-shadow: none;
    }

    .nearby-map-filter-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        font-size: .62rem;
        font-weight: 950;
        white-space: nowrap;
    }

    .nearby-map-filter-panel {
        position: static;
        width: 100%;
        max-height: 34dvh;
        margin-top: 5px;
        padding: 8px;
        box-shadow: none;
    }

    .nearby-map-search input,
    .nearby-map-department select {
        min-height: 30px;
        font-size: .7rem;
    }

    .nearby-map-radius button,
    .nearby-map-type-filter button {
        min-height: 26px;
        font-size: .6rem;
    }

    .nearby-map-viewport {
        grid-area: map;
        margin: 6px 6px 6px 0;
        overflow: hidden;
    }

    .nearby-map-canvas {
        width: 100%;
        height: 100%;
    }

    .nearby-map-results {
        grid-area: results;
        height: auto;
        min-height: 0;
        margin: 0 0 6px 6px;
        padding: 8px;
        border: 1px solid var(--hp-border-strong);
        border-radius: 14px;
    }

    .nearby-map-results__handle,
    .nearby-map-results__states,
    .nearby-map-legend {
        display: none;
    }
}
