/* Booking engine v2: structure and default (Folha) look.
 *
 * Everything a theme may change is a custom property declared here:
 * - colours come from the palette, printed inline per page (themes.php);
 * - type, shape and ornament come from static/themes/<theme>.css;
 * - --brand-btn* is set only when the hotel uses its own colour for the buttons.
 * Mobile first; breakpoints at 768 and 1024.
 */

:root {
  /* palette (Folha / Papel defaults, overridden inline) */
  --bg: #f6f2eb;
  --bg-2: #eee7db;
  --ink: #1d1b18;
  --ink-2: #47423a;
  --ink-3: #6b6458;
  --rule: #d6ccbc;
  --accent: #2f5d50;
  --accent-hover: #244a40;
  --on-accent: #fff;
  --inverse-bg: #1d1b18;
  --inverse-ink: #f6f2eb;
  --inverse-mute: #b9b0a2;
  --error: #a3261b;
  --backdrop: rgba(29, 27, 24, .5);
  --map-filter: grayscale(1) contrast(1.05);

  /* type */
  --font-display: "Libre Bodoni", "Bodoni 72", Didot, Georgia, serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-label: var(--font-text);
  --display-weight: 400;
  --display-tracking: -.015em;
  --display-case: none;
  --ornament-style: italic;
  --label-weight: 600;
  --label-size: .75rem;
  --label-tracking: .14em;
  --label-case: uppercase;
  --label-caps: normal;
  --btn-weight: 600;
  --btn-size: .8125rem;
  --btn-tracking: .08em;
  --btn-case: uppercase;

  /* shape */
  --radius-media: 0px;
  --radius-ui: 0px;
  --radius-btn: 0px;
  --line-strong: var(--ink);
  --line-width: 1px;
  --form-border: 1px solid var(--ink);
  --shadow-ui: none;

  /* layout and motion */
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --max: 1240px;
  --section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --reveal-time: .8s;

  /* buttons: the brand colour wins when the hotel uses it */
  --btn-bg: var(--brand-btn, var(--accent));
  --btn-bg-hover: var(--brand-btn-hover, var(--accent-hover));
  --btn-fg: var(--brand-on, var(--on-accent));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; background: var(--ink); color: var(--bg);
  text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------------ type roles */

/* Display: every headline-like element shares family, weight, tracking. */
.cover__title, .section__title, .room__name, .story__title, .offer__text, .dropcap,
.colophon__name, .sheet__title, .field__value, .price__value, .place__address,
.fact dd, .fact .link, .masthead__name, .stepper__label, .cal-month__caption,
.sheet__summary, .colophon__contact dd, .colophon__social a, .plan__from strong, .dock__price strong {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
}
.cover__title, .section__title, .room__name, .story__title, .colophon__name { text-transform: var(--display-case); }

/* Ornaments: section numbers, room numbers, offer figures. */
.section__num, .room__index, .offer__pct {
  font-family: var(--font-display);
  font-style: var(--ornament-style);
  font-weight: var(--display-weight);
}

/* Labels: kickers, field labels, specs, table heads. */
.kicker, .plan__title, .field__label, .fact dt, .room__specs, .cal-month th, .age label,
.prose h3, .colophon__contact dt, .masthead__nav a, .room__count {
  font-family: var(--font-label);
  font-weight: var(--label-weight);
  font-size: var(--label-size);
  line-height: 1.4;
  letter-spacing: var(--label-tracking);
  text-transform: var(--label-case);
  font-variant-caps: var(--label-caps);
}
.kicker, .plan__title, .field__label, .fact dt, .cal-month th, .age label, .prose h3 { color: var(--ink-3); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: 0 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font-family: var(--font-label); font-weight: var(--btn-weight); font-size: var(--btn-size); line-height: 1;
  letter-spacing: var(--btn-tracking); text-transform: var(--btn-case);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon--arrow-right { transform: translateX(3px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--sm { min-height: 44px; padding: 0 1rem; }
.btn--lg { min-height: 56px; padding: 0 1.75rem; }

.btn--accent { background: var(--btn-bg); color: var(--btn-fg); }
.btn--accent:hover:not(:disabled) { background: var(--btn-bg-hover); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--btn-bg); color: var(--btn-fg); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--bg); }

.link {
  padding: .4rem 0; border: 0; background: none; cursor: pointer; text-align: left;
  text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }

.iconbtn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius-btn); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s var(--ease), opacity .2s var(--ease);
}
.iconbtn:hover:not(:disabled) { background: var(--bg-2); }
.iconbtn:disabled { opacity: .3; cursor: not-allowed; }
.iconbtn--line { border: 1px solid var(--ink); }

