:root {
  color-scheme: light;
  --ink: #252b2b;
  --muted: #576565;
  --accent: #eb5344;
  --lime: #a4c424;
  --paper: #f9f8f8;
  --line: #d6dcdc;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid transparent; border-radius: .4rem; padding: .65rem 1rem; background: var(--lime); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { filter: brightness(.94); }
button:disabled { opacity: .5; cursor: default; }
.secondary { background: white; border-color: var(--line); }
:focus-visible { outline: 3px solid #b62214; outline-offset: 3px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: .85rem max(5vw, 1rem); background: var(--ink); color: white; flex-wrap: wrap; }
.brand { text-decoration: none; font-weight: 800; display: inline-flex; align-items: center; gap: .75rem; }
.mark { display: inline-grid; place-items: center; background: var(--accent); color: var(--ink); width: 2.25rem; height: 2.25rem; border-radius: 50%; }
nav { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.demo { padding: .5rem 5vw; background: #e9efcc; }
.hero { min-height: 29rem; display: grid; align-items: center; color: white; background: linear-gradient(90deg, #252b2bf5 12%, #252b2b42 100%), url('/hostel.jpg') center 52% / cover; }
.hero-copy { padding: 3.5rem 5vw; max-width: 63rem; }
.hero-copy .eyebrow { color: #d6e98a; }
.hero-copy > p:not(.eyebrow) { max-width: 30rem; font-size: 1.2rem; }
h1, h2, h3, p { margin: 0 0 .7em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.05em; margin-bottom: .2em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: .3em; }
h3 { line-height: 1.2; }
.eyebrow { color: #9e2d22; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .76rem; }
.section { max-width: 90rem; margin: auto; padding: 3rem 5vw; }
.section + .section { border-top: 1px solid var(--line); }
.booking-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr); gap: 1.25rem; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; align-items: stretch; }
.card, .panel { background: white; border: 1px solid var(--line); border-radius: .75rem; padding: 1.2rem; overflow-wrap: anywhere; }
.card { border-top: .25rem solid var(--accent); }
.card p { white-space: pre-line; }
.text-link { display: block; margin-top: .6rem; font-weight: 700; }
.hint { color: var(--muted); font-size: .9rem; }
label { display: grid; gap: .25rem; font-weight: 600; margin-bottom: .7rem; }
input, select, textarea { width: 100%; min-width: 0; padding: .45rem; border: 1px solid #aeb8b8; border-radius: .3rem; background: white; color: inherit; }
input[type=checkbox] { width: auto; }
fieldset { margin: 0 0 .75rem; border: 1px solid var(--line); border-radius: .3rem; padding: .6rem; min-width: 0; }
fieldset label:last-child { margin-bottom: 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
footer { background: var(--ink); color: white; padding: 1.5rem 5vw; display: flex; flex-wrap: wrap; gap: .7rem 2rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .55rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll { overflow-x: auto; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; align-items: start; }
.admin-heading { margin-bottom: 1rem; }
.status { position: sticky; bottom: 0; padding: .65rem 5vw; margin: 0; color: white; background: var(--ink); z-index: 2; }
.status:empty { display: none; }
details { margin: .8rem 0; }
summary { cursor: pointer; font-weight: 700; }
@media (max-width: 720px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 24rem; }
  .section { padding: 2rem 5vw; }
}
.booking-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.booking-link { display: grid; grid-template-rows: auto 1fr auto; gap: .5rem; min-height: 9rem; }
.booking-link strong { font-size: 1.3rem; }
.booking-link span { color: var(--muted); }
.booking-link .booking-arrow { justify-self: end; color: var(--accent); }
.booking-links .booking-link:hover { background: var(--hostel-blue-soft); text-decoration: none; }
.booking-info h1 { margin-top: .45em; }
.booking-info > p { max-width: 46rem; }
#booking-lookup { display: grid; gap: .75rem; max-width: 28rem; margin-block: 1rem; }
#booking-lookup button { justify-self: start; }
@media (max-width: 52rem) { .booking-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .booking-links { grid-template-columns: 1fr; } }


.booking-links .booking-link { padding: 1.35rem; }
.booking-links .booking-link:hover { background: #f0f3df; }

.room-page {
  --ink: var(--hostel-ink, #252b2b);
  --muted: var(--hostel-muted, #515c59);
  --accent: var(--hostel-blue, #006cb6);
  --paper: var(--hostel-paper, #fffdf2);
  --line: var(--hostel-line, #d6cc9e);
  background: var(--paper);
  font-family: var(--hostel-font, system-ui, sans-serif);
}
.room-page .topbar, .room-page .hero {
  background: var(--hostel-yellow, #ece2a6);
  color: var(--ink);
}
.room-page .hero { grid-template-columns: 1fr 1fr; align-items: stretch; }
.room-page .hero-copy { align-self: center; }
.room-page .hero-copy .eyebrow { color: var(--muted); }
.room-page .hero h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1.08; }
.room-page .hero-art { width: 100%; height: 100%; max-height: 34rem; object-fit: cover; }
@media (max-width: 720px) {
  .room-page .hero { grid-template-columns: 1fr; }
  .room-page .hero-art { max-height: 18rem; }
}
.room-search { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.room-search fieldset { margin: 0; }
.room-search .pair > label { margin-bottom: .7rem; }
.room-search legend { padding-inline: .4rem; font-weight: 800; font-size: 1.15rem; }
.calendar-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.calendar-dates div { background: var(--hostel-blue-soft); border-radius: .5rem; padding: .6rem .8rem; color: var(--muted); font-size: .85rem; }
.calendar-dates strong { display: block; color: var(--ink); font-size: .95rem; }
.calendar-nav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.calendar-nav h3 { margin: 0; text-align: center; }
.calendar-nav button { justify-content: center; min-width: 2.6rem; padding: .35rem .65rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.calendar-grid span { padding: .35rem 0; font-size: .8rem; color: var(--muted); }
.calendar-grid button { justify-content: center; min-height: 2.65rem; padding: 0; border-radius: .35rem; color: var(--ink); background: transparent; }
.calendar-grid button.stay-night { border-radius: 0; background: var(--hostel-blue-soft); }
.calendar-grid button[aria-current=date] { border-color: var(--line); }
.calendar-grid button[aria-pressed=true] { color: white; background: var(--accent); opacity: 1; }
.calendar-grid button:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--accent); }
#date-status { margin: .65rem 0; }
.room-checkout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); grid-template-areas: "options basket" "contact basket"; gap: 1.25rem; margin-top: 1.25rem; align-items: start; }
.room-options { grid-area: options; }
.room-basket {
  grid-area: basket;
  position: sticky;
  top: 1rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border-top: .3rem solid var(--accent);
  background: #fffdf7;
}
.basket-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0 0 .9rem; }
.basket-summary[hidden] { display: none; }
.basket-summary div { padding: .45rem .6rem; border-radius: .4rem; background: var(--hostel-blue-soft); }
.basket-summary dt, .basket-items small, #basket-guests { color: var(--muted); font-size: .85rem; }
.basket-summary dd { margin: 0; font-weight: 700; }
.basket-items { padding: 0; list-style: none; }
.basket-items:empty { display: none; }
.basket-items li, .basket-total { display: flex; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--line); padding: .65rem 0; }
.basket-items small { display: block; }
.basket-items strong, .basket-total strong { white-space: nowrap; }
.room-basket label { margin-bottom: .3rem; }
#discount-help { margin: .25rem 0 .8rem; }
.basket-total { align-items: baseline; margin: 0; font-weight: 700; }
.basket-total strong { font-size: 1.3rem; }
.basket-payment { border-radius: .4rem; background: var(--hostel-blue-soft); padding: .55rem .7rem; font-weight: 700; }
.basket-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .8rem; }
.basket-actions .text-link { margin: 0; }
.room-contact { grid-area: contact; }
.room-selected { border-color: var(--accent); background: var(--hostel-blue-soft); }
.room-filters:not([hidden]) { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.room-filters legend { padding-inline: .35rem; font-weight: 700; }
.room-filters label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.room-type-section + .room-type-section { margin-top: 1.5rem; }
.room-type-controls button { margin-top: .35rem; }
.room-type-controls label { margin-bottom: .55rem; }
.contact-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 .75rem; }
#guest-rosters fieldset { margin-block: 1rem; }
#guest-rosters legend { padding-inline: .25rem; font-weight: 700; }
.terms-checkbox { display: flex; align-items: baseline; gap: .5rem; }
@media (max-width: 48rem) {
  .room-search { grid-template-columns: minmax(0, 1fr); }
  .room-checkout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "options" "basket" "contact"; }
  .room-basket { position: static; max-height: none; overflow: visible; }
}


