/**
 * Home Page Location Search — styles for the Google Places replacement field.
 *
 * Loaded only when Location Search Source = Google Places.
 *
 * Layout fix: the parent lays the header search fields + Search button out in a
 * flex row. A native <select> (Select2) shrinks to `min-width:0`, but a text
 * <input> defaults to `min-width:auto` (a large intrinsic size), so it refuses
 * to shrink and forces all the flex overflow onto the Search button — which
 * then wraps "Search" onto a second line and gets clipped at its fixed height.
 * Giving our input `min-width:0` (so it shrinks like the old select) and
 * pinning the button (`nowrap` + no shrink) restores the original layout.
 */

.adt-hero-search-tabs .search-filters-bar .filter-box .adforest-places-input {
    width: 100%;
    min-width: 0;          /* shrink like the original Select2 field */
    box-sizing: border-box;
}

.adt-hero-search-tabs .search-filters-bar .search-button {
    white-space: nowrap;   /* keep "Search" on one line */
    flex-shrink: 0;        /* don't let the button get squeezed/clipped */
}

/* Error state: shown when Google Maps can't load (missing/invalid API key).
   We never fall back to the custom dropdown in Google mode. */
.adforest-places-input.adforest-places-input--error {
    border-color: #e02b2b !important;
    background-color: #fff5f5 !important;
    color: #b91c1c !important;
    cursor: not-allowed;
}

.adforest-places-error {
    display: block;
    margin-top: 6px;
    color: #e02b2b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}