/* ------------------------------------------------------------------ masthead */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: var(--line-width) solid transparent;
  transition: border-color .25s var(--ease);
}
.masthead.is-stuck { border-bottom-color: var(--line-strong); }
.masthead__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; min-height: 64px; }
.masthead__nav { display: none; gap: 1.5rem; }
.masthead__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.masthead__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; }
.masthead__brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.masthead__brand img {
  max-height: var(--ibe-logo-max-height-mobile, 40px);
  max-width: var(--ibe-logo-max-width-mobile, 160px);
  width: auto; object-fit: contain;
}
.masthead__name { font-size: 1.15rem; line-height: 1.1; }

@media (min-width: 768px) {
  .masthead__inner { grid-template-columns: 1fr auto 1fr; min-height: 76px; }
  .masthead__brand { grid-column: 2; justify-self: center; }
  .masthead__brand img { max-height: var(--ibe-logo-max-height, 52px); max-width: var(--ibe-logo-max-width, 220px); }
  .masthead__name { font-size: 1.6rem; }
  .masthead__cta { grid-column: 3; justify-self: end; }
}
@media (min-width: 1100px) {
  .masthead__nav { display: flex; grid-column: 1; grid-row: 1; }
}

/* ------------------------------------------------------------------ cover */

.cover { padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); }
.cover__text { display: grid; gap: 1.25rem; }
.cover__title { font-size: clamp(2.6rem, 1.5rem + 5.2vw, 6.4rem); line-height: 1.02; text-wrap: balance; }
.cover__dek { max-width: 34rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.cover__figure { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.cover__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 82vh; background: var(--bg-2); }

@media (min-width: 768px) {
  .cover__img { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .cover__text { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; row-gap: 1.5rem; align-items: end; }
  .cover__kicker { grid-column: 1 / -1; }
  .cover__title { grid-column: 1 / span 8; }
  .cover__dek { grid-column: 9 / -1; padding-bottom: .6rem; }
  .cover__img { aspect-ratio: 21 / 9; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .cover__text > * { animation: rise .9s var(--ease) both; }
  .cover__text > :nth-child(2) { animation-delay: .08s; }
  .cover__text > :nth-child(3) { animation-delay: .16s; }
}

/* ------------------------------------------------------------------ plan (search) */

.plan { position: relative; z-index: 2; padding-top: 1.5rem; }
.plan__form { background: var(--bg); border: var(--form-border); border-radius: var(--radius-ui); box-shadow: var(--shadow-ui); padding: 1.25rem; }
.plan__title { margin-bottom: .75rem; }
.plan__fields { display: grid; grid-template-columns: 1fr 1fr; }
.field {
  display: grid; gap: .2rem; align-content: center; text-align: left;
  min-height: 72px; padding: .75rem 1rem .75rem 0;
  border: 0; border-bottom: 1px solid var(--rule); background: none; cursor: pointer;
}
.field + .field { padding-left: 1rem; border-left: 1px solid var(--rule); }
.field:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
.field__value { font-size: 1.25rem; line-height: 1.25; }
.field__value.is-empty { color: var(--ink-3); }
.field:hover .field__value { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.plan__submit { grid-column: 1 / -1; margin-top: 1rem; width: 100%; }
.plan__note { margin-top: .9rem; color: var(--ink-2); font-size: .9375rem; }
.plan__note.is-error { color: var(--error); }
.plan__from { margin-top: .9rem; font-size: .9375rem; color: var(--ink-2); }
.plan__from strong { font-size: 1.125rem; line-height: 1; color: var(--ink); }

@media (min-width: 1024px) {
  .cover:has(.cover__figure) + .plan { margin-top: -5.5rem; padding-top: 0; }
  .plan__form { padding: 1.5rem 1.75rem 1.25rem; }
  .plan__fields { grid-template-columns: 1fr 1fr 1fr auto; align-items: stretch; }
  .field, .field:nth-child(3) { border-bottom: 0; grid-column: auto; padding: .5rem 1.25rem; border-left: 1px solid var(--rule); }
  .field:first-child { padding-left: 0; border-left: 0; }
  .plan__submit { grid-column: auto; margin: 0 0 0 1.25rem; width: auto; align-self: center; }
}

/* ------------------------------------------------------------------ sections */

.section { padding-top: var(--section); }
.section__head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-top: 1rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border-top: var(--line-width) solid var(--line-strong);
}
.section__num { font-size: 1.125rem; line-height: 1; color: var(--ink-3); min-width: 2ch; }
.section__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.05; text-wrap: balance; }

/* ------------------------------------------------------------------ offers */

.offer {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.75rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.offer:first-child { padding-top: 0; }
.offer__pct { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: .9; letter-spacing: -.03em; min-width: 3ch; }
.offer__text { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.35; max-width: 38ch; }
.offer__meta { margin-top: .6rem; color: var(--ink-3); font-size: .875rem; }
.offer__meta span + span::before { content: "·"; margin: 0 .55em; }
.offer__text + .offer__meta { margin-top: .75rem; }

@media (min-width: 768px) {
  .offers__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .offer:first-child, .offer:nth-child(2) { padding-top: 0; }
}

/* ------------------------------------------------------------------ rooms */

.room {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; gap: 1.75rem;
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.room + .room { padding-top: clamp(3rem, 2rem + 4vw, 6rem); border-top: 1px solid var(--rule); }

.room__media { position: relative; }
.room__photos {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; background: var(--bg-2); border-radius: var(--radius-media);
}
.room__photos::-webkit-scrollbar { display: none; }
.room__photo { flex: 0 0 100%; scroll-snap-align: start; }
.room__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.room__count {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .3rem .6rem; background: var(--bg); color: var(--ink); border-radius: var(--radius-btn);
  font-variant-numeric: tabular-nums;
}
.room__nav { position: absolute; right: .75rem; bottom: .75rem; display: flex; gap: 1px; }
.room__nav .iconbtn { background: var(--bg); }
.room__nav .iconbtn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.room__nav .iconbtn:disabled { opacity: 1; color: var(--rule); }
.room__placeholder {
  display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--bg-2); border-radius: var(--radius-media);
  font-family: var(--font-display); font-style: var(--ornament-style); font-size: clamp(6rem, 4rem + 10vw, 12rem); line-height: 1; color: var(--ink-3);
}

.room__body { display: grid; gap: 1rem; align-content: end; }
.room__index { font-size: 1.125rem; line-height: 1; color: var(--ink-3); }
.room__name { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); line-height: 1.05; text-wrap: balance; }
.room__specs { color: var(--ink-2); line-height: 1.6; }
.room__specs span + span::before { content: "·"; margin: 0 .6em; color: var(--ink-3); }
.room__desc { max-width: 46ch; font-size: 1.0625rem; color: var(--ink-2); }
.room__amen { max-width: 52ch; font-size: .9375rem; color: var(--ink-2); line-height: 1.7; }
.room__amen .kicker { margin-right: .5em; }
.room__amen-toggle { margin-left: .35em; padding: .2rem 0; font-size: .9375rem; color: var(--ink); }
.room__foot {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 1.5rem;
  margin-top: .75rem; padding-top: 1.25rem; border-top: var(--line-width) solid var(--line-strong);
}

.price { display: grid; gap: .15rem; }
.price__label, .price__unit { font-size: .8125rem; color: var(--ink-3); }
.price__value { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1; font-variant-numeric: lining-nums; }

@media (min-width: 1024px) {
  .room { grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 5vw, 5.5rem); align-items: end; }
  .room--flip { grid-template-columns: 5fr 7fr; }
  .room--flip .room__media { order: 2; }
  .room__photo img { aspect-ratio: 5 / 4; }
  .room__placeholder { aspect-ratio: 5 / 4; }
}

/* ------------------------------------------------------------------ about */

.about__grid { display: grid; gap: 2.5rem; }
.about__head { margin-bottom: 0; }
.dropcap { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.6; max-width: 40em; }
.dropcap::first-letter { float: left; font-size: 4.6em; line-height: .82; padding: .06em .12em 0 0; }
.amen-list li { padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: .975rem; }
.about__amen .kicker { padding-bottom: .7rem; border-bottom: var(--line-width) solid var(--line-strong); }

@media (min-width: 768px) {
  .amen-list { columns: 2; column-gap: 2rem; }
  .amen-list li { break-inside: avoid; }
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; row-gap: 3rem; }
  .about__head { grid-column: 1 / -1; }
  .about__body { grid-column: 1 / span 7; }
  .about__amen { grid-column: 9 / -1; }
  .amen-list { columns: 1; }
}

