/* ==========================================================================
   Stillwood — boutique stay
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base & reset
   3.  Layout helpers
   4.  Typography
   5.  Buttons & links
   6.  Header & navigation
   7.  Hero
   8.  Home sections (intro, rooms, amenities, experience, mosaic, location)
   9.  Call to action & footer
   10. Inner pages (page intro, rooms, gallery, contact, FAQ)
   11. Lightbox
   12. Booking
   13. Motion & accessibility
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

:root {
  /* Colour */
  --c-bg: #ffffff;
  --c-bg-warm: #f6f4ef;
  --c-ink: #171717;
  --c-ink-soft: #3b3b38;
  --c-muted: #6b6a65;
  --c-line: #e7e4dd;
  --c-field: #d9d5cc;
  --c-accent: #2b7a61;
  --c-accent-dark: #21624d;
  --c-accent-tint: #e7f0ec;
  --c-error: #b42318;

  /* Type */
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.625rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.1vw, 3.25rem);
  --fs-h1: clamp(2.375rem, 1.5rem + 3.6vw, 4.375rem);

  /* Space */
  --gutter: clamp(1rem, 4vw, 3rem);
  --container: 1280px;
  --grid-gap: clamp(1rem, 2.5vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --hero-inset: clamp(0.75rem, 1.6vw, 1.5rem);
  --header-h: 64px;

  /* Shape */
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --header-h: 76px; }
}


/* 2. Base & reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink-soft);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
picture,
svg,
video,
iframe { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* :where() keeps this reset at zero specificity, so component classes can add spacing */
:where(ul[class], ol[class]) { margin: 0; padding: 0; list-style: none; }

dl, dd, figure, blockquote { margin: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

[hidden] { display: none !important; }

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

::selection { background: var(--c-accent-tint); color: var(--c-ink); }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill { fill: currentColor; stroke: none; }

/* Inline SVG icon sprite at the top of each page */
.sprite { position: absolute; overflow: hidden; }

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--c-ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }


/* 3. Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--warm { background: var(--c-bg-warm); }
.section--flush-top { padding-top: 0; }

/* Heading on the left, supporting copy on the right */
.section-head {
  display: grid;
  gap: 1.25rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head__aside { max-width: 28rem; }
.section-head__aside p { color: var(--c-muted); }
.section-head__aside .link-arrow { margin-top: 1.25rem; }

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
  }
  .section-head__aside { justify-self: end; }
}


/* 4. Typography
   ========================================================================== */

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.032em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.018em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-ink);
}

.label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.muted { color: var(--c-muted); }


/* 5. Buttons & links
   ========================================================================== */

.btn {
  --btn-bg: var(--c-ink);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn .icon { width: 1.125rem; height: 1.125rem; }
.btn:hover { --btn-bg: #000; }

.btn--primary { --btn-bg: var(--c-accent); }
.btn--primary:hover { --btn-bg: var(--c-accent-dark); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--c-ink); }
.btn--light:hover { --btn-bg: #efede7; }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-border: #cbc7be; }
.btn--outline:hover { --btn-bg: transparent; --btn-border: var(--c-ink); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.6); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-border: #fff; }

.btn--sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: rgba(23, 23, 23, 0.25);
  text-underline-offset: 0.4em;
  transition: text-decoration-color 0.25s var(--ease);
}

.link-arrow .icon { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover .icon { transform: translateX(3px); }


/* 6. Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled { border-bottom-color: var(--c-line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--c-ink);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark { width: 28px; height: 28px; }

.site-nav { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}

.nav-toggle__bars {
  position: relative;
  width: 22px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 10.5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5.25px; transform: rotate(-45deg); }

/* Mobile menu: a full-height sheet under the header */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--c-bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mobile-menu__list a[aria-current="page"] { color: var(--c-accent); }

.mobile-menu__footer {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 2rem;
}

.mobile-menu__contact {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
  text-align: center;
}

body.menu-open { overflow: hidden; }

@media (max-width: 379px) {
  .site-header .btn--sm { padding-inline: 0.9rem; }
}

@media (min-width: 1024px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .site-nav { display: block; }

  .site-nav__list {
    display: flex;
    gap: clamp(1.75rem, 3vw, 2.75rem);
  }

  .site-nav__list a {
    position: relative;
    display: block;
    padding-block: 0.5rem;
    color: var(--c-ink-soft);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s var(--ease);
  }

  .site-nav__list a:hover,
  .site-nav__list a[aria-current="page"] { color: var(--c-ink); }

  .site-nav__list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-accent);
    transform: translateX(-50%);
  }

  .site-header__actions { justify-self: end; }
  .site-header .btn--sm { min-height: 44px; padding-inline: 1.4rem; }
  .nav-toggle,
  .mobile-menu { display: none; }
}


