/* css/mjm-main-map.css */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

.map-container {
    position: relative;
    height: 800px; /* Fixed height, adjust as needed */
    padding: 0; /* Remove any theme padding */
    overflow: visible; /* Allow popups to extend beyond container boundaries */
    /* Full-bleed: break out of the theme's constrained content column */
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width:100%!important;
}

.map-container {
    --mjm-map-font-body: var(--font-body, "KF Zuka Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);
    --mjm-map-font-heading: var(--font-headline, "KF Zuka Medium", "Helvetica Neue", Helvetica, Arial, sans-serif);
    --mjm-map-black: var(--color-black, #000000);
    --mjm-map-near-black: var(--color-near-black, #1a1a1a);
    --mjm-map-mid: var(--color-mid, #666666);
    --mjm-map-border: var(--color-border, #e0e0e0);
    --mjm-map-white: var(--color-white, #ffffff);
    --mjm-map-warm-white: #FFFBF0;
    --mjm-map-orange: var(--color-orange, #FF5C00);
    --mjm-map-green: var(--color-green, #1D8D02);
    --mjm-map-blue: #63B2F8;
    --mjm-map-teal: #03665D;
    --mjm-map-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    font-family: var(--mjm-map-font-body);
    color: var(--mjm-map-black);
}

#map {
    width: 100%; /* Fills .map-container */
    height: 100%; /* Matches .map-container height */
    position: absolute; /* Ensures it fills the container */
    top: 0;
    left: 0;
}

#search-toggle-container {
    position: absolute;
    top: 14px;
    right: auto;
    left: 14px;
    z-index: 11;
    background: var(--mjm-map-blue);
    padding: 14px;
    border: 0;
    border-radius: 0;
    box-shadow: var(--mjm-map-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 22.5%;
    min-width: 270px;
    pointer-events: none;
    font-family: var(--mjm-map-font-body);
}

.search-row {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-row > #filter-mode {
    flex: 1 1 0;
    min-width: 0;
    order: 1;
}

.category-filter-row {
    display: flex;
    width: 100%;
}

.category-filter-row > #category-filter {
    flex: 1 1 auto;
    width: 100%;
}

.filter-row > .toggle-switch {
    flex: 0 0 auto;
    order: 2;
}

#map-search,
#filter-mode,
#category-filter,
#start-year,
#end-year,
.toggle-switch,
.date-filters,
.zoom-controls,
.zoom-btn,
.map-a11y-controls,
.map-a11y-toggle {
    pointer-events: auto; /* Re-enable clicks on these */
}

#map-search {
    flex: 1;
    min-height: 38px;
    padding: 9px 11px;
    border: 0;
    border-radius: 0;
    font-family: var(--mjm-map-font-body);
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0;
    background-color: var(--mjm-map-white);
    color: var(--mjm-map-black);
    box-sizing: border-box;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#map-search::placeholder {
    color: var(--mjm-map-black);
    opacity: 0.68;
}

#map-search:hover {
    background-color: var(--mjm-map-warm-white);
}

#filter-mode,
#category-filter {
    min-height: 38px;
    padding: 9px 11px;
    border: 0;
    border-radius: 0;
    font-family: var(--mjm-map-font-body);
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0;
    background-color: var(--mjm-map-white);
    color: var(--mjm-map-black);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23000000" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 34px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#filter-mode:hover,
#category-filter:hover {
    background-color: var(--mjm-map-warm-white);
}

.date-filters {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

#start-year,
#end-year {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    padding: 9px 11px;
    border: 0;
    border-radius: 0;
    font-family: var(--mjm-map-font-body);
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0;
    background-color: var(--mjm-map-white);
    color: var(--mjm-map-black);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23000000" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 34px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#start-year:hover,
#end-year:hover {
    background-color: var(--mjm-map-warm-white);
}

.date-separator {
    color: var(--mjm-map-black);
    font-weight: normal;
    font-size: 14px;
}

.toggle-switch {
    flex: 0 0 50px;
    position: relative;
    margin-left: 0;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--mjm-map-white);
    border: 0;
    transition: background-color 0.2s ease;
    border-radius: 28px;
    overflow: hidden;
}

.slider-icon {
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--mjm-map-black);
    border-radius: 50%;
    text-align: center;
    line-height: 22px!important;
    font-size: 13px;
    color: var(--mjm-map-white);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

input:checked + .slider .slider-icon {
    background-color: var(--mjm-map-white);
    color: var(--mjm-map-black);
}

input:checked + .slider {
    background-color: var(--mjm-map-black);
}

input:checked + .slider .slider-icon {
    transform: translateX(22px); /* Slide right when checked */
}


#exhibit-list {
    position: relative;
    width: 100%;
    background: white;
    padding: 10px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    border-radius: 5px;
    top:75px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 600px;
}

.map-container.is-list-view {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.map-container.is-list-view #search-toggle-container {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    grid-row: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
    background: var(--mjm-map-blue);
    border-bottom: 0;
    box-shadow: var(--mjm-map-shadow);
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 18px;
    pointer-events: auto;
}

.map-container.is-list-view .search-row {
    flex: 1 1 320px;
    width: auto;
    min-width: 260px;
}

.map-container.is-list-view .filter-row {
    flex: 0 1 300px;
    width: auto;
    flex-wrap: nowrap;
}

.map-container.is-list-view .category-filter-row {
    flex: 0 1 240px;
    width: auto;
}

.map-container.is-list-view .date-filters {
    flex: 0 1 250px;
    width: auto;
}

.map-container.is-list-view #map-search {
    min-height: 42px;
    border: 2px solid var(--mjm-map-black);
    background-color: var(--mjm-map-white);
    font-size: 15px;
}

