/* Bolton White Hotel — booking components (calendar, guests, booking card, booking sheet) */
:root {
  --bw-ink: #14141f;
  --bw-ink-2: #3d3d48;
  --bw-muted: #5c5c66;
  --bw-line: #e3ddd5;
  --bw-soft: #f6f2ec;
  --bw-gold: #7a6247;
  --bw-gold-soft: #efe6da;
  --bw-wa: #128c4b;
  --bw-error: #b3261e;
  --bw-radius: 18px;
  --bw-shadow: 0 24px 60px -20px rgba(20, 20, 31, .35), 0 2px 10px rgba(20, 20, 31, .06);
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.bw-locked, html.bw-locked body { overflow: hidden; }

.bwb, .bwp, .bws { font-family: var(--font-body, 'Instrument Sans', sans-serif); color: var(--bw-ink); }
.bwb svg, .bwp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bwb .bw-wa-icon { fill: currentColor; stroke: none; width: 20px; height: 20px; }

/* ---------- fields ---------- */
.bwb-fields { display: grid; gap: 0; border: 1px solid var(--bw-line); border-radius: 14px; background: #fff; overflow: hidden; }
.bwb-dates { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--bw-line); }
.bwb-dates .bwb-field + .bwb-field { border-left: 1px solid var(--bw-line); }
.bwb-field {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px;
  padding: 12px 16px; min-height: 64px; justify-content: center; text-align: left; transition: background .2s;
}
.bwb-field:hover { background: var(--bw-soft); }
.bwb-field:focus-visible { outline: 2px solid var(--bw-ink); outline-offset: -2px; }
.bwb-field[aria-expanded="true"] { background: var(--bw-soft); box-shadow: inset 0 -2px 0 var(--bw-ink); }
.bwb-lbl { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bw-muted); }
.bwb-lbl svg { width: 14px; height: 14px; }
.bwb-val { font-size: 1rem; font-weight: 500; color: var(--bw-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bwb-val.is-empty { color: var(--bw-muted); font-weight: 400; }
.has-error .bwb-val.is-empty { color: var(--bw-error); }

/* ---------- CTA ---------- */
.bwb-cta {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; padding: 0 24px; border-radius: 999px; background: var(--bw-ink); color: #fff;
  font-size: .95rem; font-weight: 600; letter-spacing: .02em; transition: transform .15s, background .2s;
}
.bwb-cta:hover { background: #000; }
.bwb-cta:active { transform: scale(.985); }
.bwb-cta:focus-visible { outline: 3px solid var(--bw-gold); outline-offset: 3px; }
.bwb-cta .bw-wa-icon { color: #25d366; }

.bwb-error { margin: 0; font-size: .875rem; color: var(--bw-error); font-weight: 500; }
.bwb-error:empty { display: none; }
.bwb-foot { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--bw-muted); text-align: center; }

.bwb-input { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--bw-ink-2); }
.bwb-input em { font-style: normal; color: var(--bw-muted); font-weight: 400; }
.bwb-input input, .bwb-input textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--bw-ink); width: 100%; box-sizing: border-box;
  padding: 12px 14px; border: 1px solid var(--bw-line); border-radius: 12px; background: #fff; resize: vertical;
}
.bwb-input input:focus, .bwb-input textarea:focus { outline: none; border-color: var(--bw-ink); box-shadow: 0 0 0 3px rgba(20, 20, 31, .08); }
.bwb-more summary { cursor: pointer; font-size: .875rem; font-weight: 500; color: var(--bw-ink-2); padding: 4px 0; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.bwb-more summary::-webkit-details-marker { display: none; }
.bwb-more[open] summary { margin-bottom: 8px; }

/* ---------- summary ---------- */
.bwb-sum:empty { display: none; }
.bwb-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--bw-ink-2); padding: 4px 0; }
.bwb-sum-total { border-top: 1px solid var(--bw-line); margin-top: 6px; padding-top: 12px; font-size: 1.1rem; font-weight: 600; color: var(--bw-ink); }
.bwb-sum-note, .bwb-sum-empty { margin: 6px 0 0; font-size: .8rem; color: var(--bw-muted); line-height: 1.5; }
.bwb-sum-empty { margin: 0; text-align: center; }