/* 7. Hero
   ========================================================================== */

.hero { padding: 0 var(--hero-inset); }

.hero__frame {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: clamp(520px, 78svh, 760px);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #2c2b28;
  color: #fff;
}

@media (min-width: 768px) {
  .hero__frame {
    min-height: clamp(600px, calc(100svh - var(--header-h) - var(--hero-inset)), 940px);
    border-radius: var(--r-xl);
  }
}

/* Readability scrim: darker at the top (nav-side) and bottom (controls) */
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(12, 12, 11, 0.42) 0%,
    rgba(12, 12, 11, 0.22) 38%,
    rgba(12, 12, 11, 0.26) 62%,
    rgba(12, 12, 11, 0.62) 100%);
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.hero__slide.is-active { opacity: 1; }

.hero__slide picture { height: 100%; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 9s linear;
}

.hero__slide.is-active img { transform: scale(1); }

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding: 4rem 1.25rem 6.5rem;
  text-align: center;
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero__location .icon { width: 1rem; height: 1rem; }

.hero__title {
  color: #fff;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
}

.hero__text {
  max-width: 32rem;
  text-wrap: balance;
  margin: 1.25rem 0 0;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__bottom {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) clamp(1.1rem, 2.5vw, 2.1rem);
}

.hero__note {
  display: none;
  max-width: 21rem;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.hero__controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}

.hero__caption {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
}

.hero__caption-text { display: none; }

.hero__dots { display: flex; }

.hero__dot {
  position: relative;
  width: 30px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
}

.hero__dot::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  transition: background-color 0.3s var(--ease);
}

