:root {
  --bg: #eee7dd;
  --frame: #fffaf2;
  --surface: #fffdf8;
  --surface-soft: #fbf6ee;
  --surface-chip: #f2eee6;
  --line: #eadfd0;
  --line-strong: #dac8b6;
  --text: #3c2b1b;
  --muted: #7b6d60;
  --orange: #df6445;
  --orange-deep: #c84f35;
  --orange-soft: #fde1d5;
  --brown: #56391f;
  --green: #758d65;
  --green-deep: #455f36;
  --green-soft: #dfead3;
  --gold-soft: #f6ead0;
  --red-soft: #ffe2d7;
  --shadow: 0 20px 60px rgba(70, 48, 28, 0.12);
  --shadow-soft: 0 12px 32px rgba(70, 48, 28, 0.09);
  --radius: 18px;
  --font:
    "Avenir Next", "Noto Sans TC", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", "Cascadia Code", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(135deg, #eee6da, #f5eee5 48%, #e8dfd2);
}

button,
input,
select {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(223, 100, 69, 0.28);
  outline-offset: 2px;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon,
.search-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ui-icon {
  width: 18px;
  height: 18px;
}

.search-icon {
  width: 24px;
  height: 24px;
  color: var(--brown);
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-wrap {
  min-height: 100dvh;
  padding: 0;
}

.app-frame {
  overflow: hidden;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  background: var(--frame);
  box-shadow: none;
}

.topbar {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 0 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #244623;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  box-shadow: 0 8px 18px rgba(36, 27, 18, 0.12);
}

.brand-word {
  font-size: 30px;
  line-height: 1;
}

.pill-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 48px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-soft);
}

.pill-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 760;
  white-space: nowrap;
}

.pill-nav a.active {
  background: var(--surface);
  color: var(--brown);
  box-shadow: 0 8px 20px rgba(70, 48, 28, 0.1);
}

.pill-nav a.active .ui-icon {
  color: var(--orange);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 90px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 8px 20px rgba(70, 48, 28, 0.06);
  cursor: pointer;
  font-weight: 700;
}

.topbar-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 8px 20px rgba(70, 48, 28, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.language-switch select {
  min-width: 72px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  outline: 0;
}

.hero-section {
  position: relative;
  min-height: 250px;
  margin: 0 10px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.84) 34%, rgba(255, 250, 242, 0.2) 58%),
    linear-gradient(180deg, rgba(117, 72, 31, 0.08), rgba(117, 72, 31, 0.02)),
    url("https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?auto=format&fit=crop&w=1200&q=60");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.hero-copy {
  padding: 34px 52px 110px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--brown);
  font-size: 17px;
  font-weight: 680;
  line-height: 1.6;
}

.source-status {
  display: inline-block;
  max-width: min(900px, calc(100vw - 560px));
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.74);
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.55;
  white-space: nowrap;
}

.search-card {
  position: absolute;
  right: 22%;
  bottom: -18px;
  left: 46px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr) minmax(180px, 0.75fr) 178px;
  align-items: center;
  overflow: hidden;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 34px rgba(70, 48, 28, 0.14);
}

.control-panel {
  position: fixed;
  z-index: 30;
  top: 86px;
  right: 28px;
  display: grid;
  width: min(320px, calc(100vw - 28px));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 22px 48px rgba(70, 48, 28, 0.18);
}

.control-panel[hidden] {
  display: none;
}

.control-panel h3,
.control-panel p {
  margin: 0;
}

.control-panel h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 840;
}

.control-panel .alert-status {
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.control-panel .panel-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.control-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.control-panel input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

#datePanel {
  width: min(372px, calc(100vw - 28px));
}

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

.date-choice {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.86);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.date-choice span {
  font-size: 12px;
  font-weight: 760;
}

.date-choice strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
}

.date-choice.active {
  border-color: rgba(226, 97, 66, 0.58);
  background: #fff4ea;
  box-shadow: 0 10px 22px rgba(223, 100, 69, 0.14);
  transform: translateY(-1px);
}

.date-native-fields,
.date-native-fields input {
  display: none;
}

.date-picker-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(98, 72, 49, 0.08);
  color: var(--text);
  font-weight: 850;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-picker-weekdays {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-align: center;
}

.date-picker-grid {
  gap: 4px;
}

.date-picker-day {
  display: grid;
  min-width: 0;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbf7ef;
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 790;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.date-picker-day:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 97, 66, 0.5);
  background: #fff1e7;
}

.date-picker-day.in-range {
  border-color: rgba(98, 132, 85, 0.25);
  background: #e8efd9;
}