/* ------------------------------------------------------------------ stories */

.stories { margin-top: var(--section); background: var(--bg-2); padding-block: clamp(3rem, 2rem + 5vw, 7rem); }
.story { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; gap: 1.75rem; }
.story + .story { margin-top: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-media); }
.story__body { display: grid; gap: 1rem; align-content: center; }
.story__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.9rem); line-height: 1.1; text-wrap: balance; max-width: 18ch; }
.story__text { max-width: 44ch; color: var(--ink-2); font-size: 1.0625rem; }
/* Hotel-authored HTML (ibeHotelText): paragraphs and lists spaced, links visible. */
.dropcap > * + *, .story__text > * + *, .card-pick__note > * + * { margin-top: .8em; }
.dropcap a, .story__text a, .card-pick__note a { color: inherit; text-decoration: underline; }
.dropcap img, .story__text img { max-width: 100%; height: auto; }

@media (min-width: 1024px) {
  .story { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; align-items: center; }
  .story__media { grid-column: 1 / span 6; }
  .story__body { grid-column: 8 / span 5; }
  .story--flip .story__media { grid-column: 7 / span 6; order: 2; }
  .story--flip .story__body { grid-column: 1 / span 5; }
  .story__media img { aspect-ratio: 5 / 6; }
}

/* ------------------------------------------------------------------ gallery */