.hero__dot:hover::before { background: rgba(255, 255, 255, 0.75); }
.hero__dot[aria-current="true"]::before { background: #fff; }

.hero__pause {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: none;
  color: #fff;
  transition: border-color 0.2s var(--ease);
}

.hero__pause:hover { border-color: #fff; }
.hero__pause .icon { width: 0.9rem; height: 0.9rem; }
.hero__pause .icon--play { display: none; }
.hero__pause[aria-pressed="true"] .icon--play { display: block; }
.hero__pause[aria-pressed="true"] .icon--pause { display: none; }

.hero :focus-visible { outline-color: #fff; }

@media (max-width: 479px) {
  .hero__actions { width: 100%; max-width: 20rem; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

@media (min-width: 900px) {
  .hero__note { display: block; }
  .hero__caption-text { display: inline; }
}


/* 7b. Stay search ("Check availability") & date picker
   ========================================================================== */

.stay-form { color: var(--c-ink); text-align: left; }

.stay-form__dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stay-field {
  position: relative;
  min-height: 62px;
  border-radius: var(--r-md);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.stay-field__label {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.8rem 1rem 0;
  color: var(--c-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

/* The control (calendar button, native date input or select) fills the field */
.stay-field__control {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1.85rem 1rem 0.6rem;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--c-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  cursor: pointer;
}

select.stay-field__control {
  padding-right: 2.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 1rem;
}

.stay-field__control:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
}

.date-trigger__value.is-empty { color: var(--c-muted); font-weight: 500; }

/* Hero variant: a white bar on the photo (a card on phones) */
.stay-form--bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 26rem;
  margin-top: 2rem;
  padding: 0.375rem;
  border-radius: var(--r-lg);
  background: var(--c-bg);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
}

.stay-form--bar .stay-form__dates,
.stay-form--bar .stay-field--guests,
.stay-form--bar .stay-form__submit { grid-column: 1 / -1; }

.stay-form--bar .stay-field:hover { background: #f4f2ec; }

.stay-form--bar .stay-form__dates .stay-field + .stay-field::before,
.stay-form--bar .stay-field--guests::before {
  content: "";
  position: absolute;
  background: var(--c-line);
}

.stay-form--bar .stay-form__dates .stay-field + .stay-field::before { top: 14px; bottom: 14px; left: 0; width: 1px; }
.stay-form--bar .stay-field--guests::before { top: 0; left: 14px; right: 14px; height: 1px; }
.stay-form--bar .stay-form__submit { margin-top: 0.375rem; }

.hero .stay-form :focus-visible { outline-color: var(--c-accent); }

.hero__alt {
  margin: 1.1rem 0 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.86);
}

.hero__alt a { color: #fff; font-weight: 600; }

@media (max-width: 479px) {
  .date-trigger__weekday { display: none; }
}

@media (min-width: 768px) {
  .stay-form--bar {
    display: flex;
    align-items: center;
    max-width: 48rem;
    padding: 0.4rem;
    border-radius: 999px;
  }

  .stay-form--bar .stay-form__dates { display: flex; flex: 2 1 0; }
  .stay-form--bar .stay-field { flex: 1 1 0; min-height: 60px; border-radius: 999px; }

  .stay-form--bar .stay-field__label,
  .stay-form--bar .stay-field__control { padding-left: 1.6rem; }

  .stay-form--bar .stay-field--guests::before { top: 14px; bottom: 14px; left: 0; right: auto; width: 1px; height: auto; }

  .stay-form--bar .stay-form__submit {
    flex: none;
    min-height: 54px;
    margin: 0 0 0 0.4rem;
    padding-inline: 1.6rem;
  }
}

/* Panel variant (rooms page): bordered fields */
.stay-form--panel { display: grid; gap: 0.5rem; }
.stay-form--panel .stay-form__dates { gap: 0.5rem; }

.stay-form--panel .stay-field {
  border: 1px solid var(--c-field);
  border-radius: var(--r-sm);
  background: var(--c-bg);
}

.stay-form--panel .stay-field:hover { border-color: #b9b4a9; }
.stay-form--panel .stay-form__submit { width: 100%; }
.stay-form--panel .date-trigger__weekday { display: none; }

@media (min-width: 640px) and (max-width: 1023px) {
  .stay-form--panel {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
    align-items: stretch;
  }
  .stay-form--panel .stay-form__submit { width: auto; }
}

/* Calendar popover (a bottom sheet on phones) */
.datepicker {
  position: absolute;
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--c-bg);
  color: var(--c-ink);
  box-shadow: 0 30px 70px -30px rgba(23, 23, 23, 0.4), 0 0 0 1px rgba(23, 23, 23, 0.06);
}

.datepicker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.datepicker__prompt { margin: 0; font-size: var(--fs-sm); font-weight: 600; }

.datepicker__close,
.datepicker__nav {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-ink);
  transition: border-color 0.2s var(--ease);
}

.datepicker__close { display: none; }
.datepicker__close .icon,
.datepicker__nav .icon { width: 1rem; height: 1rem; }
.datepicker__nav:hover:not(:disabled),
.datepicker__close:hover { border-color: var(--c-ink); }
.datepicker__nav:disabled { opacity: 0.35; cursor: default; }

.datepicker__body { position: relative; }
.datepicker__nav { position: absolute; top: 0; z-index: 2; }
.datepicker__nav--prev { left: 0; }
.datepicker__nav--next { right: 0; }

.datepicker__months { display: flex; gap: 2rem; }

.datepicker__title {
  margin: 0 0 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
}

.datepicker__grid { border-collapse: collapse; }

.datepicker__grid th {
  width: 42px;
  height: 30px;
  padding: 0;
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: center;
}

.datepicker__grid td { position: relative; padding: 1px 0; text-align: center; }

/* Range band behind the selected nights */
.datepicker__grid .in-range::before,
.datepicker__grid .range-start::before,
.datepicker__grid .range-end::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  background: var(--c-accent-tint);
}

.datepicker__grid .range-start::before { left: 50%; }
.datepicker__grid .range-end::before { right: 50%; }

.dp-day {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.dp-day:not(:disabled):not(.is-start):not(.is-end):hover { box-shadow: inset 0 0 0 1px var(--c-ink); }
.dp-day:disabled { color: #c3c0b8; cursor: default; }
.dp-day.is-today { font-weight: 700; }

.dp-day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}

.dp-day.is-start,
.dp-day.is-end { background: var(--c-accent); color: #fff; font-weight: 600; }
.dp-day.is-preview { box-shadow: inset 0 0 0 1px var(--c-accent); }
.dp-day:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 1px; }

.datepicker__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
}

.datepicker__summary { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-soft); }
.datepicker__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.datepicker__clear {
  padding: 0.5rem 0.75rem;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.datepicker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: rgba(15, 15, 14, 0.45);
}

@media (max-width: 767px) {
  .datepicker {
    position: fixed;
    inset: auto 0 0 0;
    width: auto;
    max-width: none;
    max-height: 92svh;
    overflow-y: auto;
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }

  .datepicker__close { display: grid; }
  .datepicker__months { display: block; }
  .datepicker__grid { width: 100%; }
  .datepicker__grid th { width: auto; }
  .dp-day { width: 44px; height: 44px; }

  body.datepicker-open { overflow: hidden; }
}


/* 8. Home sections
   ========================================================================== */

/* --- Intro ---------------------------------------------------------------- */

.intro__grid { display: grid; gap: 1.5rem; }
.intro__body p:not(.lead) { color: var(--c-muted); }
.intro__body .lead { margin-bottom: 1.25rem; }
.intro__body .link-arrow { margin-top: 1.5rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}

.facts dt { margin-bottom: 0.4rem; }

.facts dd {
  color: var(--c-ink);
  font-size: 1.0625rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  .intro__heading { grid-column: 1 / span 5; }
  .intro__body { grid-column: 7 / span 6; padding-top: 2.4rem; }
}

/* --- Room categories ("Stay Your Way") ---------------------------------- */

.category-grid { display: grid; gap: 3rem 1.5rem; }

.category-card { position: relative; }

.category-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg);
  background: var(--c-bg-warm);
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.category-card:hover .category-card__media img { transform: scale(1.035); }

.category-card__body { max-width: 34rem; padding-top: 1.4rem; }
.category-card__meta { margin-bottom: 0.45rem; font-size: var(--fs-sm); color: var(--c-muted); }
.category-card__title { margin-bottom: 0.6rem; font-size: var(--fs-h3); }
.category-card__text { margin-bottom: 1rem; color: var(--c-muted); }

/* The link covers the whole card, so there is one link per category */
.category-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3.5rem var(--grid-gap);
  }

  .category-card { grid-column: span 5; }
  .category-card--wide { grid-column: span 7; }

  .category-card__media {
    height: clamp(300px, 30vw, 440px);
    aspect-ratio: auto;
  }
}

/* --- Amenities ----------------------------------------------------------- */

.amenity-groups { display: grid; gap: 3rem; }

.amenity-group__title {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-line);
  letter-spacing: 0.16em;
}