.date-picker-day.start,
.date-picker-day.end {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
  box-shadow: 0 8px 18px rgba(223, 100, 69, 0.2);
}

.date-picker-day.disabled,
.date-picker-day.blank {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  cursor: default;
}

.date-picker-day.disabled {
  color: rgba(70, 48, 28, 0.28);
}

.date-picker-day.disabled:hover,
.date-picker-day.blank:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
}

.panel-action,
.panel-secondary {
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 820;
}

.panel-action {
  border: 0;
  background: var(--orange);
  color: white;
}

.panel-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.stepper-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.stepper-row button {
  display: grid;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
  font-weight: 840;
}

.stepper-row strong {
  text-align: center;
  color: var(--text);
  font-size: 22px;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  height: 100%;
  padding: 0 24px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.search-item small,
.search-item strong,
.search-item input {
  display: block;
}

.search-item small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.search-item strong,
.search-item input {
  color: var(--text);
  font-size: 18px;
  font-weight: 740;
}

.search-item input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  margin: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #e9704f, var(--orange));
  color: white;
  box-shadow: 0 12px 22px rgba(223, 100, 69, 0.28);
  cursor: pointer;
  font-size: 18px;
  font-weight: 820;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.search-submit .ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(223, 100, 69, 0.34);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(560px, 1.3fr) minmax(500px, 0.95fr);
  gap: 14px;
  padding: 42px 28px 28px;
}

.workspace > * {
  min-width: 0;
}

.results-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-soft);
}

.results-card {
  padding: 22px;
}

.region-row,
.control-row,
.brand-filter,
.sort-filter,
.legend-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.region-row {
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
}

.country-select-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 260px;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-chip);
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.country-select-label {
  flex: 0 0 auto;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.country-select-button {
  display: inline-flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.country-select-button strong {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-select-button span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 820;
}

.country-select-wrap:focus-within,
.country-select-wrap.open {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(226, 97, 66, 0.12);
}

.country-select-wrap.open .country-select-button span {
  transform: rotate(180deg);
}

.country-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: min(360px, calc(100vw - 44px));
  max-height: 320px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(205, 184, 158, 0.85);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 26px 56px rgba(75, 49, 22, 0.2);
  gap: 4px;
}

.country-menu[hidden] {
  display: none;
}

.country-menu-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
}

.country-menu-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-menu-option small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.country-menu-option:disabled,
.region-chip:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.country-menu-option:not(:disabled):hover,
.country-menu-option:not(:disabled):focus-visible {
  outline: 0;
  background: #f6eadc;
}

.country-menu-option.selected {
  background: var(--orange);
  color: white;
  box-shadow: 0 8px 20px rgba(226, 97, 66, 0.22);
}

.country-chip-row {
  display: flex;
  flex: 1 1 auto;
  min-width: 120px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.country-chip-row::-webkit-scrollbar {
  display: none;
}

.round-chip,
.region-chip,
.brand-filter-chip,
.sort-chip {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-chip);
  cursor: pointer;
  font-weight: 740;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.round-chip {
  display: grid;
  width: 40px;
  place-items: center;
  background: var(--surface);
}

.region-chip {
  padding: 0 20px;
}

.region-chip.active,
.sort-chip.active {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
}

.brand-filter-chip.active {
  border-color: var(--brown);
  background: var(--brown);
  color: white;
}

.control-row {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.brand-filter,
.sort-filter {
  gap: 8px;
  flex-wrap: wrap;
}

.brand-filter-chip,
.sort-chip {
  padding: 0 18px;
  background: var(--surface);
}

.tune-chip {
  font-size: 18px;
}

.hotel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-focus {
  outline: 2px solid rgba(223, 100, 69, 0.45);
  outline-offset: 4px;
  transition: outline-color 180ms ease;
}

.affiliate-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px dashed rgba(223, 100, 69, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(253, 225, 213, 0.72), rgba(255, 253, 248, 0.9)),
    var(--surface);
}

.affiliate-copy {
  min-width: 0;
}

.affiliate-copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--orange-deep);
  font-size: 12px;
  font-weight: 820;
}

.affiliate-copy strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 840;
  line-height: 1.25;
}

.affiliate-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.affiliate-cta {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
}

