.tradel-map-search {
    position: relative;
    z-index: 1200;
    width: min(620px, 100%);
    margin: 14px auto 0;
    text-align: left;
}

.tradel-map-search__shell {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 8px 0 15px;
    border: 1px solid rgba(23, 34, 27, 0.08);
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(250, 251, 250, 0.96) 0%,
        rgba(255, 255, 255, 1) 72%
    );
    box-shadow:
        0 9px 24px rgba(23, 34, 27, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.tradel-map-search:focus-within .tradel-map-search__shell {
    border-color: rgba(3, 129, 32, 0.42);
    box-shadow:
        0 11px 28px rgba(23, 34, 27, 0.14),
        0 0 0 3px rgba(3, 129, 32, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.tradel-map-search__search-icon,
.tradel-map-search__place-icon,
.tradel-map-search__thumb {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.tradel-map-search__search-icon {
    color: #667068;
}

.tradel-map-search__input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 11px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17221b;
    font: inherit;
    font-size: 15px;
    line-height: 1;
    appearance: none;
}

.tradel-map-search__input::-webkit-search-cancel-button {
    display: none;
}

.tradel-map-search__input::placeholder {
    color: #858d87;
    font-style: italic;
    opacity: 1;
}

.tradel-map-search__clear,
.tradel-map-search__location {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5f6861;
    cursor: pointer;
}

.tradel-map-search__clear {
    width: 32px;
    height: 32px;
}

.tradel-map-search__clear[hidden] {
    display: none;
}

.tradel-map-search__location {
    width: 38px;
    height: 38px;
}

.tradel-map-search__clear:hover,
.tradel-map-search__location:hover,
.tradel-map-search__clear:focus-visible,
.tradel-map-search__location:focus-visible {
    background: rgba(3, 129, 32, 0.08);
    color: #087a4b;
    outline: none;
}

.tradel-map-search__location[aria-busy="true"] {
    opacity: 0.55;
    pointer-events: none;
}

.tradel-map-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1300;
    max-height: min(520px, calc(100vh - 190px));
    overflow-y: auto;
    padding: 7px;
    border: 1px solid rgba(23, 34, 27, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 18px 46px rgba(23, 34, 27, 0.2);
    overscroll-behavior: contain;
}

.tradel-map-search__results[hidden] {
    display: none;
}

.tradel-map-search__group-label {
    padding: 9px 11px 5px;
    color: #7b847d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.tradel-map-search__result {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 11px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 7px 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #17221b;
    text-align: left;
    cursor: pointer;
}

.tradel-map-search__result:hover,
.tradel-map-search__result:focus-visible {
    background: rgba(3, 129, 32, 0.065);
    outline: none;
}

.tradel-map-search__thumb {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 12px;
    background: #edf2ee;
    color: #6b756e;
}

.tradel-map-search__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tradel-map-search__place-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef5f0;
    color: #087a4b;
}

.tradel-map-search__result-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.tradel-map-search__result-copy strong,
.tradel-map-search__result-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradel-map-search__result-copy strong {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}

.tradel-map-search__result-copy span {
    color: #707a72;
    font-size: 12px;
    line-height: 1.3;
}

.tradel-map-search__arrow {
    color: #879088;
    font-size: 24px;
    line-height: 1;
    text-align: center;
}

.tradel-map-search__empty {
    padding: 12px 11px;
    color: #778078;
    font-size: 13px;
}

@media (max-width: 720px) {
    .browse-hero {
        margin-bottom: 18px;
    }

    .tradel-map-search {
        width: min(520px, 100%);
        margin-top: 12px;
    }

    .tradel-map-search__shell {
        min-height: 48px;
        padding-left: 14px;
    }

    .tradel-map-search__input {
        height: 46px;
        font-size: 14px;
    }

    .tradel-map-search__results {
        max-height: min(430px, calc(100vh - 170px));
        border-radius: 17px;
    }
}

@media (max-width: 420px) {
    .browse-hero {
        padding-inline: 12px;
    }

    .tradel-map-search__shell {
        padding-left: 12px;
    }

    .tradel-map-search__result {
        grid-template-columns: 40px minmax(0, 1fr) 14px;
        gap: 9px;
        padding-inline: 8px;
    }

    .tradel-map-search__thumb,
    .tradel-map-search__place-icon {
        width: 40px;
        height: 40px;
    }
}
