.hitek-city-modal {
    display: none;
}

.hitek-city-modal.is-open {
    display: block;
}

body.hitek-modal-open {
    overflow: hidden;
}

/* =========================================================
   HITEK CITY HEADER
   ========================================================= */
#mobileheader .hitek-city,
#header .hitek-city {
    appearance: none;
    display: flex;
    gap: 6px;
    color: var(--hr-header-text);
    font: inherit;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
}

#mobileheader .hitek-city {
    align-items: center;
}


#header .hitek-city {
    background: transparent;
    border: 1px solid var(--hr-header-border-dark);
    border-radius: 15px;
    padding: 7px 10px;
    margin: 0 9px 0 0;
    align-items: flex-start;
}

/* Icon */

#mobileheader .hitek-city .hitek-city__icon,
#header .hitek-city .hitek-city__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--hr-accent);
}

#mobileheader .hitek-city .hitek-city__icon svg,
#header .hitek-city .hitek-city__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}


/* Content */
#mobileheader .hitek-city .hitek-city__content,
#header .hitek-city .hitek-city__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}


/* Label */
#mobileheader .hitek-city .hitek-city__label,
#header .hitek-city .hitek-city__label {
    display: block;
    margin: 0;
    color: var(--hr-header-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 13px;
}


/* Value row */
#mobileheader .hitek-city .hitek-city__value-row,
#header .hitek-city .hitek-city__value-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--hr-header-text);
    transition: color .15s ease;
}


/* City */
#mobileheader .hitek-city .hitek-city__value,
#header .hitek-city .hitek-city__value {
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: .5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* Arrow */
#mobileheader .hitek-city .hitek-city__arrow,
#header .hitek-city .hitek-city__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 1px;
    color: currentColor;
}

#mobileheader .hitek-city .hitek-city__arrow svg,
#header .hitek-city .hitek-city__arrow svg {
    display: block;

    width: 8px;
    height: 8px;
}


/* Hover */
#mobileheader .hitek-city:hover .hitek-city__value-row,
#header .hitek-city:hover .hitek-city__value-row {
    color: var(--hr-accent);
}

/* =========================================================
   HEADER LOADER
   ========================================================= */

.hitek-city__loader {
    display: none;
    align-items: center;
    justify-content: center;

    min-width: 120px;
    height: 31px;
}

.hitek-city__loader img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;

    animation: hitekCityLogoSpin 1.2s linear infinite;
    transform-origin: center center;
}

#header .hitek-city.is-loading .hitek-city__icon,
#header .hitek-city.is-loading .hitek-city__content,
#mobileheader .hitek-city.is-loading .hitek-city__icon,
#mobileheader .hitek-city.is-loading .hitek-city__content {
    display: none;
}

#header .hitek-city.is-loading .hitek-city__loader,
#mobileheader .hitek-city.is-loading .hitek-city__loader {
    display: inline-flex;
}

@keyframes hitekCityLogoSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   OVERLAY
   ========================================================= */

.hitek-city-modal__overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--hr-overlay);
}


/* =========================================================
   BOX
   ========================================================= */

.hitek-city-modal__box {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    width: 540px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 80px);
    box-sizing: border-box;
    padding: 28px;
    transform: translate(-50%, -50%);
    overflow: visible;
    background: var(--hr-surface);
    border-radius: 18px;
    box-shadow: var(--hr-shadow-modal);
}


/* =========================================================
   CLOSE
   ========================================================= */

.hitek-city-modal .hitek-city-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hr-text-muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease;
}

.hitek-city-modal .hitek-city-modal__close:hover {
    color: var(--hr-text);
}

.hitek-city-modal .hitek-city-modal__close svg {
    display: block;
    width: 14px;
    height: 14px;
}


/* =========================================================
   TITLE
   ========================================================= */

