.ol-address-field {
    position: relative
}

.ol-suggestions {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    overflow: hidden;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 28px rgba(23,35,45,.18)
}

.ol-suggestions:empty {
    display: none
}

.ol-suggestions button {
    display: block;
    width: 100%;
    padding: .8rem 1rem;
    text-align: left;
    color: #17232d;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e7ebed;
    cursor: pointer;
    font: inherit
}

.ol-suggestions button:hover {
    background: #f3f6f7
}

.ol-map:empty::before {
    content: "Loading map…";
    display: grid;
    place-items: center;
    height: 100%;
    color: #64717c;
    background: #f7f9fa;
    border-radius: 12px
}

/* Branded route preview */
.ol-map-shell {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #eaf2fb;
    border: 1px solid #d6e2ef;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(22,66,119,.09);
}

.ol-map-shell .ol-map {
    height: 390px;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.ol-map-preview {
    position: absolute;
    z-index: 5;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    box-sizing: border-box;
    max-width: min(390px,calc(100% - 120px));
    min-height: 58px;
    padding: 11px 15px;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(211,222,236,.9);
    border-radius: 11px;
    box-shadow: 0 8px 22px rgba(25,60,105,.14);
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.ol-map-pin {
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: #1769ff;
    border-radius: 50% 50% 50% 0;
    font-size: 8px;
    transform: rotate(-45deg);
}

.ol-map-pin::first-letter {
    transform: rotate(45deg);
}

.ol-map-preview div {
    min-width: 0;
}

.ol-map-preview strong,
.ol-map-preview small {
    display: block;
}

.ol-map-preview strong {
    color: #17263e;
    font-size: 13px;
    line-height: 1.2;
}

.ol-map-preview small {
    overflow: hidden;
    margin-top: 4px;
    color: #6f7e93;
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ol-map-live {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    color: #53647d;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(211,222,236,.9);
    border-radius: 9px;
    box-shadow: 0 7px 18px rgba(25,60,105,.12);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    pointer-events: none;
}

.ol-map-live i {
    width: 7px;
    height: 7px;
    background: #18b66a;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(24,182,106,.1);
}

.ol-map-summary {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    align-items: center;
    min-height: 72px;
    padding: 9px 8px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(211,222,236,.95);
    border-radius: 11px;
    box-shadow: 0 9px 25px rgba(25,60,105,.14);
    pointer-events: none;
    backdrop-filter: blur(9px);
}

.ol-map-summary[hidden] {
    display: none;
}

.ol-map-summary>div {
    display: grid;
    grid-template-columns: 31px minmax(0,1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 3px 14px;
}

.ol-map-summary>div+div {
    border-left: 1px solid #dde5ef;
}

.ol-map-metric-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    color: #1769ff;
    border: 2px solid #1769ff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 750;
}

.ol-map-summary p {
    min-width: 0;
    margin: 0;
}

.ol-map-summary strong,
.ol-map-summary small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ol-map-summary strong {
    color: #23334c;
    font-size: 12px;
}

.ol-map-summary small {
    margin-top: 3px;
    color: #7b899d;
    font-size: 9px;
}

.ol-map-shell .gm-control-active,
.ol-map-shell .gm-fullscreen-control {
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(25,60,105,.15) !important;
}

@media(max-width:760px) {
    .ol-map-shell .ol-map {
        height: 360px;
    }

    .ol-map-preview {
        max-width: calc(100% - 96px);
    }

    .ol-map-summary {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .ol-map-summary>div:nth-child(3) {
        border-left: 0;
    }

    .ol-map-summary>div:nth-child(n+3) {
        padding-top: 9px;
        border-top: 1px solid #dde5ef;
    }
}

@media(max-width:430px) {
    .ol-map-shell .ol-map {
        height: 330px;
    }

    .ol-map-preview {
        top: 10px;
        left: 10px;
        min-height: 50px;
        padding: 9px 11px;
    }

    .ol-map-live {
        top: 10px;
        right: 10px;
        padding: 0 9px;
    }

    .ol-map-summary {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .ol-map-summary>div {
        grid-template-columns: 26px minmax(0,1fr);
        gap: 7px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .ol-map-metric-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}