.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: .5rem; }
.mosaic__item { overflow: hidden; background: var(--bg-2); border-radius: var(--radius-media); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic__item:first-child { grid-column: span 2; }
@media (hover: hover) { .mosaic__item:hover img { transform: scale(1.03); } }

@media (min-width: 768px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 16vw, 230px); gap: .75rem; }
  .mosaic__item { grid-column: span 2; }
  .mosaic__item:first-child { grid-column: span 4; grid-row: span 2; }
  .mosaic--2 .mosaic__item { grid-column: span 3; grid-row: span 2; }
  .mosaic--3 .mosaic__item:not(:first-child) { grid-column: span 2; }
  .mosaic--4 .mosaic__item:last-child { grid-column: span 6; }
  .mosaic--5 .mosaic__item:nth-child(4), .mosaic--5 .mosaic__item:nth-child(5) { grid-column: span 3; }
}

/* ------------------------------------------------------------------ facts */

.facts__list { display: grid; }
.fact { display: grid; grid-template-columns: minmax(7.5rem, 32%) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.fact dd, .fact .link { font-size: 1.15rem; line-height: 1.4; }

@media (min-width: 768px) {
  .facts__list { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

/* ------------------------------------------------------------------ place */

.place__grid { display: grid; gap: 2rem; }
.place__address { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.3; }
.place__links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; }
.poi-list li { display: flex; align-items: baseline; gap: .6rem; padding: .55rem 0; }
.poi__lead { flex: 1; border-bottom: 1px dotted var(--ink-3); transform: translateY(-.3em); min-width: 1.5rem; }
.poi__dist { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.place__map iframe {
  display: block; width: 100%; aspect-ratio: 4 / 3; border: var(--line-width) solid var(--line-strong);
  border-radius: var(--radius-media); filter: var(--map-filter);
}

@media (min-width: 1024px) {
  .place__grid { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; }
  .place__grid .section__head { grid-column: 1 / -1; margin-bottom: 1rem; }
  .place__text { grid-column: 1 / span 5; }
  .place__map { grid-column: 7 / -1; }
}

/* ------------------------------------------------------------------ colophon */

.colophon {
  margin-top: var(--section);
  background: var(--inverse-bg); color: var(--inverse-ink);
  padding-block: clamp(4rem, 3rem + 5vw, 7.5rem) 6rem;
}
.colophon a { color: var(--inverse-ink); text-underline-offset: .25em; text-decoration-thickness: 1px; }
.colophon a:hover { text-decoration-thickness: 2px; }
.colophon :focus-visible { outline-color: var(--inverse-ink); }
.colophon__kicker, .colophon__contact dt, .colophon__place { color: var(--inverse-mute); }
.colophon__name { margin-top: 1rem; font-size: clamp(3rem, 1.4rem + 7.5vw, 8.5rem); line-height: .95; text-wrap: balance; }
.colophon__grid {
  display: grid; gap: 2rem; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--inverse-ink) 25%, transparent);
}
.colophon__contact { display: grid; gap: 1rem; }
.colophon__contact dd { font-size: 1.25rem; line-height: 1.4; }
.colophon__contact dd a { display: inline-block; padding: .25rem 0; }
.colophon__social li a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: 1.25rem; line-height: 1; }
.colophon__social .icon { width: 16px; height: 16px; }
.colophon__credit { margin-top: 3rem; font-size: .8125rem; }
.colophon__credit a { color: var(--inverse-mute); text-decoration: none; }
.colophon__credit a:hover { color: var(--inverse-ink); }

