:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #64717f;
  --quiet: #8995a3;
  --line: #d9e0e7;
  --line-strong: #c8d2dd;
  --line-soft: #e8edf2;
  --panel: #ffffff;
  --surface: #f5f8f7;
  --surface-strong: #eef4f3;
  --field: #fbfcfd;
  --blue: #17468a;
  --blue-soft: #eef3fb;
  --teal: #0d766f;
  --teal-soft: #e8f6f3;
  --green: #1f7a4a;
  --green-soft: #edf8f1;
  --coral: #bc4d3d;
  --coral-soft: #fff1ed;
  --gold: #a87518;
  --shadow-sm: 0 1px 2px rgba(24, 33, 43, 0.06), 0 8px 22px rgba(24, 33, 43, 0.06);
  --shadow-md: 0 16px 38px rgba(24, 33, 43, 0.11);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--surface);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(250, 252, 251, 0.97), rgba(237, 244, 243, 0.98)),
    url("/api/image?src=https%3A%2F%2Fassets.dream.clubmed%2Fpm_7531_303_303643-e9r1htha5t-swhr.jpg") center/cover fixed;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.standalone body {
  background-attachment: scroll;
  overscroll-behavior-y: none;
}

button,
input {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:active {
  transform: scale(0.99);
}

.landing-body {
  background:
    linear-gradient(180deg, rgba(250, 252, 251, 0.96), rgba(237, 244, 243, 0.98)),
    url("/api/image?src=https%3A%2F%2Fassets.dream.clubmed%2Fpm_7531_303_303643-e9r1htha5t-swhr.jpg") center/cover fixed;
}

.landing-shell {
  width: min(1080px, 100%);
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 18px;
  margin: 0 auto;
  padding: 28px 22px 36px;
}

.landing-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 21px;
  font-weight: 920;
  box-shadow: 0 10px 24px rgba(24, 33, 43, 0.16);
}