.amenity-list { display: grid; gap: 1.6rem 2rem; }

.amenity {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.amenity .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--c-accent);
}

.amenity__name {
  display: block;
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.4;
}

.amenity__detail {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--c-muted);
}

@media (min-width: 560px) and (max-width: 1023px) {
  .amenity-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .amenity-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4.5rem);
  }
}

/* --- Experience (editorial image + overlapping text) ---------------------- */

.experience__grid { display: grid; }

.experience__main {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-bg-warm);
}

.experience__main img,
.experience__aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience__aside { display: none; }

.experience__panel {
  position: relative;
  margin: -4.5rem 0.75rem 0;
  padding: 2rem 1.5rem 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--c-bg);
}

.experience__panel .h2 { margin-bottom: 1.25rem; }
.experience__panel > p { color: var(--c-muted); max-width: 30rem; }

.tick-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.75rem 0 2rem;
}

.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--c-ink);
}

.tick-list .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  color: var(--c-accent);
}

@media (min-width: 640px) {
  .experience__main { aspect-ratio: 3 / 2; }
  .experience__panel { margin: -6rem 2.5rem 0; padding: 2.5rem 2.5rem 0; }
}

@media (min-width: 1024px) {
  .experience__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: var(--grid-gap);
  }

  .experience__main {
    grid-column: 1 / span 8;
    grid-row: 1 / span 2;
    min-height: 640px;
    aspect-ratio: auto;
  }

  .experience__aside {
    display: block;
    grid-column: 10 / span 3;
    grid-row: 1;
    align-self: start;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--r-md);
  }

  .experience__panel {
    grid-column: 7 / span 6;
    grid-row: 2;
    align-self: end;
    margin: 3rem 0 0;
    padding: 3rem 0 0 3rem;
    border-radius: var(--r-lg) 0 0 0;
  }

  .experience__panel .tick-list { margin-bottom: 1.75rem; }
}