.map-container.is-list-view #filter-mode,
.map-container.is-list-view #category-filter,
.map-container.is-list-view #start-year,
.map-container.is-list-view #end-year {
    min-height: 42px;
    border: 1px solid var(--mjm-map-border);
    background-color: var(--mjm-map-white);
}

.map-container.is-list-view .zoom-controls,
.map-container.is-list-view .map-a11y-controls {
    display: none;
}

.map-container.is-list-view #exhibit-list {
    grid-row: 2;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
}

.exhibit-group {
    margin-bottom: 10px;
}

.exhibit-title {
    display: flex;
    align-items: center;
    padding: 5px 0;
    position: relative;
}

.exhibit-title-text {
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
}

.exhibit-title a {
    color: black;
    text-decoration: none !important;
}

.exhibit-title a:hover {
    color:  #ff4a0a;
}

.expand-toggle {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #ff4a0a;
    cursor: pointer;
}

.exhibit-title[data-expandable="true"] {
    cursor: pointer;
}

.exhibit-title[data-expandable="true"]::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 999px;
    background-color: #F4F4F4;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.exhibit-title[data-expandable="true"][aria-expanded="true"]::before {
    content: "-";
}

.exhibit-count {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

.mjm-map-list-section + .mjm-map-list-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--mjm-map-border);
}

.mjm-map-list-section-title {
    margin: 0 0 10px;
    font-family: var(--mjm-map-font-heading);
    font-size: 17px;
    font-weight: normal;
    line-height: 1.15;
    letter-spacing: 0;
    color: var(--mjm-map-black);
}

.mjm-map-list-title.is-oral-history a:hover,
.mjm-map-list-title.is-oral_history a:hover,
.mjm-map-list-item.is-oral-history a:hover,
.mjm-map-list-item.is-oral_history a:hover {
    color: var(--mjm-map-blue);
}

.exhibit-subitems {
    margin-left: 30px; /* Indent sub-items */
    padding: 5px 0;
}

.exhibit-item {
    padding: 5px 0;
}

.exhibit-item a {
    text-decoration: none;
    color: inherit;
    pointer-events: auto; /* Ensure links receive pointer events */
}

