.header-6-map-hero {
    position: relative;
    height: calc(100svh - var(--header-height));
    min-height: 560px;
    overflow: hidden;
    background: #dfe6e1;
}
#map {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.coverage-tiles {
    filter: hue-rotate(170deg) saturate(0.65) brightness(0.85);
}
.map-search {
    position: absolute;
    top: 20px;
    left: 28px;
    z-index: 5;
    width: 360px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 32px #141e4026;
}
.map-search > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 750;
    color: var(--ink);
    border-radius: 14px;
    background: #f5f7f8;
}
.map-search:not([open]) {
    width: 260px;
}
.map-search > summary::-webkit-details-marker {
    display: none;
}
.map-search > summary:hover {
    background: #edf1f4;
}
.search-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 12px;
}
.search-sheet-indicator::after {
    content: '+';
    font-size: 18px;
}
.map-search[open] .search-sheet-indicator::after {
    content: '-';
}
.search-minimize-label, .map-search[open] .search-expand-label {
    display: none;
}
.map-search[open] .search-minimize-label {
    display: inline;
}
.search-body {
    max-height: calc(100svh - var(--header-height) - 155px);
    overflow-y: auto;
    padding: 20px;
}
.search-heading h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.search-heading p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}
.search-tabs {
    display: flex;
    margin: 18px -6px 18px;
    border-bottom: 1px solid #eef0f2;
}
.search-tabs button {
    flex: 1;
    padding: 10px 0;
    border: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--subtle);
    font-size: 14px;
    font-weight: 700;
}
.search-tabs button[aria-selected="true"] {
    color: var(--ink);
    background: #eef1f4;
}
#place-search {
    position: relative;
}
#place-search .leaflet-locationiq-control {
    z-index: 1;
    float: none;
    width: 100% !important;
    height: auto;
    min-height: 46px;
    margin: 0;
    border: 1px solid #cbd1d7;
    border-radius: 9px;
    box-shadow: none;
}
#place-search .leaflet-locationiq-input {
    position: relative;
    display: block;
    width: calc(100% - 44px);
    height: 46px;
    padding: 5px 6px 5px 36px;
    text-indent: 0;
    font-size: 15px;
    color: var(--ink);
}
#place-search .leaflet-locationiq-input:not(:placeholder-shown) {
    padding-right: 36px;
}
#place-search .leaflet-locationiq-search-icon, #place-search .leaflet-locationiq-close {
    top: 0;
    bottom: auto;
    height: 46px;
    line-height: 46px;
}
#place-search .leaflet-locationiq-search-icon {
    left: 0;
    width: 36px;
    background-position: center;
}
#place-search .leaflet-locationiq-close {
    right: 48px;
}
#locate-control {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 2;
}
#locate-control .leaflet-control {
    float: none;
    margin: 0;
    border: 0;
    box-shadow: none;
}
.locate-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-left: 1px solid #eef0f2;
    border-radius: 0 8px 8px 0;
    background: white;
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}
.locate-button:hover {
    background: #edf1f4;
}
.locate-button:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: -3px;
}
#locate-control .active .locate-button {
    color: var(--teal);
    background: #eef6f8;
}
#locate-control .following .locate-button {
    color: var(--accent-ink);
}
#place-search .leaflet-locationiq-results {
    position: relative;
    top: auto;
    max-height: 240px !important;
    overflow-y: auto;
    border: 0;
    border-top: 1px solid #e2e5e8;
    box-shadow: none;
}
.search-hint, .cellsearch-status, #map-options-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 14px;
}
.search-cell-control.leaflet-control {
    float: none;
    margin: 0;
    width: 100%;
}
.cellsearch-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 14px;
}
.cellsearch-line {
    min-width: 0;
}
.cellsearch-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.cellsearch-input {
    width: 100%;
    height: 40px;
    border: 1px solid #cbd1d7;
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--ink);
    background: white;
}
.cellsearch-radio, .cellsearch-actions, .cellsearch-status, .cellsearch-result, .cellsearch-response-wrap {
    grid-column: 1 / -1;
}
.cellsearch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.search-cell-button {
    flex: 1;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: white !important;
    font-size: 14px;
    font-weight: 700;
}
.search-cell-button:hover {
    background: #2e4457;
}
.search-cell-button:disabled {
    opacity: .6;
    cursor: wait;
}
.search-cell-button-secondary {
    background: #edf1f4;
    color: var(--ink) !important;
}
.search-cell-button-secondary:hover {
    background: #dce4e9;
}
.cellsearch-status {
    margin: 0;
}
.cellsearch-result {
    padding: 10px 12px;
    border-left: 3px solid var(--teal);
    background: #eef6f8;
    font-size: 12px;
    line-height: 1.7;
}
.cellsearch-response-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
}
.cellsearch-response-label::after {
    content: '+';
}
.cellsearch-response-wrap[open] .cellsearch-response-label::after {
    content: '-';
}
.cellsearch-response-label::-webkit-details-marker {
    display: none;
}
.cellsearch-response {
    margin: 8px 0 0;
    padding: 12px;
    max-height: 160px;
    overflow: auto;
    border-radius: 6px;
    background: #f1f4f6;
    color: var(--ink);
    font: 12px/1.5 Menlo, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.cellsearch-api-url {
    width: 100%;
    resize: vertical;
    border: 1px solid #cbd1d7;
}
.cellsearch-api-url ~ button {
    margin-top: 10px;
}
.dataset-note {
    border-top: 1px solid #eef0f2;
    padding-top: 14px;
    font-size: 12px;
}
.recent-searches {
    border-top: 1px solid #eef0f2;
    margin: 20px -20px -20px;
    padding: 14px 18px 16px;
}
.recent-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.recent-heading h2 {
    color: var(--subtle);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.recent-heading button {
    border: 0;
    background: none;
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 700;
}
#recent-list p {
    color: var(--subtle);
    font-size: 12px;
}
.recent-search {
    display: block;
    width: 100%;
    border: 0;
    background: none;
    padding: 8px;
    border-radius: 7px;
    text-align: left;
    font-size: 13px;
    color: var(--ink);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.recent-search::before {
    content: '\21BA';
    margin-right: 9px;
    color: var(--subtle);
}
.recent-search:hover {
    background: #f4f6f7;
}
.remember-recent {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}
.remember-recent input {
    margin: 0;
    accent-color: var(--accent-ink);
}
.recent-note {
    margin: 4px 0 0;
    color: var(--subtle);
    font-size: 11px;
}
.recent-note:empty {
    display: none;
}
.map-tools {
    position: absolute;
    bottom: 36px;
    right: 28px;
    z-index: 4;
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    background: white;
    box-shadow: 0 6px 20px #141e4026;
}
.map-options {
    position: relative;
}
.map-options > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    line-height: 22px;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
}
.map-options > summary::-webkit-details-marker {
    display: none;
}
.map-options > summary:hover {
    background: #f3f5f7;
    border-radius: 10px;
}
.map-options-body {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 275px;
    max-height: calc(100svh - var(--header-height) - 110px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 32px #141e4026;
}
.map-options fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 14px;
}
.map-options legend {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}
.map-options label {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
}
.map-options input {
    margin: 0;
    accent-color: var(--teal);
}
#map-options-note {
    margin: 0 0 14px;
}
.map-estimate-note {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}
.cell-popup dl {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    margin: 0;
    color: var(--ink);
}
.cell-popup dt {
    font-weight: 700;
}
.cell-popup dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.cell-popup .cell-popup-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}
.cell-popup .cell-popup-note:first-of-type {
    border-top: 1px solid #e2e5e8;
    padding-top: 10px;
}
#zoom-control {
    position: absolute;
    top: 20px;
    right: 28px;
    z-index: 4;
    border-radius: 10px;
    background: white;
    box-shadow: 0 6px 20px #141e4026;
}
#zoom-control .leaflet-control {
    float: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