/* --- Gallery mosaic (home preview) --------------------------------------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 36vw, 230px);
  gap: 0.75rem;
}

.mosaic__item,
.masonry__item,
.room-row__main,
.room-row__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-md);
  background: var(--c-bg-warm);
  cursor: zoom-in;
}

.mosaic__item img,
.room-row__main img,
.room-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic__item img,
.masonry__item img,
.room-row__main img,
.room-row__thumb img { transition: transform 1.2s var(--ease); }

.mosaic__item:hover img,
.masonry__item:hover img,
.room-row__main:hover img,
.room-row__thumb:hover img { transform: scale(1.04); }

.mosaic__item--lg { grid-column: span 2; grid-row: span 2; }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item--wide { grid-column: span 2; }

@media (min-width: 768px) {
  .mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 19vw, 270px);
    gap: 1rem;
  }
  .mosaic__item--lg { border-radius: var(--r-lg); }
}

/* --- Location ------------------------------------------------------------ */

.location__grid { display: grid; gap: 3rem; }

.location__info .h2 { margin-bottom: 1.25rem; }
.location__info > p { color: var(--c-muted); max-width: 30rem; }

.address {
  display: flex;
  gap: 0.75rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--c-ink);
  font-style: normal;
  line-height: 1.6;
}

.address .icon { margin-top: 0.15rem; color: var(--c-accent); }

.location__lists {
  display: grid;
  gap: 2.25rem;
  margin-top: 2.5rem;
}

.location__lists .label { margin-bottom: 0.5rem; }

.distance-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.9375rem;
  color: var(--c-ink);
}

.distance-list li span:last-child {
  flex: none;
  color: var(--c-muted);
}

.location__aside-note {
  margin-top: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.map {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #ebe8e1;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
}

.map__pin {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-accent);
}

.map__pin .icon { width: 1.5rem; height: 1.5rem; }

.map__title { font-size: 1.125rem; font-weight: 600; color: var(--c-ink); margin: 0; }
.map__text { max-width: 22rem; font-size: var(--fs-sm); color: var(--c-muted); margin: 0 0 1rem; }

