:root {
  color-scheme: light;
  --ink: #0a1d33;
  --muted: #5f7186;
  --soft: #8ea0b5;
  --line: #d9e6f2;
  --paper: #f6fbff;
  --panel: #ffffff;
  --accent: #1769e0;
  --accent-deep: #0b3f91;
  --accent-soft: #e8f2ff;
  --warning: #9a5b28;
  --warning-soft: #fff4e6;
  --shadow: 0 28px 80px rgba(16, 64, 118, 0.12);
  --soft-shadow: 0 14px 34px rgba(16, 64, 118, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 38%, #eef7ff 100%);
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 60px;
}

.app-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 12px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(217, 230, 242, 0.86);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 750;
  backdrop-filter: blur(18px);
}

.hero-banner {
  position: relative;
  min-height: clamp(260px, 34vh, 360px);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 14px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 40%, rgba(149, 225, 249, 0.72), transparent 28%),
    linear-gradient(110deg, #c8f1ff 0%, #edf9ff 46%, #fffef6 100%);
  box-shadow: var(--shadow);
}

.hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.7), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 20% 20%, rgba(10, 29, 51, 0.08) 0 1px, transparent 1px 4px);
  opacity: 0.18;
  mix-blend-mode: multiply;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-14px, -8px, 0);
  }
}

