@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Feature Display";
  src: url("assets/feature-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f7f6f0;
  --surface: #fbfaf5;
  --surface-strong: #ffffff;
  --ink: #003a3b;
  --muted: #536b69;
  --line: #cbd7d2;
  --accent: #003a3b;
  --accent-hover: #075456;
  --accent-soft: #f0e9ce;
  --danger: #b54232;
  --danger-soft: #f8e7e2;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 58, 59, 0.14);
  font-family: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; }

.site-header,
main,
footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { display: block; width: 118px; height: auto; }
.environment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}
.environment span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero {
  min-height: min(720px, calc(100dvh - 72px));
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  padding: 32px 0 72px;
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 12px 0 20px;
  font-family: "Feature Display", Arial, sans-serif;
  font-size: clamp(3.6rem, 5.8vw, 6.3rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.hero-copy > p:not(.eyebrow, .page-message) { max-width: 40ch; margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-action { margin-top: 28px; }
.page-message { min-height: 1.5em; margin: 12px 0 0; color: var(--danger); font-size: 0.84rem; }
.eyebrow { margin: 0; color: var(--accent); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.hero-media {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe6e3;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 600px; object-fit: cover; }
.hero-image-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #dfe6e3 20%, #eef2f0 50%, #dfe6e3 80%);
  background-size: 220% 100%;
}
.hotel-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(0, 58, 59, 0.88);
  color: #f0e9ce;
  backdrop-filter: blur(14px);
}
#hotel-name { font-weight: 750; }
#hotel-location { color: #d8e1dd; text-align: right; }

.how-it-works { margin-bottom: 110px; padding: clamp(34px, 6vw, 72px); border-radius: var(--radius); background: var(--accent-soft); }
.how-it-works h2 { max-width: 12ch; margin: 0 0 42px; font-family: "Feature Display", Arial, sans-serif; font-size: clamp(2.6rem, 4.4vw, 4.7rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.02em; }
.how-it-works ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 0; padding: 0; list-style: none; }
.how-it-works li { padding-top: 17px; border-top: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); }
.how-it-works strong { display: block; margin-bottom: 8px; }
.how-it-works li p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}
.button:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: 0.62; }
.button-primary { border: 1px solid var(--accent); background: var(--accent); color: #f0e9ce; }
.button-primary:hover:not(:disabled) { background: var(--accent-hover); }
.button-secondary { border: 1px solid var(--line); background: var(--surface-strong); color: var(--ink); }

input, select, textarea {
  width: 100%;
  border: 1px solid #adbbb6;
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}
input, select { min-height: 48px; padding: 0 13px; }
textarea { resize: vertical; padding: 12px 13px; }
.field { display: grid; gap: 7px; }
.field label, .calendar-field > label { font-size: 0.84rem; font-weight: 740; }
.field-help { min-height: 1.2em; color: var(--muted); font-size: 0.75rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 2px;
}

.booking-modal {
  width: min(1120px, calc(100% - 30px));
  max-width: none;
  height: min(850px, calc(100dvh - 30px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.booking-modal::backdrop { background: rgba(0, 41, 42, 0.72); backdrop-filter: blur(6px); }
.modal-frame { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-brand { display: flex; align-items: center; gap: 16px; }
.modal-brand > img { width: 72px; height: auto; }
.modal-header h2 { margin: 2px 0 0; font-family: "Feature Display", Arial, sans-serif; font-size: 1.45rem; font-weight: 400; letter-spacing: 0; }
.modal-kicker { color: var(--muted); font-size: 0.72rem; font-weight: 720; text-transform: uppercase; letter-spacing: 0.1em; }
.close-button { padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--muted); font-weight: 700; }

.progress { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 24px; border-bottom: 1px solid var(--line); }
.progress button {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.81rem;
  font-weight: 720;
}
.progress button span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 0.7rem; }
.progress button[aria-current="step"] { border-bottom-color: var(--accent); color: var(--ink); }
.progress button[aria-current="step"] span { border-color: var(--accent); background: var(--accent); color: #fff; }
.progress button:disabled { cursor: default; opacity: 0.52; }

.modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.wizard-panel { padding: clamp(24px, 4vw, 48px); }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.panel-heading h3, .success-panel h3 { margin: 7px 0 0; font-family: "Feature Display", Arial, sans-serif; font-size: clamp(2.1rem, 3.4vw, 3.7rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.015em; }
.panel-summary { margin: 8px 0 0; color: var(--muted); }
.availability-legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.76rem; }
.availability-legend span { min-width: 25px; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: #f0e9ce; text-align: center; font-weight: 700; }

.date-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.calendar-field { min-width: 0; }
.calendar-field > input { margin: 7px 0 14px; }
.calendar-status { margin-top: 10px; color: var(--muted); font-size: 0.77rem; }
.stay-sidebar { display: grid; gap: 20px; padding: 22px; border: 0; border-radius: var(--radius); background: var(--accent-soft); }
.stay-note { padding-top: 17px; border-top: 1px solid var(--line); }
.stay-note strong { font-size: 0.85rem; }
.stay-note p { margin: 5px 0 0; color: var(--muted); font-size: 0.78rem; }

.message { padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 0.82rem; }
.message.error { background: var(--danger-soft); color: var(--danger); }
.text-button { padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--accent); font-weight: 750; white-space: nowrap; }

.results-list { display: grid; gap: 13px; }
.room-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}
.room-card img, .room-image-placeholder { width: 190px; height: 132px; border-radius: calc(var(--radius) - 5px); object-fit: cover; background: #dce4e1; }
.room-card .hero-image-skeleton { position: relative; }
.room-copy h4 { margin: 0 0 6px; font-family: "Feature Display", Arial, sans-serif; font-size: 1.45rem; font-weight: 400; letter-spacing: 0; }
.room-copy p { display: -webkit-box; max-width: 55ch; margin: 0 0 12px; overflow: hidden; color: var(--muted); font-size: 0.84rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 0.74rem; }
.room-price { min-width: 148px; text-align: right; }
.room-price strong { display: block; font-size: 1.35rem; letter-spacing: -0.03em; }
.room-price span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 0.7rem; }
.empty-state { padding: 50px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.empty-state h4 { margin: 0; font-size: 1.25rem; }
.empty-state p { color: var(--muted); }

.checkout-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); }
.selected-stay { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--page); }
.selected-stay > img { display: block; width: 100%; height: 210px; object-fit: cover; }
.selected-stay-copy { padding: 22px; }
.selected-stay h4 { margin: 7px 0 3px; font-family: "Feature Display", Arial, sans-serif; font-size: 1.65rem; font-weight: 400; }
.selected-stay-copy > p { margin: 0; color: var(--muted); font-size: 0.83rem; }
.selected-stay dl { margin: 20px 0 0; }
.selected-stay dl div { display: grid; grid-template-columns: 75px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.selected-stay dt { color: var(--muted); font-size: 0.76rem; }
.selected-stay dd { margin: 0; text-align: right; font-size: 0.82rem; font-weight: 710; }
.selected-stay .demo-warning { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--danger); }
.checkout-form { display: grid; gap: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.confirmation { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: 0.82rem; }
.confirmation input { width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--accent); }

.success-panel { padding-top: clamp(48px, 8vw, 100px); text-align: center; }
.success-mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 0.84rem; font-weight: 800; letter-spacing: 0.08em; }
.success-panel > p:not(.eyebrow) { color: var(--muted); }
.confirmation-data { display: grid; grid-template-columns: 1fr 1fr; max-width: 700px; margin: 32px auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.confirmation-data div { padding: 18px; }
.confirmation-data div + div { border-left: 1px solid var(--line); }
.confirmation-data dt { color: var(--muted); font-size: 0.75rem; }
.confirmation-data dd { margin: 4px 0 0; overflow-wrap: anywhere; font: 0.86rem Consolas, monospace; }

.api-inspector { border-top: 1px solid var(--line); background: var(--accent); color: #f7f4e8; }
.api-inspector summary { display: flex; justify-content: space-between; gap: 24px; padding: 12px 24px; font-size: 0.76rem; }
.api-inspector summary span:first-child { font-weight: 750; }
.api-inspector summary span:last-child { color: #f0e9ce; font-family: Consolas, monospace; overflow-wrap: anywhere; }
.api-inspector pre { max-height: 240px; margin: 0; padding: 16px 24px; overflow: auto; border-top: 1px solid rgba(240, 233, 206, 0.24); color: #f7f4e8; font: 0.71rem/1.5 Consolas, monospace; white-space: pre-wrap; }

footer { padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 0.8rem; }
footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero-image-skeleton { animation: skeleton 1.35s ease-in-out infinite; }
  .booking-modal[open] { animation: modal-in 180ms ease-out; }
  @keyframes skeleton { to { background-position: -220% 0; } }
  @keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.99); } }
}

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 44px; }
  .hero-copy h1 { max-width: 11ch; }
  .hero-media, .hero-media img { min-height: 430px; height: 430px; }
  .how-it-works ol { grid-template-columns: 1fr 1fr; }
  .room-card { grid-template-columns: 160px minmax(0, 1fr); }
  .room-card img, .room-image-placeholder { width: 160px; height: 120px; }
  .room-price { grid-column: 2; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .room-price span { margin: 0; }
}