.exhibit-item a:hover {
    color:  #ff4a0a;
}

.carousel {
    max-width: 100%;
}

/* Ensure uniform column sizes and height */
.carousel .row {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping within carousel */
    margin: 0; /* Remove row margins */
}

.carousel .col-md-4 {
    flex: 0 0 33.333333%; /* Exact thirds */
    max-width: 33.333333%;
    padding: 5px; /* Match g-2 gutter */
    height: 200px; /* Fixed container height */
    display: flex; /* Center image vertically */
    align-items: center; /* Vertical centering */
}

/* Uniform image size */
.exhibit-image {
    width: 100%; /* Full column width */
    height: 200px!important; /* Fixed height */
    object-fit: cover; /* Crop to fit */
    cursor: pointer; /* Indicate clickability */
    display: block; /* Prevent alignment issues */
}

/* Modal image */
.modal-body .img-fluid {
    max-height: 70vh; /* Limit height */
    width: 100%;
    object-fit: contain; /* Show full image */
}

.exhibit-image .img-fluid {
    height: 200px!important;
}

/* Ensure Mapbox map fits */
#single-exhibit-map {
    width: 100% !important;
    height: 400px;
}

.mapboxgl-ctrl-top-right {
    display: none !important;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus styles for form elements */
#map-search:focus,
#filter-mode:focus,
#category-filter:focus,
#start-year:focus,
#end-year:focus {
    outline: 2px solid var(--mjm-map-black);
    outline-offset: 2px;
    border-color: var(--mjm-map-black);
    box-shadow: none;
}

/* Focus styles for toggle switch */
.toggle-switch input:focus + .slider {
    outline: 2px solid var(--mjm-map-black);
    outline-offset: 2px;
}

.toggle-switch input:focus:not(:focus-visible) + .slider {
    outline: none;
}

/* Focus styles for expandable titles */
.exhibit-title[data-expandable="true"]:focus {
    outline: 2px solid var(--mjm-map-black);
    outline-offset: 2px;
    border-radius: 4px;
}

.exhibit-title[data-expandable="true"]:focus:not(:focus-visible) {
    outline: none;
}

/* Focus styles for links */
.exhibit-title a:focus,
.exhibit-item a:focus {
    outline: 2px solid var(--mjm-map-black);
    outline-offset: 2px;
}

.exhibit-title a:focus:not(:focus-visible),
.exhibit-item a:focus:not(:focus-visible) {
    outline: none;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .slider,
    .slider-icon {
        transition: none !important;
    }
}

/* ============================================
   CUSTOM ZOOM CONTROLS
   ============================================ */

.zoom-controls {
    display: flex;
    gap: 10px;
    width: 100%;
}