.bird {
  position: absolute;
  left: -34%;
  top: 26%;
  width: clamp(220px, 32vw, 520px);
  height: clamp(72px, 9vw, 132px);
  opacity: 0.24;
  background-image:
    radial-gradient(circle, rgba(10, 29, 51, 0.84) 0 1.15px, transparent 1.35px);
  background-size: 10px 10px;
  border-radius: 48% 52% 42% 58%;
  filter: blur(0.1px);
  mask-image:
    radial-gradient(ellipse at 25% 56%, #000 0 23%, transparent 47%),
    radial-gradient(ellipse at 54% 45%, #000 0 28%, transparent 55%),
    radial-gradient(ellipse at 82% 56%, #000 0 22%, transparent 48%),
    linear-gradient(100deg, transparent 0 6%, #000 18% 82%, transparent 96% 100%);
  mask-composite: add;
  animation: migrate 26s linear infinite;
}

.bird::before,
.bird::after {
  content: "";
  position: absolute;
  inset: 18% 8%;
  background-image:
    radial-gradient(circle, rgba(10, 29, 51, 0.9) 0 1px, transparent 1.2px);
  background-size: 13px 13px;
  opacity: 0.82;
  transform: rotate(-8deg);
  mask-image:
    linear-gradient(95deg, transparent 0 8%, #000 18% 78%, transparent 92% 100%),
    radial-gradient(ellipse at 50% 50%, #000 0 34%, transparent 66%);
}

.bird::after {
  inset: 34% 0 8% 24%;
  opacity: 0.58;
  transform: rotate(7deg);
}

.bird-two {
  top: 12%;
  animation-delay: -2.8s;
  animation-duration: 32s;
  transform: scale(0.74) rotate(-5deg);
}

.bird-three {
  top: 38%;
  animation-delay: -5.9s;
  animation-duration: 28s;
  transform: scale(0.56) rotate(6deg);
}

.bird-four {
  top: 50%;
  animation-delay: -8.1s;
  animation-duration: 36s;
  transform: scale(0.86) rotate(-3deg);
}

.bird-five {
  top: 20%;
  animation-delay: -11.2s;
  animation-duration: 30s;
  transform: scale(0.42) rotate(10deg);
}

.bird-six {
  top: 60%;
  animation-delay: -6.7s;
  animation-duration: 34s;
  transform: scale(0.62) rotate(4deg);
}

.bird-seven {
  top: 3%;
  animation-delay: -13.4s;
  animation-duration: 29s;
  transform: scale(0.38) rotate(-8deg);
}

@keyframes migrate {
  0% {
    translate: -32vw 60px;
  }
  45% {
    translate: 48vw -16px;
  }
  100% {
    translate: calc(100vw + 34vw) 42px;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 760px;
  color: var(--ink);
  text-align: center;
  animation: riseIn 720ms ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 560px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.45;
}

.hero-copy .eyebrow {
  color: var(--ink);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: white;
  text-decoration: none;
  background: var(--ink);
  font-weight: 850;
  box-shadow: 0 16px 34px rgba(10, 29, 51, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-cta::after {
  content: "↓";
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  font-size: 0.78rem;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(10, 29, 51, 0.2);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-wrap {
  position: sticky;
  top: 12px;
  z-index: 4;
  margin-bottom: 12px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 1.12fr 0.95fr 1fr 0.85fr 0.95fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(217, 230, 242, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

select,
input,
button {
  width: 100%;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
  font: inherit;
}

select,
input {
  padding: 0 12px;
}

select:focus,
input:focus,
button:focus-visible {
  outline: 3px solid rgba(31, 95, 85, 0.18);
  outline-offset: 1px;
  border-color: var(--accent);
}

button {
  cursor: pointer;
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 24px;
}

.summary > div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(217, 230, 242, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.summary-label {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary strong {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-top: 0;
}

.results-head h2 {
  margin-bottom: 4px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: 0;
}

.results-head p {
  margin-bottom: 0;
  color: var(--muted);
}

#resetButton {
  width: 92px;
  flex: 0 0 auto;
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(217, 230, 242, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  animation: riseIn 580ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(16, 64, 118, 0.15);
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.empty-state p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.photo {
  position: relative;
  min-height: clamp(190px, 22vw, 260px);
  background-size: cover;
  background-position: center;
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 24, 48, 0.02), rgba(4, 24, 48, 0.2));
}

.recommendation-label {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(16, 64, 118, 0.14);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.card-body {
  padding: 18px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.card h2 {
  margin-bottom: 4px;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 0.98;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 850;
}

.meta {
  color: var(--muted);
  line-height: 1.45;
}

.note {
  margin: 12px 0 0;
  font-size: 0.94rem;
}

.trip-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.trip-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(232, 242, 255, 0.58);
  font-size: 0.8rem;
  font-weight: 800;
}

.offer-meta {
  margin: 10px 0 0;
  color: var(--warning);
  font-size: 0.82rem;
  font-weight: 800;
}

.stay-card {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(246, 251, 255, 0.86);
}

.stay-card span {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stay-carousel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stay-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stay-controls button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-color: var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1;
}

.stay-card .stay-controls strong {
  min-width: 26px;
  color: var(--soft);
  font-size: 0.72rem;
  text-align: center;
}

.stay-card strong {
  font-size: 0.98rem;
}

.stay-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.stay-card .stay-option-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.stay-card .rating-line {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.price-breakdown {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.compare-button {
  width: auto;
  min-width: 104px;
  height: 42px;
  padding: 0 14px;
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: white;
}

.compare-button.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.card-actions,
.compare-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.book-button {
  width: auto;
  min-width: 124px;
  height: 42px;
  padding: 0 14px;
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.ai-reason {
  position: relative;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(23, 105, 224, 0.12);
  border-radius: 18px;
  background: rgba(232, 242, 255, 0.64);
  color: #17314f;
  line-height: 1.5;
  font-size: 0.95rem;
}

.over-budget {
  border-color: rgba(155, 80, 61, 0.34);
}

.over-budget .tag {
  background: var(--warning-soft);
  color: var(--warning);
}

.compare-panel {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.compare-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.compare-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

#clearCompareButton {
  width: 92px;
  flex: 0 0 auto;
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

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

.compare-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(245, 240, 231, 0.5);
  text-align: center;
}

.compare-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.compare-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 850;
}

.compare-card h3 {
  margin: 10px 0 4px;
  font-size: 1.25rem;
}

.compare-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.compare-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.compare-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.compare-card dt {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.compare-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  text-align: right;
}

.compare-stay {
  color: var(--ink) !important;
  font-weight: 850;
}

.compare-reason {
  font-size: 0.92rem;
}

.remove-compare {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.booking-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.booking-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.booking-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.booking-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.booking-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.booking-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.booking-card dt {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.booking-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  text-align: right;
}

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

.booking-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  color: white;
  background: var(--accent-deep);
  text-decoration: none;
  font-weight: 850;
}

.booking-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.method {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  margin-top: 42px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.method h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

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

.method article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.method article span {
  display: block;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.method h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.method p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

@media (max-width: 960px) {
  .search-panel,
  .summary,
  .compare-grid,
  .booking-panel,
  .method,
  .method-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 18px;
  }

  .hero-banner {
    min-height: 300px;
    border-radius: 26px;
    padding: 24px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 4.6rem);
  }

  .search-wrap {
    position: static;
  }

  .search-panel,
  .summary,
  .cards {
    grid-template-columns: 1fr;
  }

  .photo {
    min-height: 210px;
  }

  .card,
  .compare-panel,
  .booking-panel,
  .method {
    border-radius: 24px;
  }

  .results-head {
    display: grid;
  }

  .compare-head,
  .price-row {
    display: grid;
  }

  #resetButton,
  #clearCompareButton,
  .compare-button,
  .book-button {
    width: 100%;
  }

  .card-actions,
  .compare-actions,
  .booking-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bird {
    animation: none;
    left: 38%;
  }

  .hero-image {
    animation: none;
  }
}