.hotel-card {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  min-height: 150px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hotel-card:hover,
.hotel-card.active {
  border-color: var(--orange);
  box-shadow: 0 14px 28px rgba(223, 100, 69, 0.12);
}

.hotel-card:active,
.round-chip:active,
.region-chip:active,
.brand-filter-chip:active,
.sort-chip:active {
  transform: scale(0.985);
}

.hotel-image {
  overflow: hidden;
  height: 130px;
  border-radius: 10px;
  background: var(--surface-chip);
}

.hotel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.hotel-card:hover .hotel-image img {
  transform: scale(1.035);
}

.hotel-info {
  display: grid;
  align-content: space-between;
  min-width: 0;
  padding: 6px 8px 4px 0;
}

.hotel-main {
  min-width: 0;
}

.hotel-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-right: 42px;
}

.brand-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 27px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 760;
}

.brand-badge.ihg {
  background: var(--green-soft);
  color: var(--green-deep);
}

.brand-badge.marriott {
  background: var(--gold-soft);
  color: #765329;
}

.brand-badge.hilton {
  background: #dfebfb;
  color: #38689f;
}

.hotel-info h3 {
  overflow: hidden;
  margin: 0;
  color: #1b1814;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-location {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.heart-small {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--orange);
  font-size: 26px;
  line-height: 1;
}