@media (min-width: 640px) {
  .location__lists { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (min-width: 1024px) {
  .location__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  .location__lists { grid-template-columns: 1fr; }
  .map { min-height: 100%; }
}

@media (min-width: 1200px) {
  .location__lists { grid-template-columns: 1fr 1fr; }
}


/* 9. Call to action & footer
   ========================================================================== */

.cta { padding-block: var(--section-y) clamp(1rem, 3vw, 2rem); }

.cta__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: var(--r-xl);
  background: #262522;
  color: #fff;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 15, 14, 0.5);
}

.cta__title { max-width: 14ch; color: #fff; }

.cta__text {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.88);
}

.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta :focus-visible { outline-color: #fff; }

@media (max-width: 479px) {
  .cta__actions .btn { flex: 1 1 100%; }
}

@media (min-width: 900px) {
  .cta__panel { grid-template-columns: 1fr auto; align-items: end; }
}

.site-footer { padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; }

.site-footer__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

.site-footer__brand { grid-column: 1 / -1; max-width: 22rem; }
.site-footer__brand p { margin-top: 1rem; color: var(--c-muted); font-size: 0.9375rem; }

.footer-title { margin-bottom: 1.1rem; }

.footer-links li + li { margin-top: 0.55rem; }

.footer-links a,
.footer-address {
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
  font-style: normal;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-links a:hover { color: var(--c-ink); text-decoration: underline; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--c-ink-soft); }

@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1.25fr 1.25fr; gap: 2.5rem; }
  .site-footer__brand { grid-column: auto; }
}


/* 10. Inner pages
   ========================================================================== */

/* --- Page intro ---------------------------------------------------------- */

.page-intro { padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }

.page-intro__grid { display: grid; gap: 1.5rem 3rem; }
.page-intro__aside > p { color: var(--c-muted); font-size: 1.0625rem; }

@media (min-width: 900px) {
  .page-intro__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
}

.page-intro--tight { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* --- Rooms page ---------------------------------------------------------- */

.rooms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* lets the scrolling category tabs shrink */
  gap: 2rem;
  padding-bottom: var(--section-y);
}

.rooms-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 1.75rem;
}
.rooms-sidebar__title { margin-bottom: 0.85rem; }

/* Categories: tabs on small screens, a list in the sidebar on desktop */
.category-list {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--c-line);
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar { display: none; }
.category-list li { flex: none; }

.category {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.85rem 0;
  border: 0;
  background: none;
  color: var(--c-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  transition: color 0.2s var(--ease);
}

.category:hover,
.category[aria-pressed="true"] { color: var(--c-ink); }

.category[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-ink);
}

.category:focus-visible { outline-offset: -2px; }

.category__count {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.rooms-results__summary { margin: 0; font-size: 0.9375rem; color: var(--c-ink-soft); }

.room-group { padding-top: clamp(2rem, 4vw, 3rem); }

.room-group__head {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-line);
}

.room-group__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); letter-spacing: -0.025em; }
.room-group__intro { margin: 0.4rem 0 0; font-size: 0.9375rem; color: var(--c-muted); }

.room-row { display: grid; gap: 1.5rem; padding-block: 2rem; }
.room-row + .room-row { border-top: 1px solid var(--c-line); }

.room-row__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.5rem;
}

.room-row__main { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.room-row__thumb { aspect-ratio: 3 / 2; border-radius: var(--r-sm); }

.room-row__category { margin-bottom: 0.4rem; }

.room-row__title {
  margin-bottom: 0.85rem;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  letter-spacing: -0.022em;
}

.room-row__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  margin-bottom: 1rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}

.room-row__facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.room-row__facts .icon { width: 1.05rem; height: 1.05rem; color: var(--c-accent); }

.room-row__desc { margin-bottom: 1.1rem; color: var(--c-muted); }

.room-row__fit {
  margin: -0.35rem 0 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-accent-dark);
}

.room-row__amenities { font-size: var(--fs-sm); }

.room-row__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.room-row__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  color: var(--c-ink-soft);
}

.checklist li { display: flex; align-items: flex-start; gap: 0.6rem; }

.checklist .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  color: var(--c-accent);
}

