:root{
  --pine:#174b45;
  --pine-2:#0f3c37;
  --cream:#f6f1e8;
  --paper:#fff;
  --ink:#292b28;
  --muted:#737772;
  --line:#e4dfd6;
  --line-strong:#d4cec3;
  --soft:#edf4f1;
  --soft-2:#f8f7f3;
  --danger:#9b2f2f;
  --shadow:0 22px 70px rgba(24,47,43,.14);
  --serif:Georgia,'Times New Roman',serif;
  --sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--cream)}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);line-height:1.45}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}

.booking-page{
  min-height:100vh;
  padding:24px 20px 80px;
}
.booking-frame{
  width:min(1320px,100%);
  margin:0 auto;
}
.booking-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
}
.booking-brand{
  font:400 1.55rem/1 var(--serif);
  letter-spacing:-.02em;
}
.booking-security{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:.78rem;
}

/* Two stages only: Stay + Checkout. */
.booking-stage-nav{
  display:grid;
  grid-template-columns:1fr 1fr;
  width:min(560px,100%);
  margin:0 auto 16px;
  padding:5px;
  border:1px solid rgba(35,49,46,.13);
  border-radius:999px;
  background:rgba(255,255,255,.86);
  box-shadow:0 10px 28px rgba(24,47,43,.08);
}
.stage-chip{
  min-height:44px;
  border:0;
  border-radius:999px;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  color:var(--muted);
  font-weight:800;
  font-size:.78rem;
}
.stage-chip.active{background:var(--pine);color:#fff}
.stage-chip:disabled{opacity:.46;cursor:not-allowed}
.stage-chip .stage-number{
  width:25px;height:25px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:.7rem
}

/* Always-visible date bar. */
.booking-date-bar{
  position:sticky;
  top:14px;
  z-index:60;
  margin:0 0 20px;
}
.booking-date-trigger{
  width:100%;
  min-height:74px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:15px;
  padding:11px 17px;
  border:1px solid rgba(31,43,39,.13);
  border-radius:20px;
  background:rgba(255,255,255,.95);
  box-shadow:0 14px 38px rgba(25,48,42,.10);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  text-align:left;
}
.booking-date-trigger:hover{border-color:#cbd8d4;background:#fff}
.booking-date-icon{
  width:42px;height:42px;border-radius:50%;background:var(--soft);color:var(--pine);display:grid;place-items:center
}
.booking-date-copy{min-width:0}
.booking-date-copy small{
  display:block;margin-bottom:2px;color:var(--muted);font-size:.64rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase
}
.booking-date-copy strong{
  display:block;font:400 clamp(1.05rem,2vw,1.35rem)/1.1 var(--serif);white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.booking-date-meta{color:var(--muted);font-size:.76rem;white-space:nowrap}
.booking-date-change{color:var(--pine);font-size:.75rem;font-weight:850;white-space:nowrap}

/* Calendar floats over the stay page rather than taking a full step. */
.booking-calendar-layer{
  position:fixed;
  inset:0;
  z-index:2147482000;
  pointer-events:none;
}
.booking-calendar-popover{
  position:fixed;
  pointer-events:auto;
  width:min(720px,calc(100vw - 24px));
  max-height:calc(100vh - 28px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 74px rgba(20,42,37,.22);
}
.booking-calendar-content{padding:10px 14px 7px;overflow:auto;min-height:0}
.booking-calendar-footer{
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  background:rgba(255,255,255,.94);
}
.booking-calendar-footer .status-text{text-align:center;margin:0;max-width:none}
.booking-calendar-footer .primary{padding:.74rem 1rem}
.booking-calendar-close{
  position:absolute;
  top:7px;
  right:8px;
  z-index:10;
  width:31px;height:31px;
  border:1px solid var(--line);
  border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.95);
}
.booking-calendar-popover .calendar-month:last-child .month-heading{padding-right:42px}

/* Main Stay surface. */
.stay-section{
  border:1px solid var(--line);
  border-radius:26px;
  background:#fff;
  box-shadow:0 18px 58px rgba(24,47,43,.08);
  overflow:hidden;
}
.stay-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px 14px;
  border-bottom:1px solid var(--line);
}
.stay-head small{display:block;color:var(--pine);font-size:.63rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;margin-bottom:3px}
.stay-head h1{font:400 clamp(1.8rem,3.4vw,2.7rem)/1 var(--serif);margin:0}
.stay-head p{margin:6px 0 0;color:var(--muted);font-size:.8rem}
.stay-status{font-size:.75rem;color:var(--muted);text-align:right}

.booking-room-shell{padding:14px}
.booking-room-shell .room-explorer{
  width:100%;
  height:min(720px,calc(100vh - 230px));
  min-height:600px;
  grid-template-columns:112px minmax(0,1.55fr) minmax(340px,.88fr);
  border-radius:20px;
}
.booking-room-shell .room-rail{padding:13px 9px}
.booking-room-shell .room-rail-items{gap:11px}
.booking-room-shell .room-thumb-name{font-size:.61rem}
.booking-room-shell .room-gallery-pane>.gallery{min-height:600px}
.booking-room-shell .room-copy-block{padding:24px 24px 19px}
.booking-room-shell .room-copy-block h3{font-size:clamp(2rem,3vw,2.65rem)}
.booking-room-shell .room-description{font-size:.86rem;line-height:1.58}
.booking-room-shell .room-customize{padding:2px 24px 24px}
.booking-room-shell .rate-choice{padding:12px 13px}
.booking-room-shell .addon-results{max-height:230px}

.rooms-placeholder{
  min-height:420px;
  display:grid;
  place-items:center;
  padding:40px;
  color:var(--muted);
  text-align:center;
}
.rooms-placeholder-card{max-width:460px}
.rooms-placeholder-icon{width:54px;height:54px;border-radius:50%;background:var(--soft);color:var(--pine);display:grid;place-items:center;margin:0 auto 13px}
.rooms-placeholder h2{font:400 1.75rem/1.1 var(--serif);margin:0 0 8px;color:var(--ink)}
.rooms-placeholder p{margin:0;font-size:.85rem}

.stay-footer{
  position:sticky;
  bottom:10px;
  z-index:30;
  margin:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:11px 12px 11px 16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.95);
  box-shadow:0 12px 34px rgba(24,47,43,.11);
  backdrop-filter:blur(14px);
}
.stay-footer-copy{min-width:0;color:var(--muted);font-size:.76rem}
.stay-footer-copy strong{color:var(--ink);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.83rem}
.stay-footer .primary{white-space:nowrap}

/* Checkout stage uses the same proven form/summary components, but with page-sized spacing. */
.checkout-stage{
  border:1px solid var(--line);
  border-radius:26px;
  background:#fff;
  box-shadow:0 18px 58px rgba(24,47,43,.08);
  overflow:hidden;
}
.checkout-stage-head{padding:22px 24px 10px}
.checkout-stage-head small{display:block;color:var(--pine);font-size:.63rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.checkout-stage-head h1{font:400 clamp(2rem,3.5vw,2.8rem)/1 var(--serif);margin:5px 0 7px}
.checkout-stage-head p{margin:0;color:var(--muted);font-size:.83rem}
.checkout-stage .checkout-content{padding:14px 22px 24px}
.checkout-stage .checkout-grid{grid-template-columns:minmax(0,1fr) 360px;gap:20px}
.checkout-stage .checkout-main,.checkout-stage .checkout-summary{padding:22px;border-radius:18px}
.checkout-stage .checkout-summary .gallery{height:205px}
.checkout-stage .form-grid{gap:12px}
.checkout-stage .field input,.checkout-stage .field textarea{padding:.82rem .86rem}

.page-loading{min-height:420px;display:grid;place-items:center;color:var(--muted);text-align:center}
.page-error{margin:26px auto;max-width:680px;padding:18px;border:1px solid #ead8d1;border-radius:16px;background:#fff;color:var(--danger)}
.confirmation-page{padding:54px 24px 64px;text-align:center;max-width:680px;margin:0 auto}
.confirmation-page .mark{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:var(--soft);color:var(--pine)}
.confirmation-page h1{font:400 2.25rem/1 var(--serif);margin:0 0 10px}
.confirmation-page p{color:var(--muted);margin:0 auto 20px;max-width:540px}
.confirmation-page .summary-lines{max-width:460px;margin:0 auto 18px;text-align:left}

@media (max-width:1100px){
  .booking-page{padding-left:14px;padding-right:14px}
  .booking-room-shell .room-explorer{
    grid-template-columns:92px minmax(300px,1.15fr) minmax(300px,.85fr);
    min-height:560px;
    height:min(650px,calc(100vh - 220px));
  }
  .booking-room-shell .room-gallery-pane>.gallery{min-height:560px}
  .checkout-stage .checkout-grid{grid-template-columns:minmax(0,1fr) 320px}
}

@media (max-width:900px){
  .booking-page{padding-top:16px}
  .booking-date-trigger{grid-template-columns:auto minmax(0,1fr) auto}
  .booking-date-meta{display:none}
  .booking-room-shell{padding:10px}
  .booking-room-shell .room-explorer{
    grid-template-columns:82px minmax(280px,1.12fr) minmax(275px,.88fr);
    min-height:520px;
  }
  .booking-room-shell .room-gallery-pane>.gallery{min-height:520px}
  .checkout-stage .checkout-grid{grid-template-columns:1fr}
  .checkout-stage .checkout-summary{order:-1;display:grid;grid-template-columns:190px 1fr;gap:14px}
  .checkout-stage .checkout-summary .gallery{height:150px;margin:0}
  .checkout-stage .checkout-summary>small,
  .checkout-stage .checkout-summary>h3,
  .checkout-stage .checkout-summary>.summary-lines,
  .checkout-stage .checkout-summary>.secondary{grid-column:2}
}

@media (max-width:720px){
  .booking-page{padding:8px 0 50px}
  .booking-frame{width:100%}
  .booking-topline{padding:0 12px;margin-bottom:10px}
  .booking-security{font-size:.66rem}
  .booking-stage-nav{width:calc(100% - 16px);margin-bottom:9px}
  .stage-chip{min-height:40px;font-size:.7rem}
  .booking-date-bar{top:6px;width:calc(100% - 16px);margin:0 auto 9px}
  .booking-date-trigger{min-height:62px;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;padding:9px 11px;border-radius:16px}
  .booking-date-icon{width:36px;height:36px}
  .booking-date-copy strong{font-size:1rem}
  .booking-date-change{font-size:0}
  .booking-date-change::after{content:'Change';font-size:.7rem}
  .booking-calendar-popover{width:calc(100vw - 12px);border-radius:16px}
  .booking-calendar-content{padding:7px 7px 4px}
  .booking-calendar-footer{grid-template-columns:1fr auto;gap:7px;padding:8px}
  .booking-calendar-footer .promo-input{grid-column:1}
  .booking-calendar-footer .primary{grid-column:2;grid-row:1}
  .booking-calendar-footer .status-text{grid-column:1/-1;grid-row:2;text-align:left}
  .stay-section,.checkout-stage{border-left:0;border-right:0;border-radius:0}
  .stay-head{padding:15px 14px 11px}
  .stay-head h1{font-size:1.7rem}
  .stay-status{display:none}
  .booking-room-shell{padding:0}
  .booking-room-shell .room-explorer{display:block;height:auto;min-height:0;border:0;border-radius:0}
  .booking-room-shell .room-rail{position:sticky;top:76px;z-index:15;display:block;overflow:visible;border-right:0;border-bottom:1px solid var(--line);background:rgba(255,255,255,.98);padding:8px}
  .booking-room-shell .room-rail-items{display:flex;overflow-x:auto;overflow-y:hidden;gap:8px;padding-bottom:4px;scrollbar-width:none}
  .booking-room-shell .room-rail-items::-webkit-scrollbar{display:none}
  .booking-room-shell .room-thumb{width:68px;flex:0 0 68px}
  .booking-room-shell .room-gallery-pane{border-right:0;border-bottom:1px solid var(--line)}
  .booking-room-shell .room-gallery-pane>.gallery{height:auto;min-height:0;aspect-ratio:4/3}
  .booking-room-shell .room-detail-pane{overflow:visible}
  .booking-room-shell .room-copy-block{padding:16px 14px 13px}
  .booking-room-shell .room-copy-block h3{font-size:1.65rem}
  .booking-room-shell .room-customize{padding:2px 14px 16px}
  .booking-room-shell .addon-results{max-height:220px}
  .stay-footer{bottom:6px;margin:9px;padding:9px 9px 9px 12px;border-radius:15px}
  .stay-footer-copy{font-size:.68rem}
  .stay-footer .primary{padding:.78rem 1rem;font-size:.76rem}
  .checkout-stage-head{padding:17px 14px 7px}
  .checkout-stage .checkout-content{padding:10px 10px 18px}
  .checkout-stage .checkout-main,.checkout-stage .checkout-summary{padding:14px}
  .checkout-stage .checkout-summary{display:block;margin-bottom:10px}
  .checkout-stage .checkout-summary .gallery{height:auto;aspect-ratio:16/9;margin-bottom:10px}
  .checkout-stage .checkout-summary>small,
  .checkout-stage .checkout-summary>h3,
  .checkout-stage .checkout-summary>.summary-lines,
  .checkout-stage .checkout-summary>.secondary{grid-column:auto}
}

@media (max-width:520px){
  .booking-brand{font-size:1.3rem}
  .booking-security span{display:none}
  .booking-stage-nav{padding:4px}.stage-chip{min-height:38px}.stage-chip .stage-number{width:22px;height:22px}
  .booking-date-trigger{padding:8px 9px}.booking-date-icon{width:33px;height:33px}.booking-date-copy small{font-size:.56rem}.booking-date-copy strong{font-size:.92rem}
  .booking-calendar-footer{grid-template-columns:1fr}.booking-calendar-footer .promo-input,.booking-calendar-footer .primary,.booking-calendar-footer .status-text{grid-column:1}.booking-calendar-footer .primary{grid-row:3;width:100%}.booking-calendar-footer .status-text{grid-row:2}.booking-calendar-footer .promo-input input{flex:1;width:auto}
  .stay-head{align-items:flex-start}.stay-head h1{font-size:1.5rem}.stay-head p{font-size:.74rem}
  .stay-footer{display:grid;grid-template-columns:1fr}.stay-footer .primary{width:100%}
  .checkout-stage-head h1{font-size:1.75rem}
}

@media (max-width:390px){
  .booking-page{padding-bottom:36px}
  .booking-topline{padding:0 9px}
  .booking-stage-nav{width:calc(100% - 12px)}
  .booking-date-bar{width:calc(100% - 12px)}
  .booking-date-trigger{gap:7px}.booking-date-copy strong{font-size:.85rem}.booking-date-change::after{font-size:.64rem}
  .booking-room-shell .room-thumb{width:62px;flex-basis:62px}
}

@media (max-height:560px) and (orientation:landscape){
  .booking-page{padding-top:7px}
  .booking-topline{display:none}
  .booking-stage-nav{margin-bottom:6px}
  .booking-date-bar{top:4px;margin-bottom:6px}
  .booking-date-trigger{min-height:54px}
  .booking-room-shell .room-explorer{display:grid;grid-template-columns:76px minmax(290px,1.1fr) minmax(270px,.9fr);height:calc(100vh - 150px);min-height:320px}
  .booking-room-shell .room-rail{position:static;border-right:1px solid var(--line);border-bottom:0}
  .booking-room-shell .room-rail-items{display:grid;overflow-y:auto;overflow-x:hidden}
  .booking-room-shell .room-thumb{width:auto;flex:auto}
  .booking-room-shell .room-gallery-pane{border-right:1px solid var(--line);border-bottom:0}
  .booking-room-shell .room-gallery-pane>.gallery{height:100%;min-height:0;aspect-ratio:auto}
  .booking-room-shell .room-detail-pane{overflow-y:auto}
}

/* Phones: 16px inputs (no iOS zoom on focus) and a compact room photo so the form starts sooner. */
@media (max-width:720px){
  .checkout-stage .field input,.checkout-stage .field textarea,.promo-input input{font-size:16px}
  .checkout-summary .gallery{aspect-ratio:auto!important;height:120px!important}
}

/* `overflow:hidden` made this section a scroll container, which stopped the sticky
   "Continue to checkout" bar from sticking. `clip` keeps the rounded corners without that. */
.stay-section{overflow:clip}
/* The footer's display:grid would otherwise override the hidden attribute (e.g. before dates are chosen). */
.stay-footer[hidden]{display:none}