#zoom-control .leaflet-control-zoom {
    display: flex;
    flex-direction: column;
}
#zoom-control .leaflet-bar a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border: 0;
    border-radius: 0;
    color: var(--ink);
}
#zoom-control .leaflet-bar a:first-child {
    border-radius: 10px 10px 0 0;
}
#zoom-control .leaflet-bar a:last-child {
    border-top: 1px solid #eef0f2;
    border-radius: 0 0 10px 10px;
}
#zoom-control .leaflet-bar a.leaflet-disabled {
    color: #a5adb5;
}
#map .leaflet-control-permalink {
    display: none;
}
#map .leaflet-control-scale {
    margin: 0 0 24px 28px;
}
#map .leaflet-control-attribution {
    max-width: 100%;
    font-size: 10px;
}
.legend-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding-top: 12px;
    border-top: 1px solid #eef0f2;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.legend-icon {
    width: 24px;
    height: 29px;
    overflow: hidden;
    flex-shrink: 0;
}
.legend-icon img {
    display: block;
    width: 24px;
    height: auto;
}
.legend-docs {
    display: block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
}
.map-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 3;
    padding: 5px 12px;
    border-radius: 8px;
    background: #ffffffeb;
    color: var(--ink) !important;
    text-align: center;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
}
.map-scroll-cue span {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}
.infoBox {
    position: absolute;
    left: 50%;
    bottom: 100px;
    z-index: 6;
    display: none;
    width: min(480px, calc(100% - 48px));
    margin: 0;
    padding: 12px 16px;
    transform: translateX(-50%);
    border-radius: 8px;
    background: var(--ink);
    color: white;
    font-size: 13px;
    white-space: pre-wrap;
}
.map-page-error {
    position: absolute;
    z-index: 6;
    top: 20px;
    right: 20px;
    max-width: 360px;
    padding: 16px;
    border-radius: 8px;
    background: #fff2ef;
}
@media (max-width: 900px) {
    .header-6-map-hero {
        min-height: 460px;
    }
    .map-search {
        top: auto;
        bottom: 34px;
        left: 12px;
        width: calc(100% - 24px);
    }
    .map-search:not([open]) {
        width: calc(100% - 24px);
    }
    .map-search > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        cursor: pointer;
        list-style: none;
        font-size: 14px;
        font-weight: 750;
    }
    .map-search > summary::-webkit-details-marker {
        display: none;
    }
    .search-sheet-indicator::after {
        content: '+';
    }
    .map-search[open] .search-sheet-indicator::after {
        content: '-';
    }
    .search-body {
        padding: 0 18px 18px;
        max-height: calc(100svh - var(--header-height) - 155px);
    }
    .search-heading {
        display: none;
    }
    .search-tabs {
        margin-top: 0;
    }
    .recent-searches {
        margin: 18px -18px -18px;
    }
    #place-search .leaflet-locationiq-input, .cellsearch-input {
        font-size: 16px;
    }
    #place-search .leaflet-locationiq-results {
        max-height: 180px !important;
    }
    .map-tools {
        bottom: 104px;
        right: 12px;
    }
    #zoom-control {
        top: 12px;
        right: 12px;
    }
    .map-options-body {
        width: min(275px, calc(100vw - 24px));
    }
    .search-sheet-open .map-tools {
        visibility: hidden;
    }
    #map .leaflet-control-scale, .map-scroll-cue {
        display: none;
    }
    .infoBox {
        bottom: 164px;
    }
}