@media (max-width: 760px) {
  .booking-modal { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .modal-header { padding: 14px 16px; }
  .progress { padding: 0 10px; }
  .progress button { min-height: 58px; font-size: 0; }
  .progress button span { font-size: 0.7rem; }
  .wizard-panel { padding: 24px 16px 36px; }
  .panel-heading { align-items: start; flex-direction: column; gap: 12px; }
  .date-layout, .checkout-layout { grid-template-columns: 1fr; }
  .stay-sidebar { padding: 18px; }
  .room-card { grid-template-columns: 110px minmax(0, 1fr); gap: 13px; }
  .room-card img, .room-image-placeholder { width: 110px; height: 100px; }
  .room-price { grid-column: 1 / -1; }
  .api-inspector summary { padding-inline: 16px; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .hero-copy h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .hero-media, .hero-media img { min-height: 350px; height: 350px; }
  .hotel-caption { flex-direction: column; gap: 2px; }
  #hotel-location { text-align: left; }
  .how-it-works ol { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .room-card { grid-template-columns: 1fr; }
  .room-card img, .room-image-placeholder { width: 100%; height: 190px; }
  .room-price { grid-column: 1; }
  .confirmation-data { grid-template-columns: 1fr; }
  .confirmation-data div + div { border-top: 1px solid var(--line); border-left: 0; }
  footer { flex-direction: column; }
}