/* ---------- room-page card ---------- */
.bwb--card { display: grid; gap: 16px; background: #fff; border: 1px solid var(--bw-line); border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px -40px rgba(20, 20, 31, .35); }
.bwb-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bwb-amount { font-family: var(--font-heading, Georgia, serif); font-size: 2.4rem; line-height: 1; color: var(--bw-ink); }
.bwb-per { font-size: .95rem; color: var(--bw-muted); }
.bwb-incl { margin: -8px 0 0; font-size: .85rem; color: var(--bw-gold); font-weight: 500; }

/* ---------- homepage bar ---------- */
.bwb--bar { display: flex; align-items: stretch; gap: 8px; background: #fff; border-radius: 999px; padding: 8px; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .35); width: 100%; }
.bwb--bar .bwb-fields { flex: 1; display: grid; grid-template-columns: 2fr 1fr; border: 0; border-radius: 999px; }
.bwb--bar .bwb-dates { border-bottom: 0; border-right: 1px solid var(--bw-line); }
.bwb--bar .bwb-field { padding: 8px 22px; min-height: 58px; border-radius: 999px; }
.bwb--bar .bwb-dates .bwb-field + .bwb-field { border-left: 0; position: relative; }
.bwb--bar .bwb-dates .bwb-field + .bwb-field::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--bw-line); }
.bwb--bar .bwb-cta { width: auto; min-width: 150px; min-height: 58px; }
@media (max-width: 760px) {
  .bwb--bar { flex-direction: column; border-radius: 22px; padding: 10px; }
  .bwb--bar .bwb-fields { grid-template-columns: 1fr; border-radius: 14px; border: 1px solid var(--bw-line); }
  .bwb--bar .bwb-dates { border-right: 0; border-bottom: 1px solid var(--bw-line); }
  .bwb--bar .bwb-field { border-radius: 0; min-height: 60px; padding: 10px 16px; }
  .bwb--bar .bwb-cta { width: 100%; min-height: 52px; }
}

/* ---------- popover / bottom sheet ---------- */
.bwp { position: fixed; z-index: 10050; background: #fff; border-radius: 20px; box-shadow: var(--bw-shadow); padding: 20px; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; max-width: calc(100vw - 24px); }
.bwp.is-open { opacity: 1; transform: none; }
.bwp--sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; max-width: none; border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); max-height: 88vh; overflow-y: auto; }
.bwp--sheet.is-open { transform: none; }
.bwp-backdrop { position: fixed; inset: 0; z-index: 10049; background: rgba(10, 10, 18, .45); opacity: 0; transition: opacity .25s; }
.bwp-backdrop.is-open { opacity: 1; }
.bwp-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; font-weight: 600; font-size: 1rem; }
.bwp-x, .bws-x { all: unset; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--bw-ink); }
.bwp-x:hover, .bws-x:hover { background: var(--bw-soft); }
.bwp-x:focus-visible, .bws-x:focus-visible { outline: 2px solid var(--bw-ink); }

