:root {
  --sand: #efe6d4;
  --sand-soft: #faf6ee;
  --blue-soft: #eaf3f4;
  --green: #2f7653;
  --shadow-soft: 0 18px 50px rgba(31, 49, 45, .08);
}

html { scroll-padding-top: 88px; overflow-x: clip; touch-action: manipulation; }
body { overflow-x: clip; touch-action: manipulation; }
img { user-select: none; -webkit-user-drag: none; }
.topbar {
  background: #f7f6f1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.trip-header-button {
  min-width: 64px;
  height: var(--header-control-height, 44px);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--header-control-radius, 24px);
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}
.trip-header-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.trip-header-button span { min-width: 10px; font-size: .73rem; font-weight: 700; }

.quick-planner,
.more-directory {
  padding: 70px max(20px, calc((100vw - 1260px) / 2));
}
.quick-planner {
  color: #f7f5ed;
  background: var(--deep);
  position: relative;
  isolation: isolate;
  overflow: visible;
  z-index: 3;
}
.quick-planner:has(.custom-select.open) { z-index: 5000; }
.quick-planner::before {
  content: "";
  width: clamp(180px, 21vw, 310px);
  aspect-ratio: 1;
  position: absolute;
  left: max(-115px, calc((100vw - 1520px) / 2));
  bottom: -110px;
  z-index: 0;
  background: url("assets/uzbek-suzani-rosette.webp") center / contain no-repeat;
  opacity: .08;
  filter: saturate(.55) brightness(1.7);
  transform: rotate(-18deg);
  pointer-events: none;
}
.quick-planner::after {
  content: "";
  width: 320px;
  aspect-ratio: 1;
  position: absolute;
  right: max(-110px, calc((100vw - 1500px) / 2));
  top: -120px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 72px rgba(255,255,255,.018);
  pointer-events: none;
}
.planner-heading { max-width: 760px; position: relative; z-index: 1; }
.planner-heading .eyebrow { color: #efad92; }
.planner-heading h2,
.travel-heading h2,
.directory-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 4.35rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.02em;
}
.planner-heading > p:last-child { max-width: 560px; margin: 18px 0 0; color: #cbd6d1; font-family: Roboto, Arial, sans-serif; }
.planner-form {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  position: relative;
  z-index: 20;
}
.planner-form label:has(.custom-select.open),
.route-builder-controls label:has(.custom-select.open),
.sort-field:has(.custom-select.open) {
  position: relative;
  z-index: 1000;
}
.planner-form label,
.route-builder-controls label {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.planner-form label > span,
.route-builder-controls label > span,
.sort-field > span {
  font-size: .66rem;
  font-weight: 700;
}
.planner-form label > span { color: #bfcac5; }
.planner-form select,
.route-builder-controls select,
.sort-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  color: inherit;
  background: rgba(255,255,255,.11);
  font: inherit;
  font-size: .77rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.planner-form select:focus,
.route-builder-controls select:focus,
.sort-field select:focus {
  border-color: rgba(255,255,255,.42);
  outline: 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.planner-form select option { color: var(--ink); background: #fff; }
.planner-form .custom-select__button,
.route-builder-controls .custom-select__button {
  min-height: 46px;
  border-color: rgba(255,255,255,.28);
  border-radius: 16px;
  color: inherit;
  background: rgba(255,255,255,.11);
  font-size: .77rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.planner-form .custom-select__button:hover,
.planner-form .custom-select.open .custom-select__button,
.route-builder-controls .custom-select__button:hover,
.route-builder-controls .custom-select.open .custom-select__button {
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.planner-form .custom-select__menu,
.route-builder-controls .custom-select__menu {
  border-color: rgba(220, 229, 226, .28);
  color: var(--ink);
  background: rgba(255, 255, 255, .98);
}
.planner-submit,
.route-builder-controls > button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #efad92;
  border-radius: 999px;
  color: #241f1b;
  background: #efad92;
  font-weight: 700;
  cursor: pointer;
}
.collection-strip {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.collection-chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #e6ece9;
  background: transparent;
  font-size: .72rem;
  cursor: pointer;
}
.collection-chip:hover,
.collection-chip[aria-pressed="true"] { color: var(--deep); background: #fff; border-color: #fff; }

.catalog-toolbar {
  --catalog-control-radius: 18px;
  min-height: 54px;
  margin-bottom: 20px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfaf6;
  position: relative;
  z-index: 12;
}
.catalog-toolbar:has(.custom-select.open) { z-index: 5000; }
.view-switch {
  min-height: 38px;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--catalog-control-radius);
  background: #fff;
}
.view-switch button,
.quiet-tool {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.view-switch button + button { border-left: 1px solid var(--line); }
.view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.view-switch-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.view-switch button:first-child { border-radius: calc(var(--catalog-control-radius) - 1px) 0 0 calc(var(--catalog-control-radius) - 1px); }
.view-switch button:last-child { border-radius: 0 calc(var(--catalog-control-radius) - 1px) calc(var(--catalog-control-radius) - 1px) 0; }
.view-switch button.is-active { color: #fff; background: var(--blue); }
.quiet-tool { display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; }
.quiet-tool[hidden] { display: none; }
.catalog-filter-link { display: none; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); background: #fff; text-decoration: none; font-size: .78rem; font-weight: 700; }
.quiet-tool:hover,
.quiet-tool[aria-pressed="true"] { color: var(--blue); border-bottom-color: currentColor; }
.sort-field { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.sort-field > span { color: var(--muted); }
.sort-field select { width: auto; min-width: 165px; min-height: 38px; color: var(--ink); background: #fff; border-color: var(--line); }
.sort-field .custom-select { width: auto; min-width: 165px; }
.sort-field .custom-select__button {
  min-height: 38px;
  padding-right: 38px;
  border-radius: var(--catalog-control-radius);
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}
.sort-field .custom-select__button svg { right: 15px; }
.sort-field .custom-select__menu {
  right: 0;
  left: auto;
  min-width: 210px;
}
.active-context:empty { display: none; }
.active-context {
  margin: -7px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: .72rem;
}
.active-context span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f7f6;
}
.active-context .is-primary { color: var(--blue); background: #e8f3f4; }

.map-panel { margin: 0 0 32px; }
.places-map { height: min(68vh, 640px); min-height: 420px; border: 1px solid var(--line); background: var(--blue-soft); }
.map-note { margin: 8px 0 0; color: var(--muted); font-size: .66rem; }
.yaqin-map-marker {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
}
.yaqin-map-marker span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 49, 45, .22);
}
.yaqin-map-marker svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.yaqin-map-marker--sight span { background: var(--blue); }
.yaqin-map-marker--food span { background: #9b4a35; }
.yaqin-map-marker--fun span { background: #2f7b55; }
.leaflet-popup-content-wrapper { border-radius: 2px; box-shadow: var(--shadow-soft); }
.leaflet-popup-content { margin: 13px 15px; font-family: Roboto, Arial, sans-serif; }
.map-popup h3 { margin: 3px 0 6px; font-family: Roboto, Arial, sans-serif; font-size: 1.1rem; font-weight: 400; }
.map-popup p { margin: 0 0 9px; color: #666; font-size: .72rem; }
.map-popup button { padding: 0; border: 0; border-bottom: 1px solid; color: var(--blue); background: none; font-size: .72rem; font-weight: 700; cursor: pointer; }
.map-fallback { height: 100%; padding: 24px; overflow-y: auto; }
.map-fallback h3 { margin-top: 0; font-weight: 400; }
.map-fallback ul { columns: 2; padding-left: 18px; }
.map-fallback li { margin-bottom: 9px; }

.place-card {
  content-visibility: auto;
  contain-intrinsic-size: 640px;
}
#place-dialog .detail-columns[hidden],
#place-dialog .practical-section[hidden],
#place-dialog .visitor-passports[hidden],
#place-dialog .gallery-tap[hidden] { display: none; }
.card-media img { background: #e8e4d9; }
.card-status-row {
  min-height: 22px;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .76rem;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #a5aaa5; }
.status-dot[data-status="open"] { background: #3d895e; }
.status-dot[data-status="closed"] { background: #b45a46; }
.distance-badge { color: var(--blue); }
.trust-badge { display: none; }
.trip-add-button {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--paper);
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
}
.trip-add-button[aria-pressed="true"] { color: #fff; border-color: var(--green); background: var(--green); }
.load-more-wrap {
  margin: 46px auto 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.pagination-controls button {
  min-width: 42px;
  min-height: 42px;
  padding: 0 13px;
  border: .8px solid rgb(220, 229, 226);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.pagination-controls button:hover,
.pagination-controls button[aria-current="page"] {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}
.pagination-controls button:disabled {
  color: #a8b2ae;
  background: #f4f7f5;
  cursor: default;
}
.load-more-wrap span { color: var(--muted); font-size: .69rem; }

.route-tabs { display: none; }
.route-builder-controls {
  margin-top: 34px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid #d2dcd8;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 46px rgba(31, 49, 45, .06);
  position: relative;
  z-index: 80;
}
.route-builder-controls label:has(.custom-select.open) { z-index: 5000; }
.route-builder-controls .custom-select.open { z-index: 5000; }
.route-builder-controls .custom-select__menu { z-index: 5001; }
.route-builder-controls label > span { color: var(--muted); }
.route-builder-controls select { color: var(--ink); border-color: #d3dcd8; background: linear-gradient(180deg, #fff, #fafbf8); box-shadow: none; }
.route-builder-controls .custom-select__button {
  color: var(--ink);
  border-color: #d3dcd8;
  background: linear-gradient(180deg, #fff, #fafbf8);
  box-shadow: none;
}
.route-builder-controls > button {
  color: var(--blue);
  border: .8px solid rgb(220, 229, 226);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}
.route-builder-controls > button:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.route-summary-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.route-summary-actions a,
.route-summary-actions button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  background: transparent;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}
.route-summary-actions a { text-decoration: none; }
.route-summary-actions a:hover,
.route-summary-actions button:hover { color: #fff; background: var(--blue); }
.route-budget-tiers { margin-top: 18px; display: grid; gap: 8px; background: transparent; border: 0; }
.budget-tier { padding: 12px 13px; border: 1px solid #dce3df; border-radius: 16px; background: #f9faf7; }
.budget-tier small { display: block; color: var(--muted); font-size: .62rem; }
.budget-tier strong { display: block; margin-top: 3px; font-size: .82rem; }
.route-stop .travel-leg { margin-top: 5px; color: var(--green); font-size: .65rem; }

.travel-kit {
  padding: 76px max(20px, calc((100vw - 1260px) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.travel-kit:has(.custom-select.open) { overflow: visible; z-index: 5000; }
.travel-kit::before {
  content: "";
  width: clamp(185px, 22vw, 340px);
  aspect-ratio: 1;
  position: absolute;
  right: max(-125px, calc((100vw - 1540px) / 2));
  top: 42px;
  z-index: 0;
  background: url("assets/uzbek-suzani-rosette.webp") center / contain no-repeat;
  opacity: .052;
  filter: saturate(.68);
  transform: rotate(10deg);
  pointer-events: none;
}
.travel-kit > * {
  position: relative;
  z-index: 1;
}
.travel-heading,
.directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr);
  align-items: end;
  gap: 44px;
}
.travel-heading { display: block; }
.travel-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; background: transparent; border: 0; }
.travel-card { min-height: 260px; padding: 22px; border: 1px solid #e1dfd7; border-radius: 24px; background: #fff; box-shadow: 0 16px 42px rgba(31, 49, 45, .06); }
.travel-card > span { color: var(--rust); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.travel-card h3 { margin: 10px 0 16px; font-size: 1.18rem; line-height: 1.15; font-weight: 700; }
.travel-card .emergency-hint {
  margin: -8px 0 14px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
}
.travel-card ul { margin: 0; padding: 0; list-style: none; }
.travel-card li { padding: 9px 0; display: grid; grid-template-columns: 28px 1fr; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.travel-card li b { min-width: 26px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--blue); background: #eef7f6; font-weight: 700; font-size: .66rem; }
.emergency-card li {
  grid-template-columns: 54px 1fr;
  align-items: center;
}
.emergency-card li b {
  min-width: 48px;
  height: 30px;
  border-radius: 12px;
  color: var(--ink);
  background: #f3f9fb;
  font-size: .82rem;
  letter-spacing: .02em;
}
.travel-card a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.travel-card .phrase { margin-top: 12px; padding: 12px; color: var(--ink); border-radius: 14px; background: var(--sand-soft); font-family: Roboto, Arial, sans-serif; font-size: .8rem; }
.travel-tools { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; }
.travel-tool { min-width: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.travel-tool:has(.custom-select.open) { position: relative; z-index: 5000; }
.travel-tool h3 { margin: 2px 0 16px; font-size: 1.45rem; line-height: 1.2; }
.travel-tool .eyebrow { margin: 0; }
.travel-tool-field { display: grid; gap: 6px; max-width: 320px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.travel-tool-field select, .nearby-controls select { min-height: 44px; padding: 0 12px; border: 1px solid #d5dfda; border-radius: 8px; background: #fff; color: var(--ink); }
.travel-tool-note { margin: 12px 0; color: var(--muted); font-size: .82rem; }
.entry-steps { display: grid; gap: 10px; margin: 15px 0; }
.entry-steps label { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; cursor: pointer; }
.entry-steps input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }
.travel-tool-link { display: inline-flex; min-height: 40px; align-items: center; color: var(--blue); font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.travel-tool-link[hidden] { display: none; }
.nearby-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }
.nearby-controls .travel-tool-field { max-width: none; min-width: 0; }
.travel-tool-field:has(.custom-select.open) { position: relative; z-index: 5001; }
.travel-tool .custom-select__menu { background: #fff; }
.nearby-controls > button { min-height: 49px; padding: 0 16px; border: 0; border-radius: 8px; color: #fff; background: var(--green); font-weight: 700; cursor: pointer; }
.nearby-controls > button:disabled { opacity: .6; cursor: progress; }
.nearby-fallback { margin-top: -4px; }
.nearby-results { display: grid; gap: 0; }
.nearby-results article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.nearby-results article div { display: grid; min-width: 0; }
.nearby-results article small { color: var(--muted); font-size: .7rem; }
.nearby-results article strong { overflow-wrap: anywhere; font-size: .84rem; }
.nearby-results article a { flex: 0 0 auto; color: var(--blue); font-size: .76rem; font-weight: 700; text-decoration: underline; }
.nearby-attribution { color: var(--muted); font-size: .68rem; }
.visit-verification { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.visit-verification h3 { margin: 0 0 6px; font-size: 1rem; }
.visit-verification p { margin: 0 0 9px; color: var(--muted); font-size: .77rem; }
.visit-verification #verification-links { display: flex; flex-wrap: wrap; gap: 9px 17px; }
.visit-verification a { color: var(--blue); font-size: .78rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.more-directory {
  border-top: 1px solid var(--line);
  background: #f6f4ed;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.more-directory::before {
  content: "";
  width: clamp(200px, 24vw, 360px);
  aspect-ratio: 1;
  position: absolute;
  left: max(-130px, calc((100vw - 1540px) / 2));
  top: 26px;
  z-index: 0;
  background: url("assets/uzbek-suzani-rosette.webp") center / contain no-repeat;
  opacity: .06;
  filter: saturate(.68);
  transform: rotate(-9deg);
  pointer-events: none;
}
.more-directory > * {
  position: relative;
  z-index: 1;
}
.directory-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-family: Roboto, Arial, sans-serif; }
.mini-directory { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border: 0; }
.mini-city { min-width: 0; padding: 18px; border: 1px solid #dedbd0; border-radius: 22px; background: #fff; box-shadow: 0 14px 36px rgba(31, 49, 45, .05); }
.mini-city h3 { margin: 0 0 13px; color: var(--blue); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.mini-place { padding: 9px 0; display: flex; align-items: start; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(190,188,179,.45); }
.mini-place span { font-family: Roboto, Arial, sans-serif; font-size: .87rem; }
.mini-place a { padding: 4px 8px; border-radius: 999px; color: var(--rust); background: #fbf0e9; font-size: .66rem; white-space: nowrap; text-decoration: none; }

.visitor-passports { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.visitor-passports > h3 { margin: 0 0 12px; font-size: 1rem; }
.passport-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.passport-card { padding: 12px; border-radius: 16px; background: var(--sand-soft); }
.passport-card strong { display: block; color: var(--blue); font-size: .7rem; }
.passport-card p { margin: 6px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.42; }
.visitor-notice { margin: 10px 0 0; color: #858780; font-size: .63rem; }
.dialog-actions > div:first-child {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}
.dialog-share-icon { width: 38px; height: 38px; padding: 0 !important; display: grid; place-items: center; border-radius: 50% !important; }
.dialog-share-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dialog-actions > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.dialog-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d7e1dd;
  border-radius: 999px;
  color: var(--blue);
  background: transparent;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
#dialog-add-trip[aria-pressed="true"] {
  border-color: rgba(155, 74, 53, .34);
  color: var(--rust);
  background: #fbf0e9;
}

@media (min-width: 821px) {
  .place-dialog .dialog-shell {
    height: min(730px, calc(100dvh - 34px));
    min-height: 0;
  }
  .place-dialog .dialog-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }
}

.trip-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  border: 1px solid rgba(216, 216, 209, .86);
  border-radius: 28px;
  color: var(--ink);
  background: #fbfaf6;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  overflow: hidden;
}
.trip-shell {
  padding: 40px;
  position: relative;
  overflow-y: auto;
  max-height: calc(100dvh - 28px);
  scrollbar-gutter: stable;
}
.trip-close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid #dce5e2;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31, 49, 45, .06);
}
.trip-shell h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.02em; }
.trip-lead { max-width: 540px; margin: 12px 0 24px; color: var(--muted); font-family: Roboto, Arial, sans-serif; }
.trip-items {
  display: grid;
  gap: 10px;
  background: transparent;
  border: 0;
}
.trip-empty {
  padding: 28px;
  color: var(--muted);
  border: 1px solid #dce5e2;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}
.trip-item {
  padding: 13px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dce5e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 49, 45, .05);
  transition: opacity .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.trip-item img { width: 60px; height: 46px; object-fit: cover; border-radius: 12px; }
.trip-item strong { display: block; font-size: .82rem; }
.trip-item small { color: var(--muted); font-size: .67rem; }
.trip-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding: 3px 10px 3px 22px; color: var(--blue); font-size: .72rem; }
.trip-leg > span { font-size: 1.15rem; }
.trip-leg > div { flex: 1 1 220px; min-width: 0; }
.trip-leg strong, .trip-leg small { display: block; }
.trip-leg small { color: var(--muted); }
.trip-leg a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.trip-offline-panel { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.trip-offline-panel[hidden] { display: none; }
.trip-offline-panel h3 { margin: 0 0 6px; font-size: 1rem; }
.trip-offline-panel p { margin: 8px 0; color: var(--muted); font-size: .78rem; }
.offline-route-diagram { width: 100%; max-width: 420px; height: auto; margin: 12px 0; border: 1px solid #dce5e2; border-radius: 8px; color: var(--blue); background: #f7faf8; }
.trip-offline-panel ol { margin: 10px 0; padding-left: 24px; }
.trip-offline-panel li { padding: 6px 0; font-size: .79rem; }
.trip-offline-panel li strong, .trip-offline-panel li span { display: block; }
.trip-offline-panel li span { color: var(--muted); }
.offline-emergency { display: flex; gap: 12px; }
.offline-emergency a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.trip-item-controls { display: flex; gap: 4px; }
.trip-item-controls button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dce5e2;
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  cursor: pointer;
}
.trip-item-controls button[data-trip-remove] { border-color: #ead6cf; color: var(--rust); background: #fff7f3; }
.trip-item-controls button:disabled { opacity: .35; cursor: not-allowed; }
.trip-item-controls svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trip-summary {
  margin-top: 18px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border: 1px solid #dce5e2;
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  font-size: .75rem;
}
.trip-summary[hidden] { display: none; }
.trip-summary strong { color: var(--ink); }
.trip-actions { position: sticky; bottom: -22px; z-index: 2; margin-top: 16px; padding: 12px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; background: #fbfaf6; border-top: 1px solid var(--line); }
.trip-actions[hidden], .trip-storage-note[hidden] { display: none; }
.trip-actions button,
.trip-actions a {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe0dc;
  border-radius: 14px;
  color: var(--blue);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.trip-actions a[hidden] { display: none; }
.trip-actions .danger-quiet { margin-left: auto; color: var(--rust); border-color: transparent; background: transparent; }
.trip-actions .trip-clear-icon {
  width: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-color: #ead6cf;
  border-radius: 14px;
  background: #fff7f3;
}
.trip-actions .trip-clear-icon[hidden] { display: none; }
.trip-clear-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy { display: grid; line-height: 1.1; }
.brand-name { letter-spacing: 0; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: .65rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.mobile-nav-toggle { display: none; }
.quick-planner .filter-panel { margin-top: 28px; color: var(--ink); background: #fff; }
.quick-planner .filter-panel:has(.custom-select.open) { z-index: 5000; }
.show-results { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff; background: var(--green); font-size: .78rem; font-weight: 700; text-decoration: none; }
.show-results:hover { background: #245d42; }
.quick-planner .filter-actions { grid-column: 1 / -1; height: auto; flex-wrap: wrap; }
.pagination-top { margin: 4px auto 22px; }
.pagination-top[hidden] { display: none; }
.card-media img,
.dialog-gallery img,
.route-photo-sequence img,
.trip-item img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.flying-action { position: fixed; z-index: 10000; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; pointer-events: none; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.flying-action--favorite { background: var(--rust); }
.flying-action--trip { background: var(--green); }
.flying-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-tap,
.dialog-gallery .gallery-tap {
  width: 38px;
  height: 38px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 36, 31, .12);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .11);
}
.gallery-tap-left { left: 10px; }
.gallery-tap-right { right: 10px; }
.gallery-tap svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-media .gallery-tap { width: 52px; height: 52px; border: 0; background: transparent; box-shadow: none; opacity: .5; transition: opacity var(--motion-fast) ease; }
.card-media .gallery-tap:hover, .card-media .gallery-tap:focus-visible { opacity: 1; }
.card-media .gallery-tap-left { left: 3px; }
.card-media .gallery-tap-right { right: 3px; }
.card-media .gallery-tap::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(34, 36, 31, .12); border-radius: 50%; background: rgba(255, 255, 255, .88); box-shadow: 0 4px 18px rgba(0, 0, 0, .11); }
.card-media .gallery-tap svg { position: relative; }
.card-media { touch-action: pan-y; }
#place-dialog .dialog-close { right: 20px; }
.map-link, .details-button { width: auto; min-width: 38px; padding: 0 11px; display: inline-flex; gap: 5px; border-radius: 18px; font-size: .68rem; font-weight: 700; }
.map-link { color: var(--blue); }
.card-actions { flex-wrap: wrap; }
.trip-add-button[aria-pressed="true"] { color: var(--rust); border-color: #e7ccc2; background: #fff7f3; }
.popular-route-card { min-width: 0; overflow: clip; }
.route-photo-gallery { min-width: 0; }
.route-photo-controls { min-height: 32px; margin: -2px 0 5px; display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.route-photo-controls[hidden] { display: none; }
.route-photo-controls span { margin-right: 4px; color: var(--muted); font-size: .68rem; }
.route-photo-controls button { width: 30px; height: 30px; padding: 5px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); background: #fff; cursor: pointer; }
.route-photo-controls button:disabled { opacity: .35; cursor: default; }
.route-photo-controls button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.route-photo-sequence { display: flex; min-width: 0; max-width: 100%; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; -ms-overflow-style: none; }
.route-photo-sequence::-webkit-scrollbar { display: none; }
.route-photo-sequence figure { flex: 0 0 clamp(132px, 29%, 184px); scroll-snap-align: start; }
.route-photo-sequence figcaption { white-space: normal; overflow: visible; text-overflow: clip; font-size: .75rem; }
.route-photo-arrow { flex: 0 0 18px; align-self: center; }
.route-stop-list { grid-template-columns: 1fr; counter-reset: route-stop; }
.route-stop-list li { display: flex; align-items: center; gap: 9px; font-size: .8rem; }
.route-stop-list li::before { counter-increment: route-stop; content: counter(route-stop); width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--blue); font-size: .68rem; }
.route-stop-list li span { flex: 1; }
.route-stop-list li span { display: block; min-height: 0; }
.route-stop-list li span::before { display: none; }
.route-stop-list button, .route-details-toggle { border: .8px solid #dce5e2; border-radius: 14px; padding: 7px 10px; color: var(--blue); background: #fff; font-size: .72rem; font-weight: 700; cursor: pointer; }
.route-practical { display: grid; gap: 5px; padding: 12px 0; color: var(--muted); font-size: .78rem; }
.route-practical[hidden] { display: none; }
.route-card-budget { margin: -6px 0 0; color: var(--blue); font-size: .78rem; font-weight: 700; }
.route-practical strong { color: var(--ink); }
.route-leg-list { margin: 0; padding-left: 19px; display: grid; gap: 5px; }
.route-detail-extra { padding: 12px; border: 1px solid #dce5e2; border-radius: 8px; background: #f8fbfa; color: var(--muted); font-size: .78rem; }
.route-detail-extra[hidden] { display: none; }
.trip-day-field { display: inline-grid; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.trip-day-field select { min-height: 36px; padding: 0 10px; border: 1px solid #dce5e2; border-radius: 8px; background: #fff; color: var(--ink); }
.trip-day-field { align-self: center; }
.trip-item { grid-template-columns: 60px minmax(0, 1fr) auto auto; }
.trip-item-controls button { font-size: 1rem; }
.trip-day { display: grid; gap: 9px; margin-bottom: 14px; }
.trip-day h3 { margin: 4px 0; font-size: .95rem; }
.trip-travel-note:not(:empty) { color: var(--rust); font-weight: 600; }
.route-stop-list { padding-left: 0; list-style: none; }
.trip-day-heading { margin: 16px 0 4px; font-size: 1rem; }
.trip-travel-note, .trip-storage-note { margin: 12px 0; color: var(--muted); font-size: .75rem; }
.trip-travel-note.is-warning { color: var(--rust); }
.trip-actions button[hidden] { display: none; }
.emergency-card a[href^="tel:"] { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .mobile-nav-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
  .mobile-nav-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .topbar { gap: 12px; }
  .topbar nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 16px; flex-wrap: wrap; gap: 12px 20px; border-bottom: 1px solid var(--line); background: var(--canvas); box-shadow: var(--shadow-soft); }
}
@media (max-width: 620px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, auto); gap: 7px; padding: 7px 14px; }
  .brand { grid-column: 1; min-width: 0; }
  .brand > span.brand-copy { display: grid; }
  .brand-name { font-size: .8rem; }
  .brand-copy small { font-size: .56rem; }
  .mobile-nav-toggle { grid-column: 2; }
  .header-tools { display: contents; }
  .saved-button { grid-column: 3; }
  .trip-header-button { grid-column: 4; }
  .preferences { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
  .topbar nav.is-open { top: 100%; }
  .intro { padding: 20px 0 24px; gap: 13px; }
  .intro .eyebrow { margin-bottom: 7px; }
  .intro h1 { font-size: clamp(2.45rem, 11vw, 3.4rem); line-height: 1; }
  .intro-side p { margin-bottom: 8px; font-size: .9rem; line-height: 1.4; }
  .intro-ornament { width: 94px; }
  .quick-planner { padding-top: 30px; padding-bottom: 34px; }
  .planner-heading h2 { font-size: 2rem; }
  .planner-heading > p:last-child { margin-top: 8px; font-size: .85rem; }
  .quick-planner .filter-panel { margin-top: 17px; }
  .route-photo-sequence { display: flex; gap: 8px; }
  .route-photo-sequence figure { flex-basis: 43%; }
  .route-photo-sequence figcaption { display: block; }
  .trip-item { grid-template-columns: 48px minmax(0, 1fr); }
  .trip-day-field, .trip-item-controls { grid-column: 2; }
  .card-actions .trip-add-button { flex: 1 1 100%; }
}

.offline-bar {
  width: 100%;
  margin: 0;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #c8d0cc;
  background: #172421;
  font-size: .68rem;
}
.offline-bar button { padding: 0 0 2px; border: 0; border-bottom: 1px solid; color: #fff; background: transparent; font-weight: 700; cursor: pointer; }
body:not(.routes-page) #routes { display: none; }
body.routes-page main > section:not(#routes) { display: none; }
body.routes-page #routes { min-height: calc(100dvh - 140px); padding-top: 72px; scroll-margin-top: 0; }
body:not(.travel-page) #travel-kit { display: none; }
body.travel-page main > section:not(#travel-kit) { display: none; }
body.travel-page #travel-kit { min-height: calc(100dvh - 140px); scroll-margin-top: 0; }
#site-nav a[aria-current="page"] { color: var(--blue); }
.map-choice-dialog {
  width: min(430px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(15, 30, 27, .2);
}
.map-choice-shell { position: relative; padding: 28px; }
.map-choice-shell .eyebrow { margin: 0 0 10px; }
.map-choice-shell h2 { margin: 0 38px 20px 0; font-size: 1.65rem; line-height: 1.15; }
.map-choice-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}
.map-choice-options { display: grid; gap: 8px; }
.map-choice-options a {
  min-height: 54px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.map-choice-options a:hover,
.map-choice-options a:focus-visible { border-color: var(--blue); background: #f4faf8; }
.map-choice-options a[data-preferred="true"] { border-color: var(--green); }
.map-choice-options small { color: var(--green); font-size: .67rem; font-weight: 500; text-align: right; }
.map-choice-options small[hidden] { display: none; }
.toast {
  max-width: min(420px, calc(100% - 28px));
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 11px 15px;
  color: #fff;
  background: #1d312c;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  font-size: .76rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .planner-form,
  .route-builder-controls { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .planner-submit,
  .route-builder-controls > button { width: 100%; }
  .mini-directory { grid-template-columns: repeat(3, 1fr); }
  .travel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .quick-planner,
  .travel-kit,
  .more-directory { padding: 52px 14px; }
  .catalog-toolbar { align-items: stretch; flex-wrap: wrap; }
  .sort-field { width: 100%; margin-left: 0; padding: 4px; justify-content: space-between; border-top: 1px solid var(--line); }
  .sort-field select,
  .sort-field .custom-select { flex: 1; }
  .travel-heading,
  .directory-heading { grid-template-columns: 1fr; gap: 24px; }
  .travel-grid { grid-template-columns: 1fr; }
  .travel-tools { grid-template-columns: 1fr; gap: 26px; }
  .nearby-controls { grid-template-columns: 1fr; }
  .mini-directory { grid-template-columns: repeat(2, 1fr); }
  .passport-grid { grid-template-columns: 1fr; }
  .dialog-actions { grid-template-columns: 1fr; align-items: flex-start; }
  .dialog-actions > div { width: 100%; }
  .dialog-actions > div:first-child,
  .dialog-actions > div:last-child { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .topbar nav { display: none; }
  .trip-header-button { min-width: 42px; height: 38px; padding: 0 8px; }
  .planner-form,
  .route-builder-controls { grid-template-columns: 1fr 1fr; }
  .planner-form label:first-child,
  .route-builder-controls label:first-child,
  .planner-submit,
  .route-builder-controls > button { grid-column: 1 / -1; }
  .collection-strip { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none; }
  .collection-strip::-webkit-scrollbar { display: none; }
  .collection-chip { flex: 0 0 auto; }
  .catalog-filter-link { display: inline-flex; flex: 1; justify-content: center; }
  .quiet-tool { flex: 1; min-width: 108px; justify-content: center; font-size: .78rem; }
  .view-switch { flex: 0 0 100%; width: 100%; }
  .view-switch button { flex: 1; }
  .places-map { min-height: 60vh; }
  .map-fallback ul { columns: 1; }
  .mini-directory { grid-template-columns: 1fr; }
  .trip-shell { padding: 32px 17px 22px; }
  .trip-item { grid-template-columns: 48px minmax(0, 1fr); }
  .trip-item img { width: 48px; height: 42px; }
  .trip-item-controls { grid-column: 2; }
  .trip-actions .danger-quiet { margin-left: 0; }
}

@media (max-width: 390px) {
  .planner-form,
  .route-builder-controls { grid-template-columns: 1fr; }
  .planner-form label,
  .route-builder-controls label,
  .planner-submit,
  .route-builder-controls > button { grid-column: 1; }
}

@media print {
  .topbar, .intro, .quick-planner, .explorer, .itineraries, .travel-kit, .more-directory, footer, .offline-bar, .trip-close, .trip-actions { display: none !important; }
  .trip-dialog { position: static; width: 100%; max-height: none; display: block; box-shadow: none; }
  .trip-shell { max-height: none; overflow: visible; }
}

:root {
  --motion-fast: 160ms;
  --motion-standard: 240ms;
  --motion-enter: 440ms;
  --motion-card-enter: 520ms;
  --motion-easing: cubic-bezier(.22, .61, .36, 1);
}

:where(.saved-button, .trip-header-button, .heart, .trip-add-button, .map-link,
  .details-button, .dialog-actions a, .dialog-actions button, .dialog-close,
  .trip-close, .trip-actions a, .trip-actions button, .trip-item-controls button,
  .planner-submit, .collection-chip, .quiet-tool, .view-switch button,
  .pagination-controls button, .reset-button, .more-filters-button,
  .route-builder-controls > button, .route-card-actions a, .route-card-actions button,
  .custom-select__button, .custom-select__option, .intro-jump, .topbar nav a) {
  transition: background-color var(--motion-fast) var(--motion-easing),
    color var(--motion-fast) var(--motion-easing),
    border-color var(--motion-fast) var(--motion-easing);
}

.custom-select__button svg,
.more-filters-button svg {
  transition: transform var(--motion-standard) var(--motion-easing);
}

@media (prefers-reduced-motion: no-preference) {
  .intro-main,
  .intro-side {
    animation: motion-reveal var(--motion-enter) var(--motion-easing) backwards;
  }
  .intro-side { animation-delay: 60ms; }

  .place-card,
  .popular-route-card {
    transition: transform var(--motion-standard) var(--motion-easing);
  }

  .card-media img {
    transition: transform 320ms var(--motion-easing), opacity var(--motion-fast) ease;
  }

  .motion-pending { opacity: 0; }

  .motion-enter {
    animation: motion-card-reveal var(--motion-card-enter) ease-out var(--motion-delay, 0ms) both;
  }

  .custom-select__menu:not([hidden]),
  .advanced-filters:not([hidden]) {
    transform-origin: top center;
    animation: motion-menu var(--motion-standard) var(--motion-easing);
  }

  .place-dialog[open],
  .trip-dialog[open] {
    animation: motion-dialog var(--motion-standard) var(--motion-easing);
  }

  .place-dialog[open]::backdrop,
  .trip-dialog[open]::backdrop {
    animation: motion-fade var(--motion-fast) ease-out;
  }

  .toast:not([hidden]) {
    animation: motion-toast var(--motion-standard) var(--motion-easing);
  }

  :where(.heart, .trip-add-button, .map-link, .details-button, .planner-submit,
    .dialog-close, .trip-close, .trip-actions button, .trip-actions a,
    .route-card-actions button, .route-card-actions a) {
    transition: transform var(--motion-fast) var(--motion-easing),
      background-color var(--motion-fast) var(--motion-easing),
      color var(--motion-fast) var(--motion-easing),
      border-color var(--motion-fast) var(--motion-easing);
  }

  :where(.heart, .trip-add-button, .map-link, .details-button, .planner-submit,
    .dialog-close, .trip-close, .trip-actions button, .trip-actions a,
    .route-card-actions button, .route-card-actions a):active { transform: scale(.97); }

  @media (hover: hover) and (pointer: fine) {
    .place-card:hover,
    .popular-route-card:hover { transform: translateY(-3px); }
  }
}

@keyframes motion-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes motion-card-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes motion-menu {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes motion-dialog {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes motion-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes motion-toast {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .place-card:hover .card-media img { transform: none; }
}

@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.catalog-notice { padding: 10px 0; color: var(--rust); font-size: .85rem; }
#currency-rate-note { display: block; color: var(--muted); font-size: .72rem; }
#currency-rate-note[hidden], #trip-map-parts[hidden] { display: none; }
#trip-map-parts { margin-top: 16px; color: var(--blue); font-size: .85rem; }
#trip-map-parts summary { cursor: pointer; font-weight: 700; width: fit-content; max-width: 100%; min-height: 42px; box-sizing: border-box; padding: 10px 15px; border: 1px solid #cfe0dc; border-radius: 8px; background: #fff; }
#trip-map-parts nav { display: grid; gap: 12px; padding-top: 12px; }
#trip-map-parts a { overflow-wrap: anywhere; }
.privacy-link { color: #d8e7e2; font-size: .75rem; }
.privacy-content { max-width: 800px; margin: 0 auto; padding: 36px 20px; }
.privacy-content section { padding-bottom: 40px; scroll-margin-top: 100px; }
.privacy-content h1 { font-size: 2rem; }
.privacy-content h2 { font-size: 1.2rem; margin-top: 24px; }
.privacy-content p { line-height: 1.65; }
.card-title-row h3 a { color: inherit; text-decoration: none; }
.card-title-row h3 a:hover { text-decoration: underline; }
.card-title-row h3, .popular-route-card h3, .trip-item strong { overflow-wrap: anywhere; }
#correction-dialog label { display: grid; gap: 8px; }
#correction-dialog textarea { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; resize: vertical; }
#correction-dialog [type=submit] { min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--green); color: white; font: inherit; cursor: pointer; }
@media (max-width: 620px) {
  .intro { padding-block: 16px; gap: 10px; }
  .intro h1 { font-size: 2.45rem; }
  .intro-side p { font-size: .85rem; }
  .quick-planner { padding: 20px 14px; }
  .planner-heading h2 { font-size: 1.55rem; }
  .quick-planner .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 8px; margin-top: 12px; }
  .quick-planner .search-box, .quick-planner .filter-actions { grid-column: 1 / -1; }
  .quick-planner .search-box { height: 44px; }
  .quick-planner .select-field { gap: 3px; }
  .quick-planner .custom-select__button { min-height: 44px; }
  .quick-planner .filter-actions { gap: 8px; }
  .quick-planner .filter-actions button { min-height: 44px; }
  .quick-planner .show-results { flex: 1 0 100%; }
  .collection-strip { margin-top: 14px; }
  .section-heading { margin-top: 20px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 2rem; }
  body.routes-page #routes, body.travel-page #travel-kit { padding-top: 24px; }
  .route-builder-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 8px; margin-top: 20px; }
  .route-builder-controls label:first-child, .route-builder-controls label { grid-column: auto; }
  .route-builder-controls > button { grid-column: 1 / -1; min-height: 44px; }
  .routes-heading h2, .travel-heading h2 { font-size: 2rem; }
}
