/* HotelNest Booking Engine - the hotel's colours come from booking.toml (--brand, --dark). */
:root {
  --brand: #8a6d3b; --dark: #1f2a37; --ink: #2b2b2b; --muted: #6f6a63; --line: #e7e1d8; --bg: #f7f4ef; --card: #fff;
  --ok: #2f7d4f; --warn: #b5651d; --err: #b3261e; --r: 6px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--bg); padding-bottom: 80px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--dark); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; } h2 { font-size: 1.55rem; } h3 { font-size: 1.2rem; } h4 { margin: 1em 0 .3em; }
a { color: var(--brand); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 50; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .err { color: var(--err); font-size: .9rem; } .warn { color: var(--warn); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* header */
.top { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand small { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.brand span { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .18em; color: var(--brand); }
.nav { display: flex; gap: 18px; align-items: center; flex: 1; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--dark); text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; }
.nav a:hover { color: var(--brand); }
.nav select, .tools select { width: auto; display: inline-block; margin: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; background: #fff; font: inherit; }
.tools { display: flex; gap: 12px; align-items: center; }

/* hero */
.hero { height: 300px; background: var(--dark) center/cover no-repeat; position: relative; transition: height .3s ease; }
.hero.small { height: 120px; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
main { position: relative; margin-top: -80px; }
.hero.small + main { margin-top: -40px; }

/* blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.narrow, .signin { max-width: 460px; margin-inline: auto; }
.btn { background: var(--brand); color: #fff; border: 0; border-radius: var(--r); padding: 11px 22px; font: 500 .95rem var(--sans);
  letter-spacing: .03em; cursor: pointer; text-decoration: none; display: inline-block; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.big { padding: 14px 28px; font-size: 1.05rem; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; text-align: left; }
.link:hover { text-decoration: underline; }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--r); font: 1rem var(--sans); color: var(--ink); background: #fff; }
textarea { resize: vertical; }
.chk { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.chk input { width: auto; margin-top: 4px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* steps */
.steps { display: flex; gap: 6px; list-style: none; padding: 14px 18px; margin: 0 0 16px; background: rgba(255,255,255,.95);
  border-radius: var(--r); border: 1px solid var(--line); justify-content: center; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em;
  color: var(--muted); padding-right: 18px; }
.steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.steps li.on { color: var(--dark); font-weight: 500; } .steps li.on span { background: var(--dark); color: #fff; border-color: var(--dark); }
.steps li.done span { background: var(--brand); color: #fff; border-color: var(--brand); }

/* search */
.search { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 24px; }
.search h3 { font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.party { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; border-top: 1px dashed var(--line); padding-top: 8px; }
.party b { width: 100%; font-size: .85rem; }
.party label { flex: 1 1 90px; }
.sf-go { display: flex; flex-direction: column; gap: 12px; }

/* calendar */
.cal-nav { display: flex; justify-content: space-between; margin-bottom: 8px; }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.month h4 { text-align: center; text-transform: capitalize; margin: 0 0 8px; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd { text-align: center; font-size: .75rem; color: var(--muted); text-transform: uppercase; }
.cd { min-height: 56px; border-radius: 4px; border: 0; padding: 4px; text-align: left; font: inherit; display: flex;
  flex-direction: column; justify-content: space-between; }
.cd b { font-size: .9rem; } .cd i { font-style: normal; font-size: .7rem; }
.cd.empty { background: transparent; }
.cd.none { background: #ece9e4; color: #a29d96; }
.cd.available { background: #3f6e9e; color: #fff; cursor: pointer; }
.cd.min_stay { background: var(--brand); color: #fff; cursor: pointer; }
button.cd:hover { filter: brightness(1.12); transform: translateY(-1px); }
.legend { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.lg { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-left: 10px; }
.lg.available { background: #3f6e9e; } .lg.min_stay { background: var(--brand); } .lg.none { background: #d7d2cb; }

/* results */
.room-h { font-family: var(--sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  margin: 28px 0 12px; } .room-h b { color: var(--dark); }
.notice { color: var(--dark); }
.offer-card { display: grid; grid-template-columns: 300px 1fr 230px; gap: 22px; padding: 18px; }
.offer-card.chosen { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.oc-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; display: block; }
.amen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .am { font-size: 1.1rem; }
.oc-main h3 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.oc-main h3 .link { font: 600 1.35rem var(--serif); color: var(--dark); }
.cap { font: .8rem var(--sans); color: var(--muted); white-space: nowrap; }
.rate { margin: 4px 0; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.badge { background: #f0a030; color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 3px; margin-left: 6px; }
.oc-price { border-left: 1px solid var(--line); padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.oc-price s { color: var(--muted); } .oc-price strong { font: 600 1.7rem var(--serif); color: var(--brand); }
.save { font-size: .85rem; color: var(--muted); } .offer { color: var(--ok); font-size: .85rem; }
.left { color: var(--err); font-size: .82rem; margin: 0; }
.oc-strip { grid-column: 1 / -1; }
.strip { display: flex; overflow-x: auto; gap: 2px; background: #ebe6de; border-radius: 4px; padding: 2px; }
.sd { flex: 0 0 82px; border: 0; background: #f4f1ec; padding: 6px 4px; text-align: center; font: .75rem var(--sans);
  cursor: pointer; display: flex; flex-direction: column; gap: 1px; border-radius: 3px; }
.sd s { color: var(--muted); font-size: .68rem; } .sd b { font-size: .78rem; }
.sd.in { background: #d8cbb4; } .sd:hover:not([disabled]) { background: #e9dfcd; } .sd[disabled] { cursor: default; color: #aaa; }
.sumbar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: #fff; z-index: 15; }
.sumbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 12px; }

/* extras, contact, summary */
.two { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.summary { position: sticky; top: 90px; }
.summary ul { list-style: none; padding: 0; margin: 0 0 12px; font-size: .9rem; }
.summary li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.summary .tot { font-size: 1.1rem; display: flex; justify-content: space-between; }
.summary p { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0; }
.extra { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 16px 0; }
.ex-buy { min-width: 130px; text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.ex-buy input[type=number] { width: 80px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
details { margin: 8px 0 16px; } summary { cursor: pointer; color: var(--brand); }
.terms { background: var(--bg); border-radius: var(--r); padding: 12px 16px; margin: 12px 0; max-height: 220px; overflow: auto; }

/* done */
.done { text-align: center; } .done .facts { text-align: left; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 2rem;
  background: var(--ok); color: #fff; }
.done.held .done-ic { background: var(--warn); } .done.failed .done-ic, .done.expired .done-ic, .done.refunded .done-ic { background: var(--err); }
.facts { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; max-width: 640px; margin: 20px auto; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(20,20,20,.55); z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: var(--r); max-width: 760px; width: 100%; max-height: 88vh; overflow: auto; padding: 28px; position: relative; }
.modal-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); }
.mimg { width: 100%; border-radius: 4px; margin-bottom: 12px; }
.amlist { columns: 2; padding-left: 0; list-style: none; }
.bdt { width: 100%; border-collapse: collapse; } .bdt td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.bdt s { color: var(--muted); } .bdt .tot td { border: 0; font-size: 1.1rem; }
.flexlist { display: grid; gap: 6px; }
.fx { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); background: #fff; border-radius: var(--r);
  cursor: pointer; font: inherit; } .fx:hover:not([disabled]) { border-color: var(--brand); } .fx.off { color: #aaa; cursor: default; }

/* info pages */
.lead { font-size: 1.1rem; max-width: 760px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
.gallery figure { margin: 0; } .gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.gallery figcaption { font-size: .85rem; color: var(--muted); }
.offer-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 14px 0; }
.map { width: 100%; height: 420px; border: 0; border-radius: var(--r); }
.foot { margin-top: 40px; padding: 24px 0; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .search { grid-template-columns: 1fr; }
  .offer-card { grid-template-columns: 1fr; }
  .oc-price { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .two { grid-template-columns: 1fr; } .summary { position: static; }
  .months { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; }
  .nav { gap: 10px; } .hero { height: 200px; } h1 { font-size: 1.6rem; }
  .btn { width: 100%; text-align: center; } .cd { min-height: 46px; } .cd i { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* The other hotel of the group has rooms when this one is full. */
.elsewhere { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-left: 4px solid var(--brand); margin-bottom: 16px; }
.elsewhere p { margin: 4px 0 0; }
@media (max-width: 600px) { .elsewhere { flex-direction: column; align-items: stretch; } }
