.schools-map-page .main-content {
    min-width: 0;
}

.schools-map-page .quick-command-bar {
    display: none;
}

.schools-map-page .schools-map-overview {
    display: grid;
    grid-template-columns: minmax(300px, 1.1fr) minmax(420px, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(20, 52, 59, 0.1);
    border-radius: 20px;
    background:
        radial-gradient(circle at 8% 0%, rgba(47, 143, 131, 0.12), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 249, 0.94));
    box-shadow: 0 14px 34px rgba(20, 52, 59, 0.06);
}

.schools-map-page .schools-map-overview-copy {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.schools-map-page .schools-map-overview-copy h2,
.schools-map-page .schools-map-overview-copy p {
    margin: 0;
}

.schools-map-page .schools-map-overview-copy h2 {
    font-size: clamp(1.05rem, 1.35vw, 1.32rem);
    letter-spacing: -0.025em;
}

.schools-map-page .schools-map-overview-copy > div > p:last-child {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.schools-map-page .schools-map-overview-copy .eyebrow {
    margin-bottom: 3px;
    font-size: 0.75rem;
}

.schools-map-page .schools-map-overview-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #123f47, #2f8f83);
    box-shadow: 0 10px 22px rgba(20, 52, 59, 0.18);
}

.schools-map-page .schools-map-overview-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.schools-map-page .schools-map-overview-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.schools-map-page .schools-map-overview-metrics article {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(20, 52, 59, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.86);
}

.schools-map-page .schools-map-overview-metrics span,
.schools-map-page .schools-map-overview-metrics strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schools-map-page .schools-map-overview-metrics span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schools-map-page .schools-map-overview-metrics strong {
    margin-top: 3px;
    color: #173b43;
    font-size: 1.05rem;
}

.schools-map-page .schools-map-overview-metrics .is-base-educ {
    border-bottom-color: #df1117;
}

.schools-map-page .schools-map-overview-metrics .is-prospect {
    border-bottom-color: #eb8b2d;
}

.schools-map-page .schools-map-overview-metrics .is-client {
    border-bottom-color: #2f8f83;
}

.schools-map-page .schools-map-overview-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.schools-map-page .schools-map-overview-actions .button-link {
    min-height: 40px;
    padding: 9px 13px;
    white-space: nowrap;
}

.schools-map-page .schools-map-shell {
    display: grid;
    grid-template-columns: minmax(350px, 385px) minmax(0, 1fr);
    gap: 12px;
    height: calc(100vh - 248px);
    min-height: 520px;
    margin-top: 12px;
    align-items: stretch;
}

.schools-map-page .schools-map-shell.is-sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
}

.schools-map-page .schools-map-sidebar {
    position: relative;
    top: auto;
    display: flex;
    min-width: 0;
    max-height: none;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(20, 52, 59, 0.11);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(20, 52, 59, 0.07);
    opacity: 1;
    transition: opacity 0.18s ease, transform 0.18s ease;
    flex-direction: column;
}

.schools-map-page .schools-map-shell.is-sidebar-collapsed .schools-map-sidebar {
    pointer-events: none;
    opacity: 0;
    transform: translateX(-10px);
}

.schools-map-page .schools-map-sidebar-header {
    display: grid;
    gap: 10px;
    padding: 15px 15px 12px;
    border-bottom: 1px solid rgba(20, 52, 59, 0.08);
    background: linear-gradient(180deg, #f8fbfa 0%, #fff 100%);
}

.schools-map-page .schools-map-search-field {
    display: grid;
    gap: 6px;
}

.schools-map-page .schools-map-search-field > span:first-child {
    color: #284a51;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schools-map-page .schools-map-search-control {
    position: relative;
    display: block;
}

.schools-map-page .schools-map-search-control svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 18px;
    height: 18px;
    color: #587178;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
}

