/* Stretch the existing map toggle across its header, keeping its text and postback. */
.section .section-header.map-section-heading {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
}

.map-section-heading .map-section-toggle {
    margin-left: auto;
    flex-shrink: 0;
    text-align: right;
    text-transform: none;
}

.map-section-heading .map-section-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
}

.map-section-heading:has(.map-section-toggle):hover {
    background-color: #f3f3f3;
}

body.dark-mode .section .map-section-heading:has(.map-section-toggle):hover {
    background-color: var(--dark-surface-hover, #333438);
}

.map-section-toggle:focus-visible::before {
    outline: 2px solid currentColor;
    outline-offset: -3px;
    border-radius: 6px;
}

.section .section-header.map-section-chevron > h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
}

.map-section-chevron .map-section-toggle {
    font-size: 0;
    line-height: 0;
}

.map-section-chevron .map-section-toggle::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin-inline-end: 3px;
    border: solid #646464;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.map-section-chevron .map-section-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

body.dark-mode .map-section-chevron .map-section-toggle::after {
    border-color: var(--dark-text-secondary);
}