/* ---------- calendar ---------- */
.bwc { position: relative; width: 100%; }
.bwc-hint { margin: 0 0 14px; font-size: .9rem; color: var(--bw-ink-2); min-height: 1.4em; padding-right: 88px; }
.bwc-hint strong { color: var(--bw-ink); }
.bwc-nav { position: absolute; top: -6px; right: 0; display: flex; gap: 6px; }
.bwc-arrow { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--bw-line); }
.bwc-arrow:hover:not([disabled]) { background: var(--bw-soft); }
.bwc-arrow[disabled] { opacity: .3; cursor: default; }
.bwc-arrow:focus-visible { outline: 2px solid var(--bw-ink); }
.bwc-months { display: flex; gap: 32px; }
.bwc-month { width: 294px; }
.bwc-month h4 { margin: 0 0 10px; font-family: var(--font-body, sans-serif); font-size: .95rem; font-weight: 600; text-align: center; color: var(--bw-ink); letter-spacing: 0; text-transform: none; }
.bwc-row, .bwc-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.bwc-dow { font-size: .72rem; font-weight: 600; color: var(--bw-muted); text-align: center; padding: 6px 0; }
.bwc-day {
  all: unset; box-sizing: border-box; cursor: pointer; height: 42px; display: grid; place-items: center; position: relative;
  font-size: .9rem; font-weight: 500; color: var(--bw-ink); border-radius: 999px; font-variant-numeric: tabular-nums;
}
.bwc-day:hover:not([disabled]):not(.is-start):not(.is-end) { box-shadow: inset 0 0 0 1.5px var(--bw-ink); }
.bwc-day:focus-visible { outline: 2px solid var(--bw-gold); outline-offset: 1px; }
.bwc-day[disabled] { color: #c9c4be; cursor: default; }
.bwc-day.is-today:not(.is-start):not(.is-end)::after { content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--bw-gold); }
.bwc-day.in-range { background: var(--bw-gold-soft); border-radius: 0; }
.bwc-day.is-start, .bwc-day.is-end { background: var(--bw-ink); color: #fff; }
.bwc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bw-line); }
.bwc-clear { all: unset; cursor: pointer; font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--bw-ink-2); padding: 8px 4px; }
.bwc-clear[disabled] { opacity: .35; cursor: default; }
.bwc-done { all: unset; cursor: pointer; box-sizing: border-box; background: var(--bw-ink); color: #fff; font-weight: 600; font-size: .9rem; padding: 12px 26px; border-radius: 999px; text-align: center; }
.bwc-done[disabled] { opacity: .35; cursor: default; }
.bwc-done:focus-visible, .bwc-clear:focus-visible { outline: 2px solid var(--bw-gold); outline-offset: 2px; }
.bwp--sheet .bwc-month { width: 100%; }
.bwp--sheet .bwc-day { height: 46px; }

/* ---------- guests ---------- */
.bwg { width: 300px; max-width: 100%; display: grid; gap: 4px; }
.bwp--sheet .bwg { width: 100%; }
.bwg-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--bw-line); }
.bwg-label { display: block; font-weight: 600; font-size: .95rem; }
.bwg-sub { display: block; font-size: .8rem; color: var(--bw-muted); }
.bwg-step { display: flex; align-items: center; gap: 12px; }
.bwg-step button { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #bdb6ad; display: grid; place-items: center; font-size: 1.2rem; line-height: 1; color: var(--bw-ink); }
.bwg-step button:hover:not([disabled]) { border-color: var(--bw-ink); }
.bwg-step button[disabled] { opacity: .3; cursor: default; }
.bwg-step button:focus-visible { outline: 2px solid var(--bw-gold); outline-offset: 2px; }
.bwg-step output { min-width: 20px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.bwg-done { margin-top: 12px; }

/* ---------- booking sheet ---------- */
.bws { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; }
.bws.is-open { visibility: visible; }
.bws-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 18, .55); opacity: 0; transition: opacity .25s; }
.bws.is-open .bws-backdrop { opacity: 1; }
.bws-panel {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 620px; max-height: min(92vh, 900px);
  background: #fff; border-radius: 26px; box-shadow: var(--bw-shadow); overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.bws.is-open .bws-panel { opacity: 1; transform: none; }
.bws-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 16px; border-bottom: 1px solid var(--bw-line); }
.bws-kicker { margin: 0 0 4px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bw-gold); }
.bws-head h2 { margin: 0; font-family: var(--font-heading, Georgia, serif); font-size: 2rem; font-weight: 400; line-height: 1.1; color: var(--bw-ink); }
.bws-body { overflow-y: auto; padding: 20px 28px; display: grid; gap: 20px; overscroll-behavior: contain; }
.bws-foot { padding: 16px 28px 22px; border-top: 1px solid var(--bw-line); display: grid; gap: 10px; background: #fff; }
.bws-rooms { border: 0; padding: 0; margin: 0; min-width: 0; }
.bws-rooms legend { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bw-muted); margin-bottom: 10px; padding: 0; }
.has-error .bws-rooms legend { color: var(--bw-error); }
.bws-list { display: grid; gap: 8px; }
.bws-room { position: relative; display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border: 1.5px solid var(--bw-line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.bws-room:hover { border-color: #b9b0a5; }
.bws-room.is-selected, .bws-room:has(input:checked) { border-color: var(--bw-ink); background: var(--bw-soft); }
.bws-room:has(input:focus-visible) { outline: 2px solid var(--bw-gold); outline-offset: 2px; }
.bws-room input { position: absolute; opacity: 0; pointer-events: none; }
.bws-room img { width: 72px; height: 54px; object-fit: cover; border-radius: 9px; display: block; }
.bws-room-txt { display: grid; gap: 2px; min-width: 0; }
.bws-room-name { font-weight: 600; font-size: .95rem; }
.bws-room-rate { font-size: .85rem; color: var(--bw-muted); }
.bws-room-total { text-align: right; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.bws-room-total small { display: block; font-weight: 400; font-size: .75rem; color: var(--bw-muted); }
.bws .bwb-sum-note { display: none; }
@media (max-width: 640px) {
  .bws { padding: 0; align-items: flex-end; }
  .bws-panel { max-width: none; max-height: 94vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .bws-head { padding: 18px 18px 12px; }
  .bws-head h2 { font-size: 1.7rem; }
  .bws-body { padding: 16px 18px; }
  .bws-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .bws-room { grid-template-columns: 60px 1fr auto; gap: 10px; }
  .bws-room img { width: 60px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .bwp, .bws-panel, .bws-backdrop, .bwp-backdrop { transition: none; }
}
.ev-date { cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314141f' stroke-width='1.7'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; padding-right: 42px !important; }
