html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #1f2a44;
}

main { width: 100%; }

#block {
    display: flex;
    position: absolute;
    height: 100%;
    width: 100%;
}

#map {
    width: 100%;
    height: 100%;
}

.locator-bar {
    position: absolute;
    z-index: 10;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: calc(100% - 28px);
    box-sizing: border-box;
    min-height: 52px;
    padding: 6px 8px 6px 4px;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(20, 35, 80, .22);
}

.locator-geoloc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.locator-geoloc:hover { background: #eef2fa; }

.locator-geoloc { color: var(--map-primary, #18489f); }

/* Branded map: partner logo at the start of the bar. */
.locator-logo {
    height: 30px;
    max-width: 120px;
    margin: 0 6px 0 8px;
    object-fit: contain;
}

.locator-sep {
    width: 1px;
    height: 26px;
    margin: 0 12px;
    background: #dfe3ea;
}

.locator-geoloc + .locator-sep { margin-left: 4px; }

.locator-input {
    flex: 1 1 230px;
    min-width: 120px;
    width: 230px;
    height: 36px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: #1f2a44;
}

.locator-direct {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.locator-direct input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.locator-switch {
    position: relative;
    width: 30px;
    height: 17px;
    border-radius: 9px;
    background: #c9ced9;
    transition: background .15s;
}

.locator-switch::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    transition: left .15s;
}

.locator-direct input:checked + .locator-switch { background: var(--map-accent, #f57c00); }
.locator-direct input:checked + .locator-switch::after { left: 15px; }
.locator-direct input:focus-visible + .locator-switch { outline: 2px solid var(--map-primary, #18489f); outline-offset: 2px; }

.locator-search {
    height: 36px;
    margin-left: 12px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--map-accent, #f57c00);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.locator-search:hover { filter: brightness(.92); }

.locator-count {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    padding: 9px 16px;
    border-radius: 18px;
    background: var(--map-primary, #18489f);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(20, 35, 80, .22);
    pointer-events: none;
}

/* Phone: the bar spans the width, the filter goes on a second row. */
@media (max-width: 600px) {
    .locator-bar {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .locator-input { flex-basis: 100px; }

    .locator-input + .locator-sep { display: none; }

    .locator-direct {
        order: 5;
        flex-basis: 100%;
        padding: 8px 0 4px 10px;
    }

    .locator-search { margin-left: 8px; padding: 0 12px; }
}
