.location-search {
    position: relative;
    width: 100%;
    --location-accent: var(--ui-color-primary, #f4a024);
    --location-border: var(--ui-color-border, #e5e7eb);
    --location-text: var(--ui-color-text, #1f2937);
    --location-muted: var(--ui-color-text-muted, #6b7280);
    --location-surface: var(--ui-color-surface, #fff);
}

.location-search__control {
    min-height: 56px;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 8px 14px 8px 50px;
    border: 1px solid var(--location-border);
    border-radius: 4px;
    background: #f9f9f9;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.location-search.is-open .location-search__control,
.location-search__control:focus-within {
    border-color: var(--location-accent);
    box-shadow: 0 0 0 3px rgba(244, 160, 36, 0.16);
}

.location-search__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--location-muted);
    pointer-events: none;
}

.location-search__chips {
    display: contents;
}

.location-search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 32px;
    padding: 4px 7px 4px 11px;
    border-radius: 7px;
    background: #fff4e4;
    border: 1px solid #f7c77f;
    color: var(--location-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.location-search-chip__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-search-chip__remove {
    width: 23px;
    height: 23px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--location-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.location-search-chip__remove:hover,
.location-search-chip__remove:focus-visible {
    color: var(--location-text);
    background: rgba(15, 23, 42, 0.07);
}

.location-search__input {
    flex: 1 1 160px;
    width: auto !important;
    min-width: 120px;
    height: 38px !important;
    padding: 0 2px !important;
    margin: 0 !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--location-text) !important;
}

.location-search__input::placeholder {
    color: #9ca3af;
}

.location-search__dropdown {
    display: none;
    position: absolute;
    z-index: 1100;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid var(--location-border);
    border-radius: 10px;
    background: var(--location-surface);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.location-search.is-open .location-search__dropdown {
    display: block;
}

.location-search__status {
    min-height: 36px;
    padding: 10px 14px 7px;
    color: var(--location-muted);
    font-size: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.location-search__menu {
    display: flex;
    flex-direction: column;
    padding: 4px 0 7px;
}

.location-search-option {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
    text-align: left;
    cursor: pointer;
    color: var(--location-text);
}

.location-search-option:hover,
.location-search-option.is-active,
.location-search-option:focus-visible {
    background: #fff8ee;
    outline: none;
}

.location-search-option__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.location-search-option__label {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-search-option__context {
    color: var(--location-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-search-option__meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.location-search-option__type {
    flex: 0 0 auto;
    color: var(--location-accent);
    font-size: 12px;
    font-style: italic;
    font-weight: 700;
}

.hero_home_search .location-search__control {
    min-height: 56px;
}

@media (max-width: 767px) {
    .location-search__control {
        padding-left: 48px;
    }

    .location-search__dropdown {
        max-height: 280px;
    }

    .location-search-option {
        padding: 10px 12px;
    }
}

.location-search-option__distance {
    color: var(--location-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.location-search-section + .location-search-section {
    border-top: 1px solid #f1f5f9;
}

.location-search-section__title {
    padding: 9px 14px 5px;
    color: var(--location-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.location-search-option__count {
    color: var(--location-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
