/* Keep Leaflet's internal z-indexes from covering the panels' headers, dropdowns and modals. */
.leaflet-container {
    isolation: isolate;
    direction: ltr;
    font-family: inherit;
    z-index: 0;
}
.leaflet-container img { max-width: none; }
.leaflet-popup-content { direction: initial; margin: 10px 14px; line-height: 1.5; overflow: hidden; }
.leaflet-popup-content .float--left { float: inline-start; }
[dir="rtl"] .leaflet-popup-content { direction: rtl; }

.osm-top-control {
    position: absolute;
    z-index: 1000;
    display: flex;
    gap: 6px;
    pointer-events: none;
    max-width: calc(100% - 70px);
}
.osm-top-control > * { pointer-events: auto; margin: 0 !important; }
.osm-top-center { top: 10px; left: 50%; transform: translateX(-50%); }
.osm-top-right { top: 10px; right: 10px; }
.osm-top-left { top: 10px; left: 56px; }

.osm-search { position: relative; display: flex; width: 320px; max-width: 100%; }
.osm-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #cfd4dc !important;
    border-radius: 6px 0 0 6px !important;
    background: #fff;
    color: #1e2022;
    font-size: 13px;
    width: auto !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    outline: 0;
}
.osm-search input:focus { border-color: #fc6a57 !important; }
.osm-search button {
    flex: 0 0 36px;
    height: 36px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: #fc6a57;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.osm-search.is-loading button { opacity: .6; cursor: progress; }
.osm-search ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    z-index: 1;
}
.osm-search ul[hidden] { display: none; }
.osm-search li {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f2f4;
    color: #1e2022;
    font-size: 12.5px;
    line-height: 1.4;
    cursor: pointer;
    unicode-bidi: plaintext;
    text-align: start;
}
.osm-search li:last-child { border-bottom: 0; }
.osm-search li:hover { background: #fff3f1; }
.osm-search li.is-empty { color: #677788; cursor: default; background: #fff; }

/* Image markers keep their natural size and sit on their tip, like the previous map markers. */
.osm-img-icon { background: none; border: 0; }
.osm-img-icon img { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); max-width: none; }
.osm-bounce { animation: osm-bounce .7s ease-in-out infinite alternate; }
@keyframes osm-bounce { to { margin-top: -14px; } }

/* The panels hide #pac-input until Google attached it; here it is always part of the search box. */
.osm-search #pac-input { display: block; }

/* Maps can be short: keep the results list inside the map so every result stays clickable. */
.osm-top-control .osm-search ul { max-height: 118px; }