.landing-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 22px;
  border: 1px solid rgba(217, 224, 231, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 246, 243, 0.8)),
    rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.landing-hero h2 {
  max-width: 720px;
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.apps-panel {
  border: 1px solid rgba(217, 224, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.apps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.8fr);
  gap: 12px;
  padding: 18px 20px 20px;
}

.app-tile {
  min-height: 132px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 14px;
  text-decoration: none;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.app-tile-featured {
  background:
    linear-gradient(135deg, #ffffff, rgba(232, 246, 243, 0.92)),
    var(--teal-soft);
  border-color: rgba(13, 118, 111, 0.24);
}

.app-tile-muted {
  grid-template-columns: auto minmax(0, 1fr);
  border-style: dashed;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.app-logo {
  width: 64px;
  height: 64px;
  border-radius: 17px;
  box-shadow: 0 8px 18px rgba(24, 33, 43, 0.16);
}

.app-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
}

.app-icon svg {
  width: 21px;
  height: 21px;
}

.app-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-copy strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.app-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.app-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(13, 118, 111, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 850;
}

.app-open {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(23, 70, 138, 0.2);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
}

.app-open svg {
  width: 17px;
  height: 17px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 20px 22px 28px;
}

.standalone .shell {
  padding-top: max(20px, calc(env(safe-area-inset-top) + 12px));
  padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-lockup {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.market-pill,
.mini-pill,
.source-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(13, 118, 111, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.mini-pill {
  border-color: rgba(23, 70, 138, 0.2);
  color: var(--blue);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 122, 74, 0.12);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(380px, 500px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.search-panel,
.results-panel {
  border: 1px solid rgba(217, 224, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.search-panel {
  position: sticky;
  top: 18px;
  z-index: 5;
  padding: 18px;
  overflow: visible;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 4px;
}

.panel-head .source-pill {
  background: var(--teal-soft);
}

.recent-searches {
  display: grid;
  gap: 10px;
  padding: 14px 0 2px;
  border-bottom: 1px solid var(--line-soft);
}

.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recent-head h3 {
  font-size: 15px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 4px 0;
  font-size: 12px;
  font-weight: 850;
}

.recent-list {
  display: grid;
  gap: 8px;
}

.recent-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 10px;
  text-align: left;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.recent-main,
.recent-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.recent-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 880;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-main span,
.recent-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.recent-meta {
  justify-items: end;
  text-align: right;
}

.recent-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.recent-meta svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

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

form {
  gap: 0;
}

.span-2 {
  grid-column: 1 / -1;
}

.form-section {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.form-section:first-child {
  border-top: 0;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: start;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.section-title svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.section-body {
  min-width: 0;
}

.nested-grid {
  padding-top: 12px;
}

.field,
.toggle {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.field input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  padding: 9px 11px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}

.field input::placeholder {
  color: #a4adb7;
  font-weight: 600;
}

.field input:focus {
  border-color: rgba(23, 70, 138, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 70, 138, 0.12);
}

.field input:disabled {
  background: #edf1f4;
  color: #8a94a1;
}

.compact-field input {
  text-align: center;
}

.field-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.field-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.field-button svg {
  width: 16px;
  height: 16px;
}

.segmented {
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--surface-strong);
}

.segmented legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.segmented label {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented label:has(input:checked) {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 2px rgba(24, 33, 43, 0.08);
}

.toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--field);
  padding: 9px 10px;
  color: var(--ink);
}

.toggle input {
  position: absolute;
  opacity: 0;
}

.switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cbd4dd;
  position: relative;
  transition: background 160ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
  box-shadow: 0 2px 7px rgba(24, 33, 43, 0.2);
}

.toggle input:checked + .switch {
  background: var(--teal);
}

.toggle input:checked + .switch::after {
  transform: translateX(18px);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-self: end;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.primary-button,
.secondary-button,
.icon-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 880;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 70, 138, 0.18);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.primary-button.is-loading {
  background: #315c9a;
}

.secondary-button {
  background: #fff;
  color: var(--blue);
  border-color: rgba(23, 70, 138, 0.28);
}

.secondary-button.is-running {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.icon-button {
  background: var(--surface-strong);
  color: var(--ink);
  border-color: var(--line);
}

.primary-button svg,
.secondary-button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.hidden {
  display: none !important;
}

.destination-picker {
  position: relative;
  z-index: 4;
}

.conditional-field {
  animation: reveal 140ms ease-out;
}

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

.selected-resorts {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  border: 1px solid rgba(13, 118, 111, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, rgba(232, 246, 243, 0.68));
  padding: 10px;
}

.selected-resorts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.selected-resorts-head > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.selected-resorts-head strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 920;
}

.selected-resorts-head span span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-clear {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 3px 0;
  font-size: 12px;
  font-weight: 850;
}

.selected-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-chip {
  min-height: 46px;
  max-width: 100%;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 118, 111, 0.24);
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--ink);
  padding: 6px 8px 6px 6px;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.selected-chip span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.selected-chip strong,
.selected-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-chip strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 880;
}

.selected-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.selected-chip img {
  width: 38px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.selected-chip svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex: none;
}

.matches {
  display: grid;
  gap: 7px;
  max-height: 274px;
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 7px;
}

.match-status {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.match-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 56px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 7px 9px;
  background: #fff;
  cursor: pointer;
}

.match-row:has(input:checked) {
  border-color: rgba(13, 118, 111, 0.45);
  background: var(--green-soft);
}

.match-row input {
  width: 19px;
  height: 19px;
  accent-color: var(--teal);
}

.match-row img {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface);
}

.match-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.match-row span span {
  color: var(--muted);
  font-size: 12px;
}

.results-panel {
  min-height: 700px;
  display: flex;
  flex-direction: column;
}

.results-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.82);
}

.results-media {
  height: 84px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
}

.results-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.results-content {
  display: grid;
  gap: 14px;
  padding: 18px 20px 22px;
}

.status-bar {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  background: var(--field);
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.status-bar span:first-child {
  color: var(--ink);
}

.status-bar span:last-child {
  color: var(--quiet);
  text-align: right;
}

.search-progress {
  overflow: hidden;
  border: 1px solid rgba(23, 70, 138, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff, rgba(238, 243, 251, 0.76)),
    var(--blue-soft);
  padding: 13px;
  box-shadow: 0 8px 22px rgba(23, 70, 138, 0.08);
  animation: reveal 160ms ease-out;
}

.search-progress.is-complete {
  border-color: rgba(31, 122, 74, 0.28);
  background:
    linear-gradient(135deg, #ffffff, rgba(237, 248, 241, 0.84)),
    var(--green-soft);
}

.search-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-progress-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-progress-title > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.search-progress-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 920;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-progress-title span span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-progress-orbit {
  width: 38px;
  height: 38px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(23, 70, 138, 0.2);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: inset 0 0 0 5px rgba(23, 70, 138, 0.05);
}

.search-progress:not(.is-complete) .search-progress-orbit {
  animation: scanPulse 1100ms ease-in-out infinite;
}

.search-progress-orbit svg {
  width: 18px;
  height: 18px;
}

.search-progress.is-complete .search-progress-orbit {
  border-color: rgba(31, 122, 74, 0.25);
  color: var(--green);
  box-shadow: inset 0 0 0 5px rgba(31, 122, 74, 0.07);
}

.search-progress-count {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 70, 138, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 920;
  white-space: nowrap;
}

.search-progress-meter {
  width: 100%;
  height: 12px;
  display: block;
  margin-top: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 70, 138, 0.1);
  appearance: none;
}

.search-progress-meter::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(23, 70, 138, 0.1);
}

.search-progress-meter::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 220ms ease;
}

.search-progress-meter::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.search-progress-meter:indeterminate {
  background:
    linear-gradient(90deg, transparent, rgba(23, 70, 138, 0.24), transparent) 0 0 / 42% 100%,
    rgba(23, 70, 138, 0.1);
  animation: progressSweep 1200ms ease-in-out infinite;
}

.search-progress-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.search-progress-foot span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(217, 224, 231, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

@keyframes scanPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 5px rgba(23, 70, 138, 0.05),
      0 0 0 0 rgba(23, 70, 138, 0.16);
  }
  50% {
    box-shadow:
      inset 0 0 0 5px rgba(23, 70, 138, 0.08),
      0 0 0 7px rgba(23, 70, 138, 0);
  }
}

@keyframes progressSweep {
  from {
    background-position: -45% 0, 0 0;
  }
  to {
    background-position: 145% 0, 0 0;
  }
}

.alert-banner {
  border: 1px solid rgba(188, 77, 61, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--coral-soft);
  color: #852d22;
  font-weight: 850;
}

.lowest-result {
  border-radius: 8px;
}

.price-explorer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
  animation: reveal 160ms ease-out;
}

