.regions-map {
    width: 100%;
    height: 520px;
    border: 1px solid var(--gray-color);
}
@media (max-width: 575px) {
    .regions-map {
        height: 360px;
    }
}

/* OL replaces the default ol-layer class with whatever we pass via className,
   so we have to replicate the position/size rules here. */
.regions-map-base-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: brightness(2);
}

.regions-map .ol-control {
    background-color: rgba(29, 34, 40, 0.55);
    border-radius: 0.375rem;
}
.regions-map .ol-control button {
    background-color: rgba(78, 93, 108, 0.9);
    color: #fff;
}
.regions-map .ol-control button:hover,
.regions-map .ol-control button:focus {
    background-color: var(--gray-color);
    color: #fff;
    outline: none;
}
/* OL's width/height are in em, so shrinking font-size shrinks the whole button. */
.regions-map .ol-zoom button {
    font-size: 1.3em;
}
/* Zoom to the upper right, reset to the upper left (swap of OL defaults). */
.regions-map .ol-zoom {
    left: auto;
    right: 0.5em;
}
.regions-map .ol-attribution button {
    font-size: 0.65em;
}
.regions-map .regions-map-reset {
    top: 0.5em;
    left: 0.5em;
}
.regions-map .regions-map-reset button {
    font-size: 1.3em;
}
.regions-map .ol-attribution {
    background-color: rgba(29, 34, 40, 0.75);
    color: #c8cdd3;
}
.regions-map .ol-attribution ul {
    color: #c8cdd3;
    text-shadow: none;
}
.regions-map .ol-attribution a {
    color: var(--hl-color);
}

/* Always reserve one text line, even when empty (no selection), so the gap
   between the search input and the map is identical whether or not a region
   is selected. min-height is in em, i.e. relative to this 0.8em font. */
.region-selection-banner {
    margin-bottom: 0.5rem;
    font-size: 0.8em;
    line-height: 1.5;
    min-height: 1.5em;
}
.region-selection-banner .region-selection-clear {
    color: var(--hl-color);
    margin-left: 0.5em;
    font-size: 1.2em;
}

/* Match the help button (btn-secondary) so the row under the map reads as a
   matched pair of dark controls. Native chevron is dark-on-dark, so override
   with a white-stroked one. */
.regions-tax-select {
    width: auto;
    background-color: var(--gray-color);
    color: #fff;
    border-color: var(--gray-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}
.regions-tax-select:hover {
    background-color: #5d6e7e;
    border-color: #5d6e7e;
    color: #fff;
}
.regions-tax-select:focus {
    background-color: var(--gray-color);
    color: #fff;
    border-color: var(--hl-color);
    box-shadow: 0 0 0 0.2rem rgba(223, 105, 25, 0.25);
}
.regions-tax-select option {
    background-color: #1d2228;
    color: #fff;
}
