.map-section .map-grid-layout[data-ovz-sidebar] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
    gap: clamp(16px, 2.4vw, 32px);
}
.map-section [data-ovz-sidebar] .map-sidebar-col {
    padding: clamp(12px, 2vw, 22px);
    min-width: 0;
}
.map-section [data-ovz-sidebar] .ovz-sidebar-filters {
    padding: 0;
    border: 0 !important;
    box-shadow: none;
}
.map-section [data-ovz-sidebar] .map-sidebar-heading {
    padding: .85rem 1rem;
    margin-bottom: .8rem;
    border: 1px solid #e5d8e9;
    border-radius: 15px;
    background: linear-gradient(110deg, #fae6ed, #f3eafb 68%, #e8f5f7) !important;
}
.map-section [data-ovz-sidebar] .sidebar-filter-title {
    margin: 0;
    font-size: clamp(1.1rem, 1.7vw, 1.4rem);
    line-height: 1.25;
}
.map-type-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }
.map-section #home-map-types button {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .48em .72em;
    border: 1px solid var(--ovz-type-edge, #c6d8df) !important;
    border-radius: 999px;
    background: var(--ovz-type-fill, #f5f9fb) !important;
    color: var(--ovz-type-ink, #223342) !important;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.map-section #home-map-types button[aria-pressed="true"] {
    background: var(--ovz-type-ink, #244f69) !important;
    border-color: var(--ovz-type-ink, #244f69) !important;
    color: #fff !important;
}
.map-search-help {
    padding: .55rem .75rem;
    margin-bottom: .85rem;
    border: 1px solid #d7e3e7;
    border-radius: 12px;
    background: #edf6fa;
    color: #223342;
    font-size: .875rem;
}
.map-search-help summary { cursor: pointer; font-weight: 700; }
.map-search-help p { margin: .55em 0; }
.map-results-summary { margin: .7rem 0 .45rem; font-size: .875rem; }
.map-section [data-ovz-sidebar] .map-sidebar-list {
    display: grid;
    gap: .55rem;
    max-height: 350px;
    overflow: auto;
    padding: 4px;
}
.map-section [data-ovz-sidebar] button.sidebar-place-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: start;
    gap: .6rem;
    width: 100%;
    text-align: start;
    padding: .7rem;
    border: 1px solid #dce5e8 !important;
    border-inline-start: 3px solid var(--ovz-type-edge, #dce5e8) !important;
    border-radius: 12px;
    background: #f8fbfd !important;
    color: var(--ovz-type-ink, #223342) !important;
    overflow-wrap: anywhere;
    font: inherit;
    font-size: .9rem;
    line-height: 1.35;
    cursor: pointer;
}
.map-section [data-ovz-sidebar] button.sidebar-place-item:hover { background: #eaf4f8 !important; }
.map-section [data-ovz-sidebar] :is(button, summary):focus-visible { outline: 2px solid #246178; outline-offset: 2px; }
.map-place-type { border-radius: 999px; background: var(--ovz-type-fill, #eaf0f4); color: var(--ovz-type-ink, #304153) !important; padding: .15em .55em; font-size: .78rem; font-weight: 700; }
.map-place-address { color: #465968; font-size: .82rem; }

@media (max-width: 850px) {
    .map-section .map-grid-layout[data-ovz-sidebar] { grid-template-columns: minmax(0, 1fr); }
    .map-section [data-ovz-sidebar] .map-sidebar-list { max-height: 230px; }
    .map-section [data-ovz-sidebar] .ovz-map { height: 380px !important; min-height: 380px !important; }
}
#map-sidebar-places-list .map-result-copy > strong {
    color: var(--ovz-type-ink, #223342) !important;
}

.map-section [data-ovz-sidebar] .map-content-col {
    min-width: 0;
    padding: .8rem;
    border-radius: 18px;
    border: 1px solid #dce5e8;
    background: #fff;
}

.map-section [data-ovz-sidebar] .map-interaction-tip {
    margin: 0 0 .75rem;
    padding: .7rem .8rem;
    border-radius: 10px;
    background: #edf6fa;
    color: #284356;
    font-size: .875rem;
}

.map-section [data-ovz-sidebar] .ovz-map { scroll-margin-top: 96px; }
.map-search-controls { display: flex; flex-wrap: wrap; gap: .4rem; }
.map-search-controls input { flex: 1 1 12rem; min-width: 0; }
.map-section #map-sidebar-reset {
    border: 1px solid #c4d8e3 !important;
    border-radius: 10px;
    background: #edf6fa !important;
    color: #244f69 !important;
    padding: .45rem .7rem;
    cursor: pointer;
}
.map-section #map-sidebar-reset[hidden] { display: none; }

.map-section #map-sidebar-places-list .sidebar-place-item.is-map-selected {
    border-color: var(--ovz-type-edge, #7796aa) !important;
    background: var(--ovz-type-fill, #eef5fb) !important;
}

.ovz-illustrated-pin {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 34px;
    height: 32px;
    box-sizing: border-box;
    border: 2px solid var(--ovz-type-edge);
    border-radius: 11px;
    background: var(--ovz-type-fill);
    color: var(--ovz-type-ink);
    box-shadow: 0 2px 6px #23344344;
}

.ovz-illustrated-pin::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: -6px;
    left: 10px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--ovz-type-edge);
    border-bottom: 2px solid var(--ovz-type-edge);
    background: var(--ovz-type-fill);
    transform: rotate(45deg);
}

.ovz-pin-symbol {
    z-index: 1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

[data-ovz-palette="school"] .ovz-pin-symbol {
    width: 21px;
    height: 19px;
    border-radius: 0;
    clip-path: polygon(50% 0, 100% 36%, 89% 36%, 89% 100%, 60% 100%, 60% 63%, 40% 63%, 40% 100%, 11% 100%, 11% 36%, 0 36%);
}

[data-ovz-palette="pmpk"] .ovz-pin-symbol {
    position: relative;
    width: 19px;
    height: 14px;
    border-radius: 5px;
}

[data-ovz-palette="pmpk"] .ovz-pin-symbol::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 4px;
    border-top: 5px solid var(--ovz-type-ink);
    border-right: 5px solid transparent;
}

[data-ovz-palette="pmpk"] .ovz-pin-symbol::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    left: 5px;
    top: 5px;
    border-radius: 50%;
    background: var(--ovz-type-fill);
    box-shadow: 6px 0 var(--ovz-type-fill);
}

.ovz-marker-illustrated:focus-visible .ovz-illustrated-pin {
    outline: 2px solid #163442;
    outline-offset: 2px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .ovz-marker-illustrated .ovz-illustrated-pin { transition: transform .15s ease; }
    .ovz-marker-illustrated:hover .ovz-illustrated-pin { transform: translateY(-3px); }
}

#home-map-types .map-type-total {
    display: inline-grid;
    min-width: 1.5em;
    place-items: center;
    border-radius: 999px;
    padding-inline: .3em;
    background: #fff;
    color: var(--ovz-type-ink, #244f69) !important;
    font-size: .78em;
    font-variant-numeric: tabular-nums;
}
#home-map-types .map-type-total:empty { display: none; }

.map-section #map-quick-search {
    border-radius: 12px;
    background: #f8fbfd !important;
}
.map-section #map-quick-search:focus-visible {
    outline: 2px solid #32728a;
    outline-offset: 2px;
}
#map-sidebar-status { font-weight: 650; }
.map-result-copy { display: grid; gap: .3em; justify-items: start; min-width: 0; }
.map-result-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--ovz-type-fill, #eef2f5);
    color: var(--ovz-type-ink, #304153) !important;
}
.map-result-arrow {
    align-self: center;
    color: var(--ovz-type-ink, #304153) !important;
    font-size: 1.15rem;
    line-height: 1;
}
@media (max-width: 420px) {
    .map-section [data-ovz-sidebar] button.sidebar-place-item { grid-template-columns: 32px minmax(0, 1fr) auto; }
    .map-result-icon { width: 32px; height: 32px; border-radius: 9px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .map-result-arrow { transition: transform .16s ease; }
    .sidebar-place-item:hover .map-result-arrow { transform: translate(2px, -2px); }
}

.ovz-full-map {
    margin-bottom: clamp(2rem, 5vw, 4rem);
}
.map-sidebar-location {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    gap: .6rem;
    margin-top: .7rem;
}
.map-sidebar-location label {
    display: grid;
    gap: .25rem;
    min-width: 0;
    font-size: .875rem;
    font-weight: 700;
}
.map-sidebar-location select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: .4rem .55rem;
    border: 1px solid #d7e3e7;
    border-radius: 10px;
    font: inherit;
}
#map-sidebar-location-status {
    margin: .45rem 0;
    font-size: .875rem;
}
#map-sidebar-location-status:empty {
    display: none;
}

.ovz-general-list-section [hidden] { display: none !important; }
#ovz-directory-more { margin-top: 1rem; }
