:root {
  --ink: #22241f;
  --deep: #1f312d;
  --canvas: #f7f6f1;
  --paper: #ffffff;
  --blue: #246579;
  --rust: #9b4a35;
  --muted: #6c6e68;
  --line: #d8d8d1;
  --soft: #ecebe5;
  --focus: #2a829b;
  --uzbek-sky: #1d9fc1;
  --uzbek-red: #b54037;
  --uzbek-green: #408b59;
  --national-thread: linear-gradient(90deg, var(--uzbek-sky) 0 31%, #f7f6f1 31% 35%, var(--uzbek-red) 35% 37%, #f7f6f1 37% 41%, var(--uzbek-green) 41% 72%, transparent 72%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font: 400 1rem/1.5 Roboto, Arial, sans-serif;
}
body.dialog-open { overflow: hidden; }
button, input, select, a { font: inherit; }
button, select { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
select:focus, select:focus-visible { outline: 0; }

.topbar {
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 13px max(20px, calc((100vw - 1260px) / 2));
  display: flex;
  align-items: center;
  gap: 34px;
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 241, .94);
  backdrop-filter: blur(14px);
}
.topbar::after {
  content: "";
  width: 112px;
  height: 3px;
  position: absolute;
  left: max(20px, calc((100vw - 1260px) / 2));
  bottom: -2px;
  background: var(--national-thread);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.24);
}
.topbar nav {
  display: flex;
  gap: 24px;
  font-size: .84rem;
  font-weight: 700;
}
.topbar nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.topbar nav a:hover { border-bottom-color: currentColor; }
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  --header-control-radius: 24px;
  --header-control-height: 44px;
}
.preferences {
  min-height: var(--header-control-height);
  padding: 3px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--header-control-radius);
  background: var(--paper);
}
.preference-select {
  min-height: 32px;
  display: flex;
  align-items: center;
}
.preference-select + .preference-select { border-left: 1px solid var(--line); }
.preference-icon {
  width: 17px;
  height: 17px;
  margin-left: 8px;
  display: grid;
  place-items: center;
  color: var(--blue);
  pointer-events: none;
}
.preference-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.preference-select select {
  height: 36px;
  min-width: 50px;
  padding: 0 26px 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.preference-select:focus-within {
  border-radius: 999px;
  background: #f2f6f5;
}
.preference-select:last-child select { min-width: 82px; }
.native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.custom-select {
  position: relative;
  z-index: 1;
  width: 100%;
  color: inherit;
  font-family: Roboto, Arial, sans-serif;
}
.custom-select.open { z-index: 1000; }
.custom-select__button {
  width: 100%;
  min-height: 49px;
  padding: 0 45px 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid #d3d6cf;
  border-radius: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #fbfaf7);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 49, 45, .04);
}
.custom-select__button:hover,
.custom-select.open .custom-select__button {
  border-color: #aeb7b3;
  box-shadow: 0 10px 24px rgba(31, 49, 45, .07);
}
.custom-select__button:focus,
.custom-select__button:focus-visible { outline: 0; }
.custom-select__button svg {
  position: absolute;
  right: 17px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.custom-select.open .custom-select__button svg { transform: rotate(180deg); }
.custom-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select__menu {
  position: absolute;
  z-index: 1001;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 220px);
  max-height: 260px;
  padding: 7px 9px 7px 7px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #aeb7b3 transparent;
  border: 1px solid rgb(220, 229, 226);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  background-clip: padding-box;
  box-shadow: 0 22px 46px rgba(31, 49, 45, .16);
}
.custom-select.opens-up .custom-select__menu { top: auto; bottom: calc(100% + 8px); }
.custom-select__menu::-webkit-scrollbar { width: 10px; }
.custom-select__menu::-webkit-scrollbar-track {
  margin: 10px 0;
  background: transparent;
}
.custom-select__menu::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 255, 255, .98);
  border-radius: 999px;
  background: #aeb7b3;
}
.custom-select__option {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.custom-select__option:hover,
.custom-select__option:focus {
  outline: 0;
  background: #f3f9fb;
  color: var(--blue);
}
.custom-select__option[aria-selected="true"] {
  color: var(--blue);
  background: #eef7f8;
}
.preference-select .custom-select {
  width: auto;
  min-width: 62px;
}
.preference-select:last-child .custom-select { min-width: 92px; }
.preference-select .custom-select__button {
  min-height: 36px;
  padding: 0 30px 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: .72rem;
  font-weight: 700;
}
.preference-select .custom-select__button svg { right: 9px; width: 13px; height: 13px; }
.preference-select .custom-select__menu {
  right: 0;
  left: auto;
  width: max(100%, 148px);
}
.saved-button {
  min-width: 64px;
  height: var(--header-control-height);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--header-control-radius);
  background: var(--paper);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.saved-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.saved-button[aria-pressed="true"] { border-color: var(--rust); color: var(--rust); }
.saved-button[aria-pressed="true"] svg { fill: currentColor; }

.intro {
  width: min(1260px, calc(100% - 40px));
  min-height: 300px;
  margin: 0 auto;
  padding: 52px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  align-items: end;
  gap: 64px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.intro-main,
.intro-side {
  position: relative;
  z-index: 1;
}
.intro-ornament {
  width: clamp(138px, 15vw, 196px);
  height: auto;
  position: absolute;
  top: 25px;
  right: clamp(0px, 4vw, 56px);
  z-index: 0;
  opacity: .13;
  filter: saturate(.82);
  transform: rotate(7deg);
  pointer-events: none;
  user-select: none;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: Roboto, Arial, sans-serif; }
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.025em;
}
h1 em { color: var(--blue); font-style: italic; font-weight: 400; }
.intro-side { padding-bottom: 5px; }
.intro-side p {
  max-width: 360px;
  margin: 0 0 23px;
  color: #454742;
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.55;
}
.intro-jump {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  font-size: .86rem;
  font-weight: 700;
}
.intro-jump::after { content: "↓"; font-weight: 400; }
.intro-jump:hover { color: var(--rust); }

.explorer {
  padding: 0 max(20px, calc((100vw - 1260px) / 2)) 86px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.explorer:has(.custom-select.open) {
  overflow: visible;
  z-index: 40;
}
.explorer::before {
  content: "";
  width: clamp(260px, 30vw, 460px);
  aspect-ratio: 1;
  position: absolute;
  right: max(-155px, calc((100vw - 1620px) / 2));
  top: 210px;
  z-index: 0;
  background: url("assets/catalog-ornament.webp") center / contain no-repeat;
  opacity: .07;
  filter: saturate(.68);
  transform: rotate(-8deg);
  pointer-events: none;
}
.explorer::after {
  content: "";
  width: clamp(180px, 23vw, 330px);
  aspect-ratio: 1;
  position: absolute;
  left: max(-130px, calc((100vw - 1580px) / 2));
  bottom: 140px;
  z-index: 0;
  background: url("assets/catalog-ornament.webp") center / contain no-repeat;
  opacity: .045;
  filter: saturate(.62);
  transform: rotate(17deg);
  pointer-events: none;
}
.explorer > * {
  position: relative;
  z-index: 1;
}
.filter-panel {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(250px, 1.7fr) repeat(4, minmax(125px, 1fr));
  align-items: end;
  gap: 14px;
  border: 1px solid #d2dcd8;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 46px rgba(31, 49, 45, .06);
}
.filter-panel label:has(.custom-select.open) { z-index: 5000; }
.filter-panel .custom-select.open { z-index: 5000; }
.filter-panel .custom-select__menu { z-index: 5001; }
.search-box {
  height: 46px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d5d7d1;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fafbf8);
}
.search-box:focus-within { border-color: #aeb7b3; box-shadow: 0 8px 24px rgba(31, 49, 45, .06); }
.search-box svg { width: 18px; flex: 0 0 auto; fill: none; stroke: var(--blue); stroke-width: 1.7; }
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
}
.search-box input::placeholder { color: #7b7d76; }
.select-field { min-width: 0; }
.select-field span {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}
.select-field select {
  width: 100%;
  height: 46px;
  padding: 0 36px 0 14px;
  border: 1px solid #d3d6cf;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfaf7);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 49, 45, .04);
}
.select-field select:hover, .select-field select:focus { border-color: #aeb7b3; box-shadow: 0 10px 24px rgba(31, 49, 45, .07); }
.reset-button {
  min-height: 46px;
  padding: 0 18px;
  border: .8px solid rgb(220, 229, 226);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
.reset-button:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.filter-actions {
  height: 46px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 11px;
}
.more-filters-button {
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d3d6cf;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.more-filters-button:hover { border-color: var(--blue); }
.more-filters-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform .18s ease;
}
.more-filters-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.advanced-filters {
  grid-column: 1 / -1;
  padding: 16px 18px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid #d8e0dc;
  border-radius: 18px;
  background: #f7faf8;
}
.advanced-filters[hidden] { display: none; }
.advanced-filters .select-field select { background: #fff; }
.section-heading {
  margin: 54px 0 25px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 4.6rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.02em;
}
.results-count {
  margin: 0 0 5px;
  color: var(--muted);
  white-space: nowrap;
  font-size: .82rem;
}
.place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: 50px;
  position: relative;
  isolation: isolate;
}
.place-grid::before {
  content: "";
  position: absolute;
  inset: -100px -72px -120px;
  z-index: 0;
  background-image:
    url("assets/catalog-ornament.webp"),
    url("assets/catalog-ornament.webp"),
    url("assets/catalog-ornament.webp"),
    url("assets/catalog-ornament.webp");
  background-repeat: no-repeat;
  background-size:
    clamp(260px, 30vw, 420px),
    clamp(220px, 26vw, 360px),
    clamp(250px, 29vw, 400px),
    clamp(205px, 23vw, 320px);
  background-position:
    50% 4%,
    4% 39%,
    96% 66%,
    48% 96%;
  opacity: .075;
  filter: saturate(.65);
  transform: rotate(-7deg);
  transform-origin: center;
  pointer-events: none;
}
.place-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(216, 216, 209, .82);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(31, 49, 45, .07);
  position: relative;
  z-index: 1;
}
.card-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 23px 23px 0 0;
  background: var(--soft);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .16s ease;
}
.place-card:hover .card-media img { transform: none; }
.heart {
  width: 37px;
  height: 37px;
  padding: 0;
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 4;
  top: 11px;
  right: 11px;
  border: 1px solid rgba(34, 36, 31, .16);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, .93);
  cursor: pointer;
}
.heart svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.heart[aria-pressed="true"] { color: #fff; background: var(--rust); border-color: var(--rust); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.gallery-tap {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 50%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery-tap-left { left: 0; }
.gallery-tap-right { right: 0; }
.gallery-tap::after { display: none; }
.gallery-tap:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.card-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.card-context {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.card-context i { display: none; }
.card-context span {
  padding: 5px 9px;
  border: 1px solid #dce5e2;
  border-radius: 999px;
  background: #f5faf9;
}
.card-kicker {
  margin: 0 0 4px;
  color: #2d6f73;
  font-size: .8rem;
  line-height: 1.35;
}
.card-title-row { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.card-title-row h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.15vw, 2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.card-title-row h3 button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.card-title-row h3 button:hover { color: var(--blue); }
.card-description {
  margin: 10px 0 16px;
  color: var(--muted);
  font-family: Roboto, Arial, sans-serif;
  font-size: .93rem;
  line-height: 1.48;
}
.card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  color: #555751;
  font-size: .71rem;
}
.card-meta > span { display: inline-flex; align-items: baseline; }
.card-meta > span + span::before { content: none; }
.card-meta > span {
  padding: 6px 9px;
  border-radius: 999px;
  border: .8px solid rgb(220, 229, 226);
  background: #fff;
}
.card-meta > .price-pill {
  color: var(--ink);
  font-weight: 700;
}
.price-pill small { margin-left: 5px; color: #7c7e78; font-size: .63rem; font-weight: 400; }
.pace-tag { color: var(--muted); }
.card-actions {
  margin-top: 16px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.map-link, .details-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.map-link svg, .details-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-link { color: var(--muted); }
.details-button { color: var(--blue); }
.map-link:hover, .details-button:hover {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.empty-state {
  max-width: 620px;
  margin: 45px auto 8px;
  padding: 38px 22px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.empty-state > span { color: var(--blue); font-size: 3rem; }
.empty-state h3 { margin: 4px 0 8px; font-size: 1.6rem; font-weight: 400; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.empty-state button { padding: 0 0 3px; border: 0; border-bottom: 1px solid; background: transparent; color: var(--blue); font-weight: 700; cursor: pointer; }

.itineraries {
  padding: 76px max(20px, calc((100vw - 1260px) / 2)) 88px;
  border-top: 1px solid #cad5d1;
  background: #eef3f1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.itineraries::before {
  content: "";
  width: 126px;
  height: 3px;
  position: absolute;
  top: -1px;
  left: max(20px, calc((100vw - 1260px) / 2));
  background: var(--national-thread);
}
.itineraries::after {
  content: "";
  width: clamp(210px, 24vw, 360px);
  aspect-ratio: 1;
  position: absolute;
  left: max(-135px, calc((100vw - 1540px) / 2));
  bottom: 32px;
  z-index: 0;
  background: url("assets/uzbek-suzani-rosette.webp") center / contain no-repeat;
  opacity: .06;
  filter: saturate(.7);
  transform: rotate(15deg);
  pointer-events: none;
}
.itineraries > * {
  position: relative;
  z-index: 1;
}
.itineraries:has(.custom-select.open) {
  z-index: 140;
  overflow: visible;
}
.routes-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: end;
  gap: 58px;
}
.routes-heading h2 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.02em;
}
.routes-heading > p {
  max-width: 410px;
  margin: 0 0 5px;
  color: var(--muted);
  font-family: Roboto, Arial, sans-serif;
  font-size: 1rem;
}
.route-tabs {
  margin-top: 34px;
  display: inline-flex;
  border: 1px solid #bfcac6;
  background: rgba(255, 255, 255, .64);
}
.route-tabs button {
  min-width: 105px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #bfcac6;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.route-tabs button:last-child { border-right: 0; }
.route-tabs button[aria-selected="true"] { color: #fff; background: var(--blue); }
.itinerary-content {
  margin-top: 24px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
  gap: 24px;
  border: 1px solid #cdd8d4;
  border-radius: 28px;
  background: rgba(255,255,255,.7);
}
.route-summary > span {
  color: var(--rust);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.route-summary h3 {
  margin: 8px 0 12px;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.03em;
}
.route-summary > p { margin: 0; color: var(--muted); font-size: .9rem; }
.route-budget {
  margin-top: 24px;
  padding: 14px 0;
  border-top: 1px solid #bfcac6;
  border-bottom: 1px solid #bfcac6;
}
.route-budget small, .route-budget span { display: block; color: var(--muted); font-size: .66rem; }
.route-budget strong { display: block; margin: 3px 0; font-size: 1.05rem; }
.route-budget em { margin-left: 9px; color: var(--muted); font-size: .72rem; font-style: normal; font-weight: 400; }
.route-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.route-day h4 {
  margin: 0 0 20px;
  color: var(--blue);
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
}
.route-day h4 span { color: var(--muted); font-family: Roboto, Arial, sans-serif; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.route-stops { margin-left: 0; display: grid; gap: 10px; border-left: 0; }
.route-stop {
  padding: 13px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 11px;
  position: relative;
  border: 1px solid #d9e1dd;
  border-radius: 18px;
  background: #fff;
}
.route-stop::before { content: none; }
.route-stop time { padding-top: 2px; color: var(--muted); font-size: .69rem; }
.route-stop button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.route-stop strong { font-size: .82rem; }
.route-stop p { margin: 7px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }

.itinerary-content.popular-route-grid {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.popular-route-card {
  min-height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: .8px solid rgb(220, 229, 226);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 44px rgba(31, 49, 45, .06);
}
.route-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.route-card-source {
  margin: 0 0 8px;
  color: var(--rust);
  font-family: Roboto, Arial, sans-serif;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.popular-route-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 2.1vw, 1.85rem);
  font-weight: 500;
  line-height: 1.06;
}
.route-photo-sequence {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr;
  align-items: center;
  gap: 7px;
  user-select: none;
  -webkit-user-select: none;
}
.route-photo-sequence figure {
  min-width: 0;
  margin: 0;
  position: relative;
  pointer-events: none;
}
.route-photo-sequence img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  pointer-events: none;
  border-radius: 18px;
  object-fit: cover;
  border: .8px solid rgb(220, 229, 226);
  background: #eef3f1;
}
.route-photo-sequence figcaption {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-family: Roboto, Arial, sans-serif;
  font-size: .64rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.route-photo-arrow {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #f3f9fb;
  font-size: 1.18rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.route-source-link {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: .8px solid rgb(220, 229, 226);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}
.route-card-lead {
  margin: 0;
  color: var(--muted);
  font-family: Roboto, Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.55;
}
.route-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.route-card-meta span {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: .8px solid rgb(220, 229, 226);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: .69rem;
  font-weight: 700;
}
.route-stop-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  list-style: none;
  counter-reset: route-stop;
}
.route-stop-list span {
  min-height: 36px;
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: start;
  gap: 8px;
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
  font-size: .78rem;
  line-height: 1.35;
}
.route-stop-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--blue);
}
.route-card-actions {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.route-card-actions a,
.route-card-actions button {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: .8px solid rgb(220, 229, 226);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.route-card-actions button {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}
.route-card-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-card-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-family: Roboto, Arial, sans-serif;
  font-size: .69rem;
}
.route-empty {
  grid-column: 1 / -1;
  padding: 38px 22px;
  border: .8px solid rgb(220, 229, 226);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  text-align: center;
}
.route-empty > span { color: var(--blue); font-size: 2.6rem; }
.route-empty h3 { margin: 4px 0 8px; font-size: 1.5rem; font-weight: 500; }
.route-empty p { margin: 0; color: var(--muted); }

footer {
  min-height: 150px;
  padding: 35px max(20px, calc((100vw - 1260px) / 2));
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 48px;
  color: #f6f5ef;
  background: var(--deep);
  position: relative;
}
footer::before {
  content: "";
  width: 128px;
  height: 3px;
  position: absolute;
  top: 0;
  left: max(20px, calc((100vw - 1260px) / 2));
  background: var(--national-thread);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #f6f5ef;
}
.footer-brand > div { display: grid; }
.footer-brand strong { font-size: .8rem; letter-spacing: .18em; }
.footer-brand small { margin-top: 5px; color: #bac4bf; }
footer > p { max-width: 620px; margin: 0; color: #bfc8c3; font-size: .78rem; }

dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(18, 25, 23, .78); backdrop-filter: blur(4px); }
.place-dialog {
  width: min(1120px, calc(100% - 34px));
  max-height: calc(100dvh - 34px);
  border-radius: 26px 0 0 26px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.dialog-shell {
  min-height: min(730px, calc(100dvh - 34px));
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  position: relative;
}
.dialog-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 49, 45, .82);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.dialog-gallery {
  min-height: 480px;
  height: min(730px, calc(100dvh - 34px));
  position: sticky;
  top: 0;
  align-self: start;
  overflow: hidden;
  background: var(--soft);
}
.dialog-gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .16s ease; }
.dialog-gallery .gallery-tap { z-index: 2; }
.dialog-content {
  padding: 48px 50px 36px 40px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.dialog-tags {
  margin-bottom: 20px;
  padding-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 0;
  color: var(--blue);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dialog-tags span {
  padding: 7px 10px;
  border: 1px solid #dce5e2;
  border-radius: 999px;
  background: #f5faf9;
}
.dialog-tags span + span::before { content: none; }
.dialog-kicker { margin: 0 0 7px; color: var(--rust); font-size: .77rem; }
.dialog-content h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.02em;
}
.dialog-lead { margin: 17px 0 22px; color: var(--muted); font-family: Roboto, Arial, sans-serif; font-size: 1rem; }
.dialog-facts { margin-bottom: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; border: 0; }
.dialog-facts div {
  min-height: 80px;
  padding: 13px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid #dfe1da;
  border-radius: 16px;
  background: #fbfaf6;
}
.detail-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #eef7f6;
  flex: 0 0 auto;
}
.detail-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dialog-facts small { display: block; color: var(--muted); font-size: .66rem; }
.dialog-facts strong { display: block; margin-top: 4px; font-size: .8rem; }
.dialog-facts a { display: inline-block; margin-top: 7px; color: var(--blue); font-size: .64rem; text-decoration: underline; text-underline-offset: 3px; }
.important-box { padding: 15px; border: 1px solid #eadbd1; border-radius: 18px; background: #f9f3ee; }
.important-box span { color: var(--rust); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.important-box p { margin: 5px 0 0; font-size: .82rem; }
.detail-columns { margin-top: 24px; display: grid; grid-template-columns: 1.3fr .9fr; gap: 28px; }
.detail-columns h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
.detail-columns p { margin: 0; color: var(--muted); font-size: .84rem; }
.detail-columns ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .82rem; }
.detail-columns li + li { margin-top: 6px; }
.practical-section { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.practical-section > h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; }
.practical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}
.practical-item {
  min-height: 92px;
  padding: 13px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid #dfe1da;
  border-radius: 16px;
  background: #fbfaf6;
}
.practical-item small { display: block; color: var(--blue); font-size: .65rem; font-weight: 700; }
.practical-item p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.42; }
.practical-updated {
  grid-column: 1 / -1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #858780;
  background: #f7f7f3;
  font-size: .65rem;
}
.dialog-actions {
  margin-top: 25px;
  padding-top: 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.dialog-actions a {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d7e1dd;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  text-decoration: none;
}
.dialog-actions a svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dialog-actions a:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.photo-credit { margin: 15px 0 0; color: #858780; font-size: .63rem; }
.photo-credit a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1180px) {
  .filter-panel { grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(145px, 1fr)); }
  .filter-actions { justify-content: flex-start; }
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .topbar { min-height: 64px; padding-inline: 14px; }
  .topbar nav { display: none; }
  .intro { width: calc(100% - 28px); min-height: 0; padding: 42px 0 43px; grid-template-columns: 1fr; gap: 25px; }
  .intro-ornament { width: 128px; top: 22px; right: 0; opacity: .09; }
  .intro-side p { margin-bottom: 16px; }
  .explorer { padding-inline: 14px; }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; }
  .search-box { grid-column: 1 / -1; }
  .filter-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .advanced-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-heading { margin-top: 40px; }
  .itineraries { padding: 58px 14px 68px; }
  .itineraries::before { left: 14px; }
  .routes-heading { grid-template-columns: 1fr; gap: 18px; }
  .itinerary-content { grid-template-columns: 1fr; gap: 32px; }
  .itinerary-content.popular-route-grid { grid-template-columns: 1fr; gap: 14px; }
  .place-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .dialog-shell {
    height: 100%;
    min-height: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .dialog-close { position: fixed; }
  .dialog-gallery { min-height: 0; height: 46dvh; position: relative; }
  .dialog-content { padding: 32px 20px 36px; overflow: visible; }
  .detail-columns { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand > span:last-child { display: none; }
  .header-tools { gap: 6px; }
  .preferences { min-height: 38px; }
  .preference-icon { width: 15px; height: 15px; margin-left: 5px; }
  .preference-icon svg { width: 15px; height: 15px; }
  .preference-select .custom-select { min-width: 46px; }
  .preference-select:first-child .custom-select__menu { left: 0; right: auto; max-width: calc(100vw - 28px); }
  .preference-select:last-child .custom-select { min-width: 70px; }
  .preference-select .custom-select__button { min-height: 34px; padding-left: 5px; padding-right: 24px; text-align: center; }
  .saved-button { min-width: 46px; height: 38px; padding-inline: 8px; }
  h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .intro-ornament { width: 104px; top: 18px; right: -12px; opacity: .075; }
  .filter-panel { grid-template-columns: 1fr 1fr; gap: 12px 9px; }
  .advanced-filters { grid-template-columns: 1fr; }
  .select-field .custom-select__button { font-size: .76rem; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: clamp(2.3rem, 11vw, 3.5rem); }
  .results-count { margin-top: 9px; }
  .place-grid { grid-template-columns: 1fr; row-gap: 46px; }
  .card-title-row h3 { font-size: 1.9rem; }
  .route-tabs { width: 100%; }
  .route-tabs button { min-width: 0; padding-inline: 10px; flex: 1; }
  .route-days { grid-template-columns: 1fr; gap: 24px; }
  .route-stop-list { grid-template-columns: 1fr; }
  .route-photo-sequence {
    grid-template-columns: 1fr 18px 1fr 18px 1fr;
    gap: 5px;
  }
  .route-photo-sequence img { border-radius: 14px; }
  .route-photo-sequence figcaption { display: none; }
  .route-photo-arrow {
    width: 18px;
    height: 18px;
    font-size: 1rem;
  }
  .route-card-actions a,
  .route-card-actions button { flex: 1 1 100%; }
  footer { grid-template-columns: 1fr; gap: 22px; }
  .dialog-gallery { height: 40dvh; }
  .dialog-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
  .filter-panel { grid-template-columns: 1fr; }
  .search-box, .filter-actions { grid-column: 1; }
  .filter-actions { height: auto; flex-wrap: wrap; }
  .more-filters-button, .reset-button { min-height: 44px; }
  .dialog-facts { grid-template-columns: 1fr; }
  .practical-grid { grid-template-columns: 1fr; }
  .practical-updated { grid-column: 1; }
  .dialog-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