/* Pricing — populated from ROOM_PRICES in js/main.js */
.price__value {
  display: block;
  margin-top: 0.25rem;
  color: var(--c-ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.price__value small { font-size: var(--fs-sm); font-weight: 500; color: var(--c-muted); letter-spacing: 0; }

@media (max-width: 379px) {
  .checklist { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
  .room-row__actions { width: 100%; }
  .room-row__actions .btn { flex: 1 1 0; padding-inline: 1rem; }
}

@media (min-width: 768px) {
  .room-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .rooms-layout {
    grid-template-columns: 17.5rem minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 4vw, 4.5rem);
  }

  .rooms-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    gap: 2.5rem;
  }

  .category-list {
    display: block;
    overflow: visible;
    border-top: 1px solid var(--c-line);
    border-bottom: 0;
  }

  .category {
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--c-line);
  }

  .category[aria-pressed="true"] { font-weight: 600; }
  .category[aria-pressed="true"]::after { display: none; }

  .category[aria-pressed="true"] .category__name::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.6rem;
    border-radius: 50%;
    background: var(--c-accent);
    vertical-align: 0.15em;
  }

  .room-row { gap: 2.25rem; }
}

/* Policies */
.policies { display: grid; gap: 2rem 3rem; }
.policy h3 { margin-bottom: 0.6rem; font-size: 1.0625rem; letter-spacing: -0.01em; }
.policy p { color: var(--c-muted); font-size: 0.9375rem; }

@media (min-width: 640px) { .policies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .policies { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --- Gallery page -------------------------------------------------------- */

.filters {
  display: flex;
  gap: 1.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  overflow-x: auto;
  border-bottom: 1px solid var(--c-line);
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.filter {
  position: relative;
  flex: none;
  padding: 0.9rem 0;
  border: 0;
  background: none;
  color: var(--c-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.filter:hover,
.filter[aria-pressed="true"] { color: var(--c-ink); }

.filter[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-ink);
}

.filter:focus-visible { outline-offset: -2px; }

.filter__count {
  margin-left: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}

.masonry { columns: 2; column-gap: 0.75rem; }

.masonry__item {
  margin-bottom: 0.75rem;
  break-inside: avoid;
}

.masonry__item img { width: 100%; }
.masonry__item.is-entering { animation: fade-in 0.45s var(--ease) both; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 768px) {
  .masonry { columns: 3; column-gap: 1rem; }
  .masonry__item { margin-bottom: 1rem; }
}

/* --- Contact page -------------------------------------------------------- */

.contact__grid { display: grid; gap: 3.5rem; }

.contact-list > li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--c-line);
}

.contact-list > li:last-child { border-bottom: 1px solid var(--c-line); }
.contact-list > li > .icon { width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; color: var(--c-accent); }
.contact-list .label { margin-bottom: 0.35rem; }

.contact-list__value {
  display: inline-block;
  color: var(--c-ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-list__value:hover { text-decoration: underline; }

.contact-list address,
.contact-list p { margin: 0; font-style: normal; color: var(--c-ink); }
.contact-list small { display: block; margin-top: 0.25rem; font-size: var(--fs-sm); color: var(--c-muted); }
.contact-list .btn { margin-top: 1rem; }

.form-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--c-bg-warm);
}

.form-panel__intro { margin: 0.75rem 0 2rem; color: var(--c-muted); }

.form-grid { display: grid; gap: 1.25rem; }

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.field .optional { font-weight: 500; color: var(--c-muted); }

.field input,
.field select,
.field textarea,
.field .date-trigger {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-field);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease);
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.field .date-trigger:hover { border-color: #b9b4a9; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.field .date-trigger:focus-visible {
  border-color: var(--c-accent);
  outline-offset: 1px;
}

.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
}

.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }

.field .date-trigger { display: block; text-align: left; cursor: pointer; }

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 419px) {
  .field-pair { grid-template-columns: 1fr; }
}

.field [aria-invalid="true"] { border-color: var(--c-error); }

.field__error {
  margin: 0.45rem 0 0;
  font-size: var(--fs-sm);
  color: var(--c-error);
}

.form-note { margin: 1.5rem 0; font-size: var(--fs-sm); color: var(--c-muted); }

.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.form-status {
  margin: 1.25rem 0 0;
  font-size: var(--fs-sm);
  color: var(--c-ink);
}

.form-status:empty { display: none; }

