:root {
  color-scheme: light;
  --canvas: #f0f4f7;
  --paper: #fff;
  --line: #dbe4ea;
  --ink: #172b37;
  --muted: #506674;
  --blue: #174452;
  --teal: #176052;
  --teal-pale: #e7f4ef;
  --orange: #8b3f1e;
  --orange-pale: #fbefe4;
  --bar-height: 64px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid #136789;
  outline-offset: 3px;
}

svg:not(.icons) {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icons { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 10px 14px;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.page {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-inline: 24px;
}

.topbar {
  position: sticky;
  z-index: 3;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--bar-height) - 1px);
  gap: 12px;
}

.wordmark, .view-nav, .view-nav a {
  display: flex;
  align-items: center;
}

.wordmark {
  gap: 9px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--blue);
  color: var(--paper);
  font-size: 21px;
}

.view-nav { gap: 4px; }

.view-nav a {
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.view-nav a:hover, .view-nav a[aria-current] {
  background: #eaf1f4;
  color: var(--blue);
}

.nav-count {
  min-width: 23px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #dfe9ee;
  color: var(--blue);
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.main { padding-top: 34px; scroll-margin-top: var(--bar-height); }
.main:focus { outline: none; }

.page-title {
  margin-bottom: 19px;
  font-size: clamp(32px, 4vw, 47px);
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 730;
}

.location-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(14rem, 21rem);
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.location-summary, .location-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.location-copy { min-width: 0; }
.location-copy > strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.location-symbol {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  height: 42px;
  border-radius: 50%;
  color: var(--teal);
  background: var(--teal-pale);
  font-size: 22px;
}

.location-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.location-current {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 6px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.location-current span {
  padding: 0 5px;
  border-radius: 4px;
  color: var(--teal);
  background: var(--teal-pale);
  font-size: 11px;
}

.location-bar p { margin-top: 2px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.location-controls select:disabled { color: var(--ink); background-image: none; }

.origin-trigger, .origin-icon-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.origin-trigger {
  gap: 6px;
  padding: 0 12px;
  color: var(--paper);
  background: var(--blue);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.origin-trigger:hover { background: #103542; }
.origin-trigger:disabled { opacity: 0.55; cursor: default; }
.origin-icon-button {
  width: 44px;
  padding: 0;
  color: var(--blue);
  background: #edf3f5;
  font-size: 18px;
}

.origin-icon-button:hover { background: #dfeaf0; }

.origin-dialog {
  position: fixed;
  inset: min(11vh, 90px) 0 auto;
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - min(11vh, 90px) - 18px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 16px 56px rgb(17 45 55 / 22%);
}

.origin-dialog::backdrop { background: rgb(17 39 49 / 48%); }
.origin-picker {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  max-height: inherit;
  padding: 19px 22px 13px;
}

.origin-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.origin-dialog-header h2 { font-size: 23px; line-height: 1.25; }
.origin-dialog-header p { margin-top: 4px; color: var(--muted); font-size: 13px; }

.origin-search {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 13px 4px;
  border: 1px solid #abc2cc;
  border-radius: 10px;
  background: #f3f7f9;
  color: var(--blue);
}

.origin-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 2px #d4ebe3; }
.origin-search > svg { font-size: 19px; }
.origin-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.origin-search input::placeholder { color: var(--muted); }
.origin-search .origin-icon-button { background: transparent; }
.origin-search .origin-icon-button:hover { background: #e2edf1; }
.origin-scroll {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.origin-feedback { padding: 2px 1px 7px; color: var(--muted); font-size: 13px; }
.origin-feedback-quiet {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.origin-examples { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 6px; }
.origin-examples button {
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #f3f7f9;
  font-size: 13px;
}
.origin-examples button:hover { background: var(--teal-pale); }

.origin-options { margin: 0; padding: 0; list-style: none; }
.origin-options li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 8px 9px;
  border-bottom: 1px solid #e6edf0;
  cursor: pointer;
}

.origin-options li:last-child { border-bottom: 0; }
.origin-options li:hover, .origin-options li[aria-selected="true"] { background: var(--teal-pale); }
.origin-option-text { min-width: 0; overflow-wrap: anywhere; }
.origin-option-text strong { display: block; font-weight: 650; }
.origin-option-text span { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }
.origin-option-kind { flex: none; color: var(--teal); font-size: 12px; }
.origin-dialog-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.origin-dialog-footer a { text-underline-offset: 3px; }
.origin-dialog-footer div > a { font-size: 14px; font-weight: 650; }
.origin-dialog-footer p { margin-top: 2px; }
.origin-attribution { flex: none; color: var(--muted); }

.promotion {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eaf0f4;
}

.promotion summary, .brand-filter summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.promotion summary::-webkit-details-marker, .brand-filter summary::-webkit-details-marker {
  display: none;
}

.promotion-count {
  border-radius: 4px;
  background: #dcece7;
  color: var(--teal);
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 600;
}

.promotion .chevron, .brand-filter .chevron { margin-left: auto; color: var(--muted); }
.promotion[open] .chevron, .brand-filter[open] .chevron { transform: rotate(180deg); }

.promotion-body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.promotion-body > p { color: var(--muted); font-size: 13px; }

.promotion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.promotion-list:empty, .promotion-dates:empty { display: none; }

.promotion-card {
  padding: 11px 13px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.promotion-scope { color: var(--teal); font-size: 12px; font-weight: 650; }
.promotion-card h2 { margin-top: 2px; font-size: 16px; }
.promotion-card h2 + p { margin-top: 4px; }
.promotion-dates { margin-top: 7px; color: var(--muted); font-size: 13px; }

.promotion-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-top: 5px;
}

.promotion-links a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.package-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 6px 12px;
  margin-bottom: 12px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.package-controls > a { padding-block: 8px; font-size: 13px; }
.plan-tier { max-width: 16rem; margin-bottom: 10px; }
.hotel-tier { color: var(--blue); font-size: 12px; font-weight: 600; }

.date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.night-plan {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.night-plan > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--blue);
  font-weight: 650;
  cursor: pointer;
}

.night-plan > summary::-webkit-details-marker { display: none; }
.night-plan > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.night-plan[open] > summary::after { transform: rotate(225deg); }
#plan-summary { margin-left: auto; color: var(--muted); font-size: 13px; }

.plan-body { padding: 12px 16px; border-top: 1px solid var(--line); }
.plan-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.plan-totals > div {
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--canvas);
}
.plan-totals dt, .plan-entry p, .plan-challenge p { font-size: 13px; color: var(--muted); }
.plan-totals dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.plan-warning, .plan-entry .plan-warning, .plan-challenge .plan-warning { color: #a12b25; font-size: 13px; }
.plan-stays { margin: 0; padding: 0; list-style: none; }
.plan-entry { padding: 9px 0; border-top: 1px solid var(--line); }
.plan-entry-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 9px;
}
.plan-entry-heading span { color: var(--teal); font-size: 13px; }
.plan-actions { display: flex; gap: 6px; align-items: center; }
.plan-editor {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  scroll-margin-top: calc(var(--bar-height) + 12px);
}
.plan-editor h3 { font-size: 15px; }
.plan-primary {
  min-height: 39px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: var(--paper);
  font-weight: 650;
}
.plan-challenge { padding-top: 8px; border-top: 1px solid var(--line); }
.plan-editor:not([hidden]) + .plan-challenge { margin-top: 10px; }
#plan-challenge-details { display: grid; gap: 6px; margin-top: 7px; }

.filters {
  padding: 16px 17px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.search-fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 5px;
  font-size: 13px;
  font-weight: 630;
}

.search-input {
  position: relative;
  display: block;
}

.search-input svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 19px;
  pointer-events: none;
}

.search-input input, .field input[type="date"], .field select, .result-sort select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cddae2;
  border-radius: 7px;
  background: #f8fafb;
  font-size: 15px;
  font-weight: 450;
}

.search-input input { padding-left: 38px; }
.search-input input::placeholder { color: #5d7481; opacity: 1; }

.field select, .result-sort select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23506674' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.brand-filter {
  margin-top: 11px;
  border: 1px solid #cddae2;
  border-radius: 8px;
  background: #f8fafb;
}

.brand-filter summary > span:first-child { flex: none; }
.brand-filter-value { min-width: 0; color: var(--muted); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.brand-options { padding: 11px 13px 13px; border-top: 1px solid var(--line); }
.brand-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.brand-group + .brand-group { margin-top: 12px; }
.brand-group legend { margin-bottom: 6px; padding: 0; color: var(--blue); font-size: 13px; font-weight: 650; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.brand-choice {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 85px;
  gap: 5px;
  padding: 19px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
}

.brand-choice:hover, .brand-choice:has(input:checked) {
  border-color: #91b6b4;
  background: var(--teal-pale);
}

.brand-choice input {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.brand-choice img { width: min(100%, 112px); height: 33px; object-fit: contain; }

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
}

.filter-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 39px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue);
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip:hover, .filter-chip:has(:checked) {
  border-color: #91b6b4;
  background: var(--teal-pale);
}

.filter-chip input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  color: var(--blue);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiet-button:hover:not(:disabled) { background: #eaf1f4; }
.quiet-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.clear-filters { margin-left: auto; }

.results { margin-top: 20px; }

.results-heading, .results-heading > div {
  display: flex;
  align-items: baseline;
}

.results-heading {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.results-heading > div { gap: 10px; }
.results-heading h2 { font-size: 21px; line-height: 1.3; scroll-margin-top: calc(var(--bar-height) + 14px); }
.results-heading h2:focus { outline: none; }
.results-note, .result-sort label, .result-count { color: var(--muted); font-size: 13px; }
.results-note { margin-bottom: 9px; }
.result-count { font-variant-numeric: tabular-nums; }

.result-location {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 8px;
}

.result-origin {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid #d5e8e2;
  border-radius: 8px;
  color: var(--teal);
  background: var(--teal-pale);
  font-size: 13px;
  text-align: left;
  overflow-wrap: anywhere;
}

.result-origin:hover { border-color: #91b6b4; }
.origin-forward { transform: rotate(-90deg); }

.results-heading .result-sort { align-items: center; flex-wrap: wrap; gap: 6px; }
.result-sort select { width: auto; max-width: 100%; min-height: 36px; padding-block: 5px; font-size: 13px; }

.desktop-results {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.desktop-results table {
  width: 100%;
  border-spacing: 0;
  text-align: left;
}

.desktop-results th, .desktop-results td {
  padding: 9px 12px;
  vertical-align: middle;
}

.desktop-results thead th {
  position: sticky;
  z-index: 1;
  top: var(--bar-height);
  background: #e7eff4;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.desktop-results thead th:first-child { border-top-left-radius: 11px; }
.desktop-results thead th:last-child { border-top-right-radius: 11px; }
.desktop-results tbody td, .desktop-results tbody th { border-top: 1px solid #e8eef1; }
.desktop-results tbody tr:hover { background: #f7fafb; }
.desktop-results tbody tr:last-child th:first-child { border-bottom-left-radius: 11px; }
.desktop-results tbody tr:last-child td:last-child { border-bottom-right-radius: 11px; }
.desktop-results .save-cell { text-align: center; }

.hotel-identity { font-weight: 630; }
.hotel-name { font-weight: 660; overflow-wrap: anywhere; }
.hotel-name.highlighted { color: #a12b25; }
.hotel-opening { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hotel-identity .hotel-opening {
  margin-inline-start: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
}
.hotel-summary {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.hotel-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.photo-thumbnail {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}

.photo-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.photo-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
}

.photo-dialog[open] { display: grid; place-items: center; }
.photo-dialog::backdrop { background: rgb(12 24 31 / 86%); }
html:has(.photo-dialog[open]) { overflow: hidden; }

.photo-dismiss, .photo-original {
  padding: 0;
  border: 0;
  background: transparent;
}

.photo-dismiss {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.photo-dismiss:focus-visible { outline-offset: -4px; }
.photo-original { position: relative; max-width: 100%; }
.photo-original[aria-disabled="true"] { cursor: default; }

.photo-original img {
  display: block;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}

.photo-loading {
  position: absolute;
  bottom: 24px;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgb(12 24 31 / 78%);
  color: white;
  font-size: 13px;
  pointer-events: none;
}

.room-choice {
  max-width: 100%;
  padding: 1px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #7998a4;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.room-choice:hover, .room-choice[aria-pressed="true"] {
  color: var(--teal);
  text-decoration-thickness: 2px;
}

.stay-details {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  overflow-wrap: anywhere;
}
.surcharge-schedule { margin-top: 4px; font-size: 12px; }
.surcharge-schedule summary {
  width: fit-content;
  padding-block: 4px;
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.surcharge-schedule p { color: var(--muted); }
.surcharge-schedule ul { margin: 3px 0 0; padding: 0; list-style: none; }
.surcharge-schedule li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-block: 3px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.surcharge-schedule strong { color: #a12b25; white-space: nowrap; }
.city-cell { max-width: 112px; }
.brand-cell { white-space: nowrap; }

.hotel-distance, .hotel-rating {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hotel-rating[href] {
  color: var(--blue);
  font-weight: 650;
  text-underline-offset: 3px;
}

.hotel-mark, .recommendation {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 650;
  font-size: 12px;
  white-space: nowrap;
}

.hotel-mark { background: var(--teal-pale); color: var(--teal); }

.recommendation {
  color: var(--orange);
  background: var(--orange-pale);
}

.hotel-identity .recommendation {
  margin-left: 4px;
  vertical-align: 1px;
}

.hotel-links { display: flex; gap: 4px; }
.desktop-results .hotel-links { flex-wrap: wrap; }

.hotel-links a, .hotel-links button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  padding-inline: 7px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.hotel-links button {
  padding-block: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
}

.hotel-links a:hover, .hotel-links button:hover { background: #e7eff4; text-decoration: underline; }

.save-button {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue);
  background: var(--paper);
  font-size: 18px;
}

.save-button:hover { border-color: #a4b9c5; background: #edf3f6; }
.save-button[aria-pressed="true"] { border-color: #a0c4bd; color: var(--teal); background: var(--teal-pale); }
.save-button[aria-pressed="true"] svg { fill: currentColor; }

.mobile-results { display: none; }

.empty-state {
  padding: 26px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-align: center;
}

.empty-state p:first-child { font-size: 17px; font-weight: 650; }
.empty-state p + p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.empty-state .quiet-button { margin-top: 6px; }

.storage-error {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 7px;
  background: var(--orange-pale);
  color: var(--orange);
  font-size: 13px;
}

.footer {
  padding-block: 20px 32px;
  color: var(--muted);
  font-size: 12px;
}

.footer p + p { margin-top: 4px; }

@media (max-width: 940px) {
  :root { --bar-height: 56px; }
  .page { padding-inline: 16px; }
  .main { padding-top: 22px; }
  .page-title { margin-bottom: 12px; font-size: clamp(30px, 6.5vw, 38px); }
  .promotion { margin-bottom: 12px; }
  .promotion-list { grid-template-columns: minmax(0, 1fr); }
  .package-controls { padding: 11px 12px; }
  .filters { padding: 11px 12px; }
  .search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  .search-field { grid-column: 1 / -1; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-input input, .field select { font-size: 16px; }
  .filter-chip, .quiet-button { min-height: 40px; }
  .filter-chip { gap: 5px; padding-inline: 7px; }
  .quick-filters { gap: 6px; }
  .results { margin-top: 17px; }
  .results-heading h2 { font-size: 19px; }
  .result-sort select { min-height: 40px; font-size: 16px; }
  .desktop-results { display: none; }

  .mobile-results {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .hotel-card {
    min-width: 0;
    padding: 10px 11px 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
  }

  .card-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .card-name { font-size: 15px; line-height: 1.45; }
  .card-name .hotel-rating { margin-inline-start: 0.5em; }

  .card-location {
    display: flex;
    flex-wrap: wrap;
    gap: 0 7px;
    color: var(--muted);
    font-size: 12px;
  }

  .card-location span + span::before {
    display: inline-block;
    width: 1px;
    height: 9px;
    margin-right: 7px;
    background: #c1d0d9;
    content: "";
  }
  .card-location .hotel-distance { font-size: inherit; }

  .card-stay { grid-template-columns: 96px minmax(0, 1fr); margin-top: 6px; }
  .card-stay .stay-details { margin-top: 0; }
  .room-choice { padding-block: 3px; }

  .card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 6px;
    min-height: 37px;
    margin-top: 5px;
    border-top: 1px solid #e8eef1;
  }

  .card-marks, .card-actions { display: flex; align-items: center; }
  .card-marks { flex-wrap: wrap; gap: 4px; }
  .card-marks .hotel-mark { font-size: 11px; }
  .card-actions { gap: 3px; margin-left: auto; }
  .card-actions .recommendation { font-size: 11px; }
  .hotel-links { gap: 1px; }
  .hotel-links a, .hotel-links button { min-height: 38px; padding-inline: 6px; }
  .surcharge-schedule summary { padding-block: 7px; }
  .hotel-card > .plan-hotel-actions { border-top: 1px solid #e8eef1; }
  .save-button { width: 42px; height: 42px; }
}

@media (max-width: 680px) {
  .location-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 10px; }
  .location-symbol { flex-basis: 35px; height: 35px; font-size: 18px; }
  .location-actions { gap: 4px; }
  .location-controls { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid var(--line); }
  .location-copy > strong { font-size: 16px; }
  .origin-trigger { padding-inline: 8px; }
  .origin-dialog {
    inset: 0 0 auto;
    width: 100%;
    height: var(--origin-viewport, 100dvh);
    max-height: var(--origin-viewport, 100dvh);
    border: 0;
    border-radius: 0;
  }
  .origin-picker {
    height: 100%;
    gap: 10px;
    padding: 13px 14px max(11px, env(safe-area-inset-bottom));
  }
  .origin-dialog-header h2 { font-size: 21px; }
  .date-fields input[type="date"] { padding-inline: 7px; }
}

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

@media (max-width: 375px) {
  .page { padding-inline: 12px; }
  .topbar-inner { gap: 6px; }
  .view-nav a { padding-inline: 8px; }
  .view-nav a > svg { display: none; }
  .wordmark { font-size: 13px; gap: 6px; }
  .wordmark-icon { width: 30px; height: 30px; }
  .location-symbol { display: none; }
}
