:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f7f6;
  --ink: #1d2523;
  --ink-2: #4d5753;
  --muted: #6f7975;
  --line: #e2e7e5;
  --brand: #12503d;
  --brand-dark: #0c3a2c;
  --brand-soft: #e7f1ec;
  --sale: #c0392b;
  --warn-bg: #fff6e1;
  --warn-line: #f1d79a;
  --warn-ink: #5b4313;
  --radius: 10px;
  --shadow: 0 2px 6px rgba(16, 32, 26, .06), 0 12px 32px rgba(16, 32, 26, .08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border: 0; border-radius: 8px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 18px; font-weight: 700;
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--brand); }

/* Hero */
.hero { position: relative; height: 560px; overflow: hidden; background: #0f2a22; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.65) 100%); }
.hero-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 104px; }
.hero-kicker { margin: 0 0 8px; font-size: 15px; font-weight: 500; opacity: .9; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.hero-sub { margin: 12px 0 0; font-size: 18px; opacity: .92; max-width: 40rem; }

/* Booking bar */
.booking-wrap { position: relative; z-index: 5; margin-top: -56px; }
.booking-bar {
  display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto; gap: 16px; align-items: end;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input[type=date] {
  height: 52px; width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  font: 500 15px var(--font); color: var(--ink); background: #fff;
}
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; height: 52px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button { border: 0; background: #fff; color: var(--brand); font-size: 20px; cursor: pointer; }
.stepper button:hover { background: var(--brand-soft); }
.stepper button:disabled { color: #c3cbc8; background: #fff; cursor: default; }
.stepper input { width: 100%; min-width: 0; border: 0; text-align: center; font: 600 16px var(--font); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.section h2:focus { outline: none; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-sub { margin: 6px 0 0; color: var(--ink-2); }
.direct-badge { background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius);
  padding: 14px 16px; color: var(--warn-ink);
}
.notice p { margin: 0; }
.notice a { color: inherit; font-weight: 600; }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.notice.error { background: #fdecea; border-color: #f2c1bb; color: #7a2418; }

/* Room cards */
.rooms { display: grid; gap: 24px; }
.room {
  display: grid; grid-template-columns: 360px minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 32, 26, .04);
}
.room-media { position: relative; margin: 0; min-height: 280px; background: var(--bg-alt); }
.room-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-body { padding: 22px 24px 8px; min-width: 0; }
.room-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.room-head h3 { font-size: 21px; line-height: 1.3; font-weight: 700; }
.left { font-size: 14px; font-weight: 600; color: var(--brand); }
.left.low { color: var(--sale); }
.room-amenities { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 8px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.room-amenities li { display: inline-flex; align-items: center; gap: 6px; }
.room-amenities svg, .rate-perk svg, .amenities svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.rates { list-style: none; margin: 0; padding: 0; }
.rate {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 24px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.rate-name { font-weight: 600; }
.rate-perks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.rate-perk { display: inline-flex; align-items: center; gap: 6px; }
.rate-perk.good { color: var(--brand); }
.rate-price { text-align: right; font-variant-numeric: tabular-nums; }
.price-line { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.price-now { font-size: 24px; line-height: 1.2; font-weight: 700; }
.price-note { font-size: 13px; color: var(--muted); }
.save { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--sale); }

/* Sold out */
.unavailable { margin-top: 32px; }
.unavailable h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; color: var(--ink-2); }
.soldout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.soldout-card { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.soldout-card img, .soldout-card .ph { width: 72px; height: 56px; border-radius: 6px; object-fit: cover; filter: grayscale(1); opacity: .7; background: var(--bg-alt); flex: none; }
.soldout-card strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.soldout-card span { font-size: 13px; color: var(--sale); font-weight: 600; }

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.amenities li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-weight: 500; }
.amenities svg { width: 22px; height: 22px; color: var(--brand); }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.lead { margin: 12px 0 0; font-size: 17px; color: var(--ink-2); max-width: 32rem; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }

/* Skeleton */
.skeleton { height: 280px; border-radius: 12px; background: linear-gradient(90deg, #eef1f0 0%, #f6f8f7 50%, #eef1f0 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* Footer */
.footer { background: var(--brand); color: rgba(255,255,255,.85); padding: 32px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; }
.footer p { margin: 0; }
.footer-name { color: #fff; font-weight: 700; font-size: 16px; }
.footer-note { max-width: 30rem; }

/* Booking page */
.checkout-page { padding-top: 32px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 15px; text-decoration: none; margin-bottom: 16px; }
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-title { font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.page-title:focus { outline: none; }
#book-status:not(:empty) { margin-top: 24px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; margin-top: 28px; }

.guest-form fieldset { margin: 0 0 20px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.guest-form legend { padding: 0 8px; margin-left: -8px; font-size: 18px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-wide { grid-column: 1 / -1; }
.f label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.f .req { color: var(--sale); }
.f .opt { font-weight: 400; color: var(--muted); }
.f input, .f select, .f textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #cfd7d4; border-radius: 8px;
  font: 400 16px var(--font); color: var(--ink); background: #fff;
}
.f textarea { padding: 12px 14px; min-height: 104px; resize: vertical; line-height: 1.5; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.f [aria-invalid="true"] { border-color: var(--sale); }
.field-error { margin: 0; font-size: 14px; color: var(--sale); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 4px 0 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; color: var(--ink); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--brand); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.submit-row .btn:disabled { opacity: .7; cursor: progress; }
.submit-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-2); max-width: 26rem; }
.submit-note svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.order { position: sticky; top: 92px; }
.order-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.order-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-alt); }
.order-body { padding: 20px 22px 22px; }
.order-hotel { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.order-room { font-size: 20px; line-height: 1.3; font-weight: 700; }
.order-body .rate-perks { margin-top: 8px; }
.order-facts { margin: 16px 0 0; display: grid; gap: 10px; }
.order-facts div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.order-facts dt { color: var(--ink-2); }
.order-facts dd { margin: 0; font-weight: 600; text-align: right; }
.order-facts dd span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.order-nights { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.order-nights li { display: flex; justify-content: space-between; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; }
.order-price { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-price s { margin-right: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.order-save { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--sale); text-align: right; }
.order-change { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--brand); }

.confirm { max-width: 640px; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.confirm-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.confirm-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.confirm p { margin: 0 0 12px; color: var(--ink-2); }
.confirm-ref { font-size: 18px; color: var(--ink) !important; }
.confirm-ref strong { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.confirm-facts { margin: 20px 0 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skeleton-short { height: 160px; }

/* Responsive */
@media (max-width: 1023px) {
  .booking-bar { grid-template-columns: 1fr 1fr; }
  .booking-bar .btn { grid-column: 1 / -1; }
  .room { grid-template-columns: 280px minmax(0, 1fr); }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location { grid-template-columns: 1fr; gap: 24px; }
  .checkout { grid-template-columns: 1fr; gap: 24px; }
  .order { position: static; order: -1; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav { display: none; }
  .header-inner { justify-content: space-between; height: 60px; }
  .brand { font-size: 16px; }
  .hero { height: 420px; }
  .hero-content { padding-bottom: 88px; }
  .hero-sub { font-size: 16px; }
  .booking-bar { padding: 16px; gap: 12px; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 24px; }
  .room { grid-template-columns: 1fr; }
  .room-media { min-height: 0; aspect-ratio: 16 / 10; }
  .room-body { padding: 18px 16px 4px; }
  .rate { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; }
  .rate-info { grid-column: 1 / -1; }
  .rate-price { text-align: left; }
  .price-line { justify-content: flex-start; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { border-right: 0; }
  .facts div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .checkout-page { padding-top: 20px; }
  .page-title { font-size: 26px; }
  .guest-form fieldset { padding: 18px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .submit-row .btn { width: 100%; }
  .confirm { padding: 24px 18px; }
}
