/* City spotlight — command-palette style (Fuse.js search) */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.city-spotlight {
    align-items: flex-start;
    display: none;
    font-family: 'Montserrat', sans-serif;
    inset: 0;
    justify-content: center;
    padding: max(16px, 8vh) 16px 24px;
    position: fixed;
    z-index: 10050;
}

.city-spotlight,
.city-spotlight__search,
.city-spotlight__item,
.city-spotlight__group-title,
.city-spotlight__empty,
.city-spotlight__footer,
.city-spotlight__close {
    font-family: 'Montserrat', sans-serif;
}

.city-spotlight .bi {
    font-family: bootstrap-icons !important;
}

.city-spotlight.is-open {
    display: flex;
}

.city-spotlight__backdrop {
    backdrop-filter: blur(4px);
    background: rgba(15, 25, 30, 0.52);
    inset: 0;
    position: absolute;
    z-index: 0;
}

.city-spotlight__dialog {
    background: #fff;
    border: 1px solid rgba(15, 25, 30, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    isolation: isolate;
    max-height: min(78vh, 560px);
    max-width: 560px;
    overflow: hidden;
    position: relative;
    transform-origin: top center;
    width: 100%;
    z-index: 2;
}

.city-spotlight.is-open .city-spotlight__dialog {
    animation: citySpotlightIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes citySpotlightIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.city-spotlight__search-row {
    align-items: center;
    border-bottom: 1px solid #eceff1;
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    padding: 18px 20px;
}

.city-spotlight__search-icon {
    color: #8a9399;
    flex-shrink: 0;
    font-size: 21px;
    line-height: 1;
}

.city-spotlight__search {
    background: transparent;
    border: none;
    color: #0f191e;
    flex: 1;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
    min-width: 0;
    outline: none;
    padding: 0;
}

.city-spotlight__search::placeholder {
    color: #8a9399;
    font-weight: 400;
}

.city-spotlight__close {
    align-items: center;
    background: #f1f3f5;
    border: none;
    border-radius: 50%;
    color: #0f191e;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    height: 40px;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
    width: 40px;
}

.city-spotlight__close .bi {
    font-size: 20px;
    line-height: 1;
}

.city-spotlight__close:hover {
    background: #e8ecef;
    color: #ff0000;
}

.city-spotlight__list {
    border-bottom: 1px solid #eceff1;
    flex-shrink: 0;
    padding: 4px 8px 12px;
}

.city-spotlight__pinned[hidden] {
    display: none !important;
}

.city-spotlight__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

.city-spotlight__group-title {
    color: #8a9399;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 8px 10px 6px;
    text-transform: uppercase;
}

.city-spotlight__item {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #0f191e;
    cursor: pointer;
    display: flex;
    font-family: 'Montserrat', sans-serif;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
    transition: background 0.12s ease;
    width: 100%;
}

.city-spotlight__item:hover,
.city-spotlight__item.is-highlighted {
    background: #f4f6f8;
}

.city-spotlight__item.is-active {
    background: #fff4f4;
}

.city-spotlight__item.is-active .city-spotlight__item-name {
    color: #ff0000;
    font-weight: 600;
}

.city-spotlight__item-body {
    flex: 1;
    min-width: 0;
}

.city-spotlight__item-name {
    color: #0f191e;
    display: block;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
}

.city-spotlight__item-region {
    color: #8a9399;
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-spotlight__item-check {
    color: #ff0000;
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 700;
    opacity: 0;
}

.city-spotlight__item.is-active .city-spotlight__item-check {
    opacity: 1;
}

.city-spotlight__empty {
    color: #8a9399;
    font-size: 17px;
    font-weight: 400;
    margin: 24px 12px;
    text-align: center;
}

.city-spotlight__footer {
    border-top: 1px solid #eceff1;
    color: #8a9399;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    padding: 12px 18px;
    text-align: center;
}

html.is-city-picker-open {
    overflow: hidden;
}

.navbar__city-btn.is-open {
    color: #0d5cf9 !important;
}

.city_dropdown-btn.js-open-city-picker {
    cursor: pointer;
}

@media screen and (min-width: 680px) {
    .city-spotlight {
        align-items: stretch;
        justify-content: center;
        padding: 0;
    }

    .city-spotlight__dialog {
        border-left: 1px solid rgba(15, 25, 30, 0.08);
        border-radius: 0;
        border-right: 1px solid rgba(15, 25, 30, 0.08);
        border-top: none;
        border-bottom: none;
        box-shadow: 0 0 48px rgba(0, 0, 0, 0.18);
        height: 100vh;
        height: 100dvh;
        max-height: none;
        max-width: 600px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .city-spotlight.is-open .city-spotlight__dialog {
        animation: citySpotlightDesktopIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes citySpotlightDesktopIn {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media screen and (max-width: 679px) {
    .city-spotlight {
        align-items: stretch;
        padding: 0;
    }

    .city-spotlight__dialog {
        border: none;
        border-radius: 0;
        max-height: 100vh;
        max-height: 100dvh;
        max-width: none;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .city-spotlight.is-open .city-spotlight__dialog {
        animation: citySpotlightMobileIn 0.24s ease;
    }

    @keyframes citySpotlightMobileIn {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