.zoom-btn {
    pointer-events: auto;
    flex: 1;
    height: 38px;
    border: 0;
    border-radius: 0;
    background-color: var(--mjm-map-white);
    cursor: pointer;
    padding: 0 10px;
    font-family: var(--mjm-map-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--mjm-map-black);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.zoom-btn-symbol {
    display: inline-block;
    min-width: 0.75em;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.zoom-btn:hover {
    background-color: var(--mjm-map-black);
    color: var(--mjm-map-white);
}

.zoom-btn:focus {
    outline: 2px solid var(--mjm-map-black);
    outline-offset: 2px;
}

.zoom-btn:active {
    background-color: var(--mjm-map-near-black);
}

.map-a11y-controls {
    width: 100%;
}

.map-a11y-toggle {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background-color: var(--mjm-map-black);
    color: var(--mjm-map-white);
    font-family: var(--mjm-map-font-body);
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    text-align: center;
    padding: 9px 16px;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.map-a11y-toggle:hover {
    opacity: 0.82;
    color: var(--mjm-map-white);
}

.map-a11y-toggle:focus {
    outline: 2px solid var(--mjm-map-black);
    outline-offset: 3px;
}

.map-a11y-toggle:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   VISIBLE MAP ITEMS (KEYBOARD FALLBACK)
   ============================================ */

.map-visible-items {
    position: absolute;
    right: auto;
    left: 14px;
    bottom: 14px;
    z-index: 11;
    width: 22.5%;
    min-width: 270px;
    max-height: 45%;
    display: none;
    flex-direction: column;
    gap: 10px;
    background: var(--mjm-map-blue);
    border: 0;
    border-radius: 0;
    box-shadow: var(--mjm-map-shadow);
    padding: 14px;
    font-family: var(--mjm-map-font-body);
    color: var(--mjm-map-black);
}

.map-visible-items.is-open {
    display: flex;
}

.map-visible-items-title {
    margin: 0;
    font-family: var(--mjm-map-font-heading);
    font-size: 18px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: 0;
    color: var(--mjm-map-black);
}

.map-visible-items-help {
    margin: 0;
    font-size: 13px;
    color: var(--mjm-map-near-black);
    line-height: 1.25;
    letter-spacing: 0;
}

.map-visible-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 210px;
    overflow-y: auto;
    scrollbar-color: var(--mjm-map-black) var(--mjm-map-warm-white);
}

.map-visible-item-btn {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 4px;
    border: 1px solid var(--mjm-map-border);
    border-radius: 0;
    background: var(--mjm-map-white);
    color: var(--mjm-map-black);
    font-family: var(--mjm-map-font-body);
    text-align: left;
    padding: 10px 11px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.map-visible-item-btn:hover {
    border-color: var(--mjm-map-black);
    background: var(--mjm-map-warm-white);
}

.map-visible-item.is-cluster .map-visible-item-btn {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.06) 50%, rgba(0, 0, 0, 0.06) 75%, transparent 75%, transparent);
    background-size: 8px 8px;
}

.map-visible-item.is-oral-history .map-visible-item-btn:hover {
    border-color: var(--mjm-map-black);
    background: var(--mjm-map-warm-white);
}

.map-visible-item-btn:focus {
    outline: 2px solid var(--mjm-map-black);
    outline-offset: 3px;
}

.map-visible-item-btn:focus:not(:focus-visible) {
    outline: none;
}

.map-visible-item-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mjm-map-font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--mjm-map-black);
}

.map-visible-item-type::before {
    content: "";
    width: 0.75em;
    height: 0.75em;
    border-radius: 50%;
    background: var(--mjm-map-orange);
    flex: 0 0 auto;
}

.map-visible-item-type.is-oral-history {
    color: var(--mjm-map-black);
}

.map-visible-item-type.is-oral-history::before {
    background: var(--mjm-map-blue);
}

.map-visible-item-name {
    font-family: var(--mjm-map-font-heading);
    font-size: 14px;
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--mjm-map-black);
}

.map-visible-item-address {
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--mjm-map-mid);
}

.map-visible-items-empty {
    padding: 10px 0;
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--mjm-map-mid);
}

@media (prefers-reduced-motion: reduce) {
    .zoom-btn {
        transition: none !important;
    }

    .map-a11y-toggle {
        transition: none !important;
    }

    #map-search,
    #filter-mode,
    #category-filter,
    #start-year,
    #end-year {
        transition: none !important;
    }

    #map {
        transition: none !important;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large screens (1200px and above) */
