/* Autocomplete de país — Marketplace y Mapa */
.country-filter {
    position: relative;
    min-width: 0;
    flex: 1 1 9rem;
}

.country-filter__combo {
    position: relative;
    display: flex;
    align-items: stretch;
}

.country-filter__input {
    width: 100%;
    min-width: 0;
    padding-right: 2rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.country-filter__clear {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
}

.country-filter__clear:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.country-filter__suggestions {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.18);
    max-height: 14rem;
    overflow-y: auto;
}

.country-filter__option {
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.country-filter__option:hover,
.country-filter__option:focus {
    background: #F3FFFA;
}

.country-filter__option-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
}

.country-filter__option-local {
    font-size: 0.75rem;
    color: #64748b;
}

.map-field--country .country-filter {
    width: 100%;
}

.map-field--country .country-filter__input,
.map-filters .country-filter__input {
    width: 100%;
    background: #f8fafc;
}

.map-filters .country-filter__input:focus {
    background: #fff;
}

.market-search--compact .country-filter {
    flex: 1 1 10rem;
}