.schools-map-page .schools-map-search-control input {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 41px;
    border: 1px solid rgba(20, 52, 59, 0.15);
    border-radius: 13px;
    outline: 0;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.schools-map-page .schools-map-search-control input:focus {
    border-color: rgba(47, 143, 131, 0.72);
    box-shadow: 0 0 0 4px rgba(47, 143, 131, 0.1);
}

.schools-map-page .schools-map-sidebar-status {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

.schools-map-page .schools-map-sidebar-status span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(20, 52, 59, 0.05);
}

.schools-map-page .schools-map-sidebar-status strong {
    color: #173b43;
}

.schools-map-page .schools-map-panel-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
    border-bottom: 1px solid rgba(20, 52, 59, 0.08);
    background: #fff;
}

.schools-map-page .schools-map-panel-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #62767b;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.schools-map-page .schools-map-panel-tabs button:hover {
    background: rgba(20, 52, 59, 0.05);
    color: #173b43;
}

.schools-map-page .schools-map-panel-tabs button.is-active {
    background: #173f47;
    color: #fff;
    box-shadow: 0 7px 16px rgba(20, 52, 59, 0.15);
}

.schools-map-page .schools-map-panel {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 52, 59, 0.25) transparent;
}

.schools-map-page .schools-map-panel.is-active {
    display: block;
}

.schools-map-page .schools-map-panel-section {
    display: grid;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(20, 52, 59, 0.08);
}

.schools-map-page .schools-map-panel-section-compact {
    grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.1fr);
    align-items: end;
}

.schools-map-page .schools-map-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.schools-map-page .schools-map-panel-heading span,
.schools-map-page .schools-map-panel-heading strong,
.schools-map-page .schools-map-panel-heading small {
    display: block;
}

.schools-map-page .schools-map-panel-heading span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.schools-map-page .schools-map-panel-heading strong {
    margin-top: 2px;
    font-size: 0.96rem;
}

.schools-map-page .schools-map-panel-heading small {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(20, 52, 59, 0.06);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    white-space: nowrap;
}

.schools-map-page .schools-map-checkboxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.schools-map-page .schools-map-checkchip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 70px;
    gap: 7px;
    align-items: center;
    padding: 9px 8px;
    border: 1px solid rgba(20, 52, 59, 0.1);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transform: none;
    box-shadow: none;
}

.schools-map-page .schools-map-checkchip:hover,
.schools-map-page .schools-map-checkchip:focus-within {
    border-color: rgba(47, 143, 131, 0.4);
    transform: none;
    box-shadow: 0 7px 16px rgba(20, 52, 59, 0.06);
}

.schools-map-page .schools-map-checkchip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.schools-map-page .schools-map-checkchip-dot {
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(20, 52, 59, 0.2);
}

.schools-map-page .schools-map-checkchip input:not(:checked) + .schools-map-checkchip-dot {
    background: #d5dddf;
}

.schools-map-page .schools-map-checkchip input:checked ~ .schools-map-checkchip-copy strong {
    color: #173b43;
}

.schools-map-page .schools-map-checkchip-copy strong {
    font-size: 0.78rem;
    line-height: 1.1;
}

.schools-map-page .schools-map-checkchip-copy small {
    display: none;
}

.schools-map-page .schools-map-toggle-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border-radius: 13px;
    background: rgba(20, 52, 59, 0.06);
}

.schools-map-page .schools-map-toggle {
    min-height: 39px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #587178;
    font-size: 0.82rem;
}

.schools-map-page .schools-map-toggle.is-active {
    background: #fff;
    color: #173b43;
    box-shadow: 0 5px 12px rgba(20, 52, 59, 0.1);
}

.schools-map-page .schools-map-limit-field {
    margin: 0;
}

.schools-map-page .schools-map-limit-field > span {
    font-size: 0.75rem;
}

.schools-map-page .schools-map-limit-field select {
    min-height: 42px;
    border-radius: 12px;
}

.schools-map-page .schools-map-inline-meta {
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(20, 52, 59, 0.045);
}

.schools-map-page .schools-map-inline-meta span,
.schools-map-page .schools-map-inline-meta small {
    display: block;
}