@media (min-width: 768px) {
  .colophon__grid { grid-template-columns: 2fr 1fr 1fr; align-items: start; }
  .colophon { padding-bottom: 3rem; }
}

/* ------------------------------------------------------------------ dock (phones) */

.dock {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: var(--bg); border-top: var(--line-width) solid var(--line-strong);
  transform: translateY(110%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.dock.is-visible { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
.dock__price { display: grid; line-height: 1.2; }
.dock__price strong { font-size: 1.35rem; line-height: 1.1; }
.dock .btn { padding: 0 1rem; }
@media (min-width: 1024px) { .dock { display: none; } }

/* ------------------------------------------------------------------ dialogs */

.sheet {
  padding: 0; border: 0; color: var(--ink); background: var(--bg);
  width: 100%; max-width: 100%; max-height: 92dvh;
  margin: auto 0 0 0;
  border-top: var(--line-width) solid var(--line-strong);
  border-radius: var(--radius-ui) var(--radius-ui) 0 0;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: var(--backdrop); }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up .28s var(--ease); }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.sheet__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter) 1rem; border-bottom: 1px solid var(--rule);
}
.sheet__title { font-size: 1.6rem; line-height: 1.15; }
.sheet__hint { margin-top: .25rem; font-size: .9375rem; color: var(--ink-3); }
.sheet__foot {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: .75rem;
  padding: .9rem var(--gutter) calc(.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule); background: var(--bg);
}
.sheet__summary { grid-column: 1 / -1; font-size: 1.1rem; line-height: 1.3; }
.sheet__summary:empty { display: none; }
.sheet__foot > .btn:only-child { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .sheet { margin: auto; width: min(760px, 100% - 2rem); max-height: 88vh; border: var(--line-width) solid var(--line-strong); border-radius: var(--radius-ui); }
  .sheet--guests { width: min(460px, 100% - 2rem); }
  .sheet--text { width: min(660px, 100% - 2rem); }
  .sheet__head, .sheet__foot { padding-inline: 1.75rem; }
  .sheet__foot { display: flex; justify-content: flex-end; }
  .sheet__summary { flex: 1 1 auto; }
  .sheet__summary:empty { display: block; }
}

/* calendar */
.cal { position: relative; flex: 1; overflow-y: auto; padding: 1rem var(--gutter) 1.25rem; }
.cal__nav { position: absolute; inset: .7rem var(--gutter) auto; display: flex; justify-content: space-between; pointer-events: none; }
.cal__nav .iconbtn { pointer-events: auto; }
.cal__months { display: grid; gap: 1.75rem; }
.cal-month__caption { padding: .55rem 0 1rem; text-align: center; font-size: 1.25rem; line-height: 1.2; }
.cal-month table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-month th { padding-bottom: .4rem; letter-spacing: .08em; }
.cal-month td { padding: 1px 0; }
.day {
  position: relative; width: 100%; min-height: 52px; padding: .35rem 0;
  display: grid; place-content: center; gap: .1rem;
  border: 0; border-radius: var(--radius-btn); background: none; cursor: pointer; text-align: center;
  transition: background-color .15s var(--ease);
}
.day__n { font: 500 1rem/1 var(--font-text); font-variant-numeric: tabular-nums; }
.day__p { font-size: .75rem; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; min-height: .75rem; }
.day:hover:not(:disabled):not(.is-start):not(.is-end) { background: var(--bg-2); }
.day:disabled { cursor: default; }
.day:disabled .day__n { color: var(--ink-3); opacity: .55; }
.day.is-soldout .day__n { text-decoration: line-through; }
.day.is-range { background: var(--bg-2); border-radius: 0; }
.day.is-start, .day.is-end { background: var(--ink); }
.day.is-start .day__n, .day.is-end .day__n, .day.is-start .day__p, .day.is-end .day__p { color: var(--bg); opacity: 1; }
.day.is-promo::after {
  content: ""; position: absolute; top: 7px; right: calc(50% - 15px);
  width: 5px; height: 5px; border-radius: 50%; background: var(--btn-bg);
}
.day.is-today .day__n { text-decoration: underline; text-underline-offset: .25em; }
.cal__note { padding: 0 var(--gutter) .75rem; font-size: .8125rem; color: var(--ink-3); }

