.cityname {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid #ece7dc;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(21, 25, 33, 0.12);
    z-index: 9999;
    display: none;
}

.cityname.visible {
    display: block;
}

.cityname__inner {
    padding: 16px;
}

#searchInput {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #e3c98a;
    border-radius: 12px;
    background: #fffdfa;
    color: #1f2937;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: .2s ease;
}

#searchInput::placeholder {
    color: #8b8f97;
}

#searchInput:focus {
    border-color: #d9a400;
    box-shadow: 0 0 0 3px rgba(217, 164, 0, 0.10);
    background: #fff;
}

.cityname__results {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    max-height: 360px;
    overflow-y: auto;
}

.cityname__results::-webkit-scrollbar {
    width: 8px;
}

.cityname__results::-webkit-scrollbar-thumb {
    background: #d8d8d8;
    border-radius: 10px;
}

.cityname__results::-webkit-scrollbar-track {
    background: transparent;
}

.cityname__item {
    border-bottom: 1px solid #f1f1f1;
}

.cityname__link:hover .cityname__title {
    color: #d9a400;
}

.cityname__item:last-child {
    border-bottom: none;
}

.cityname__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 13px 14px;
    text-decoration: none;
    color: #121826;
    border-radius: 12px;
    transition: background .2s ease, color .2s ease;
}

.cityname__link:hover {
    background: #fff7e3;
}

.cityname__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.cityname__title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0ab10;
    flex: 0 0 8px;
}

.cityname__empty {
    padding: 14px;
    font-size: 14px;
    color: #777;
}

@media (max-width: 767px) {
    .cityname {
        top: 60px;
        width: calc(100vw - 16px);
        border-radius: 14px;
    }

    .cityname__inner {
        padding: 12px;
    }

    .cityname__link {
        padding: 12px;
    }
}