.schools-map-page .schools-map-inline-meta span {
    color: #284a51;
    font-size: 0.78rem;
    font-weight: 800;
}

.schools-map-page .schools-map-inline-meta small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.3;
}

.schools-map-page .schools-map-helper-note {
    padding: 10px 12px;
    border: 1px solid rgba(235, 139, 45, 0.16);
    border-radius: 12px;
    background: rgba(255, 247, 235, 0.78);
    color: #705633;
    font-size: 0.78rem;
    line-height: 1.4;
}

.schools-map-page .schools-map-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.schools-map-page .schools-map-filter-actions .button-link {
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
}

.schools-map-page .schools-map-zone-card {
    gap: 11px;
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(155deg, #f9fbfa, #fff);
    box-shadow: none;
}

.schools-map-page .schools-map-zone-head {
    gap: 8px;
}

.schools-map-page .schools-map-zone-kicker,
.schools-map-page .schools-map-zone-state,
.schools-map-page .schools-map-zone-breakdown span {
    min-height: 0;
    padding: 5px 8px;
    font-size: 0.74rem;
}

.schools-map-page .schools-map-zone-head > div > strong {
    display: block;
    margin-top: 5px;
    font-size: 1.04rem;
}

.schools-map-page .schools-map-zone-card > p {
    font-size: 0.78rem;
    line-height: 1.42;
}

.schools-map-page .schools-map-zone-metrics {
    gap: 7px;
}

.schools-map-page .schools-map-zone-metrics article {
    padding: 9px;
    border-radius: 12px;
}

.schools-map-page .schools-map-zone-metrics span {
    font-size: 0.72rem;
}

.schools-map-page .schools-map-zone-metrics strong {
    margin-top: 4px;
    font-size: 0.96rem;
}

.schools-map-page .schools-map-zone-breakdown {
    gap: 5px;
}

.schools-map-page .schools-map-zone-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.schools-map-page .schools-map-zone-actions .button-link {
    min-height: 39px;
    padding: 8px 10px;
}

.schools-map-page .schools-map-density-heading {
    margin-top: 2px;
}

.schools-map-page .schools-map-stat-list,
.schools-map-page .schools-map-results-list {
    display: grid;
    max-height: none;
    gap: 7px;
    padding: 0;
    overflow: visible;
}

.schools-map-page .schools-map-stat-item {
    gap: 7px;
    padding: 10px 11px;
    border-radius: 13px;
}

.schools-map-page .schools-map-stat-head strong {
    font-size: 0.84rem;
}

.schools-map-page .schools-map-stat-head span,
.schools-map-page .schools-map-stat-meta {
    font-size: 0.75rem;
}

.schools-map-page .schools-map-stat-track {
    height: 5px;
}

.schools-map-page .schools-map-stat-meta {
    gap: 5px 10px;
}

.schools-map-page .schools-map-results-intro {
    margin: 0 0 10px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.schools-map-page .schools-map-result-item {
    gap: 7px;
    padding: 11px 11px 11px 14px;
    border-radius: 13px;
}

.schools-map-page .schools-map-result-head {
    gap: 8px;
}

.schools-map-page .schools-map-result-head strong {
    font-size: 0.84rem;
}

.schools-map-page .schools-map-result-head small,
.schools-map-page .schools-map-result-meta,
.schools-map-page .schools-map-result-muted {
    font-size: 0.75rem;
}

.schools-map-page .schools-map-result-meta strong {
    margin: 0;
    font-size: 0.75rem;
}

.schools-map-page .schools-map-result-badges {
    display: none;
}

.schools-map-page .schools-map-badge {
    padding: 4px 7px;
    font-size: 0.72rem;
}

.schools-map-page .schools-map-result-actions {
    gap: 6px;
}

.schools-map-page .schools-map-result-focus,
.schools-map-page .schools-map-result-actions .schools-map-popup-link {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
}

.schools-map-page .schools-map-stage {
    position: relative;
    top: auto;
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 12px;
    gap: 10px;
    overflow: hidden;
    border: 1px solid rgba(20, 52, 59, 0.11);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 34px rgba(20, 52, 59, 0.07);
    flex-direction: column;
}

.schools-map-page .schools-map-stage-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 2px;
}

.schools-map-page .schools-map-stage-copy {
    display: block;
    min-width: 0;
}

.schools-map-page .schools-map-stage-kicker {
    color: #2f8f83;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schools-map-page .schools-map-stage-copy > strong,
.schools-map-page .schools-map-stage-copy > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schools-map-page .schools-map-stage-copy > strong {
    margin-top: 2px;
    font-size: 1rem;
}

.schools-map-page .schools-map-stage-copy > span:last-child {
    max-width: 780px;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}

.schools-map-page .schools-map-stage-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.schools-map-page .schools-map-icon-button,
.schools-map-page .schools-map-expand-button {
    min-height: 38px;
    border: 1px solid rgba(20, 52, 59, 0.12);
    border-radius: 11px;
    background: #fff;
    color: #173b43;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

.schools-map-page .schools-map-icon-button {
    display: grid;
    width: 38px;
    padding: 0;
    place-items: center;
}

.schools-map-page .schools-map-icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.schools-map-page .schools-map-expand-button {
    padding: 8px 12px;
}

.schools-map-page .schools-map-icon-button:hover,
.schools-map-page .schools-map-expand-button:hover {
    border-color: rgba(47, 143, 131, 0.38);
    background: #f4faf8;
}

.schools-map-page .schools-map-marker-limit {
    max-width: 220px;
    padding: 6px 9px;
    border-radius: 9px;
    background: #fff5e8;
    color: #7a5422;
    font-size: 0.75rem;
    font-weight: 750;
}

.schools-map-page .schools-map-canvas-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(20, 52, 59, 0.14);
    border-radius: 15px;
    background: #dce7e9;
}

.schools-map-page .schools-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.schools-map-page .schools-map-loading {
    position: absolute;
    z-index: 700;
    top: 14px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(20, 52, 59, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #173b43;
    box-shadow: 0 8px 22px rgba(20, 52, 59, 0.14);
    font-size: 0.72rem;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.schools-map-page .schools-map-root-is-loading .schools-map-loading,
.schools-map-page .schools-map-shell.is-loading .schools-map-loading {
    opacity: 1;
    transform: translate(-50%, 0);
}

.schools-map-page .schools-map-loading > span {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(47, 143, 131, 0.22);
    border-top-color: #2f8f83;
    border-radius: 50%;
    animation: schools-map-spin 0.7s linear infinite;
}

@keyframes schools-map-spin {
    to { transform: rotate(360deg); }
}

.schools-map-page .schools-map-legend {
    position: absolute;
    z-index: 650;
    right: 12px;
    bottom: 12px;
    display: flex;
    max-width: calc(100% - 24px);
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 10px;
    padding: 8px 10px;
    border: 1px solid rgba(20, 52, 59, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(20, 52, 59, 0.1);
    backdrop-filter: blur(8px);
}

.schools-map-page .schools-map-legend span {
    gap: 5px;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 750;
}

.schools-map-page .schools-map-legend i.is-zone-legend {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.schools-map-page .leaflet-tooltip.schools-map-boundary-label {
    min-width: 22px;
    padding: 2px 5px;
    border: 1px solid rgba(23, 63, 71, 0.24);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #153b43;
    box-shadow: 0 2px 7px rgba(15, 46, 54, 0.2);
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.schools-map-page .leaflet-tooltip.schools-map-boundary-label::before {
    display: none;
}

.schools-map-page .leaflet-tooltip.schools-map-boundary-label.is-active {
    border-color: #0b4f9c;
    background: #0b4f9c;
    color: #fff;
    box-shadow: 0 3px 9px rgba(11, 79, 156, 0.32);
}

.schools-map-page .leaflet-tooltip.schools-map-boundary-label.is-empty {
    opacity: 0.58 !important;
}

.schools-map-page .schools-map-legend i.is-pin,
.schools-map-page .schools-map-legend i.is-pin-base-educ,
.schools-map-page .schools-map-legend i.is-pin-client,
.schools-map-page .schools-map-legend i.is-pin-prospect {
    width: 9px;
    height: 13px;
}

.schools-map-page .schools-map-legend i.is-pin-base-educ::after,
.schools-map-page .schools-map-legend i.is-pin-client::after,
.schools-map-page .schools-map-legend i.is-pin-prospect::after {
    inset: 3px;
}

.schools-map-page .schools-map-fallback {
    position: absolute;
    z-index: 710;
    top: 14px;
    right: 14px;
    left: 14px;
    padding: 10px 13px;
    border-radius: 12px;
    background: rgba(255, 251, 245, 0.95);
    font-size: 0.75rem;
}

.schools-map-page .schools-map-fallback p {
    margin-top: 3px;
}

.schools-map-page .leaflet-control-zoom a {
    color: #173b43;
}

.schools-map-page .leaflet-control-attribution {
    font-size: 9px;
}

@media (max-width: 1550px) {
    .schools-map-page .schools-map-overview {
        grid-template-columns: minmax(280px, 1fr) minmax(350px, 0.9fr) auto;
    }

    .schools-map-page .schools-map-overview-copy > div > p:last-child {
        display: none;
    }

    .schools-map-page .schools-map-shell {
        grid-template-columns: minmax(330px, 360px) minmax(0, 1fr);
    }

    .schools-map-page .schools-map-stage-copy > span:last-child {
        max-width: 480px;
    }
}

@media (max-width: 1400px) {
    .schools-map-page .school-chip {
        min-width: 170px;
        max-width: 210px;
    }

    .schools-map-page .school-chip span {
        display: none;
    }
}

@media (max-width: 1260px) {
    .schools-map-page .schools-map-overview {
        grid-template-columns: minmax(260px, 1fr) auto;
    }

    .schools-map-page .schools-map-overview-metrics {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .schools-map-page .schools-map-overview-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .schools-map-page .schools-map-shell {
        height: calc(100vh - 405px);
        min-height: 500px;
    }
}

@media (max-width: 980px) {
    .schools-map-page .schools-map-shell,
    .schools-map-page .schools-map-shell.is-sidebar-collapsed {
        display: flex;
        height: auto;
        min-height: 0;
        flex-direction: column;
    }

    .schools-map-page .schools-map-sidebar {
        height: 580px;
    }

    .schools-map-page .schools-map-shell.is-sidebar-collapsed .schools-map-sidebar {
        display: none;
    }

    .schools-map-page .schools-map-stage {
        height: 620px;
    }
}

@media (max-width: 720px) {
    .schools-map-page .schools-map-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .schools-map-page .schools-map-overview-actions,
    .schools-map-page .schools-map-overview-metrics {
        grid-column: 1;
        grid-row: auto;
    }

    .schools-map-page .schools-map-overview-actions {
        justify-content: stretch;
    }

    .schools-map-page .schools-map-overview-actions .button-link {
        flex: 1 1 0;
        justify-content: center;
    }

    .schools-map-page .schools-map-overview-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schools-map-page .schools-map-checkboxes {
        grid-template-columns: 1fr;
    }

    .schools-map-page .schools-map-checkchip {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 50px;
    }

    .schools-map-page .schools-map-checkchip-copy small {
        display: block;
    }

    .schools-map-page .schools-map-stage-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .schools-map-page .schools-map-stage-actions {
        width: 100%;
    }

    .schools-map-page .schools-map-expand-button {
        flex: 1 1 auto;
    }

    .schools-map-page .schools-map-marker-limit {
        margin-right: auto;
    }

    .schools-map-page .schools-map-stage {
        height: 570px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .schools-map-page .schools-map-sidebar,
    .schools-map-page .schools-map-loading {
        transition: none;
    }

    .schools-map-page .schools-map-loading > span {
        animation: none;
    }
}