@media (max-width: 479px) {
  .form-actions .btn { flex: 1 1 100%; }
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

/* --- FAQ ----------------------------------------------------------------- */

.faq__grid { display: grid; gap: 2rem; }

.faq__list details { border-top: 1px solid var(--c-line); }
.faq__list details:last-child { border-bottom: 1px solid var(--c-line); }

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  color: var(--c-ink);
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .icon { transition: transform 0.3s var(--ease); }
.faq__list details[open] summary .icon { transform: rotate(45deg); }

.faq__list details p {
  max-width: 42rem;
  padding-bottom: 1.5rem;
  color: var(--c-muted);
}

@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}


/* 11. Lightbox
   ========================================================================== */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #111110;
  color: #fff;
  overflow: hidden;
}

.lightbox::backdrop { background: transparent; }

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: fade-in 0.25s var(--ease);
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem clamp(0.75rem, 3vw, 2rem);
}

.lightbox__count {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 clamp(0.75rem, 7vw, 7rem);
  touch-action: pan-y;
}

.lightbox__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--r-sm);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__img.is-loaded { opacity: 1; }

.lightbox__caption {
  min-height: 3.75rem;
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(16, 16, 15, 0.4);
  color: #fff;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox__btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.55); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.lightbox__nav--prev { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2vw, 2rem); }

.lightbox :focus-visible { outline-color: #fff; }

html.lightbox-open { overflow: hidden; }


/* 12. Booking (book.html)
   ========================================================================== */

.checkout { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-y); }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--c-line);
  counter-reset: step;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.steps li {
  position: relative;
  padding: 0.85rem 0;
  counter-increment: step;
}

.steps li::before { content: counter(step) ". "; }
.steps li.is-done { color: var(--c-ink); }
.steps li[aria-current="step"] { color: var(--c-ink); font-weight: 600; }

.steps li[aria-current="step"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--c-ink);
}

.checkout__grid { display: grid; gap: 2.5rem; }
.checkout__title { margin-bottom: 1.75rem; }
.checkout__title:focus { outline: none; }

.checkout__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
}

.checkout__notice { margin-bottom: 1.5rem; color: var(--c-ink); }

.field__hint { margin: 0.45rem 0 0; font-size: var(--fs-sm); color: var(--c-muted); }

.link-button {
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(23, 23, 23, 0.25);
  text-underline-offset: 0.4em;
}

.link-button:hover { text-decoration-color: currentColor; }

/* Running summary of the stay and price */
.folio {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-bg-warm);
}

.folio__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.folio__body { padding: 1.5rem; }
.folio__room { margin-bottom: 1rem; font-size: var(--fs-h3); }
.folio__empty { margin: 0; color: var(--c-muted); }

.folio__lines { font-size: var(--fs-sm); }

.folio__lines > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--c-line);
}

.folio__lines dt { color: var(--c-muted); }
.folio__lines dd { color: var(--c-ink); text-align: right; font-variant-numeric: tabular-nums; }

.folio__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--c-ink);
  color: var(--c-ink);
  font-weight: 600;
}

.folio__total strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }

/* Payment panel */
.gateway {
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}

.gateway__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--c-bg-warm);
  color: var(--c-ink);
}

.gateway__merchant { margin: 0; font-weight: 600; }
.gateway__amount { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.gateway__panel { padding: 1.5rem; }

.gateway__message {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--r-md);
  background: var(--c-accent-tint);
  color: var(--c-ink);
}

.gateway__message-title { margin-bottom: 0.4rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }

@media (min-width: 1024px) {
  .checkout__grid {
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }

  .folio {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}


/* 13. Motion & accessibility
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* .js is set by a one-line script in <head>, so content is never hidden without JS */
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal--d1 { --delay: 0.1s; }
  .reveal--d2 { --delay: 0.2s; }
}

/* Sections focused by in-page links don't need a visible ring */
[tabindex="-1"]:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__slide img { transform: none !important; }
}

@media (forced-colors: active) {
  .btn,
  .hero__pause,
  .lightbox__btn { border: 1px solid ButtonText; }
}
