/* Driver contact cards inside the existing Google Maps InfoWindow. */
#tab-2 .gm-style-iw-c {
    border-radius: 12px;
}
#tab-2 .gm-style-iw-c .gm-ui-hover-effect {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    border: 1px solid #cedbd1 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #173b36 !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px #173b3626;
    z-index: 5;
    touch-action: manipulation;
}
/* Keep Google's native button, accessible label, keyboard and close behavior. */
#tab-2 .gm-style-iw-c .gm-ui-hover-effect > * {
    visibility: hidden;
}
#tab-2 .gm-style-iw-c .gm-ui-hover-effect::before,
#tab-2 .gm-style-iw-c .gm-ui-hover-effect::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 11px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    pointer-events: none;
}
#tab-2 .gm-style-iw-c .gm-ui-hover-effect::before { transform: rotate(45deg); }
#tab-2 .gm-style-iw-c .gm-ui-hover-effect::after { transform: rotate(-45deg); }
#tab-2 .gm-style-iw-c .gm-ui-hover-effect:hover { background: #edf2e8 !important; }
#tab-2 .gm-style-iw-c .gm-ui-hover-effect:focus-visible {
    outline: 3px solid #b47800;
    outline-offset: 2px;
}
#tab-2 .gm-style-iw-d { overflow: auto !important; }
#tab-2 .tv-map-popup {
    width: min(292px, calc(100vw - 92px));
    max-width: 100%;
    padding: 4px 0 2px;
    color: #173b36;
    font: 14px/1.5 Arial, sans-serif;
    overflow-wrap: anywhere;
}
#tab-2 .tv-map-popup__name {
    margin: 0 46px 14px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}
#tab-2 .tv-map-popup__phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 64px;
    margin: 0 0 16px;
    padding: 11px 10px;
    border: 1px solid #204f43;
    border-radius: 8px;
    background: #204f43;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
}
#tab-2 .tv-map-popup__phone:hover { background: #173b36; }
#tab-2 .tv-map-popup__phone-label { font-size: 12px; font-weight: 400; }
#tab-2 .tv-map-popup__phone strong {
    font-size: clamp(18px, 5vw, 23px);
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}
#tab-2 .tv-map-popup__phone:focus-visible,
#tab-2 .tv-map-popup__profile:focus-visible,
#tab-2 .tv-map-popup__reviews:focus-visible,
#tab-2 .tv-map-popup__photo-link:focus-visible {
    outline: 3px solid #b47800;
    outline-offset: 3px;
}
#tab-2 .tv-map-popup__photo-link { display: block; }
#tab-2 .tv-map-popup__image {
    display: block;
    width: auto;
    height: auto;
    /* Override the runtime's inline thumbnail limits at every screen size. */
    max-width: min(80px, 100%) !important;
    max-height: 60px !important;
    object-fit: contain;
    border-radius: 7px;
    margin-bottom: 12px;
}
#tab-2 .tv-map-popup__reviews {
    display: inline-block;
    margin: 0 0 10px;
    color: #365f4f;
    font-size: 13px;
}
#tab-2 .tv-map-popup__description,
#tab-2 .tv-map-popup__unavailable { margin: 0 0 14px; }
#tab-2 .tv-map-popup__profile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #ccd9cf;
    border-radius: 7px;
    color: #204f43;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
#tab-2 .tv-map-popup__profile:hover { background: #edf2e8; }
/* Keep the preview beside the details so the profile action fits on desktop. */
@media (min-width: 701px) {
    #tab-2 .tv-map-popup { display: flow-root; }
    #tab-2 .tv-map-popup__name {
        min-height: 36px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    #tab-2 .tv-map-popup__phone {
        margin-bottom: 10px;
        padding-block: 8px;
    }
    #tab-2 .tv-map-popup__image {
        margin: 0;
    }
    #tab-2 .tv-map-popup > .tv-map-popup__photo-link,
    #tab-2 .tv-map-popup > .tv-map-popup__image {
        float: left;
        margin: 0 12px 8px 0;
    }
    #tab-2 .tv-map-popup__photo-link { width: 80px; }
    #tab-2 .tv-map-popup__reviews {
        margin-bottom: 4px;
        line-height: 1.4;
    }
    #tab-2 .tv-map-popup__description {
        display: flow-root;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    #tab-2 .tv-map-popup__profile {
        clear: both;
        min-height: 44px;
        padding-block: 8px;
    }
}