@media (min-width: 768px) {
  .cal { padding-inline: 1.75rem; }
  .cal__nav { inset-inline: 1.75rem; }
  .cal__months { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .cal__note { padding-inline: 1.75rem; }
}

/* guests */
.guests { padding: .5rem var(--gutter) 1.5rem; overflow-y: auto; }
.stepper { display: grid; grid-template-columns: 1fr auto 3ch auto; align-items: center; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.stepper__label { font-size: 1.25rem; line-height: 1.2; }
.stepper__value { text-align: center; font: 500 1.125rem/1 var(--font-text); font-variant-numeric: tabular-nums; }
.ages { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.ages:empty { display: none; }
.age { display: grid; gap: .35rem; }
.age select {
  min-height: 48px; padding: 0 .75rem; border: 1px solid var(--ink); border-radius: var(--radius-btn);
  background: var(--bg); color: var(--ink); font: 400 1rem/1 var(--font-text);
}
.age.is-invalid select { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
@media (min-width: 768px) { .guests { padding-inline: 1.75rem; } }

/* text dialog */
.prose { padding: .5rem var(--gutter) 2rem; overflow-y: auto; }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose p { max-width: 62ch; color: var(--ink-2); line-height: 1.7; }
@media (min-width: 768px) { .prose { padding-inline: 1.75rem; } }

/* ------------------------------------------------------------------ reveal */

@media (prefers-reduced-motion: no-preference) {
  .js main [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--reveal-time) var(--ease), transform var(--reveal-time) var(--ease); }
  .js main [data-reveal].is-in { opacity: 1; transform: none; }
  .js .cover [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ views (router) */

body:not([data-current-view="home"]) .dock { display: none; }
.view { min-height: 60vh; padding-top: clamp(2rem, 1rem + 3vw, 4rem); }
.view[hidden] { display: none; }
.results__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.05; text-wrap: balance; }
.results__title:focus { outline: none; }
[data-view-heading]:focus { outline: none; }
.skeleton {
  height: 220px; margin-top: 1.5rem; border-radius: var(--radius-media);
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: shimmer 1.4s linear infinite; }
  @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
}

/* ------------------------------------------------------------------ results */

.results { padding-bottom: 7rem; }
.results__head { display: grid; gap: .6rem; justify-items: start; margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.results__notice { margin-bottom: 1.5rem; padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-ui); background: var(--bg-2); }
.results__empty { display: grid; gap: 1rem; padding-block: 2rem; }
.results__soldout { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.2; max-width: 32ch; }
.results__nearby { display: flex; flex-wrap: wrap; gap: .75rem; }

.offer-room {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; gap: 1.75rem; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.offer-room + .offer-room { border-top: var(--line-width) solid var(--rule); }
.offer-room[aria-busy="true"] .offer-room__rates { opacity: .5; transition: opacity .2s var(--ease); }
.offer-room__media { position: relative; align-self: start; }
.offer-room__body { display: grid; gap: .65rem; align-content: start; }
.offer-room__more summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.offer-room__more p { color: var(--ink-2); max-width: 52ch; }

.guests-inline { margin: 0; padding: 0; border: 0; }
.guests-inline legend { margin-bottom: .25rem; }
.guests-inline .stepper { padding: .3rem 0; border-bottom: 0; }
/* Results rooms: compact controls and type, one rule above the rates and thin ones between them. */
.offer-room .room__name { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
.guests-inline .iconbtn { width: 34px; height: 34px; min-height: 34px; }
.guests-inline .iconbtn .icon, .guests-inline .iconbtn svg { width: 15px; height: 15px; }
.guests-inline .ages { margin-top: .5rem; gap: .75rem; }
.guests-inline .age select { min-height: 40px; }
.offer-room .rates { border-top-width: 1px; }
.offer-room .rate:last-child { border-bottom: 0; }
.offer-room .rate__name { font-size: 1.15rem; }
.offer-room .rate__total { font-size: 1.35rem; }
.offer-room .rate__book .btn { min-height: 40px; padding: 0 1.1rem; }
.offer-room__more summary, .offer-room .rate__nights summary { min-height: 32px; }
.offer-room .rate { gap: .35rem; padding: .9rem 0; }
.offer-room .rate__book { margin-top: .25rem; }
.guests-inline .stepper__label { font-size: 1.05rem; }

.rates { display: grid; gap: 0; margin-top: .25rem; border-top: var(--line-width) solid var(--line-strong); }
.rate { display: grid; gap: .45rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.rate--best { position: relative; }
.rate--best::before { content: ""; position: absolute; left: calc(-1 * var(--gutter) / 2); top: 1.25rem; bottom: 1.25rem; width: 3px; background: var(--btn-bg); border-radius: 3px; }
.rate.is-selected { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
/* Pad the tint so text never touches its edges; the negative margin keeps the text aligned with unselected rates. */
.rate.is-selected, .offer-room .rate.is-selected { margin-inline: -1rem; padding-inline: 1rem; border-radius: var(--radius-ui); border-bottom-color: transparent; }
.rate--best.is-selected::before { left: calc(1rem - var(--gutter) / 2); }
.rate__badge { justify-self: start; padding: .2rem .55rem; border-radius: var(--radius-btn); background: var(--btn-bg); color: var(--btn-fg); font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight); letter-spacing: var(--label-tracking); text-transform: var(--label-case); }
.rate__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; }
.rate__name { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.35rem; line-height: 1.2; }
.rate__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.rate__was { color: var(--ink-3); }
.rate__total { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; line-height: 1; }
.rate__for { font-size: .875rem; color: var(--ink-3); }
.rate__facts { display: grid; gap: .25rem; font-size: .9375rem; color: var(--ink-2); }
.rate__facts small { display: block; color: var(--ink-3); }
.rate__cancel--non_refundable { color: var(--ink-2); }
.rate__nights summary { cursor: pointer; font-size: .9375rem; min-height: 36px; display: flex; align-items: center; }
.rate__nights ul { display: grid; gap: .25rem; padding: .25rem 0 .5rem; }
.rate__nights li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rate__desc { color: var(--ink-2); font-size: .9375rem; max-width: 60ch; }
.rate__promo { font-size: .9375rem; color: var(--ink); }
.rate__promo--applied { color: var(--ink-2); }
.rate__book { display: flex; align-items: center; gap: .75rem; }
.qty { display: inline-flex; align-items: center; gap: .6rem; }
.qty[hidden] { display: none; }
.qty__value { min-width: 2ch; text-align: center; font: 600 1.1rem/1 var(--font-text); font-variant-numeric: tabular-nums; }
.qty__unit { font-size: .9375rem; color: var(--ink-2); }
.rates__gate { padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius-ui); color: var(--ink-2); }
.rates__contact { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-top: 1rem; }

.resbar {
  position: sticky; bottom: 0; z-index: 15;
  margin-top: 2rem; background: var(--bg); border-top: var(--line-width) solid var(--line-strong);
  box-shadow: 0 -12px 30px -24px rgba(0, 0, 0, .5);
  padding-bottom: env(safe-area-inset-bottom);
}
.resbar[hidden] { display: none; }
.resbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .85rem; }
.resbar__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.resbar__total strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; line-height: 1; }

@media (min-width: 1024px) {
  .offer-room { grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .offer-room--flip .offer-room__media { order: 2; }
  .offer-room--flip { grid-template-columns: 7fr 5fr; }
  .offer-room__media { position: sticky; top: 6rem; }
}
.btn[hidden], .rate__book [hidden] { display: none; }
.results__title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); }

/* ------------------------------------------------------------------ checkout */

.checkout { padding-bottom: 6rem; }
.checkout__head { display: grid; gap: .6rem; justify-items: start; margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.checkout__grid { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); align-items: start; }
.checkout__summary { display: grid; gap: 1rem; padding: 1.25rem; border: var(--line-width) solid var(--line-strong); border-radius: var(--radius-ui); background: var(--bg-2); }
.summary { display: grid; gap: .6rem; }
.summary__room { display: grid; gap: .15rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); }
.summary__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.15rem; line-height: 1.25; }
.summary__meta, .summary__promo { font-size: .9375rem; color: var(--ink-2); }
.summary__line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.summary__line[hidden] { display: none; }
.summary__discount { color: var(--ink); }
.summary__due { color: var(--ink-2); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .75rem; border-top: var(--line-width) solid var(--line-strong); }
.summary__amount { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.coupon { display: grid; gap: .4rem; }
.coupon__row { display: flex; gap: .5rem; }
.coupon__row .input { flex: 1; min-width: 0; }
.checkout__pay { display: grid; gap: 2rem; }
.pay-options { display: grid; gap: .6rem; margin: 0; padding: 0; border: 0; }
.pay-option { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; min-height: 44px; border: 1px solid var(--rule); border-radius: var(--radius-ui); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.pay-option input { margin-top: .2rem; accent-color: var(--btn-bg); }
.pay-option__body { display: grid; gap: .2rem; flex: 1; }
.pay-option__name { font-weight: 600; }
.pay-option__amounts { font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pay-option--small { padding: .7rem .9rem; }
.card-pick { display: grid; gap: .9rem; }
.card-pick[hidden], .card-pick__plans[hidden], .card-pick__note[hidden] { display: none; }
.card-pick__brands { display: flex; flex-wrap: wrap; gap: .5rem; }
.card-pick__brands [aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card-pick__plans { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; }
.card-pick__note { font-size: .9375rem; color: var(--ink-2); }
.guest-form { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: clamp(1.5rem, 1rem + 1vw, 2rem); border-top: var(--line-width) solid var(--line-strong); }
.guest-form__grid { display: grid; gap: 1rem; }
.input-field { display: grid; gap: .35rem; }
.input { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-ui); background: var(--bg); color: var(--ink); font: 400 1rem/1.3 var(--font-text); }
.input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: .875rem; color: var(--error); }
.field-error[hidden] { display: none; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--btn-bg); flex: none; }
.check--rules { color: var(--ink); }
.checkout__status { padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-ui); background: var(--bg-2); }
.checkout__status[hidden] { display: none; }
.checkout__confirm { width: 100%; justify-content: center; }
.extras { display: grid; gap: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .25rem var(--gutter); }
.extra { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.extra:last-child { border-bottom: 0; }
.extra > div:first-child { display: grid; gap: .2rem; min-width: 0; }
.extra__name { font-weight: 600; overflow-wrap: anywhere; }
.extra__desc { font-size: .9375rem; color: var(--ink-2); overflow-wrap: anywhere; }
.extra__price { margin-top: .15rem; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.stepper--inline { grid-template-columns: auto 3ch auto; gap: .5rem; padding: 0; border-bottom: 0; }
.sheet--extras { overflow: hidden; }
.sheet--extras .sheet__foot { grid-template-columns: 1fr; }
.sheet--extras .sheet__foot .btn { justify-content: center; }
.sheet--extras .sheet__foot [data-extras-add] { order: -1; }
@media (min-width: 768px) {
  .sheet--extras { width: min(600px, 100% - 2rem); }
  .extras { padding-inline: 1.75rem; }
}

@media (min-width: 720px) {
  .guest-form__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .checkout__grid { grid-template-columns: 7fr 5fr; }
  .checkout__summary { position: sticky; top: 6rem; order: 2; }
}

/* ------------------------------------------------------------------ booked */

.booked { display: grid; gap: 1rem; justify-items: start; padding-bottom: 6rem; }
.booked__text { max-width: 52ch; color: var(--ink-2); font-size: 1.05rem; }
.booked__actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
.sheet--card { width: min(100% - 2rem, 640px); }
.card-frame { display: block; width: 100%; height: min(70vh, 640px); border: 0; background: var(--bg); }

/* ------------------------------------------------------------------ direct booking page */

.skipview { display: grid; gap: .75rem; justify-items: start; padding-top: clamp(2.5rem, 2rem + 4vw, 6rem); padding-bottom: 1.5rem; }
.skipview__title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem); line-height: 1.05; text-wrap: balance; }
.skipview__title:focus { outline: none; }
.skipview__dek { max-width: 46ch; color: var(--ink-2); font-size: 1.1rem; }