.price-explorer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fff, rgba(245, 248, 247, 0.82));
}

.price-explorer-head h3 {
  font-size: 17px;
  letter-spacing: 0;
}

.price-explorer-count {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 70, 138, 0.18);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.price-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 0;
}

.price-summary-item {
  min-width: 0;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--field);
  padding: 9px 10px;
}

.price-summary-item span,
.price-pick-copy span,
.combo-resort {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-summary-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 920;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 12px 14px 0;
  border: 1px solid rgba(23, 70, 138, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, rgba(238, 243, 251, 0.72));
  padding: 12px;
}

.price-pick.is-best {
  border-color: rgba(31, 122, 74, 0.28);
  background: linear-gradient(135deg, #ffffff, rgba(237, 248, 241, 0.86));
}

.price-pick-copy,
.price-pick-action {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.price-pick-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 920;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-pick-copy p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-pick-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-pick-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-pick-meta span:last-child {
  flex: none;
  color: var(--quiet);
  white-space: nowrap;
}

.price-pick-action {
  justify-items: end;
}

.price-pick-action > strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 920;
  white-space: nowrap;
}

.price-bars-wrap {
  padding: 14px 14px 9px;
}

.price-bars {
  min-height: 174px;
  display: flex;
  align-items: stretch;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}

.price-bar-button {
  width: 62px;
  min-width: 62px;
  height: 162px;
  display: grid;
  grid-template-rows: 25px minmax(0, 1fr) 24px;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 6px 5px;
  scroll-snap-align: start;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.bar-price,
.bar-date {
  overflow: hidden;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-price {
  color: var(--ink);
}

.bar-date {
  align-self: center;
  color: var(--muted);
}

.bar-track {
  min-height: 0;
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fbfc, #edf2f5);
}

.bar-fill {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 18%;
  display: block;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: height 220ms ease;
}

.bar-fill-level-1 .bar-fill {
  height: 18%;
}

.bar-fill-level-2 .bar-fill {
  height: 25%;
}

.bar-fill-level-3 .bar-fill {
  height: 32%;
}

.bar-fill-level-4 .bar-fill {
  height: 39%;
}

.bar-fill-level-5 .bar-fill {
  height: 46%;
}

.bar-fill-level-6 .bar-fill {
  height: 53%;
}

.bar-fill-level-7 .bar-fill {
  height: 60%;
}

.bar-fill-level-8 .bar-fill {
  height: 67%;
}

.bar-fill-level-9 .bar-fill {
  height: 74%;
}

.bar-fill-level-10 .bar-fill {
  height: 81%;
}

.bar-fill-level-11 .bar-fill {
  height: 88%;
}

.bar-fill-level-12 .bar-fill {
  height: 96%;
}

.price-band-low .bar-fill,
.price-band-low .combo-price {
  color: var(--green);
}

.price-band-low .bar-fill {
  background: linear-gradient(180deg, #3b9a67, var(--green));
}

.price-band-mid .bar-fill,
.price-band-mid .combo-price {
  color: var(--gold);
}

.price-band-mid .bar-fill {
  background: linear-gradient(180deg, #d8a23c, var(--gold));
}

.price-band-high .bar-fill,
.price-band-high .combo-price {
  color: var(--coral);
}

.price-band-high .bar-fill {
  background: linear-gradient(180deg, #d86955, var(--coral));
}

.price-bar-button.is-selected,
.price-combo-button.is-selected,
.lowest-card.is-selected,
.result-card.is-selected {
  border-color: rgba(23, 70, 138, 0.56);
  box-shadow: 0 0 0 3px rgba(23, 70, 138, 0.12);
}

.price-bar-button:focus-visible,
.price-combo-button:focus-visible {
  outline: 3px solid rgba(23, 70, 138, 0.22);
  outline-offset: 2px;
}

.price-combo-grid {
  max-height: 324px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
  overflow: auto;
  padding: 0 14px 14px;
}

.price-combo-button {
  min-width: 0;
  min-height: 98px;
  display: grid;
  align-content: space-between;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 9px;
  text-align: left;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.price-combo-button.is-lowest {
  border-color: rgba(31, 122, 74, 0.34);
  background: var(--green-soft);
}

.combo-dates {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.combo-dates strong,
.combo-price {
  color: var(--ink);
  font-weight: 920;
  white-space: nowrap;
}

.combo-price {
  overflow: hidden;
  font-size: 20px;
  line-height: 1;
  text-overflow: ellipsis;
}

.combo-resort {
  display: block;
  text-transform: none;
}

.empty-state {
  border: 1px dashed #b9c4ce;
  min-height: 152px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--field);
  text-align: center;
  padding: 24px;
}

.empty-state-content {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 360px;
}

.empty-state-content svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
}

.empty-state-content strong {
  color: var(--ink);
  font-size: 15px;
}

.empty-state-content span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.lowest-card,
.result-card {
  display: grid;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
}

.lowest-card {
  grid-template-columns: 126px minmax(0, 1fr) auto;
  border: 1px solid rgba(31, 122, 74, 0.28);
  background: var(--green-soft);
  padding: 14px;
}

.result-card {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.lowest-card img,
.result-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  background: var(--surface);
}

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

.card-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 9px;
  background: #fff;
  color: var(--green);
  font-size: 12px;
  font-weight: 880;
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 0;
}

.stay-details {
  display: grid;
  gap: 7px;
  margin-top: 7px;
}

.location-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.date-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.date-range > svg {
  width: 14px;
  height: 14px;
  color: var(--quiet);
  flex: none;
}

.date-chip {
  min-height: 40px;
  display: grid;
  gap: 1px;
  border: 1px solid rgba(217, 224, 231, 0.9);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px 8px;
}

.date-chip span {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.date-chip strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 860;
  white-space: nowrap;
}

.nights-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.card-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
  min-width: 112px;
}

.price-stack {
  text-align: right;
}

.price {
  color: var(--ink);
  font-size: 23px;
  font-weight: 920;
  line-height: 1.05;
  white-space: nowrap;
}

.lowest-card .price {
  color: var(--green);
  font-size: 26px;
}

.was-price {
  color: var(--quiet);
  text-decoration: line-through;
  font-size: 12px;
  margin-top: 3px;
}

.results-list {
  display: grid;
  gap: 10px;
}

.open-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  border: 1px solid rgba(23, 70, 138, 0.26);
  padding: 0 10px;
  color: var(--blue);
  background: #fff;
  text-decoration: none;
  font-weight: 850;
  font-size: 13px;
}

.open-link svg {
  width: 15px;
  height: 15px;
}

.errors-list {
  color: #852d22;
  font-size: 13px;
}

.errors-list p {
  margin-bottom: 0;
}

.install-sheet {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  justify-items: center;
  padding: 16px 16px max(16px, calc(env(safe-area-inset-bottom) + 12px));
  pointer-events: none;
}

.install-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(217, 224, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  padding: 12px;
  pointer-events: auto;
  backdrop-filter: blur(16px);
}

.install-app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(24, 33, 43, 0.16);
}

.install-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.install-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.install-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.install-steps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.install-steps span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(23, 70, 138, 0.18);
  border-radius: 999px;
  background: var(--blue-soft);
  padding: 4px 8px;
}

.install-steps svg,
.install-dismiss svg {
  width: 15px;
  height: 15px;
}

.install-dismiss {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  padding: 0;
}

@media (hover: hover) {
  .field-button:hover,
  .secondary-button:hover,
  .open-link:hover,
  .recent-card:hover,
  .app-tile:hover,
  .selected-chip:hover,
  .price-bar-button:hover,
  .price-combo-button:hover {
    border-color: rgba(23, 70, 138, 0.45);
    background: var(--blue-soft);
  }

  .primary-button:hover {
    background: #1b519e;
    box-shadow: 0 10px 22px rgba(23, 70, 138, 0.22);
  }

  .result-card:hover {
    border-color: var(--line-strong, #c8d2dd);
    box-shadow: 0 8px 20px rgba(24, 33, 43, 0.06);
  }

  .match-row:hover {
    border-color: #c9d4dd;
  }
}

@media (max-width: 1040px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .search-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(180deg, rgba(250, 252, 251, 0.99), rgba(237, 244, 243, 0.99)),
      url("/api/image?src=https%3A%2F%2Fassets.dream.clubmed%2Fpm_7531_303_303643-e9r1htha5t-swhr.jpg") center/cover fixed;
  }

  .shell {
    padding: 12px;
  }

  .landing-shell {
    gap: 14px;
    padding: 16px 12px;
  }

  .landing-header {
    align-items: flex-start;
    min-height: 0;
  }

  .landing-header h1 {
    font-size: 28px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }

  .landing-status .mini-pill {
    display: none;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .landing-hero h2 {
    font-size: 30px;
  }

  .apps-head,
  .apps-grid {
    padding-inline: 14px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-tile {
    min-height: 104px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px;
  }

  .app-tile-muted {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .app-logo {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .app-copy strong {
    font-size: 16px;
  }

  .app-tags {
    gap: 5px;
  }

  .standalone .shell {
    padding-top: max(12px, calc(env(safe-area-inset-top) + 8px));
    padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
  }

  .topbar {
    align-items: flex-start;
    min-height: 0;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .mini-pill {
    display: none;
  }

  .search-panel,
  .results-panel {
    border-radius: 8px;
  }

  .search-panel {
    padding: 14px;
  }

  .panel-head {
    align-items: center;
    padding-bottom: 14px;
  }

  .source-pill {
    display: none;
  }

  .recent-searches {
    padding-top: 12px;
  }

  .recent-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .recent-meta {
    justify-items: start;
    text-align: left;
  }

  .form-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }

  .section-title {
    color: var(--muted);
  }

  form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nested-grid {
    padding-top: 10px;
  }

  .span-2 {
    grid-column: auto;
  }

  .field-control {
    grid-template-columns: 1fr;
  }

  .selected-resorts-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .selected-chip-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .selected-chip {
    width: 100%;
  }

  .actions {
    position: static;
    z-index: 6;
    grid-template-columns: 1fr 1fr;
    margin: 4px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(232, 237, 242, 0.9);
    background: transparent;
  }

  .matches {
    max-height: 246px;
  }

  .match-row {
    grid-template-columns: auto 54px 1fr;
  }

  .results-head {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 12px;
    padding: 14px;
  }

  .results-media {
    height: 66px;
  }

  .results-content {
    padding: 14px;
    gap: 12px;
  }

  .price-explorer-head {
    padding: 12px;
  }

  .price-summary {
    padding: 10px 12px 0;
  }

  .price-summary-item {
    padding: 8px;
  }

  .price-summary-item strong {
    font-size: 14px;
  }

  .price-pick {
    grid-template-columns: 1fr;
    margin: 10px 12px 0;
    padding: 10px;
  }

  .price-pick-copy strong,
  .price-pick-copy p {
    white-space: normal;
  }

  .price-pick-meta {
    flex-wrap: wrap;
  }

  .price-pick-action {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
  }

  .price-bars-wrap {
    padding: 12px 12px 8px;
  }

  .price-bars {
    min-height: 162px;
  }

  .price-bar-button {
    width: 58px;
    min-width: 58px;
    height: 150px;
  }

  .price-combo-grid {
    max-height: 286px;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    padding: 0 12px 12px;
  }

  .price-combo-button {
    min-height: 92px;
    padding: 8px;
  }

  .combo-price {
    font-size: 18px;
  }

  .status-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .status-bar span:last-child {
    text-align: left;
  }

  .search-progress {
    padding: 11px;
  }

  .search-progress-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .search-progress-count {
    align-self: flex-start;
  }

  .search-progress-title strong,
  .search-progress-title span span {
    white-space: normal;
  }

  .search-progress-foot {
    gap: 6px;
  }

  .lowest-card,
  .result-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .lowest-card {
    padding: 12px;
  }

  .result-card {
    padding: 10px;
  }

  .card-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: stretch;
  }

  .date-range {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
  }

  .date-range > svg {
    display: none;
  }

  .date-chip {
    width: 100%;
    min-width: 0;
    padding-inline: 7px;
  }

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

  .nights-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .price-stack {
    text-align: left;
  }

  .price {
    font-size: 22px;
  }

  .lowest-card .price {
    font-size: 24px;
  }

  .open-link {
    min-width: 92px;
  }

  .install-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .install-steps {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .install-steps span {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .topbar {
    flex-direction: column;
    gap: 10px;
  }

  .landing-header {
    flex-direction: column;
    gap: 12px;
  }

  .topbar-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .market-pill {
    min-height: 30px;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .results-head {
    grid-template-columns: 1fr;
  }

  .results-media {
    height: 82px;
  }

  .price-explorer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-summary {
    grid-template-columns: 1fr;
  }

  .price-pick-action {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .price-pick-action .open-link {
    width: 100%;
  }
}