@media screen and (min-width: 1200px) {
    #search-toggle-container {
        max-width: 320px;
    }

    .map-visible-items {
        max-width: 320px;
    }
}

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    #search-toggle-container {
        width: 40%;
        min-width: 280px;
        padding: 10px;
        gap: 8px;
    }

    .map-visible-items {
        width: 40%;
        min-width: 280px;
        padding: 10px;
    }

    #map-search,
    #filter-mode,
    #category-filter,
    #start-year,
    #end-year {
        font-size: 16px;
        padding: 10px;
    }

    .map-a11y-toggle {
        min-height: 40px;
        font-size: 14px;
    }

    .toggle-switch {
        flex: 0 0 54px;
        width: 54px;
        height: 32px;
    }

    .slider-icon {
        height: 26px;
        width: 26px;
        left: 3px;
        bottom: 3px;
        line-height: 26px !important;
    }

    input:checked + .slider .slider-icon {
        transform: translateX(22px);
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    #search-toggle-container {
        width: auto;
        min-width: unset;
        right: 14px;
        left: 14px;
        padding: 12px;
    }

    .map-visible-items {
        width: auto;
        min-width: unset;
        right: 14px;
        left: 14px;
        bottom: 14px;
    }

    .map-container.is-list-view #search-toggle-container {
        padding: 12px;
    }

    .map-container.is-list-view #exhibit-list {
        padding: 12px;
    }

    .map-container.is-list-view .search-row,
    .map-container.is-list-view .filter-row,
    .map-container.is-list-view .category-filter-row,
    .map-container.is-list-view .date-filters {
        flex: 1 1 100%;
        min-width: 0;
    }

    .filter-row {
        gap: 8px;
    }

    .filter-row > .toggle-switch {
        order: 2;
    }

    .date-filters {
        gap: 3px;
    }

    #map-search,
    #filter-mode,
    #category-filter,
    #start-year,
    #end-year {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px;
        min-height: 44px; /* Touch target */
    }

    .date-separator {
        font-size: 12px;
    }

    .zoom-btn {
        height: 44px; /* Touch target */
        font-size: 16px;
    }

    .map-a11y-toggle {
        min-height: 44px;
        font-size: 14px;
    }

    .toggle-switch {
        flex: 0 0 58px;
        width: 58px;
        height: 36px;
    }

    .slider-icon {
        height: 30px;
        width: 30px;
        left: 3px;
        bottom: 3px;
        line-height: 30px !important;
        font-size: 15px;
    }

    input:checked + .slider .slider-icon {
        transform: translateX(22px);
    }
}

/* Mobile Portrait - Search above map */
@media screen and (max-width: 480px) and (orientation: portrait) {
    .map-container {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 800px;
        overflow: visible; /* Allow popups to extend beyond container */
    }

    #search-toggle-container {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        order: 1;
        border-radius: 0;
    }

    .map-visible-items {
        position: relative;
        right: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        max-height: 220px;
        order: 2;
        border-radius: 0;
    }

    #map {
        position: relative;
        top: auto;
        left: auto;
        flex: 1;
        min-height: 450px;
        order: 3;
        border-radius: 0;
    }

    #exhibit-list {
        position: relative;
        top: auto;
        order: 3;
        max-height: 450px;
    }

    .map-container.is-list-view #exhibit-list {
        max-height: none;
    }
}

/* ============================================
   HIGH CONTRAST MODE SUPPORT
   ============================================ */

@media (forced-colors: active) {
    #map-search,
    #filter-mode,
    #category-filter,
    #start-year,
    #end-year,
    .zoom-btn {
        border: 2px solid CanvasText;
    }

    #map-search:focus,
    #filter-mode:focus,
    #category-filter:focus,
    #start-year:focus,
    #end-year:focus,
    .zoom-btn:focus {
        outline: 3px solid Highlight;
        outline-offset: 2px;
    }

    .slider {
        border: 2px solid CanvasText;
    }

    .zoom-btn:hover {
        background-color: Highlight;
        color: HighlightText;
    }

    .map-a11y-toggle {
        border: 2px solid CanvasText;
    }

    .map-a11y-toggle:focus {
        outline: 3px solid Highlight;
    }

    .map-visible-item-btn {
        border: 2px solid CanvasText;
    }

    .map-visible-item-btn:focus {
        outline: 3px solid Highlight;
    }

    .map-visible-item-type::before {
        forced-color-adjust: none;
        background: CanvasText;
    }
}