.hotel-stats {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.hotel-stats > span {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 10px 14px 0;
  border-right: 1px solid var(--line);
}

.hotel-stats > span:first-child {
  padding-left: 0;
}

.hotel-stats > span:last-child {
  border-right: 0;
}

.hotel-stats > span > span:not(.rec-pill) {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.hotel-stats strong {
  display: block;
  min-width: 0;
  color: #17130f;
  font-size: 20px;
  font-weight: 840;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.hotel-stats .rec-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  margin-bottom: 0;
}

.rec-pill.points {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.rec-pill.cash {
  background: var(--green-soft);
  color: var(--green-deep);
}

.show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 720;
}

.show-more[hidden] {
  display: none;
}

.detail-card {
  position: sticky;
  top: 16px;
  align-self: start;
  padding: 24px;
}

.heart-button {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(70, 48, 28, 0.08);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.detail-header {
  padding-right: 54px;
}

.detail-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.detail-header p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-grid div {
  min-height: 74px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(180deg, #fffdf8, #fbf6ee);
  text-align: center;
}

.metric-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.metric-grid strong {
  color: var(--green-deep);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.metric-grid div:first-child strong,
.metric-grid div:last-child strong {
  color: var(--orange-deep);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.section-heading h3,
.price-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 830;
}

.calendar-heading-main,
.calendar-nav {
  display: inline-flex;
  align-items: center;
}

.calendar-heading-main {
  gap: 10px;
  min-width: 0;
}

.calendar-nav {
  gap: 5px;
  flex: 0 0 auto;
}

.calendar-nav button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 19px;
  font-weight: 830;
  line-height: 1;
}

.calendar-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.price-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-toggle {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.legend-row {
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-row i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.level-high {
  background: var(--green);
}

.level-mid {
  background: #dfe8cf;
}

.level-low {
  background: #f7d2aa;
}

.level-bad {
  background: #fac8b9;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.calendar-grid {
  gap: 3px;
}

.date-cell {
  position: relative;
  display: grid;
  min-height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #faf7f0;
  color: #17130f;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.date-cell.high {
  background: #dfe8cf;
}

.date-cell.mid {
  background: #eef0dc;
}

.date-cell.low {
  background: #f8e7c5;
}

.date-cell.bad {
  background: #ffdcca;
}

.date-cell.best {
  background: linear-gradient(145deg, #ef7657, var(--orange));
  color: white;
  box-shadow: 0 6px 12px rgba(223, 100, 69, 0.2);
}

.date-cell.selected {
  outline: 2px solid var(--green-deep);
  outline-offset: -2px;
}

.date-cell.best strong {
  display: grid;
  gap: 1px;
  color: white;
  font-size: 18px;
  line-height: 0.95;
  text-align: center;
}

.date-cell.best small {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 800;
}

.date-cell.blank {
  color: transparent;
  background: rgba(255, 253, 248, 0.5);
  cursor: default;
}

.price-section {
  margin-top: 18px;
  max-height: 250px;
  overflow: auto;
  overscroll-behavior: contain;
}

.price-section table {
  width: 100%;
  margin-top: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.price-section th,
.price-section td {
  height: 34px;
  padding: 7px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.price-section th {
  background: #fbf3e8;
  color: var(--muted);
  font-weight: 760;
}

.price-section tr:last-child td {
  border-bottom: 0;
}

.price-section th:last-child,
.price-section td:last-child {
  border-right: 0;
}

.price-section .highlight {
  color: var(--orange-deep);
  font-weight: 840;
}

.price-section tr[data-date] {
  cursor: pointer;
}

.price-section tr.selected td {
  background: rgba(223, 100, 69, 0.08);
}

.table-rec {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-weight: 800;
}

.table-rec.points {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.table-rec.cash {
  background: var(--green-soft);
  color: var(--green-deep);
}

.detail-cta {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  min-height: 58px;
  margin-top: 18px;
  padding: 0 12px 0 24px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e9704f, var(--orange));
  color: white;
  box-shadow: 0 12px 22px rgba(223, 100, 69, 0.28);
  font-size: 19px;
  font-weight: 840;
  text-align: center;
}

.detail-cta-label {
  min-width: 0;
  padding: 0 10px;
}

.detail-cta-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--orange);
  font-size: 25px;
}

.booking-note {
  margin: 8px 4px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.empty-state {
  display: grid;
  min-height: 240px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 760;
}

@media (min-width: 1081px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page-wrap,
  .app-frame {
    height: 100dvh;
    min-height: 100dvh;
  }

  .app-frame {
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr);
  }

  .topbar {
    min-height: 64px;
    padding: 0 28px;
  }

  .brand-word {
    font-size: 28px;
  }

  .pill-nav {
    min-height: 44px;
  }

  .pill-nav a {
    min-height: 36px;
    padding: 0 20px;
    font-size: 14px;
  }

  .login-button {
    min-height: 40px;
  }

  .language-switch {
    min-height: 40px;
  }

  main {
    display: grid;
    grid-template-rows: 218px minmax(0, 1fr);
    min-height: 0;
  }

  .hero-section {
    min-height: 0;
    height: 218px;
    margin: 0 18px;
  }

  .hero-copy {
    padding: 30px 52px 86px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 3.2vw, 46px);
  }

  .hero-copy p {
    margin-top: 12px;
    font-size: 15px;
  }

  .search-card {
    right: 23%;
    bottom: -16px;
    left: 38px;
    min-height: 62px;
    grid-template-columns: minmax(210px, 1fr) minmax(230px, 1fr) minmax(160px, 0.7fr) 150px;
  }

  .search-item {
    padding: 0 18px;
  }

  .search-item small {
    font-size: 11px;
  }

  .search-item strong,
  .search-item input {
    font-size: 15px;
  }

  .search-icon {
    font-size: 21px;
  }

  .search-submit {
    min-height: 46px;
    margin: 8px 10px;
    font-size: 16px;
  }

  .workspace {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 32px 18px 16px;
  }

  .results-card,
  .detail-card {
    min-height: 0;
    overflow: hidden;
  }

  .results-card {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    padding: 14px;
  }

  .region-row {
    margin-bottom: 10px;
  }

  .round-chip,
  .region-chip,
  .brand-filter-chip,
  .sort-chip {
    min-height: 32px;
    font-size: 13px;
  }

  .round-chip {
    width: 34px;
  }

  .region-chip,
  .brand-filter-chip,
  .sort-chip {
    padding: 0 14px;
  }

  .control-row {
    margin-bottom: 10px;
  }

  .hotel-list {
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    gap: 8px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .hotel-list::-webkit-scrollbar {
    width: 8px;
  }

  .hotel-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(117, 72, 31, 0.22);
  }

  .hotel-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .hotel-card {
    flex: 0 0 auto;
    min-height: 132px;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    padding: 8px;
  }

  .hotel-image {
    height: 116px;
  }

  .hotel-info {
    padding: 3px 6px 2px 0;
  }

  .hotel-title-line {
    margin-bottom: 5px;
  }

  .brand-badge {
    min-height: 22px;
    padding: 0 9px;
    font-size: 11px;
  }

  .hotel-info h3 {
    font-size: 17px;
  }

  .hotel-location {
    font-size: 12px;
  }

  .heart-small {
    top: 12px;
    right: 14px;
    font-size: 21px;
  }

  .hotel-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hotel-stats > span {
    padding: 7px 8px 0;
  }

  .hotel-stats > span > span:not(.rec-pill) {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .hotel-stats strong {
    font-size: 15px;
  }

  .hotel-stats .rec-pill {
    min-height: 26px;
    padding: 0 10px;
    font-size: 12px;
  }

  .show-more {
    min-height: 30px;
    margin-top: 8px;
    font-size: 13px;
  }

  .detail-card {
    position: static;
    align-self: stretch;
    padding: 16px;
  }

  .heart-button {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 24px;
  }

  .detail-header {
    padding-right: 46px;
  }

  .detail-header h2 {
    font-size: 22px;
  }

  .detail-header p {
    margin: 5px 0 12px;
    font-size: 13px;
  }

  .metric-grid {
    gap: 8px;
    margin-bottom: 12px;
  }

  .metric-grid div {
    min-height: 58px;
    padding: 9px 8px;
  }

  .metric-grid span {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .metric-grid strong {
    font-size: 16px;
  }

  .section-heading {
    margin-bottom: 6px;
  }

  .section-heading h3,
  .price-section h3 {
    font-size: 15px;
  }

  .legend-row {
    gap: 9px;
    font-size: 10px;
  }

  .weekday-row {
    margin: 4px 0;
    font-size: 11px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .date-cell {
    min-height: 25px;
    font-size: 11px;
  }

  .date-cell.best strong {
    font-size: 14px;
  }

  .date-cell.best small {
    font-size: 8px;
  }

  .price-section {
    margin-top: 10px;
  }

  .price-section table {
    margin-top: 7px;
    font-size: 11px;
  }

  .price-section th,
  .price-section td {
    height: 27px;
    padding: 4px 5px;
  }

  .table-rec {
    min-height: 22px;
    padding: 0 8px;
  }

  .detail-cta {
    min-height: 48px;
    margin-top: 12px;
    padding-left: 18px;
    font-size: 16px;
  }

  .detail-cta-icon {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

@media (max-width: 1360px) {
  .workspace {
    grid-template-columns: minmax(540px, 1fr) minmax(470px, 0.9fr);
  }

  .search-card {
    right: 12%;
  }

  .hotel-card {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .hotel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }

  .hotel-stats > span:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 1080px) {
  .source-status {
    max-width: 100%;
    white-space: normal;
  }

  .page-wrap {
    padding: 8px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .pill-nav {
    justify-self: start;
    max-width: 100%;
    overflow-x: auto;
  }

  .login-button {
    justify-self: start;
  }

  .topbar-actions {
    justify-self: start;
  }

  .hero-section {
    min-height: 420px;
  }

  .hero-copy {
    padding: 28px 24px 210px;
  }

  .search-card {
    right: 16px;
    bottom: 16px;
    left: 16px;
    grid-template-columns: 1fr;
  }

  .search-item {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .detail-card {
    position: static;
  }
}

@media (max-width: 680px) {
  html,
  body {
    overflow-x: hidden;
  }

  .page-wrap {
    padding: 0;
  }

  .app-frame {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 6px;
    min-height: 0;
    padding: 8px 12px;
  }

  .brand-word {
    font-size: 22px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .pill-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: flex;
    width: 100%;
    min-height: 36px;
    padding: 3px;
    overflow-x: auto;
    border-radius: 12px;
    scrollbar-width: none;
  }

  .pill-nav::-webkit-scrollbar {
    display: none;
  }

  .pill-nav a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 11px;
    font-size: 13px;
  }

  .login-button {
    justify-self: end;
    min-width: 64px;
    min-height: 32px;
    font-size: 13px;
  }

  .control-panel {
    top: 78px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  #datePanel {
    width: auto;
  }

  .date-choice {
    min-height: 54px;
    padding: 9px 10px;
  }

  .date-choice strong {
    font-size: 14px;
  }

  .date-picker-day {
    min-height: 34px;
    border-radius: 8px;
    font-size: 12px;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: center;
    justify-self: end;
    gap: 5px;
  }

  .language-switch {
    min-height: 32px;
    padding: 0 7px;
  }

  .language-switch span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .language-switch select {
    min-width: 58px;
    font-size: 12px;
  }

  .hero-section {
    min-height: auto;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(255, 250, 242, 0.96) 0%, rgba(255, 250, 242, 0.86) 42%, rgba(255, 250, 242, 0.24) 100%),
      url("https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?auto=format&fit=crop&w=640&q=50");
    background-position: center;
    background-size: cover;
  }

  .hero-copy {
    padding: 12px 14px 6px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 24px;
    letter-spacing: 0;
    line-height: 1.15;
  }

  .hero-copy p {
    max-width: 22em;
    margin-top: 6px;
    font-size: 13px;
  }

  .hero-copy p:not(.source-status) {
    display: none;
  }

  .source-status {
    display: block;
    max-width: 100%;
    padding: 0;
    background: transparent;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
  }

  .search-card {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 68px;
    min-height: 0;
    margin: 8px 10px 12px;
    border-radius: 15px;
  }

  .destination-item {
    grid-column: 1 / -1;
    min-height: 50px;
  }

  .search-item {
    min-height: 46px;
    padding: 0 11px;
  }

  .search-item strong,
  .search-item input {
    font-size: 14px;
    white-space: nowrap;
  }

  .search-submit {
    grid-column: 3;
    grid-row: 2;
    width: auto;
    min-height: 46px;
    margin: 0;
    border-radius: 0;
  }

  .search-submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px 10px;
  }

  .results-card,
  .detail-card {
    width: 100%;
    min-width: 0;
    border-radius: 14px;
  }

  .results-card,
  .detail-card {
    padding: 10px;
  }

  .region-row,
  .brand-filter,
  .sort-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .region-row {
    overflow-x: visible;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }

  .pin-chip {
    display: none;
  }

  .country-select-wrap {
    flex: 1 1 calc(50% - 3px);
    max-width: none;
    min-height: 34px;
  }

  .country-select-label {
    padding-left: 10px;
    font-size: 11px;
  }

  .country-select-button {
    min-height: 32px;
    padding: 0 9px 0 7px;
  }

  .country-chip-row {
    flex: 1 1 100%;
    width: 100%;
    overflow-x: auto;
  }

  .region-row::-webkit-scrollbar,
  .brand-filter::-webkit-scrollbar,
  .sort-filter::-webkit-scrollbar {
    display: none;
  }

  .region-chip,
  .brand-filter-chip,
  .sort-chip,
  .round-chip {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .control-row,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .control-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .brand-filter,
  .sort-filter {
    width: 100%;
    flex-wrap: nowrap;
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hotel-list {
    display: grid;
    grid-auto-columns: min(330px, calc(100vw - 46px));
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .hotel-list::-webkit-scrollbar {
    display: none;
  }

  .hotel-card {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
    min-height: 116px;
    padding: 8px;
    scroll-snap-align: start;
  }

  .hotel-image {
    align-self: stretch;
    height: 100px;
  }

  .hotel-info {
    align-content: start;
    gap: 6px;
    padding: 0;
  }

  .hotel-title-line {
    align-items: flex-start;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 3px;
    padding-right: 24px;
  }

  .brand-badge {
    min-height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  .hotel-info h3 {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }

  .hotel-location {
    font-size: 12px;
    line-height: 1.2;
  }

  .heart-small {
    top: 9px;
    right: 9px;
    font-size: 18px;
  }

  .hotel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
    gap: 0;
  }

  .hotel-stats > span {
    padding: 5px 6px 0;
    border-right: 0;
  }

  .hotel-stats > span:first-child {
    padding-left: 6px;
  }

  .hotel-stats > span:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .hotel-stats > span > span:not(.rec-pill) {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .hotel-stats strong {
    font-size: 12px;
    line-height: 1.05;
  }

  .hotel-stats .rec-pill {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }

  .show-more {
    min-height: 42px;
  }

  .affiliate-slot {
    gap: 8px;
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 10px;
  }

  .affiliate-copy span,
  .affiliate-copy p {
    display: none;
  }

  .affiliate-copy strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .affiliate-cta {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .detail-card {
    padding: 12px;
    top: auto;
  }

  .heart-button {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .detail-header {
    padding-right: 48px;
  }

  .detail-header h2 {
    font-size: 20px;
    letter-spacing: 0;
  }

  .detail-header p {
    margin: 4px 0 10px;
    font-size: 12px;
  }

  .metric-grid {
    gap: 6px;
    margin-bottom: 10px;
  }

  .metric-grid div {
    min-height: 50px;
    padding: 7px 4px;
  }

  .metric-grid span {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .metric-grid strong {
    font-size: 12px;
    line-height: 1.1;
  }

  .calendar-section .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
  }

  .calendar-heading-main {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .calendar-heading-main h3 {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calendar-nav button {
    width: 26px;
    height: 26px;
    font-size: 17px;
  }

  .legend-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
    font-size: 9px;
    white-space: normal;
  }

  .weekday-row,
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .weekday-row {
    margin: 3px 0;
    font-size: 10px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .date-cell {
    min-height: 32px;
    border-radius: 7px;
    font-size: 11px;
  }

  .date-cell.best strong {
    font-size: 13px;
  }

  .date-cell.best small {
    font-size: 8px;
  }

  .price-section {
    margin-top: 10px;
    margin-right: -2px;
    margin-left: -2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .price-section table {
    min-width: 0;
    table-layout: fixed;
    font-size: 11px;
  }

  .price-section th,
  .price-section td {
    height: 28px;
    padding: 5px 4px;
  }

  .price-section th:nth-child(5),
  .price-section td:nth-child(5) {
    display: none;
  }

  .detail-cta {
    grid-template-columns: 1fr 40px;
    min-height: 46px;
    margin-top: 10px;
    padding-left: 18px;
    font-size: 15px;
  }

  .detail-cta-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 8px 10px;
  }

  .brand-word {
    font-size: 21px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .pill-nav a {
    padding: 0 10px;
    font-size: 12px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .language-switch {
    padding: 0 6px;
  }

  .language-switch select {
    min-width: 56px;
    font-size: 12px;
  }

  .login-button {
    min-width: 58px;
    padding: 0 8px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .workspace {
    padding: 10px;
  }

  .results-card,
  .detail-card {
    padding: 12px;
  }

  .hotel-list {
    grid-auto-columns: calc(100vw - 46px);
  }

  .hotel-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    min-height: 106px;
  }

  .hotel-image {
    height: 88px;
  }

  .heart-small {
    top: 8px;
    right: 8px;
  }

  .hotel-info h3 {
    font-size: 13px;
  }

  .hotel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hotel-stats > span,
  .hotel-stats > span:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .hotel-stats > span:nth-child(even),
  .hotel-stats > span:last-child {
    border-right: 0;
  }

  .hotel-stats strong {
    font-size: 11px;
  }

  .hotel-stats .rec-pill {
    min-height: 20px;
    font-size: 9px;
  }

  .legend-row {
    gap: 4px 7px;
    font-size: 8px;
  }

  .metric-grid {
    gap: 5px;
  }

  .metric-grid div {
    min-height: 46px;
    padding: 6px 3px;
  }

  .metric-grid span {
    font-size: 8px;
  }

  .metric-grid strong {
    font-size: 11px;
  }

  .date-cell {
    min-height: 28px;
    font-size: 11px;
  }

  .price-section table {
    min-width: 0;
  }
}

@media (min-width: 1081px) {
  main {
    grid-template-rows: 190px minmax(0, 1fr);
  }

  .hero-section {
    height: 190px;
  }

  .hero-copy {
    padding: 24px 52px 72px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 3vw, 42px);
  }

  .hero-copy p {
    margin-top: 10px;
  }

  .search-card {
    min-height: 58px;
  }

  .search-submit {
    min-height: 42px;
  }

  .workspace {
    padding: 28px 18px 12px;
  }

  .hotel-list {
    align-content: initial;
  }

  .hotel-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .hotel-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 0;
  }

  .hotel-stats > span,
  .hotel-stats > span:nth-child(2),
  .hotel-stats > span:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .hotel-stats > span:last-child {
    border-right: 0;
  }

  .detail-card {
    padding: 12px;
  }

  .heart-button {
    top: 12px;
    right: 12px;
  }

  .detail-header h2 {
    font-size: 21px;
  }

  .detail-header p {
    margin-bottom: 8px;
  }

  .metric-grid {
    gap: 7px;
    margin-bottom: 8px;
  }

  .metric-grid div {
    min-height: 50px;
    padding: 7px 6px;
  }

  .metric-grid span {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .metric-grid strong {
    font-size: 14px;
  }

  .section-heading {
    margin-bottom: 4px;
  }

  .legend-row {
    gap: 7px;
    font-size: 9px;
  }

  .weekday-row {
    margin: 2px 0;
    font-size: 10px;
  }

  .date-cell {
    min-height: 21px;
    font-size: 10px;
  }

  .date-cell.best strong {
    font-size: 12px;
  }

  .date-cell.best small {
    font-size: 7px;
  }

  .price-section {
    margin-top: 7px;
  }

  .price-section table {
    margin-top: 5px;
    font-size: 10px;
  }

  .price-section th,
  .price-section td {
    height: 23px;
    padding: 3px 4px;
  }

  .table-rec {
    min-height: 20px;
    padding: 0 7px;
  }

  .detail-cta {
    min-height: 42px;
    margin-top: 8px;
    font-size: 15px;
  }

  .detail-cta-icon {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 1081px) and (max-height: 820px) {
  .app-frame {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .topbar {
    min-height: 58px;
    padding: 0 24px;
  }

  .brand-word {
    font-size: 26px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .pill-nav {
    min-height: 38px;
  }

  .pill-nav a {
    min-height: 32px;
    padding: 0 16px;
  }

  .login-button {
    min-height: 36px;
  }

  .language-switch {
    min-height: 36px;
  }

  main {
    grid-template-rows: 168px minmax(0, 1fr);
  }

  .hero-section {
    height: 168px;
    margin: 0 14px;
  }

  .hero-copy {
    padding: 20px 48px 58px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 2.8vw, 38px);
  }

  .hero-copy p {
    margin-top: 6px;
    font-size: 13px;
  }

  .search-card {
    bottom: -12px;
    min-height: 52px;
  }

  .search-item {
    padding: 0 14px;
  }

  .search-submit {
    min-height: 38px;
    margin: 7px 8px;
    font-size: 15px;
  }

  .workspace {
    padding: 22px 14px 10px;
  }

  .results-card {
    padding: 12px;
  }

  .region-row,
  .control-row {
    margin-bottom: 8px;
  }

  .round-chip,
  .region-chip,
  .brand-filter-chip,
  .sort-chip {
    min-height: 28px;
    font-size: 12px;
  }

  .hotel-card {
    gap: 12px;
    min-height: 122px;
    padding: 7px;
  }

  .hotel-image {
    height: 106px;
  }

  .hotel-info h3 {
    font-size: 16px;
  }

  .hotel-stats > span {
    padding: 5px 7px 0;
  }

  .hotel-stats > span > span:not(.rec-pill) {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .hotel-stats strong {
    font-size: 14px;
  }

  .hotel-stats .rec-pill {
    min-height: 24px;
    font-size: 11px;
  }

  .show-more {
    min-height: 26px;
    margin-top: 6px;
  }

  .detail-card {
    padding: 10px;
  }

  .heart-button {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  .detail-header h2 {
    font-size: 19px;
  }

  .detail-header p {
    margin: 3px 0 6px;
    font-size: 12px;
  }

  .metric-grid {
    gap: 5px;
    margin-bottom: 6px;
  }

  .metric-grid div {
    min-height: 44px;
    padding: 6px 5px;
  }

  .metric-grid span {
    margin-bottom: 1px;
    font-size: 8px;
  }

  .metric-grid strong {
    font-size: 13px;
  }

  .section-heading {
    margin-bottom: 3px;
  }

  .section-heading h3,
  .price-section h3 {
    font-size: 13px;
  }

  .legend-row {
    gap: 6px;
    font-size: 8px;
  }

  .weekday-row {
    margin: 1px 0;
    font-size: 9px;
  }

  .date-cell {
    min-height: 19px;
    font-size: 9px;
  }

  .date-cell.best strong {
    font-size: 11px;
  }

  .date-cell.best small {
    font-size: 6px;
  }

  .price-section {
    margin-top: 5px;
  }

  .price-section table {
    margin-top: 4px;
    font-size: 9px;
  }

  .price-section th,
  .price-section td {
    height: 20px;
    padding: 2px 3px;
  }

  .table-rec {
    min-height: 17px;
    padding: 0 5px;
  }

  .detail-cta {
    min-height: 38px;
    margin-top: 6px;
    padding-left: 16px;
    font-size: 14px;
  }

  .detail-cta-icon {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  html,
  body {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }

  .page-wrap,
  .app-frame {
    height: auto;
    min-height: 100dvh;
  }

  .app-frame {
    overflow: visible;
  }

  main {
    min-height: calc(100dvh - 58px);
    grid-template-rows: 168px auto;
  }

  .workspace {
    height: auto;
    min-height: 610px;
    overflow: visible;
  }

  .results-card,
  .detail-card {
    min-height: 570px;
  }

  .detail-card {
    overflow: visible;
  }

  .metric-grid div {
    min-height: 50px;
  }

  .weekday-row {
    margin: 3px 0;
    font-size: 10px;
  }

  .date-cell {
    min-height: 28px;
    font-size: 11px;
  }

  .date-cell.best strong {
    font-size: 13px;
  }

  .date-cell.best small {
    font-size: 8px;
  }

  .price-section {
    margin-top: 8px;
  }

  .price-section table {
    font-size: 10px;
  }

  .price-section th,
  .price-section td {
    height: 26px;
    padding: 4px 4px;
  }

  .table-rec {
    min-height: 22px;
  }

  .detail-cta {
    min-height: 42px;
  }

  .detail-cta-icon {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 1081px) and (min-height: 821px) {
  .section-heading {
    margin-bottom: 8px;
  }

  .legend-row {
    gap: 10px;
    font-size: 10px;
  }

  .weekday-row {
    margin: 5px 0;
    font-size: 11px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .date-cell {
    min-height: 36px;
    border-radius: 7px;
    font-size: 12px;
  }

  .date-cell.best strong {
    font-size: 16px;
  }

  .date-cell.best small {
    font-size: 8px;
  }

  .price-section {
    margin-top: 12px;
  }

  .price-section table {
    margin-top: 8px;
    font-size: 12px;
  }

  .price-section th,
  .price-section td {
    height: 34px;
    padding: 6px 7px;
  }

  .table-rec {
    min-height: 24px;
    padding: 0 10px;
  }

  .detail-cta {
    margin-top: 10px;
  }
}

.detail-card {
  position: relative;
  top: 0;
}