.hitek-city-modal .hitek-city-modal__title {
    padding-right: 42px;
    color: var(--hr-text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}


/* =========================================================
   SEARCH
   ========================================================= */

.hitek-city-modal .hitek-city-modal__search {
    position: relative;
    margin-top: 20px;
}

.hitek-city-modal .hitek-city-modal__input {
    display: block;
    width: 100%;
    height: 54px;
    box-sizing: border-box;
    padding: 0 52px 0 16px;
    border: 1px solid var(--hr-border);
    border-radius: 12px;
    outline: none;
    background: var(--hr-surface);
    color: var(--hr-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 54px;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.hitek-city-modal .hitek-city-modal__input::placeholder {
    color: var(--hr-text-muted);
}

.hitek-city-modal .hitek-city-modal__input:focus {
    background: var(--hr-surface);
    box-shadow: 0 0 0 3px rgba(201, 174, 78, .08);
}


/* Search icon */

.hitek-city-modal .hitek-city-modal__search-icon {
    position: absolute;
    top: 27px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: var(--hr-text-muted);
    pointer-events: none;
}

.hitek-city-modal .hitek-city-modal__search-icon svg {
    display: block;
    width: 30px;
    height: 30px;
}


/* =========================================================
   AUTOCOMPLETE
   ========================================================= */
.hitek-city-modal .hitek-city-modal__results {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    max-height: 290px;
    overflow-y: auto;
    border: 1px solid var(--hr-border);
    border-radius: 12px;
    background: var(--hr-surface);
    box-shadow: var(--hr-shadow-store);
    scrollbar-width: thin;
    scrollbar-color: var(--hr-scrollbar) transparent;
}

.hitek-city-modal__results:not(:empty) {
    display: block;
}

.hitek-city-modal__results::-webkit-scrollbar {
    width: 7px;
}

.hitek-city-modal__results::-webkit-scrollbar-track {
    background: transparent;
}

.hitek-city-modal__results::-webkit-scrollbar-thumb {
    background: var(--hr-scrollbar);
    border-radius: 10px;
}


/* Result */

.hitek-city-modal__result {
    appearance: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--hr-surface);
    text-align: left;
    cursor: pointer;
    transition:
        border-color .15s ease,
        background-color .15s ease;
}

.hitek-city-modal__result:hover,
.hitek-city-modal__result:focus-visible {
    background: var(--hr-surface-soft);
}

.hitek-city-modal__result-name {
    color: var(--hr-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.hitek-city-modal__result-path {
    color: var(--hr-text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}


/* =========================================================
   SEARCH STATUS
   ========================================================= */

.hitek-city-modal__status {
    margin-top: 14px;
    color: var(--hr-text-secondary);
    font-size: 14px;
    line-height: 1.4;
}


/* =========================================================
   FAVORITES
   ========================================================= */

.hitek-city-modal__favorites {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 20px;
}

.hitek-city-modal__favorites-label {
    color: var(--hr-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.hitek-city-modal__favorites-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0px;
}

.hitek-city-modal__favorite {
    appearance: none;
    padding: 6px 10px;
    border: 1px solid var(--hr-border-soft);
    border-radius: 9px;
    background: var(--hr-surface-soft);
    color: var(--hr-text-secondary);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    cursor: pointer;
    transition:
        border-color .15s ease,
        background-color .15s ease,
        color .15s ease;
}

.hitek-city-modal__favorite:hover {
    border-color: var(--hr-accent-border-hover);
    background: var(--hr-accent-soft-hover);
    color: var(--hr-text);
}


/* =========================================================
   LOADING
   ========================================================= */

.hitek-city-modal.is-loading .hitek-city-modal__box {
    pointer-events: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .hitek-city-modal .hitek-city-modal__box {
        width: calc(100vw - 24px);
        max-width: none;
        max-height: calc(100dvh - 24px);
        padding: 24px 18px;
        border-radius: 16px;
    }

    .hitek-city-modal .hitek-city-modal__title {
        font-size: 20px
    }

    .hitek-city-modal .hitek-city-modal__search {
        margin-top: 18px
    }

    .hitek-city-modal .hitek-city-modal__input {
        height: 54px;
        padding-left: 15px;
        font-size: 16px;
        line-height: 54px;
    }

    .hitek-city-modal .hitek-city-modal__results {
        max-height: min(300px, 42dvh)
    }

    .hitek-city-modal .hitek-city-modal__result {
        padding: 13px
    }

    .hitek-city-modal .hitek-city-modal__result-name {
        font-size: 16px
    }

    .hitek-city-modal .hitek-city-modal__result-path {
        font-size: 13px
    }

    .hitek-city-modal .hitek-city-modal__favorites {
        align-items: flex-start
    }

    .hitek-city-modal .hitek-city-modal__favorites-label {
        width: 100%
    }
}