/* Shared PWA location suggestions and Google Places widget surfaces. */
.tt-places-widget {
    display: block;
    width: 100%;
    color-scheme: dark;
    --gmpx-color-surface: #17191c;
    --gmpx-color-on-surface: #f3f4f6;
    --gmpx-color-on-surface-variant: #9ca3af;
    --gmpx-color-primary: #bfc4cc;
    --gmpx-color-outline: #30343a;
    --gmpx-font-family-base: inherit;
    --gmpx-font-size-base: 0.875rem;
}
.tt-places-widget::part(input) {
    background: #17191c;
    border: 1px solid #30343a;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    min-height: 50px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}
.tt-places-widget::part(input):focus {
    border-color: #626b77;
    box-shadow: none;
}

/* Keep legacy suggestions inside the field's scrolling container. */
.tt-places-anchor { position: relative; flex: 1; min-width: 0; }
.tt-places-anchor > .tt-places-popup {
    z-index: 10070;
    max-height: min(280px, 40dvh);
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 4px 0;
    background: #17191c;
    border: 1px solid #30343a;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    font-family: inherit;
}
.tt-places-popup .pac-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 2px;
    min-height: 48px;
    padding: 8px 14px;
    border-top: 1px solid #30343a;
    color: #9ca3af;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}
.tt-places-popup .pac-item:first-child { border-top: 0; }
.tt-places-popup .pac-item-query { grid-column: 2; grid-row: 1; color: #f3f4f6; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.tt-places-popup .pac-item > span:not(.pac-icon):not(.pac-item-query) { grid-column: 2; grid-row: 2; overflow: hidden; text-overflow: ellipsis; }
.tt-places-popup .pac-matched { font-weight: 600; }
.tt-places-popup .pac-item:hover,
.tt-places-popup .pac-item-selected { background: #24272c; }
.tt-places-popup .pac-icon { grid-column: 1; grid-row: 1 / 3; align-self: center; margin: 0; }
.tt-places-anchor > .pac-logo::after {
    /* Use Google's supplied dark-surface artwork, including its light text. */
    filter: none;
    opacity: 1;
    background-color: #17191c;
    background-image: url('https://maps.gstatic.com/mapfiles/api-3/images/powered-by-google-on-non-white3.png') !important;
    background-size: 120px 15px !important;
    background-repeat: no-repeat;
    background-position: right 12px center !important;
    height: 26px;
    padding: 0;
    margin-top: 0;
    border-top: 1px solid #30343a;
}

