.preview-main { width: min(1180px, calc(100% - 2rem)); margin: 1.25rem auto 2rem; }
.map-back-link { display: inline-block; margin-bottom: 1rem; font-weight: 600; }
.preview-main > .page-heading { justify-content: center; text-align: center; }
.preview-intro { max-width: 800px; margin: 0 auto 1rem; text-align: center; }
.preview-map-panel { padding: 1rem; background: white; border: 1px solid var(--color-secondary); border-radius: var(--border-radius); box-shadow: var(--shadow-light); }
.map-search { position: relative; }
.map-search > label { display: block; margin-bottom: 0.4rem; color: #35485a; font-size: 0.9rem; font-weight: 700; }
.map-search-row { display: flex; gap: 0.5rem; }
.map-search input[type="search"] { width: 100%; min-width: 0; min-height: 44px; padding: 0.55rem 0.7rem; border: 1px solid #9aafb4; border-radius: 0.45rem; font: inherit; }
.map-search-row .btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 0.45rem; white-space: nowrap; }
.map-search-row .btn svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.map-search-results { position: absolute; z-index: 5; top: calc(100% - 1px); right: 0; left: 0; max-height: 260px; overflow-y: auto; margin: 0; padding: 0.3rem; list-style: none; background: white; border: 1px solid #9aafb4; border-radius: 0 0 0.45rem 0.45rem; box-shadow: 0 6px 18px #17324724; }
.map-search-results[hidden] { display: none; }
.map-search-results button { width: 100%; min-height: 44px; padding: 0.55rem 0.7rem; text-align: left; background: white; border: 0; border-radius: 0.3rem; font: inherit; cursor: pointer; }
.map-search-results button:hover, .map-search-results button:focus-visible { background: #e7f4f4; outline: 2px solid #157c8c; }
.map-search-results small { display: block; color: #596675; }
.map-search-empty { padding: 0.7rem; color: #596675; }
.map-search-marker { width: 44px; height: 50px; cursor: pointer; filter: drop-shadow(0 2px 3px #17324766); }
.map-search-marker svg { display: block; width: 100%; height: 100%; }
.map-search-marker:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; border-radius: 50%; }
.map-menus { margin: 0.75rem 0; }
.map-menu { min-width: 0; background: #f8fbfb; border: 1px solid #c5d7d9; border-radius: 0.55rem; }
.map-menu[open] { background: #fff; border-color: #9abfc4; }
.map-menu summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 0.65rem; padding: 0.6rem 0.8rem; color: #173247; font-weight: 700; cursor: pointer; list-style: none; }
.map-menu summary::-webkit-details-marker { display: none; }
.map-menu summary::after { width: 0.55rem; height: 0.55rem; flex: 0 0 auto; border-right: 2px solid #326273; border-bottom: 2px solid #326273; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform 120ms ease; }
.map-menu[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.map-menu-current { margin-left: auto; color: #596675; font-size: 0.82rem; font-weight: 500; }
.map-menu-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0.75rem; padding: 0.65rem; border-top: 1px solid #e0e9e9; }
.map-style-controls, .map-layer-controls { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 0.45rem; margin: 0; padding: 0.65rem; background: #f8fbfb; border: 1px solid #e0e9e9; border-radius: 0.5rem; }
.map-style-controls legend, .map-layer-controls legend { grid-column: 1 / -1; margin: 0.35rem 0 0.1rem; color: #35485a; font-size: 0.86rem; font-weight: 700; }
.map-style-controls label { display: flex; min-width: 0; min-height: 64px; align-items: center; justify-content: flex-start; gap: 0.55rem; padding: 0.5rem 0.6rem; background: #f3f8f8; border: 1px solid #d2e0e1; border-radius: 0.45rem; cursor: pointer; }
.map-style-controls label > span { display: grid; gap: 0.1rem; }
.map-style-controls label strong { font-size: 0.88rem; line-height: 1.2; }
.map-style-controls label small { color: #596675; font-size: 0.74rem; font-weight: 400; line-height: 1.3; }
.map-style-controls label:has(input:checked) { color: #075969; background: #e4f6f8; border-color: #087c91; font-weight: 700; }
.map-style-controls input, .map-layer-controls input { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; margin: 0; accent-color: #087c91; }
.terrain-3d-settings { grid-column: 1 / -1; display: grid; gap: 0.4rem; padding: 0.65rem; background: #edf6f6; border: 1px solid #c5d7d9; border-radius: 0.45rem; }
.terrain-3d-settings[hidden] { display: none; }
.terrain-3d-settings p { margin: 0; color: #35485a; font-size: 0.82rem; line-height: 1.4; }
.terrain-3d-settings label { display: flex; min-height: 0; align-items: center; justify-content: space-between; padding: 0; background: transparent; border: 0; font-size: 0.86rem; font-weight: 700; cursor: default; }
.terrain-3d-settings output { color: #075969; font-variant-numeric: tabular-nums; }
.terrain-3d-settings input[type="range"] { width: 100%; min-height: 28px; accent-color: #087c91; }
.map-layer-controls label { display: flex; min-width: 0; min-height: 50px; align-items: center; gap: 0.5rem; padding: 0.35rem 0.5rem; background: white; border: 1px solid #e0e9e9; border-radius: 0.45rem; font-size: 0.84rem; line-height: 1.25; cursor: pointer; }
.map-layer-controls label:has(input:checked) { color: #075969; background: transparent; border-color: transparent; }
.map-layer-controls label.checkbox-effect:has(input:checked) > svg { background: transparent; }
.layer-key { display: inline-block; width: 17px; height: 4px; border-radius: 4px; }
.layer-key-water { background: #268ea2; }
.layer-key-lake { height: 10px; background: #75c5d2; border: 1px solid #368fa0; }
.layer-key-place { width: 8px; height: 8px; background: #233b4d; border-radius: 50%; }
.layer-key-boundary { height: 0; border-top: 2px dashed #446a79; }
.layer-key-road { background: #89999b; }
.preview-map-frame { position: relative; overflow: hidden; border: 1px solid #c5d7d9; border-radius: 0.6rem; }
#preview-map { width: 100%; height: clamp(440px, 66vh, 720px); background: #edf4ef; }
.map-loading {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #075969;
    background: #edf4ef;
    font-size: 1rem;
    font-weight: 750;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.map-loading[hidden] { display: flex; opacity: 0; visibility: hidden; pointer-events: none; }
.map-loading-spinner {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border: 3px solid #b8dce1;
    border-top-color: #087c91;
    border-radius: 50%;
    animation: map-loading-spin 0.85s linear infinite;
}
@keyframes map-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .map-loading-spinner { animation-duration: 1.8s; }
}
.map-guide-button { position: absolute; z-index: 2; top: 0.65rem; left: 0.65rem; display: grid; width: 40px; height: 40px; place-items: center; color: #1d4050; background: white; border: 1px solid #9aafb4; border-radius: 50%; box-shadow: 0 1px 5px #0003; font: inherit; font-size: 1.25rem; font-weight: 750; cursor: pointer; }
.map-expand-button { position: absolute; z-index: 3; bottom: 0.65rem; left: 0.65rem; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.55rem 0.9rem; color: white; background: #075969; border: 1px solid #064b58; border-radius: 0.65rem; box-shadow: 0 2px 6px #102f3a30; font: inherit; font-weight: 700; cursor: pointer; }
.map-expand-button:hover { background: #064b58; }
.map-expand-button:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; }
.map-expand-button:disabled { opacity: 0.65; cursor: wait; }
.map-expand-button svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.map-close-button { position: absolute; z-index: 3; top: 3.75rem; left: 0.65rem; display: grid; width: 44px; height: 44px; min-height: 44px; place-items: center; padding: 0; color: white; background: #075969; border: 1px solid #064b58; border-radius: 0.65rem; box-shadow: 0 2px 6px #102f3a30; font: inherit; font-size: 2rem; font-weight: 650; line-height: 1; cursor: pointer; }
.map-close-button:hover { background: #064b58; }
.map-close-button:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; }
.map-close-button[hidden] { display: none; }
.map-location-control { position: absolute; z-index: 2; right: 0.65rem; bottom: 2.5rem; left: 0.65rem; display: flex; justify-content: flex-end; align-items: center; pointer-events: none; }
.map-location-button { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: #1d4050; background: white; border: 1px solid #9aafb4; border-radius: 0.55rem; box-shadow: 0 1px 5px #0003; cursor: pointer; pointer-events: auto; }
.map-location-button svg { width: 22px; height: 22px; }
.map-location-button:disabled { opacity: 0.6; cursor: wait; }
.map-location-tooltip { position: absolute; right: 3rem; max-width: calc(100% - 3rem); padding: 0.55rem 0.8rem; color: var(--color-primary); background: white; border: 1px solid #9aafb4; border-radius: 0.55rem; box-shadow: 0 1px 5px #0003; font-size: 0.85rem; line-height: 1.35; opacity: 0; visibility: hidden; transform: translateX(0.5rem); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; }
.map-location-tooltip::after { position: absolute; top: 0; right: -0.6rem; width: 0.6rem; height: 100%; content: ""; }
.map-location-control:hover .map-location-tooltip, .map-location-control:focus-within .map-location-tooltip { opacity: 1; visibility: visible; transform: translateX(0); transition-delay: 0s; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .map-location-tooltip { transition: none; } }
#preview-map .maplibregl-ctrl-group { overflow: hidden; border: 1px solid #9aafb4; border-radius: 0.55rem; box-shadow: 0 1px 5px #0003; }
#preview-map .maplibregl-ctrl-group button { width: 40px; height: 40px; }
#preview-map .maplibregl-ctrl-scale { padding: 2px 6px; color: var(--color-primary); background: #fffffff0; border: 2px solid #326273; border-top: 0; border-radius: 0 0 0.3rem 0.3rem; font: 600 0.75rem/1.3 var(--font-family-system); }
#preview-map .maplibregl-cooperative-gesture-screen { display: none; }
.map-gesture-hint {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(10, 26, 47, 0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.map-gesture-hint.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.map-gesture-hint-card {
    max-width: min(34rem, calc(100% - 1.5rem));
    padding: clamp(1.15rem, 4vw, 1.55rem) clamp(1.2rem, 4.5vw, 1.8rem);
    color: var(--color-primary);
    background: #fffffff7;
    border: 1px solid var(--color-secondary);
    border-top: 5px solid var(--color-accent);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    text-align: center;
    pointer-events: auto;
    transform: translateY(0.5rem);
    transition: transform 0.25s ease;
}
.map-gesture-hint.is-visible .map-gesture-hint-card { transform: translateY(0); }
.map-gesture-hint-kicker {
    margin: 0 0 0.45rem;
    color: #087c91;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.map-gesture-hint-text {
    margin: 0;
    font-size: clamp(1.08rem, 2.6vw, 1.25rem);
    font-weight: 700;
    line-height: 1.4;
    text-wrap: balance;
}
.map-gesture-hint-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.55rem 1rem;
    color: #075969;
    background: #e4f6f8;
    border: 1px solid #9fd9e0;
    border-radius: 0.55rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.map-gesture-hint-action:hover { background: #d5f0f4; border-color: var(--color-accent); transform: translateY(-1px); }
.map-gesture-hint-action:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; }
.map-gesture-hint-action svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
    .map-gesture-hint,
    .map-gesture-hint-card,
    .map-gesture-hint-action { transition: none; }
}
.preview-map-panel:not(:fullscreen):not(.is-expanded) #preview-map .maplibregl-ctrl-bottom-left { bottom: 3.4rem; }
.preview-map-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; }
.map-version-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: #34576a;
    background: #f3f8f8;
    border: 1px solid #d6e9ed;
    border-radius: 0.55rem;
    font-size: 0.82rem;
}
.map-version-note div { display: grid; gap: 0.1rem; }
.map-version-note strong { color: var(--color-primary); }
.map-version-note p { max-width: 28rem; margin: 0; text-align: right; }
#map-status { min-width: 0; flex: 1 1 auto; margin: 0; color: #596675; font-size: 0.88rem; }
#map-status.is-error { color: #a32132; font-weight: 600; }
.preview-data-note { margin: 0.9rem 0 0; padding: 0.75rem 0.9rem; color: #3d4c5c; background: #f3f8f8; border-left: 4px solid #087c91; border-radius: 0 0.45rem 0.45rem 0; font-size: 0.86rem; }
.maplibregl-popup-content { color: #173247; font: inherit; line-height: 1.5; }
.map-place-popup .maplibregl-popup-content {
    width: 280px;
    max-width: 100%;
    padding: 1.15rem 1.25rem 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    font-family: var(--font-family-system);
}
.map-place-popup strong { display: block; padding-right: 1.75rem; color: var(--color-primary); font-size: 1.16rem; line-height: 1.25; }
.map-place-popup-type { margin-top: 0.2rem; color: #087c91; font-size: 0.9rem; font-weight: 700; }
.map-place-popup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
}
.map-place-popup-length {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    color: var(--color-primary);
}
.map-place-popup-length span { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.map-place-popup-length small { display: inline; margin: 0; color: #536675; font-size: 0.82rem; font-weight: 700; }
.map-place-popup small { display: block; margin-top: 0.35rem; color: #536675; font-size: 0.8rem; }
.map-place-popup .maplibregl-popup-close-button {
    top: 0.55rem;
    right: 0.55rem;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--color-primary);
    font: 1.5rem/1 var(--font-family-system);
}
.map-place-popup .map-place-popup-button { flex: 0 0 auto; margin-top: 0; padding: 0.5rem 1.15rem; border-radius: 999px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; padding: 0.7rem 0.2rem 0; color: #35485a; font-size: 0.84rem; }
.map-legend:empty { display: none; }
.map-legend-item { display: inline-flex; min-height: 32px; align-items: center; gap: 0.45rem; }
.map-legend-key { display: inline-block; width: 24px; height: 4px; flex: 0 0 auto; border-radius: 4px; }
.map-legend-river { background: #176f96; }
.map-legend-stream { background: #328ea8; }
.map-legend-small-water { height: 2px; background: #70aebd; }
.map-legend-waterbody { height: 11px; background: #75c5d2; border: 1px solid #368fa0; }
.map-legend-place { width: 9px; height: 9px; background: #233b4d; border-radius: 50%; }
.map-legend-boundary { height: 0; border-top: 2px dashed #446a79; }
.map-legend-road { background: #89999b; }
.preview-data-note details { margin-top: 0.35rem; }
.preview-data-note summary { width: fit-content; min-height: 44px; display: flex; align-items: center; color: #075969; font-weight: 700; cursor: pointer; }
.preview-data-note details p { margin: 0.45rem 0; }
.map-guide-dialog { position: fixed; inset: 0; width: min(440px, calc(100% - 2rem)); max-width: none; max-height: calc(100vh - 2rem); margin: auto; overflow-y: auto; padding: 0; border: 0; border-radius: 0.8rem; color: #173247; box-shadow: 0 16px 50px #07152255; }
.map-guide-dialog::backdrop { background: #0c2030aa; }
.map-guide-panel { padding: 1.4rem; }
.map-guide-count { margin: 0 0 0.35rem; color: #526777; font-size: 0.9rem; }
.map-guide-panel h2 { margin: 0; padding-bottom: 0.5rem; border: 0; font-size: 1.35rem; }
.map-guide-progress { display: block; width: 100%; height: 3px; margin: 0 0 0.65rem; appearance: none; border: 0; background: #dcebed; }
.map-guide-progress::-webkit-progress-bar { background: #dcebed; }
.map-guide-progress::-webkit-progress-value { background: var(--color-accent); transition: width 0.2s ease; }
.map-guide-progress::-moz-progress-bar { background: var(--color-accent); transition: width 0.2s ease; }
.map-guide-panel > p:not(.map-guide-count) { min-height: 3.2em; margin: 0; line-height: 1.5; }
.map-guide-actions { display: flex; justify-content: space-between; gap: 0.6rem; margin-top: 1.25rem; }
.map-guide-actions > div { display: flex; gap: 0.5rem; }
.map-guide-actions button { min-height: 44px; }

@media (max-width: 680px) {
    .preview-main { width: calc(100% - 1rem); margin: 0.75rem auto 1rem; }
    .preview-map-panel { padding: 0.65rem; }
    .map-version-note { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
    .map-version-note p { max-width: none; text-align: left; }
    .map-menu summary { min-height: 52px; padding: 0.65rem 0.75rem; }
    .map-menu-content { grid-template-columns: 1fr; gap: 0.25rem; padding: 0.2rem 0.45rem 0.55rem; }
    .map-style-controls, .map-layer-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; padding: 0.55rem; }
    .map-style-controls label { min-height: 58px; gap: 0.4rem; padding: 0.4rem; }
    .map-style-controls label small { display: none; }
    .map-layer-controls label { min-height: 48px; gap: 0.4rem; padding: 0.3rem 0.4rem; font-size: 0.78rem; }
    .layer-key { flex: 0 0 auto; }
    #preview-map { height: min(68vh, 620px); min-height: 400px; }
    .preview-map-footer { align-items: center; flex-direction: row; gap: 0.55rem; }
    .map-expand-button { min-height: 44px; padding: 0.55rem 0.7rem; font-size: 0.88rem; }
}

@media (max-width: 380px) {
    .map-search-row { flex-direction: column; }
    .map-menu-content { gap: 0.15rem; padding: 0.2rem 0.25rem 0.5rem; }
    .map-style-controls, .map-layer-controls { padding: 0.4rem; }
    .map-style-controls label { min-height: 56px; gap: 0.3rem; padding: 0.3rem; }
    .map-layer-controls { grid-template-columns: 1fr; }
    .map-layer-controls label { font-size: 0.86rem; }
}

body.map-expanded { overflow: hidden; }
.preview-map-panel.is-expanded:not(:fullscreen) {
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
    padding: 0;
    background: #edf4ef;
    border: 0;
    border-radius: 0;
}
.preview-map-panel:is(:fullscreen, .is-expanded) {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    overflow: hidden;
    padding: 0;
    background: #edf4ef;
    border: 0;
    border-radius: 0;
}
.preview-map-panel:is(:fullscreen, .is-expanded) .preview-map-frame { position: absolute; inset: 0; border: 0; border-radius: 0; }
.preview-map-panel:is(:fullscreen, .is-expanded) #preview-map { height: 100%; min-height: 0; }
.preview-map-panel:is(:fullscreen, .is-expanded) .map-search {
    position: absolute;
    z-index: 6;
    top: 0.75rem;
    left: 4.25rem;
    width: min(42rem, calc(100% - 8.5rem));
}
.preview-map-panel:is(:fullscreen, .is-expanded) .map-search > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.preview-map-panel:is(:fullscreen, .is-expanded) .map-menus { position: absolute; z-index: 4; top: 4.6rem; left: 4.25rem; width: min(42rem, calc(100% - 8.5rem)); margin: 0; }
.preview-map-panel:is(:fullscreen, .is-expanded) .map-menu-content {
    position: absolute;
    z-index: 5;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    max-height: min(60vh, 32rem);
    overflow-y: auto;
    background: white;
    border: 1px solid #9abfc4;
    border-radius: 0.55rem;
    box-shadow: 0 8px 24px #17324730;
}
.preview-map-panel:is(:fullscreen, .is-expanded) .map-expand-button { display: none; }
.preview-map-panel:is(:fullscreen, .is-expanded) .map-close-button { top: 0.75rem; left: 0.75rem; }
.preview-map-panel:is(:fullscreen, .is-expanded) .map-guide-button { top: 4.6rem; left: 0.75rem; }
.preview-map-panel:is(:fullscreen, .is-expanded) .map-location-control { right: 0.75rem; bottom: 3.5rem; left: auto; }
.preview-map-panel:is(:fullscreen, .is-expanded) .map-legend {
    position: absolute;
    z-index: 2;
    bottom: 2.2rem;
    left: 0.75rem;
    max-width: min(42rem, calc(100% - 1.5rem));
    padding: 0.45rem 0.65rem;
    background: #fffffff0;
    border: 1px solid #c5d7d9;
    border-radius: 0.5rem;
    box-shadow: 0 1px 5px #0003;
}
.preview-map-panel:is(:fullscreen, .is-expanded) .preview-map-footer { display: none; }
.preview-map-panel:is(:fullscreen, .is-expanded) .preview-data-note { display: none; }

@media (max-width: 680px) {
    .preview-map-panel:is(:fullscreen, .is-expanded) .map-search,
    .preview-map-panel:is(:fullscreen, .is-expanded) .map-menus { left: 3.75rem; width: calc(100% - 7.5rem); }
    .preview-map-panel:is(:fullscreen, .is-expanded) .map-menu-content { grid-template-columns: 1fr; }
    .preview-map-panel:is(:fullscreen, .is-expanded) .map-layer-controls { grid-template-columns: 1fr 1fr; }
    .preview-map-panel:is(:fullscreen, .is-expanded) .map-legend { bottom: 3.25rem; max-width: calc(100% - 1.5rem); }
}
