@font-face {
  font-family: Manrope;
  src: url("/assets/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

.site-header {
  margin: 0;
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* На внутренних страницах поиск — часть одной композиции шапки, а не
   одинокая короткая строка под логотипом. Когда ширины уже не хватает,
   он целиком уходит на второй ряд, без сжатия между брендом и меню. */
.site-header--inner {
  position: relative;
  z-index: 50;
}

.site-header--inner .site-header-top {
  --header-search-min: 280px;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(var(--header-search-min), 420px) max-content;
  gap: 24px;
}

.site-header--inner .site-brand { justify-self: start; width: max-content; }
.site-header--inner .site-nav { justify-self: end; width: max-content; }

.site-header--inner .search-wrap {
  width: 100%;
  margin: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #082b55;
  font-family: Manrope, ui-rounded, system-ui, sans-serif;
  text-decoration: none;
}

.site-brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(2, 117, 218, .28);
  object-fit: cover;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.site-brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.site-brand-tagline {
  color: #93a8ba;
  font-size: 11.5px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: #55738f;
  font-family: Manrope, ui-rounded, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav .header-telegram {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #168fe9;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 143, 233, .22);
}

.site-nav .header-telegram:hover,
.site-nav .header-telegram:focus-visible {
  color: #fff;
  background: #087dd2;
}

.header-telegram svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.telegram-label-short { display: none; }

.site-nav .header-about {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(103, 169, 217, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  font-size: 16px;
}

.header-about-menu {
  position: relative;
  display: inline-grid;
}

.header-about-menu::after {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 8px;
  content: "";
}

.header-about-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: none;
  min-width: 154px;
  padding: 6px;
  border: 1px solid rgba(103, 169, 217, .28);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(25, 84, 131, .16);
}

.header-about-menu:hover .header-about-popover,
.header-about-menu:focus-within .header-about-popover { display: grid; gap: 2px; }

.site-nav .header-about-popover a {
  padding: 8px 9px;
  border-radius: 7px;
  color: #214968;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav .header-about-popover a:hover,
.site-nav .header-about-popover a:focus-visible { background: #e7f5ff; color: #0275da; }

/* На внутренних страницах действия не конкурируют с содержанием:
   Telegram и «О проекте» — две одинаковые спокойные круглые иконки.
   На главной фирменная синяя кнопка Telegram остаётся без изменений. */
.site-header--inner .site-nav .header-telegram,
.site-header--inner .site-nav .header-about {
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .7);
  color: #55738f;
  box-shadow: none;
}

.site-header--inner .header-telegram {
  position: relative;
  justify-content: center;
}

.site-header--inner .header-telegram .telegram-label-full,
.site-header--inner .header-telegram .telegram-label-short {
  display: none;
}

.site-header--inner .site-nav .header-telegram:hover,
.site-header--inner .site-nav .header-telegram:focus-visible,
.site-header--inner .site-nav .header-about:hover,
.site-header--inner .site-nav .header-about:focus-visible {
  background: rgba(255, 255, 255, .92);
  color: #0785e7;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #0785e7;
}

.site-brand:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid rgba(10, 139, 237, .45);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Переключатель языка — кнопка всегда с флагом Британии (это иконка
   выбора языка, а не индикатор текущего), открывает список всех 13
   языков со своими флагами. Общий для всех страниц. */
.lang-switch { position: relative; }

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(103, 169, 217, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #113a63;
  font: 800 13px/1 Manrope, sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}

.lang-button:hover { border-color: rgba(10, 139, 237, .5); }
.lang-button .flag { font-size: 16px; }
.lang-button .chev { font-size: 10px; opacity: .6; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 260px;
  padding: 10px;
  border: 1px solid rgba(103, 169, 217, .22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(11, 55, 97, .22);
}

.lang-menu[data-open] { display: grid; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 0;
  border-radius: 11px;
  background: none;
  color: #113a63;
  font: 700 13px/1.1 Manrope, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.lang-option:hover,
.lang-option[aria-current="true"] { background: #e7f5ff; }
.lang-option .flag { font-size: 15px; }

/* Поиск страны — под логотипом, слева, на каждой странице сайта. */
.search-wrap {
  position: relative;
  width: min(420px, 100%);
  margin: 18px 0 0;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(103, 169, 217, .3);
  border-radius: 999px;
  outline: 0;
  color: #103a62;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 26px rgba(17, 112, 184, .1);
  font: 800 14px/1 Manrope, sans-serif;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Keep the spam trap present, but never create off-screen RTL overflow. */
.honeypot {
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.search-input::placeholder {
  color: rgba(16, 58, 98, .38);
  font-weight: 600;
}

.search-input:focus {
  border-color: #168fe9;
  box-shadow: 0 0 0 5px rgba(22, 143, 233, .14);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 60;
  overflow: hidden auto;
  max-height: 340px;
  display: none;
  border: 1px solid rgba(103, 169, 217, .22);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(4, 40, 80, .22);
  text-align: left;
}

.search-results[data-open] { display: block; }

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: #113a63;
  font: 700 14px/1.1 Manrope, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.search-result:hover,
.search-result[data-active] { background: #eef7ff; }
.search-result .flag { font-size: 19px; }
.search-result-empty {
  padding: 14px 16px;
  color: #7f95a9;
  font-size: 13px;
}

/* Shared Telegram subscription search above every footer. */
.telegram-alert-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid rgba(83, 163, 223, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 5%, rgba(111, 202, 255, .26), transparent 38%),
    rgba(255, 255, 255, .8);
  box-shadow: 0 13px 38px rgba(25, 106, 166, .1);
  backdrop-filter: blur(15px);
}

.telegram-alert-cta .feedback-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.telegram-alert-cta h3 {
  margin: 0 0 5px;
  overflow-wrap: break-word;
  color: #0b3761;
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.telegram-alert-cta .feedback-copy p {
  max-width: 430px;
  margin: 0;
  color: #6d879e;
  font-size: 14px;
  line-height: 1.4;
}

.telegram-alert-form {
  position: relative;
  display: grid;
  flex: 1 1 470px;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  min-width: 0;
}

.telegram-alert-field { position: relative; min-width: 0; }

.telegram-alert-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #c9e1f2;
  border-radius: 15px;
  outline: 0;
  color: #103a62;
  background: #fff;
  font: 700 15px/1 Manrope, sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.telegram-alert-input::placeholder { color: #8da4b7; font-weight: 500; }
.telegram-alert-input:focus {
  border-color: #168fe9;
  box-shadow: 0 0 0 4px rgba(22, 143, 233, .12);
}

.telegram-alert-submit {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: #087fe1;
  box-shadow: 0 12px 24px rgba(4, 113, 211, .2);
  font: 800 14px/1 Manrope, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.telegram-alert-submit svg { width: 20px; height: 20px; fill: currentColor; }
.telegram-alert-submit:hover { background: #006fce; transform: translateY(-2px); }

.airport-result-copy { min-width: 0; text-align: left; }
.airport-result-copy small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #7790a5;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header--inner[data-search-fit="stacked"] .site-header-top {
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 21px;
}

.site-header--inner[data-search-fit="stacked"] .search-wrap {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* Preserve the original narrow-screen fallback when JavaScript is unavailable. */
@media (max-width: 780px) {
  .site-header--inner:not([data-search-fit]) .site-header-top {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 21px;
  }
  .site-header--inner:not([data-search-fit]) .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .site-header-top {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .site-nav {
    width: auto;
    flex: 0 0 auto;
    gap: 10px;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
  }

  .site-header--inner .site-nav {
    width: auto;
    padding-top: 0;
    border-top: 0;
  }

  .site-header--inner[data-search-fit] .site-header-top,
  .site-header--inner:not([data-search-fit]) .site-header-top { row-gap: 16px; }
  .site-header--inner .search-wrap { margin-top: 0; }

  .site-brand { min-width: 0; gap: 8px; }
  .site-brand-text { min-width: 0; }
  .site-brand-name { font-size: 18px; white-space: nowrap; }
  .site-brand-tagline { display: none; }
  .site-nav a { font-size: 12px; white-space: nowrap; }
  .site-nav .header-telegram { min-height: 34px; padding: 7px 10px; }
  .site-nav .header-about { width: 30px; height: 30px; font-size: 15px; }
  .site-header--inner .site-nav .header-telegram,
  .site-header--inner .site-nav .header-about { width: 30px; height: 30px; min-height: 0; padding: 0; }

  .site-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .lang-button { padding: 7px 9px; }
  .lang-button span:not(.flag):not(.chev) { display: none; }

  .telegram-alert-form { grid-template-columns: 1fr; }
  .telegram-alert-submit { width: 100%; }
}

@media (max-width: 440px) {
  .header-telegram .telegram-label-full { display: none; }
  .header-telegram .telegram-label-short { display: inline; }
}

@media (max-width: 300px) {
  .site-brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a { transition: none; }
}

/* Сетка карточек региона — общая для главной и страниц стран, чтобы
   вид карточек не расходился между ними. */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.region-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(103, 169, 217, .18);
  border-radius: 24px;
  color: #113a63;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 35px rgba(25, 106, 166, .09);
  text-decoration: none;
  backdrop-filter: blur(15px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.region-card:hover {
  z-index: 1;
  border-color: rgba(10, 139, 237, .42);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(17, 112, 184, .17);
}

.region-card:focus-visible {
  outline: 3px solid rgba(10, 139, 237, .45);
  outline-offset: 3px;
}

.region-card img {
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(9, 105, 184, .2);
  object-fit: cover;
  transition: transform .25s ease;
}

.region-card:hover img { transform: rotate(-2deg) scale(1.04); }

.region-name {
  display: block;
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-card--seo .region-name {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.region-detail {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #718ba3;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #0a83e4;
  background: #e7f5ff;
  font-size: 20px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.region-card:hover .arrow {
  color: #fff;
  background: #0a83e4;
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .region-grid { grid-template-columns: 1fr; gap: 10px; }

  .region-card {
    grid-template-columns: 72px minmax(0, 1fr) 32px;
    min-height: 100px;
    padding: 13px;
    border-radius: 21px;
  }

  .region-card img { width: 72px; height: 72px; }
}

/* --- Подшапка страницы региона (layout.py::region_hero) ---------------
   Одна полоса: значок с флагом, название, факты (билеты / минимальная
   цена / когда обновлялось). Живёт здесь, а не инлайном на странице —
   страниц регионов больше пятисот, дублировать в каждую нет смысла. */
.hero-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(103, 169, 217, .18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 106, 166, .10);
}

.hero-icon {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-back {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 38px;
  color: #8ea4b6;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.hero-back svg { display: block; width: 25px; height: 25px; }

.hero-back:hover { color: #0785e7; transform: translateX(-2px); }

.hero-back:focus-visible {
  outline: 3px solid rgba(10, 139, 237, .35);
  outline-offset: 2px;
  border-radius: 8px;
}

.hero-globe {
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(103, 169, 217, .22);
  background: #f1f5f8;
  color: #94a7b7;
}

.hero-globe svg { display: block; width: 100%; height: 100%; }

.subregion-intro {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px 20px;
  color: #6d879e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.subregion-intro-arrow {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #8ea4b6;
}

.hero-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* nowrap: полоса не должна переноситься на вторую строку. Если места
   мало — сперва значки заменяют слова (медиазапрос ниже), а в самом
   крайнем случае обрезается название региона (ellipsis выше). */
.hero-stat {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.stat-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 6px;
}

.stat-item:focus-visible { outline: 2px solid #0275da; outline-offset: 3px; }

.stat-item .icon { display: none; width: 19px; height: 19px; color: #93a7b8; }
.stat-item .icon svg { display: block; width: 100%; height: 100%; }

.stat-item .num {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 800;
  color: #0275da;
  line-height: 1;
}

.stat-item .txt { font-size: 12px; font-weight: 800; color: #93a7b8; }
.stat-dot { color: rgba(103, 169, 217, .4); font-size: 14px; line-height: 1; }

/* Слово-подпись уступает место значку заранее, с запасом: если ждать
   до последнего, строка успевает разъехаться на две. */
@media (max-width: 760px) {
  .stat-item .txt { display: none; }
  .stat-item .icon { display: block; width: 16px; height: 16px; }
  .hero-stat { gap: 6px; }
  .stat-item { gap: 3px; }
  .stat-item .num { font-size: 18px; }
  .stat-dot { font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-bar {
    display: grid;
    grid-template-columns: 28px 38px minmax(0, 1fr);
  }

  .hero-name {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    font-size: 18px;
    line-height: 1.2;
  }

  .hero-stat {
    grid-column: 1 / -1;
    justify-content: flex-end;
    width: 100%;
    margin-left: 0;
    padding-top: 7px;
    border-top: 1px solid rgba(103, 169, 217, .16);
  }
}

.stat-item[data-tip]:hover::after,
.stat-item[data-tip]:focus-visible::after,
.site-header--inner .header-telegram[data-tip]:hover::after,
.site-header--inner .header-telegram[data-tip]:focus-visible::after,
.header-about[data-tip]:hover::after,
.header-about[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 20;
  padding: 6px 10px;
  border-radius: 9px;
  color: #f7fbff;
  background: #0b3761;
  box-shadow: 0 10px 30px rgba(25, 106, 166, .10);
  font-size: 11.5px;
  font-weight: 700;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  white-space: normal;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.stat-item[data-tip]:hover::before,
.stat-item[data-tip]:focus-visible::before,
.site-header--inner .header-telegram[data-tip]:hover::before,
.site-header--inner .header-telegram[data-tip]:focus-visible::before,
.header-about[data-tip]:hover::before,
.header-about[data-tip]:focus-visible::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  z-index: 20;
  border: 5px solid transparent;
  border-top-color: #0b3761;
  transform: translateX(-50%);
}

/* Подсказки шапки раскрываются вниз: над иконками для пузыря нет места. */
.site-header--inner .header-telegram[data-tip]:hover::after,
.site-header--inner .header-telegram[data-tip]:focus-visible::after,
.header-about[data-tip]:hover::after,
.header-about[data-tip]:focus-visible::after {
  top: calc(100% + 9px);
  bottom: auto;
}

.site-header--inner .header-telegram[data-tip]:hover::before,
.site-header--inner .header-telegram[data-tip]:focus-visible::before,
.header-about[data-tip]:hover::before,
.header-about[data-tip]:focus-visible::before {
  top: calc(100% + 4px);
  bottom: auto;
  border-top-color: transparent;
  border-bottom-color: #0b3761;
}

.price-note { margin: 0 0 14px 20px; color: #93a7b8; font-size: 13.5px; line-height: 1.45; }
.airport-filter-note {
  margin: 0 0 14px 20px;
  color: #6d879e;
  font-size: 13.5px;
  line-height: 1.45;
}

/* Города региона: свои аэропорты крупнее и на белом, соседние — мельче
   и на сером, как второстепенные. Один ряд, переносится сам. */
.city-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
}

.airport-filter-line {
  display: flow-root;
  margin: 0 0 14px;
}
.airport-filter-line .city-row {
  display: block;
  margin: 0;
  line-height: 0;
}
.airport-filter-line .city-row .city-chip {
  margin: 0 7px 7px 0;
  vertical-align: top;
}
.airport-filter-control {
  position: relative;
  float: left;
  margin: 0 7px 0 0;
}
[dir="rtl"] .airport-filter-control {
  float: right;
  margin: 0 0 0 7px;
}
.airport-filter-toggle {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(116, 174, 207, .34);
  border-radius: 6px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 2px 8px rgba(39, 103, 153, .06);
  color: #113a63;
  cursor: pointer;
}
.airport-filter-toggle:hover,
.airport-filter-toggle[aria-expanded="true"] { color: #0275da; border-color: #8cc4ed; }
.airport-filter-toggle svg { width: 18px; height: 18px; }
.offer-filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 35;
  width: min(400px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid rgba(103, 169, 217, .28);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(25, 84, 131, .18);
}
[dir="rtl"] .offer-filter-popover {
  right: 0;
  left: auto;
}
.offer-filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #113a63; }
.offer-filter-head button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: #eef7ff; color: #52738f; font: 700 22px/1 Manrope, sans-serif; cursor: pointer; }
.offer-filter-popover fieldset { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.offer-filter-popover legend { margin-bottom: 7px; color: #6d879e; font-size: 12px; font-weight: 800; }
.offer-destination-search {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid #c9e1f2;
  border-radius: 8px;
  background: #fff;
}
.offer-destination-search input {
  box-sizing: border-box;
  flex: 1 1 86px;
  min-width: 86px;
  height: 26px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: #214968;
  background: transparent;
  font: 700 12px/1 Manrope, sans-serif;
}
.offer-destination-search:focus-within { border-color: #168fe9; box-shadow: 0 0 0 3px rgba(22,143,233,.12); }
.offer-destination-selected { display: contents; }
.offer-destination-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 4px 0 7px;
  border-radius: 6px;
  color: #214968;
  background: #e8f5ff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.offer-destination-tag button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #52738f;
  background: transparent;
  font: 800 16px/1 Manrope, sans-serif;
  cursor: pointer;
}
.offer-destination-tag button:hover,
.offer-destination-tag button:focus-visible { color: #0275da; background: #fff; }
.offer-destination-options {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 2;
  display: grid;
  max-height: 140px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #c9e1f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(25,84,131,.14);
}
.offer-destination-options[hidden] { display: none !important; }
.offer-destination-option {
  padding: 7px 8px;
  border: 0;
  border-radius: 5px;
  color: #214968;
  background: transparent;
  font: 700 12px/1.2 Manrope, sans-serif;
  text-align: left;
  cursor: pointer;
}
.offer-destination-option:hover,
.offer-destination-option:focus-visible { color: #0275da; background: #e8f5ff; }
.offer-filter-options { display: flex; overflow: hidden; border: 1px solid #c9e1f2; border-radius: 8px; }
.offer-filter-options label { position: relative; flex: 1 1 0; cursor: pointer; }
.offer-filter-options input { position: absolute; opacity: 0; pointer-events: none; }
.offer-filter-options span {
  display: grid;
  min-height: 38px;
  place-items: center;
  box-sizing: border-box;
  padding: 6px 4px;
  color: #57748e;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
.offer-filter-options label + label { border-left: 1px solid #c9e1f2; }
.offer-filter-options label:has(input:checked) span { background: #e8f5ff; color: #0275da; }
.offer-filter-airports { display: grid; gap: 7px; max-height: 180px; overflow-y: auto; }
.offer-filter-airport { display: flex; align-items: center; gap: 8px; color: #214968; font-size: 13px; font-weight: 700; cursor: pointer; }
.offer-filter-airport input { width: 16px; height: 16px; margin: 0; accent-color: #0275da; }

/* Permanent responsive filter panel above the offer grid. */
.airport-filter-line--persistent {
  display: grid;
  grid-template-areas: "airports" "filters";
  gap: 9px;
  margin: 0 0 14px;
}
.airport-filter-line--persistent .city-row { grid-area: airports; margin: 0; }
.airport-filter-line--persistent .airport-filter-control { display: contents; }
.airport-filter-line--persistent .airport-filter-toggle,
.airport-filter-line--persistent .offer-filter-head,
.airport-filter-line--persistent .offer-filter-popover fieldset:last-child { display: none; }
.airport-filter-line--persistent .offer-filter-popover {
  position: static;
  display: grid;
  grid-area: filters;
  grid-template-columns: minmax(190px, 1.3fr) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 10px 14px;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.airport-filter-line--persistent .offer-filter-popover fieldset { min-width: 0; margin: 0; }
.airport-filter-line--persistent .offer-filter-popover fieldset + fieldset {
  padding-left: 14px;
  border-left: 1px solid rgba(116, 174, 207, .24);
}
.airport-filter-line--persistent .offer-filter-popover legend {
  margin: 0 0 6px 20px;
  color: #93a7b8;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
}
.airport-filter-line--persistent .offer-destination-search {
  min-height: 38px;
  border-color: rgba(116, 174, 207, .42);
  background: rgba(255, 255, 255, .6);
}
.airport-filter-line--persistent .offer-destination-search input::placeholder {
  color: rgba(16, 58, 98, .38);
  font-weight: 600;
}
.airport-filter-line--persistent .offer-filter-options { background: rgba(255, 255, 255, .6); }
.airport-filter-line--persistent .offer-filter-options--trip { margin-top: 27px; }
.offer-filter-help {
  position: relative;
  display: inline-grid;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #7893aa;
  font: 800 10px/1 Manrope, sans-serif;
  vertical-align: 1px;
  cursor: help;
}
.offer-filter-help-tip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  z-index: 5;
  width: min(260px, 70vw);
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: #214968;
  box-shadow: 0 7px 18px rgba(25, 84, 131, .2);
  font: 600 11px/1.35 Manrope, sans-serif;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 3px);
  transition: opacity .15s ease, transform .15s ease;
  visibility: hidden;
}
.offer-filter-help:hover .offer-filter-help-tip,
.offer-filter-help:focus .offer-filter-help-tip {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}
@media (max-width: 760px) {
  .airport-filter-line--persistent .offer-filter-popover {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .airport-filter-line--persistent .offer-filter-popover fieldset + fieldset {
    padding: 0;
    border: 0;
  }
  .airport-filter-line--persistent .offer-filter-options--trip { margin-top: 0; }
}

@media (max-width: 520px) {
  .offer-filter-popover { width: min(400px, calc(100vw - 32px)); }
  .offer-filter-options span { font-size: 10px; }
}

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.airport-filter { cursor: pointer; user-select: none; }
.airport-filter input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.airport-check {
  display: none;
}
.offer[hidden] { display: none; }

.city-chip .flag { font-size: 16px; line-height: 1; }
.city-chip .name { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; color: #113a63; }

.city-chip.secondary {
  padding: 0;
}

.city-chip.secondary .flag { font-size: 11.5px; opacity: .75; }
.city-chip.secondary .name { font-size: 11.5px; font-weight: 400; color: #93a7b8; }

/* Активный аэропорт выглядит как лёгкая кнопка; выключенный остаётся
   обычной подписью, чтобы список не прыгал и аэропорт можно было вернуть. */
.city-chip.airport-filter.is-active {
  padding: 5px 10px;
  border: 1px solid var(--airport-border, rgba(103, 169, 217, .42));
  border-radius: var(--airport-radius, 9px);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 2px 8px rgba(39, 103, 153, .06);
}
.city-chip.airport-filter:not(.is-active) {
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: var(--airport-radius, 9px);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.city-chip.airport-filter.is-single {
  cursor: default;
}
.airport-filter--v1 { --airport-radius: 6px; --airport-border: rgba(116, 174, 207, .34); }
.airport-filter--v2 { --airport-radius: 9px; --airport-border: rgba(128, 181, 211, .40); }
.airport-filter--v3 { --airport-radius: 12px; --airport-border: rgba(103, 169, 217, .34); }
.airport-filter--v4 { --airport-radius: 7px; --airport-border: rgba(151, 192, 215, .46); }
.city-chip.airport-filter:hover .name,
.city-chip.airport-filter:focus-within .name { color: #0275da; }
.city-chip.airport-filter:has(input:focus-visible) {
  outline: 3px solid rgba(22, 143, 240, .2);
  outline-offset: 2px;
}
.airport-filter[data-tip] { position: relative; }
.airport-filter[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: min(320px, calc(100vw - 40px));
  padding: 8px 10px;
  border-radius: 8px;
  background: #0b3761;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .12s ease, transform .12s ease;
}
.airport-filter[data-tip]:hover::after,
.airport-filter[data-tip]:has(input:focus-visible)::after {
  opacity: 1;
  transform: translateY(0);
}

.cta-tg { display: block; width: 17px; height: 17px; fill: currentColor; }

/* --- Подшапка страницы страны (layout.py::country_hero) -------------- */
.country-name {
  margin: 0 0 5px;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -.04em;
}

.country-note { margin: 0 0 26px; color: #6d879e; font-size: 15px; }

/* --- FAQ страны/региона --------------------------------------------- */
.faq {
  margin: 38px 0 8px;
  padding: 25px 28px;
  border: 1px solid rgba(103, 169, 217, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .68);
}

.faq h2 {
  margin: 0 0 15px;
  color: #0b3761;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.faq-item { border-top: 1px solid rgba(103, 169, 217, .2); }
.faq-item:last-child { border-bottom: 1px solid rgba(103, 169, 217, .2); }
.faq-item summary {
  position: relative;
  padding: 16px 38px 16px 0;
  color: #173f66;
  font-weight: 800;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 50%;
  color: #168ff0;
  font-size: 24px;
  font-weight: 700;
  transform: translateY(-50%);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: -3px 38px 17px 0;
  color: #4d6a85;
  font-size: 14.5px;
  line-height: 1.62;
  text-wrap: pretty;
}
.faq-item p a {
  color: #0275da;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[dir="rtl"] .faq-item summary { padding-right: 0; padding-left: 38px; }
html[dir="rtl"] .faq-item summary::after { right: auto; left: 5px; }
html[dir="rtl"] .faq-item p { margin-right: 0; margin-left: 38px; }

@media (max-width: 520px) {
  .faq { margin-top: 28px; padding: 21px 18px; }
  .faq h2 { font-size: 21px; }
  .faq-item summary { padding-top: 14px; padding-bottom: 14px; }
  .faq-item p { margin-right: 18px; }
  .faq-item summary::after { right: 0; }
  html[dir="rtl"] .faq-item p { margin-left: 18px; }
  html[dir="rtl"] .faq-item summary::after { left: 0; }
}

/* --- Билетные карточки и постоянная страница ------------------------ */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid > [data-region-telegram-cta] {
  grid-column: 1 / -1;
  margin: 0;
}

.offer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 106, 166, .1);
}

.region-ticket-archive-card {
  position: relative;
  order: 3;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 99px;
  grid-template-rows: auto auto 1fr;
  column-gap: 12px;
  min-height: 220px;
  overflow: hidden;
  /* The archive belongs in the ticket grid, so it uses the same compact
     rhythm as an offer body rather than a separate promo-card scale. */
  padding: 20px 22px;
  border: 1px solid #b8d8f2;
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 30px rgba(25, 106, 166, .07);
  color: #103e6c;
  text-decoration: none;
}
.region-ticket-archive-card:hover {
  border-color: #8cc4ed;
  box-shadow: 0 14px 34px rgba(25, 106, 166, .13);
}
.region-ticket-archive-title {
  display: block;
  grid-column: 1 / -1;
  max-width: 360px;
  font-size: 25px;
  font-weight: 850;
  line-height: 1.07;
  letter-spacing: -.035em;
}
.region-ticket-archive-copy {
  display: block;
  grid-column: 1 / -1;
  max-width: 390px;
  margin-top: 25px;
  color: #557895;
  font-size: 17px;
  line-height: 1.42;
}
.region-ticket-archive-action {
  display: block;
  align-self: end;
  color: #0877d2;
  font-size: 19px;
  font-weight: 850;
  line-height: 1;
}
.region-ticket-archive-action span { font-size: 31px; vertical-align: -2px; }
.region-ticket-archive-icon {
  align-self: end;
  grid-column: 2;
  grid-row: 3;
  width: 99px;
  height: 99px;
  object-fit: contain;
  pointer-events: none;
}
.region-ticket-archive-card--full {
  grid-column: 1 / -1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  padding: 18px 128px 18px 22px;
}
.region-ticket-archive-card--full .region-ticket-archive-title {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
}
.region-ticket-archive-card--full .region-ticket-archive-copy {
  grid-column: 1;
  grid-row: 2;
  max-width: none;
  margin-top: 8px;
}
.region-ticket-archive-card--full .region-ticket-archive-action {
  grid-column: 1;
  grid-row: 3;
  margin-top: 12px;
}
.region-ticket-archive-card--full .region-ticket-archive-icon {
  position: absolute;
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  top: 50%;
  right: 22px;
  width: 88px;
  height: 88px;
  transform: translateY(-50%);
}

@media (min-width: 858px) {
  .grid:not(.ticket-showcase) > .region-ticket-archive-card:nth-child(3n + 1):last-child {
    grid-column: 1 / -1;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    padding: 18px 128px 18px 22px;
  }
  .grid:not(.ticket-showcase) > .region-ticket-archive-card:nth-child(3n + 1):last-child .region-ticket-archive-title {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
  }
  .grid:not(.ticket-showcase) > .region-ticket-archive-card:nth-child(3n + 1):last-child .region-ticket-archive-copy {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    margin-top: 8px;
  }
  .grid:not(.ticket-showcase) > .region-ticket-archive-card:nth-child(3n + 1):last-child .region-ticket-archive-action {
    grid-column: 1;
    grid-row: 3;
    margin-top: 12px;
  }
  .grid:not(.ticket-showcase) > .region-ticket-archive-card:nth-child(3n + 1):last-child .region-ticket-archive-icon {
    position: absolute;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    top: 50%;
    right: 22px;
    width: 88px;
    height: 88px;
    transform: translateY(-50%);
  }
}

@media (min-width: 521px) and (max-width: 857px) {
  .grid:not(.ticket-showcase) > .region-ticket-archive-card:nth-child(2n + 1):last-child {
    grid-column: 1 / -1;
  }
}

.offer img { display: block; width: 100%; height: auto; }
.offer h2 { margin: 0 0 6px; font-size: 17px; }
.offer-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 16px 18px 18px;
}
.caption {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 0 14px;
  font-size: 14.3px;
  line-height: 1.42;
  white-space: pre-line;
  text-wrap: pretty;
}
.caption a { color: #0275da; font-weight: 700; }
.caption > b:first-child { font-size: 16.2px; line-height: 1.3; }
.caption b { font-weight: 800; }
.offer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}
.offer-actions--icons-only { grid-template-columns: minmax(0, 1fr) 42px 42px; }
.buy {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0275da, #168ff0);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.buy:hover { background: #0163b8; }
.post {
  border-color: rgba(34, 158, 217, .35);
  background: rgba(34, 158, 217, .12);
  color: #168cc9;
  text-decoration: none;
}
.trip { margin: 0 0 10px; color: #6d879e; font-size: 13px; }
.offer-icon-action {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(2, 117, 218, .35);
  border-radius: 50%;
  background: #f4faff;
  color: #096dbf;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.offer-icon-action svg { width: 20px; height: 20px; }
.offer-icon-action:hover { border-color: #0275da; background: #e9f5ff; }
.offer-actions > .share-button:last-child { grid-column: 3; }
.offer-icon-action::after {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 9px);
  width: max-content;
  max-width: 230px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #0b3761;
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 30, 54, .2);
  content: attr(data-tip);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease;
}
.offer-icon-action:hover::after,
.offer-icon-action:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.noimage {
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0a83e4, #59c1ff);
  color: #fff;
}
.noimage span { padding: 0 16px; font-size: 20px; font-weight: 800; text-align: center; }
.noimage strong { font-size: 34px; }
.empty {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  color: #6d879e;
  text-align: center;
}
.region-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(103, 169, 217, .22);
  color: #6d879e;
  font-size: 13px;
}
.region-footer a { color: #55738f; font-weight: 800; text-decoration: none; }
.region-footer nav { display: flex; gap: 18px; }

.ticket-body {
  margin: 0;
  background: linear-gradient(180deg, #eaf4ff, #f7fbff 60%);
  color: #0b3761;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ticket-page,
.ticket-page * { box-sizing: border-box; }
.ticket-page { width: min(100% - 24px, 1100px); margin: 0 auto; padding: 24px 0 56px; }
.ticket-page main { padding-top: 20px; }
.ticket-page main + .telegram-alert-cta { margin-top: 28px; }
.ticket-breadcrumb { margin: 0 0 16px; color: #6d879e; font-size: 13px; }
.ticket-breadcrumb a { color: #55738f; font-weight: 800; text-decoration: none; }
.ticket-title {
  max-width: 880px;
  margin: 0 0 10px;
  font-size: clamp(29px, 5vw, 48px);
  letter-spacing: -.04em;
  line-height: 1.08;
  text-wrap: balance;
}
.ticket-lead {
  max-width: 760px;
  margin: 0 0 18px;
  color: #55738f;
  font-size: 16px;
  line-height: 1.55;
}
.ticket-lead strong { color: #0873c8; }
.ticket-status {
  margin: 0 0 18px;
  padding: 15px 18px;
  border-radius: 16px;
  line-height: 1.5;
}
.ticket-status--active {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(17, 151, 164, .32);
  background: rgba(220, 249, 249, .82);
  color: #116b76;
  font-weight: 800;
}
.ticket-status--has-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ticket-status--has-action .ticket-status-copy { flex: 1 1 auto; }
.ticket-status .ticket-city-guide {
  z-index: 6;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.ticket-status--expired {
  border: 1px solid rgba(210, 52, 69, .34);
  background: rgba(255, 235, 238, .9);
  color: #a31f31;
}
.ticket-status--expired span { display: block; margin-top: 3px; color: #7f4650; }
.ticket-selected--active {
  outline: 2px solid rgba(18, 159, 174, .72);
  box-shadow: 0 0 0 7px rgba(18, 159, 174, .09), 0 16px 38px rgba(16, 111, 145, .18);
}
.ticket-selected--expired {
  outline: 2px solid rgba(211, 49, 68, .76);
  box-shadow: 0 0 0 7px rgba(211, 49, 68, .08), 0 16px 38px rgba(137, 36, 51, .16);
}
.ticket-showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.ticket-showcase > article { height: 100%; }
.ticket-showcase .ticket-selected { width: 100%; }
.offer-card-image[hidden],
.ticket-image-fallback[hidden] { display: none !important; }
.ticket-best-caption-block span { display: inline-block; }
.ticket-best-caption { color: #0873c8; font-weight: 800; }
.ticket-all-dates {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid rgba(2, 117, 218, .28);
  border-radius: 12px;
  background: #eef7ff;
  color: #076bb9;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.ticket-all-dates:hover { border-color: #0275da; background: #e2f2ff; }
.ticket-story {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(103, 169, 217, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(25, 106, 166, .08);
}
.ticket-story h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.025em; }
.ticket-story-intro { margin: 0 0 15px; color: #55738f; font-size: 14px; line-height: 1.5; }
.ticket-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.ticket-facts > div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 13px;
  background: #f1f8ff;
}
.ticket-facts dt { color: #6d879e; font-size: 12px; font-weight: 750; }
.ticket-facts dd { margin: 4px 0 0; color: #0b3761; font-size: 16px; font-weight: 850; }
.ticket-selected-facts { margin-bottom: 12px; }
.ticket-selected-facts > div { padding: 9px 10px; }
.ticket-selected-facts dt { font-size: 11px; }
.ticket-selected-facts dd { font-size: 14px; }
.ticket-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 21px;
  list-style: none;
}
.ticket-timeline::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: 2px;
  border-radius: 2px;
  background: #b9dcf6;
  content: "";
}
.ticket-timeline li { position: relative; display: grid; gap: 3px; }
.ticket-timeline li::before {
  position: absolute;
  top: 6px;
  left: -20px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #168ff0;
  box-shadow: 0 0 0 1px #79bcea;
  content: "";
}
.ticket-timeline time { color: #6d879e; font-size: 12px; font-weight: 750; }
.ticket-timeline span { line-height: 1.48; }
.ticket-timeline--truncated {
  gap: 8px;
  padding-bottom: 13px;
}
.ticket-timeline--truncated::before { bottom: 8px; }
.ticket-timeline--truncated::after {
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 8px solid #168ff0;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
}
.ticket-timeline--truncated li { gap: 1px; font-size: 13px; }
.ticket-timeline--truncated time { font-size: 11px; }
.ticket-timeline--truncated li:last-child { opacity: .15; }
.ticket-timeline--truncated li,
.ticket-timeline--truncated li::before { transition: opacity .18s ease; }
.ticket-history-more {
  width: 100%;
  margin-top: 11px;
  padding: 11px 14px;
  border: 1px solid rgba(2, 117, 218, .28);
  border-radius: 12px;
  background: #eef7ff;
  color: #076bb9;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}
.ticket-history-more:hover,
.ticket-history-more:focus-visible { border-color: #0275da; background: #e2f2ff; }
.ticket-history-dialog {
  width: min(100% - 32px, 640px);
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #0b3761;
  box-shadow: 0 24px 80px rgba(0, 43, 79, .32);
}
.ticket-history-dialog::backdrop { background: rgba(4, 30, 54, .52); }
.ticket-history-dialog-panel { overflow: auto; max-height: inherit; padding: 22px; background: #fff; }
.ticket-history-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ticket-history-dialog-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.ticket-history-dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef7ff;
  color: #0b65a8;
  cursor: pointer;
  font: 400 27px/1 system-ui, sans-serif;
}
.ticket-history-dialog-close:hover,
.ticket-history-dialog-close:focus-visible { background: #dcefff; }
.ticket-ending {
  margin: 20px 0 0;
  padding: 13px 15px;
  border-radius: 13px;
  background: #fff0f2;
  color: #8d2b39;
  line-height: 1.5;
}
.ticket-story-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.ticket-story-actions .ticket-city-guide { margin-top: 0; padding-top: 0; }
.ticket-status--active + .ticket-showcase .ticket-ending {
  background: #e9fafa;
  color: #116b76;
}
.ticket-city-guide {
  position: relative;
  z-index: 4;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
}
.ticket-city-guide-trigger {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(2, 117, 218, .24);
  border-radius: 999px;
  background: #f8fcff;
  color: #086dbd;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}
.ticket-city-guide-trigger:hover,
.ticket-city-guide-trigger:focus-visible { border-color: #168ff0; background: #eef7ff; }
.ticket-status .ticket-city-guide--tour { margin: 0; padding: 0; }
.ticket-status .ticket-city-guide--tour .ticket-city-guide-trigger {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 12px;
}
.ticket-details-popover {
  position: relative;
  z-index: 6;
}
.ticket-details-trigger {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(2, 117, 218, .24);
  border-radius: 999px;
  background: #f8fcff;
  color: #086dbd;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}
.ticket-details-trigger:hover,
.ticket-details-trigger:focus-visible { border-color: #168ff0; background: #eef7ff; }
.ticket-city-guide-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #168ff0;
  color: #fff;
  font: 850 13px/1 Georgia, serif;
}
.ticket-city-guide-content {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 50%;
  z-index: 20;
  visibility: hidden;
  overflow: auto;
  width: min(520px, calc(100vw - 36px));
  max-height: min(540px, 72vh);
  padding: 18px;
  border: 1px solid rgba(2, 117, 218, .24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(8, 62, 106, .24);
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.ticket-details-content {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 22;
  visibility: hidden;
  overflow: auto;
  width: min(540px, calc(100vw - 36px));
  max-height: min(620px, 76vh);
  padding: 18px;
  border: 1px solid rgba(2, 117, 218, .24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(8, 62, 106, .24);
  color: #0b3761;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.ticket-status .ticket-details-popover { flex: 0 0 auto; }
.ticket-status .ticket-details-content {
  /* No dead strip between the trigger and the scrollable panel: the mouse
     can move into a long translated panel without closing it. */
  top: calc(100% - 1px);
  right: 0;
  bottom: auto;
}
html[dir="rtl"] .ticket-status .ticket-details-content {
  right: auto;
  left: 0;
}
.ticket-details-content .ticket-history-title { margin: 0 0 8px; font-size: 22px; }
.ticket-details-content .ticket-ending { margin-top: 15px; }
.ticket-details-city {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #dcebf6;
}
.ticket-details-city > h3 { margin: 0 0 9px; font-size: 17px; }
.ticket-details-popover.is-open .ticket-details-content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.ticket-city-guide.is-open .ticket-city-guide-content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
@media (hover: hover) and (pointer: fine) {
  .ticket-city-guide:hover .ticket-city-guide-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .ticket-details-popover:hover .ticket-details-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
.ticket-city-guide-content p { margin: 0 0 13px; }
.ticket-city-guide-content h3 { margin: 16px 0 7px; font-size: 15px; }
.ticket-city-highlights {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: city-highlight;
}
.ticket-city-highlights li {
  position: relative;
  min-height: 24px;
  padding: 2px 0 2px 34px;
}
.ticket-city-highlights li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: #eaf5ff;
  color: #0873c8;
  content: counter(city-highlight, decimal-leading-zero);
  counter-increment: city-highlight;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}
.ticket-city-sources { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 15px; }
.ticket-city-sources a { color: #55738f; font-size: 12px; font-weight: 750; }
.ticket-city-guide--tour .ticket-city-guide-content {
  position: fixed;
  top: 50%;
  bottom: auto;
  left: 50%;
  width: min(620px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 32px));
  padding: 0 16px 16px;
  transform: translate(-50%, calc(-50% + 8px));
}
.ticket-city-guide--tour.is-open::before {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(4, 30, 54, .34);
  content: "";
}
.ticket-city-guide--tour.is-open .ticket-city-guide-content,
.ticket-city-guide--tour:hover .ticket-city-guide-content {
  transform: translate(-50%, -50%);
}
.ticket-tour-guide-header {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -16px 14px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #dcebf6;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
}
.ticket-tour-guide-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}
.ticket-tour-guide-title { color: #0b3761; font-size: 19px; }
.ticket-tour-guide-close {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef7ff;
  color: #0b65a8;
  cursor: pointer;
  font: 400 25px/1 system-ui, sans-serif;
}
.ticket-tour-guide-close:hover,
.ticket-tour-guide-close:focus-visible { background: #dcefff; }
.ticket-tour-city-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.ticket-tour-city-tab {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  border: 1px solid #cfe3f3;
  border-radius: 999px;
  background: #f7fbff;
  color: #52738f;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.ticket-tour-city-tab > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e7f3fd;
  color: #0873c8;
  font-size: 11px;
  font-weight: 900;
}
.ticket-tour-city-tab > b { white-space: nowrap; }
.ticket-tour-city-tab[aria-selected="true"] {
  border-color: #168ff0;
  background: #eaf5ff;
  color: #086dbd;
}
.ticket-tour-city-tab[aria-selected="true"] > span {
  background: #168ff0;
  color: #fff;
}
.ticket-tour-city-panel[hidden] { display: none; }
.ticket-tour-city-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
.ticket-tour-city-panel--with-photo { display: block; }
.ticket-tour-city-photo {
  display: block;
  float: left;
  width: 220px;
  aspect-ratio: 1;
  height: auto;
  margin: 0 18px 12px 0;
  border-radius: 14px;
  object-fit: cover;
}
.ticket-tour-city-copy { display: block; }
.ticket-tour-city-panel--with-photo .ticket-city-highlights {
  display: block;
}
.ticket-tour-city-panel--with-photo::after {
  display: block;
  clear: both;
  content: "";
}
.ticket-tour-city-name {
  margin: 0 0 10px;
  color: #0b3761;
  font-size: 23px;
}
[dir="rtl"] .ticket-city-highlights li { padding-right: 34px; padding-left: 0; }
[dir="rtl"] .ticket-city-highlights li::before { right: 0; left: auto; }
.ticket-archive-region-link { margin: 28px 0 0; text-align: right; }
.ticket-archive-region-link a,
.ticket-archive-back a {
  color: #55738f;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.ticket-archive-page h1 { margin: 8px 0 10px; font-size: clamp(25px, 4vw, 38px); }
.ticket-archive-intro { max-width: 720px; margin: 0 0 24px; color: #55738f; line-height: 1.55; }
.ticket-archive-current > h2,
.ticket-archive-older > h2 {
  margin: 0 0 12px;
  color: #0b3761;
  font-size: 20px;
}
.ticket-archive-current > h2 small {
  margin-left: 7px;
  color: #6d879e;
  font-size: 13px;
  font-weight: 750;
}
.ticket-archive-current + .ticket-archive-current { margin-top: 26px; }
.ticket-archive-older { margin-top: 26px; }
.ticket-archive-entries { margin: 0; padding: 0; list-style: none; }
.ticket-archive-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ticket-archive-nav-card {
  display: flex;
  min-width: 0;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(103, 169, 217, .24);
  border-radius: 14px;
  background: #fff;
  color: #0b65a8;
  font-size: 15px;
  text-decoration: none;
}
.ticket-archive-nav-card:hover { border-color: #168ff0; }
.ticket-archive-nav-card > strong { min-width: 0; }
.ticket-archive-nav-card > span {
  min-width: 32px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf5ff;
  text-align: center;
}
.ticket-archive-nav-card:nth-child(odd):last-child { grid-column: 1 / -1; }
.ticket-archive-fresh {
  border-color: rgba(2, 117, 218, .34);
  background: rgba(255, 255, 255, .82);
  color: #0873c8;
}
.ticket-archive-fresh > span {
  padding: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}
.ticket-archive-entries { display: grid; gap: 12px; }
.ticket-archive-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(103, 169, 217, .2);
  border-radius: 16px;
  background: #fff;
  color: #0b3761;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(25, 106, 166, .07);
}
.ticket-archive-entry img { flex: 0 0 112px; width: 112px; height: 112px; border-radius: 12px; object-fit: cover; }
.ticket-archive-entry-copy { display: grid; gap: 5px; min-width: 0; }
.ticket-archive-entry-copy > strong { font-size: 16px; }
.ticket-archive-entry-copy > span { color: #6d879e; font-size: 13px; }
.ticket-archive-entry-copy small { width: fit-content; font-weight: 800; }
.ticket-archive-entry-copy .is-active { color: #117780; }
.ticket-archive-entry-copy .is-expired { color: #b02b3c; }
.share-sheet[hidden] { display: none; }
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 30, 54, .48);
}
.share-sheet.tour-modal { padding: 10px; }
.share-sheet-panel {
  position: relative;
  width: min(100%, 390px);
  box-sizing: border-box;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 43, 79, .28);
}
.share-sheet-title { margin: 0 0 15px; font-size: 20px; }
.share-sheet-actions { display: grid; gap: 9px; }
.share-sheet-actions a,
.share-sheet-actions button {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #eef7ff;
  color: #0b65a8;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.share-sheet-close {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: #f1f3f5 !important;
  color: #55738f !important;
  font: inherit;
  cursor: pointer;
}
.tour-modal-panel {
  width: min(100%, 560px);
  padding: 52px 20px 20px;
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
}
.tour-modal-panel .share-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}
.tour-modal-panel .share-sheet-close:hover,
.tour-modal-panel .share-sheet-close:focus-visible {
  background: #e4e9ee !important;
  color: #264d6d !important;
}
.tour-modal-note {
  margin: -5px 0 17px;
  color: #7b8791;
  font-size: 14px;
  line-height: 1.45;
}
.tour-modal-list { display: grid; gap: 9px; }
.tour-modal-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(92px, 28vw, 128px);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e4edf4;
  border-radius: 14px;
  background: #f8fbfd;
}
.tour-modal-ticket-copy { display: grid; gap: 3px; min-width: 0; }
.tour-modal-ticket-copy strong {
  overflow: hidden;
  color: #0b3761;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tour-modal-ticket-copy span { color: #71869a; font-size: 13px; }
.tour-modal-ticket-action {
  display: inline-flex;
  min-height: 36px;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0275da, #168ff0);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
.tour-modal-ticket-action:hover,
.tour-modal-ticket-action:focus-visible { background: #0163b8; color: #fff; }

@media (max-width: 520px) {
  .tour-modal-ticket {
    grid-template-columns: minmax(0, 1fr) clamp(88px, 27vw, 96px);
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .region-ticket-archive-card { padding: 20px; border-radius: 24px; }
  .region-ticket-archive-copy { margin-top: 19px; font-size: 16px; }
  .region-ticket-archive-card--full {
    min-height: 220px;
    grid-template-columns: minmax(0, 1fr) 99px;
    grid-template-rows: auto auto 1fr;
    column-gap: 12px;
    padding: 20px;
  }
  .region-ticket-archive-card--full .region-ticket-archive-title,
  .region-ticket-archive-card--full .region-ticket-archive-copy {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .region-ticket-archive-card--full .region-ticket-archive-copy { margin-top: 19px; }
  .region-ticket-archive-card--full .region-ticket-archive-action {
    grid-column: 1;
    grid-row: 3;
  }
  .region-ticket-archive-card--full .region-ticket-archive-icon {
    position: static;
    align-self: end;
    grid-column: 2;
    grid-row: 3;
    width: 99px;
    height: 99px;
    transform: none;
  }
  .ticket-title { font-size: 30px; }
  .ticket-story { padding: 19px 17px; }
  .ticket-facts { grid-template-columns: 1fr; }
  .ticket-selected-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-archive-region-link { text-align: left; }
  .ticket-archive-entry { align-items: flex-start; }
  .ticket-archive-entry img { flex-basis: 82px; width: 82px; height: 82px; }
  .ticket-archive-navigation { grid-template-columns: 1fr; }
  .ticket-archive-nav-card:nth-child(odd):last-child { grid-column: auto; }
  .region-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 900px) {
  .ticket-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ticket-status--active,
  .ticket-status--has-action { align-items: flex-start; flex-direction: column; }
  .ticket-showcase { grid-template-columns: 1fr; }
  .ticket-showcase .ticket-selected { width: min(100%, 520px); margin: 0 auto; }
  .ticket-showcase > article { height: auto; }
  .ticket-city-guide-content {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: min(620px, calc(100vh - 24px));
    transform: translateY(8px);
  }
  .ticket-city-guide--tour .ticket-city-guide-content {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: none;
    transform: translateY(8px);
  }
  .ticket-tour-city-panel--with-photo { display: block; }
  .ticket-tour-city-panel--with-photo .ticket-tour-city-photo {
    float: none;
    width: min(100%, 240px);
    height: auto;
    margin: 0 auto 14px;
  }
  .ticket-tour-city-panel--with-photo .ticket-tour-city-copy { display: block; }
  .ticket-details-content {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: min(700px, calc(100vh - 24px));
    transform: translateY(8px);
  }
  .ticket-status .ticket-details-content { top: auto; right: 12px; }
  html[dir="rtl"] .ticket-status .ticket-details-content {
    right: 12px;
    left: 12px;
  }
  .ticket-city-guide:hover .ticket-city-guide-content,
  .ticket-city-guide.is-open .ticket-city-guide-content,
  .ticket-details-popover:hover .ticket-details-content,
  .ticket-details-popover.is-open .ticket-details-content { transform: none; }
}
