.top-menu:has(.city-find) { position: relative; z-index: 55; }
.top-menu > .wrapper:has(.city-find) { position: relative; overflow: visible; min-height: 100%; }
.city-find-disclosure { --submit-width: 68px; --close-width: 33px; float: right; position: relative; max-width: calc(100% - 78px); }
.city-find-disclosure[open] { width: clamp(240px, 24vw, 340px); }
.city-find-toggle { list-style: none; cursor: pointer; }
.city-find-toggle::-webkit-details-marker { display: none; }
.city-find-disclosure:not([open]) .city-find-dismiss, .city-find-disclosure[open] .city-find-open { display: none; }
.city-find-disclosure[open] .city-find-toggle {
    position: absolute; right: var(--submit-width); top: 2px; width: var(--close-width); height: 35px; z-index: 1;
    display: grid; place-items: center; color: #61464f; border-radius: 50%;
}
.city-find-dismiss { display: grid; place-items: center; width: 14px; height: 14px; }
.city-find-dismiss::before, .city-find-dismiss::after {
    content: ""; grid-area: 1 / 1; width: 14px; height: 2px; background: currentColor; transform: rotate(45deg);
}
.city-find-dismiss::after { transform: rotate(-45deg); }
.city-find {
    display: flex; align-items: center; gap: 4px; box-sizing: border-box; width: 100%;
    height: 35px; padding: 0 0 0 12px; margin: 2px 0; border: 1px solid #dc1e54; border-radius: 4px; background: #fff; color: #30141b;
}
.city-find-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.city-find:has(input:focus-visible) { outline: 1px solid #821232; outline-offset: -1px; }
.city-find-toggle:focus-visible, .city-find__submit:focus-visible { outline: 1px solid #702d46; outline-offset: -2px; }
.city-find .city-find__submit {
    flex: none; width: var(--submit-width); align-self: stretch; box-sizing: border-box; margin: -1px -1px -1px var(--close-width); border-radius: 4px;
    font-family: inherit; font-size: 14px; font-weight: 600; line-height: 25px;
    text-transform: none; box-shadow: none; padding: 0 10px; cursor: pointer;
}
.city-find input[type=search] { width: 100%; min-width: 0; height: 100%; border: 0; padding: 0; margin: 0; background: transparent; box-shadow: none; font: inherit; font-size: 16px; color: #28171d; outline: 0; }
.city-find-panel[hidden], .city-find-disclosure:not([open]) ~ .city-find-panel { display: none; }
.city-find-panel {
    position: absolute; top: calc(100% + 6px); left: 15px; right: 15px; z-index: 80;
    box-sizing: border-box; overflow: auto; max-height: min(75vh, 620px);
    clip-path: inset(0 -30px -30px); background: #fff; color: #34272c; box-shadow: 0 8px 24px #34132129; border-radius: 0 0 6px 6px;
}
.city-find-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; padding: 14px 24px; }
.city-find-panel .city-hit, .city-results .city-result {
    display: flex; align-items: flex-start; text-decoration: none; border: 0; color: #30151a;
    gap: 12px; min-width: 0; overflow-wrap: anywhere;
}
.city-find-panel .city-hit { align-items: center; min-height: 45px; }
.city-hit__image { flex: none; width: 56px !important; height: 56px !important; object-fit: cover; border-radius: 5px; }
.city-station-icon { flex: none; display: grid; place-items: center; background: #f7f3f4; border-radius: 5px; }
.city-station-icon::before { content: ""; width: 26px; height: 24px; background: url(/assets/img/transport_icons_m.png) no-repeat 0 -1px; }
.city-station-icon--transport::before { background-position: 0 -26px; }
.city-result > .city-station-icon { width: 144px; height: 84px; }
.city-hit strong, .city-hit small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.city-hit strong { font-size: 16px; line-height: 1.25; }
.city-hit small { margin-top: 3px; font-size: 13px; color: #65595d; }
.city-find-panel .city-find-all { display: block; position: sticky; bottom: 0; background: #fff; padding: 13px 24px; border: 0; border-top: 1px solid #eee3e7; color: #a51850; font-size: 16px; text-decoration: none; }
.city-find-status { margin: 20px 24px; }
.city-results h1 { margin: 0 0 4px; }
.city-results .city-results__count { margin: 0 0 20px; color: #62565b; font-size: 14px; }
.city-results__pages { display: flex; align-items: center; gap: 12px; }
.city-results__filters { margin-bottom: 20px; }
.city-results .city-results__group { margin: 0 0 28px; }
.city-results .city-results__group > h2 { font-size: 25px; margin: 0 0 16px; }
.city-results .city-result { gap: 20px; margin-bottom: 20px; }
.city-results .city-result > img { flex: none; width: 144px !important; height: auto !important; max-height: 144px; object-fit: contain; object-position: top left; border-radius: 2px; }
.city-results mark { color: #a3134b; background: transparent; font-weight: 600; }
.city-result__copy { min-width: 0; flex: 1; }
.city-results .city-result h3 { margin: 2px 0 7px; font-size: 23px; line-height: 1.2; color: inherit; }
.city-results .city-result p { margin: 5px 0; font-size: 15px; line-height: 1.42; }
.city-meta__past { color: #b32635; }
.city-meta__ongoing { color: #246b38; }
.city-result__meta { color: #62565b; }
.city-result__snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #413237; }
.city-hit:hover strong, .city-result:hover h3 { text-decoration: underline; }
.city-results__pages { margin: 18px 0; }
@media (max-width: 760px) {
    .city-find-disclosure[open] { width: min(76%, 340px); }
    .city-find-panel { left: 0; right: 0; max-height: min(76vh, 650px); max-height: min(76dvh, 650px); }
    .city-find-list { padding: 12px 16px; }
    .city-find-panel .city-find-all { position: sticky; bottom: 0; background: white; padding: 12px 16px; }
    .city-results .city-result { gap: 13px; margin-bottom: 18px; }
    .city-result > .city-station-icon { width: 84px; height: 64px; }
    .city-results .city-result > img { width: 84px !important; max-height: 84px; }
    .city-results .city-result h3 { font-size: 18px; }
    .city-results .city-result p { font-size: 14px; }
    .city-results .city-result__snippet { display: none; }
}
.city-find input::-webkit-search-cancel-button { -webkit-appearance: none; }
.city-find-panel .city-find-correction {
    display: block; margin: 12px 16px 0; padding: 4px 8px; background: transparent;
    border: 0; box-shadow: none; color: #86133f; font: inherit; text-shadow: none; cursor: pointer; text-decoration: underline; text-transform: none;
}

@media (max-width: 440px) {
    .top-menu > .wrapper:has(.city-find-disclosure[open]) > :is(.text-size, .top-menu__button_show, .top-menu__button_hide, .top-menu__links) { display: none; }
    .city-find-disclosure[open] { width: 100%; max-width: none; }
}
@media (max-width: 360px) {
    .city-find-disclosure { --close-width: 27px; --submit-width: 55px; }
    .city-find { padding-left: 7px; }
    .city-find .city-find__submit { padding-inline: 5px; }
    .city-find input::placeholder { font-size: 14px; }
}

.city-hit__image.city-restaurant-icon, .city-results .city-result > img.city-restaurant-icon {
    background: #f7f3f4; object-fit: none; object-position: center; border-radius: 5px;
}
.city-results .city-result > img.city-restaurant-icon { height: 84px !important; }
@media (max-width: 760px) {
    .city-results .city-result > img.city-restaurant-icon { height: 64px !important; }
}
@media (max-width: 440px) {
    .city-find-disclosure:not([open]) > .city-find-toggle {
        float: none; display: block; max-width: 100%; box-sizing: border-box;
        padding-inline: 28px 10px; background-position: 8px center;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
}
@media (max-width: 360px) {
    .city-find-disclosure:not([open]) > .city-find-toggle { font-size: 13px; }
}
