/* Cloud 9 Gozo — shared design system ("Limestone & Light") v0.1
   Tokens and reusable components. Page compositions live in page stylesheets.
   Documented in design/design-system.md. */

:root {
  /* Colour */
  --c9-aegean-900: #16303B;
  --c9-aegean-800: #213E4A;
  --c9-aegean-700: #294B59;
  --c9-aegean-600: #36606F;
  --c9-aegean-100: #DCE7EA;
  --c9-aegean-50: #F1F6F7;
  --c9-ink: #1E2A30;
  --c9-ink-muted: #56656B;
  --c9-olive-600: #5E6446;
  --c9-olive-400: #8A9068;
  --c9-olive-50: #F3F4EE;
  --c9-white: #FFFFFF;
  --c9-mist: #F5F7F7;
  --c9-line: #E2E7E9;
  --c9-line-strong: #C9D3D6;
  --c9-error: #A23B3B;
  --c9-focus: #2F7DA8;
  --c9-on-dark: #FFFFFF;
  --c9-on-dark-muted: rgba(255, 255, 255, .78);

  /* Type */
  --c9-font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --c9-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --c9-fs-display: clamp(2.5rem, 1.55rem + 3.6vw, 4.5rem);
  --c9-fs-h1: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  --c9-fs-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --c9-fs-h3: 1.25rem;
  --c9-fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --c9-fs-body: 1rem;
  --c9-fs-small: .9375rem;
  --c9-fs-label: .875rem;
  --c9-fs-caption: .8125rem;

  /* Space */
  --c9-space-1: 4px;
  --c9-space-2: 8px;
  --c9-space-3: 12px;
  --c9-space-4: 16px;
  --c9-space-5: 24px;
  --c9-space-6: 32px;
  --c9-space-7: 48px;
  --c9-space-8: 64px;
  --c9-space-9: 96px;
  --c9-space-10: 128px;
  --c9-section: clamp(3.5rem, 2rem + 4vw, 6rem);

  /* Layout */
  --c9-container: 1280px;
  --c9-container-wide: 1280px; /* one shared edge for text and media; kept as a separate token for future full-bleed use */
  --c9-container-read: 680px;
  --c9-gutter: 20px;
  --c9-header-h: 64px;

  /* Shape and depth */
  --c9-radius-field: 12px;
  --c9-radius-card: 16px;
  --c9-radius-panel: 24px;
  --c9-radius-pill: 999px;
  --c9-shadow-1: 0 1px 2px rgba(22, 48, 59, .06), 0 6px 20px rgba(22, 48, 59, .07);
  --c9-shadow-2: 0 2px 6px rgba(22, 48, 59, .06), 0 16px 40px rgba(22, 48, 59, .14);
  --c9-shadow-3: 0 24px 72px rgba(22, 48, 59, .24);

  /* Motion */
  --c9-ease: cubic-bezier(.2, .7, .2, 1);
  --c9-dur-1: 160ms;
  --c9-dur-2: 240ms;
  --c9-dur-3: 300ms;

  /* Stacking */
  --c9-z-subnav: 50;
  --c9-z-bookbar: 80;
  --c9-z-header: 100;
  --c9-z-popover: 200;
  --c9-z-dialog: 300;
  --c9-z-toast: 400;
}

@media (min-width: 768px) {
  :root { --c9-gutter: 32px; --c9-header-h: 72px; }
}
@media (min-width: 1025px) {
  :root { --c9-gutter: 40px; --c9-fs-body: 1.0625rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Native anchors land below the sticky header. Smooth scrolling is applied per action in JS (and only
   when motion is allowed), never globally, so it can't fight in-page navigation. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--c9-header-h) + 16px); }
body.c9 {
  margin: 0;
  background: var(--c9-white);
  color: var(--c9-ink);
  font-family: var(--c9-font-body);
  font-size: var(--c9-fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Base resets use :where() so they never outrank component classes. */
:where(.c9) img { max-width: 100%; height: auto; display: block; }
:where(.c9) :where(h1, h2, h3, h4, p, figure, ul, ol, blockquote) { margin: 0; }
:where(.c9) :where(ul, ol)[role="list"] { list-style: none; padding: 0; }
:where(.c9) button { font: inherit; color: inherit; }
:where(.c9) a { color: var(--c9-aegean-600); }
.c9 :focus { outline: none; }
.c9 :focus-visible { outline: 3px solid var(--c9-focus); outline-offset: 2px; }
[hidden] { display: none !important; } /* component display rules must never reveal hidden content */
.c9-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.c9-skip { position: absolute; left: 16px; top: -100px; z-index: calc(var(--c9-z-toast) + 1); padding: 12px 16px; border-radius: var(--c9-radius-field); background: var(--c9-aegean-700); color: #fff; font-weight: 600; text-decoration: none; }
.c9-skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.c9-container { width: 100%; max-width: calc(var(--c9-container) + 2 * var(--c9-gutter)); margin-inline: auto; padding-inline: var(--c9-gutter); }
.c9-container--wide { max-width: calc(var(--c9-container-wide) + 2 * var(--c9-gutter)); }
.c9-container--read { max-width: calc(var(--c9-container-read) + 2 * var(--c9-gutter)); }
.c9-section { padding-block: var(--c9-section); }
.c9-section--mist { background: var(--c9-mist); }
.c9-section--dark { background: var(--c9-aegean-900); color: var(--c9-on-dark); }

/* ---------- Type ---------- */
.c9-display, .c9-h1, .c9-h2 { font-family: var(--c9-font-display); font-weight: 400; color: var(--c9-aegean-700); letter-spacing: -.01em; text-wrap: balance; }
.c9-display { font-size: var(--c9-fs-display); line-height: 1.04; letter-spacing: -.018em; }
.c9-h1 { font-size: var(--c9-fs-h1); line-height: 1.08; }
.c9-h2 { font-size: var(--c9-fs-h2); line-height: 1.15; }
.c9-h3 { font-size: var(--c9-fs-h3); line-height: 1.3; font-weight: 600; color: var(--c9-ink); }
.c9-lead { font-size: var(--c9-fs-lead); line-height: 1.55; color: var(--c9-ink-muted); max-width: 60ch; }
.c9-small { font-size: var(--c9-fs-small); }
.c9-muted { color: var(--c9-ink-muted); }
.c9-kicker { font-size: var(--c9-fs-caption); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c9-olive-600); }
.c9-section--dark .c9-h2, .c9-section--dark .c9-h3 { color: var(--c9-on-dark); }
.c9-section--dark .c9-lead, .c9-section--dark .c9-muted { color: var(--c9-on-dark-muted); }

/* ---------- Icons ---------- */
.c9-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.c9-icon--24 { width: 24px; height: 24px; }
.c9-icon--16 { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.c9-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px;
  border: 1px solid transparent; border-radius: var(--c9-radius-pill);
  font-family: var(--c9-font-body); font-size: 1rem; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--c9-dur-1) var(--c9-ease), border-color var(--c9-dur-1) var(--c9-ease), color var(--c9-dur-1) var(--c9-ease), transform var(--c9-dur-1) var(--c9-ease), box-shadow var(--c9-dur-1) var(--c9-ease);
}
.c9-btn:active { transform: scale(.98); }
.c9-btn[disabled], .c9-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.c9-btn--primary { background: var(--c9-aegean-700); color: #fff; }
.c9-btn--primary:hover { background: var(--c9-aegean-800); }
.c9-btn--secondary { border-radius: var(--c9-radius-field); background: var(--c9-white); border-color: var(--c9-line-strong); color: var(--c9-ink); }
.c9-btn--secondary:hover { background: var(--c9-aegean-50); border-color: var(--c9-aegean-600); }
.c9-btn--inverse { background: #fff; color: var(--c9-aegean-800); }
.c9-btn--inverse:hover { background: var(--c9-aegean-50); }
.c9-btn--ghost-inverse { border-radius: var(--c9-radius-field); border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.c9-btn--ghost-inverse:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.c9-btn--dark { border-radius: var(--c9-radius-field); background: var(--c9-ink); color: #fff; min-height: 44px; padding-inline: 18px; }
.c9-btn--dark:hover { background: #000; }
.c9-btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
.c9-btn--block { width: 100%; }
.c9-link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c9-aegean-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.c9-link:hover { color: var(--c9-aegean-800); text-decoration-thickness: 2px; }
.c9-link::before { content: ""; position: absolute; inset: -10px -4px; } /* 44px-tall tap area without changing the layout */
.c9-section--dark .c9-link { color: #fff; }
.c9-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--c9-line); border-radius: 50%; background: var(--c9-white); color: var(--c9-ink);
  cursor: pointer; transition: background-color var(--c9-dur-1) var(--c9-ease), border-color var(--c9-dur-1) var(--c9-ease), opacity var(--c9-dur-1);
}
.c9-iconbtn:hover { background: var(--c9-aegean-50); border-color: var(--c9-line-strong); }
.c9-iconbtn[disabled] { opacity: .35; cursor: default; }
.c9-iconbtn--plain { border-color: transparent; background: transparent; }
.c9-iconbtn--sm { width: 36px; height: 36px; }

/* ---------- Header ---------- */
.c9-header { position: sticky; top: 0; z-index: var(--c9-z-header); background: #fff; border-bottom: 1px solid transparent; transition: border-color var(--c9-dur-2) var(--c9-ease), box-shadow var(--c9-dur-2) var(--c9-ease); }
.c9-header.is-scrolled { border-bottom-color: var(--c9-line); box-shadow: 0 6px 24px rgba(22, 48, 59, .06); }
.c9-header__inner { display: flex; align-items: center; gap: 24px; height: var(--c9-header-h); }
.c9-header__logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; margin-right: auto; }
.c9-header__inner > .c9-btn, .c9-header__inner > .c9-iconbtn { flex: none; }
@media (max-width: 359px) { .c9-header__inner { gap: 10px; } .c9-header__logo img { height: 30px; } }
.c9-header__logo img { width: auto; height: 34px; }
.c9-nav { display: none; gap: 4px; }
.c9-nav a { position: relative; padding: 10px 14px; border-radius: var(--c9-radius-pill); color: var(--c9-ink); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: background-color var(--c9-dur-1) var(--c9-ease); }
.c9-nav a:hover { background: var(--c9-aegean-50); }
.c9-nav a[aria-current="page"] { color: var(--c9-aegean-700); font-weight: 600; }
.c9-header__book .c9-show-sm { display: inline; }
.c9-header__book .c9-hide-sm { display: none; }
@media (min-width: 768px) {
  .c9-header__logo img { height: 40px; }
  .c9-header__book .c9-show-sm { display: none; }
  .c9-header__book .c9-hide-sm { display: inline; }
}
@media (min-width: 1025px) {
  .c9-nav { display: flex; }
  .c9-header__menu { display: none; }
}

/* ---------- Menu sheet ---------- */
.c9-menu { position: fixed; inset: 0; z-index: var(--c9-z-dialog); display: flex; flex-direction: column; background: var(--c9-white); padding: 0 var(--c9-gutter) max(24px, env(safe-area-inset-bottom)); overflow-y: auto; }
.c9-menu[hidden] { display: none; }
.c9-menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--c9-header-h); }
.c9-menu__top img { height: 34px; width: auto; }
.c9-menu__links { display: grid; gap: 4px; padding: 24px 0; border-bottom: 1px solid var(--c9-line); }
.c9-menu__links a { padding: 10px 0; font-family: var(--c9-font-display); font-size: 2rem; line-height: 1.2; color: var(--c9-aegean-700); text-decoration: none; }
.c9-menu__contact { display: grid; gap: 12px; padding: 24px 0; }
.c9-menu__contact a { display: inline-flex; align-items: center; gap: 12px; color: var(--c9-ink); font-weight: 500; text-decoration: none; min-height: 44px; }
.c9-menu__foot { margin-top: auto; display: grid; gap: 16px; padding-top: 16px; }
.c9-menu__guide { font-size: var(--c9-fs-small); color: var(--c9-ink-muted); }
@media (prefers-reduced-motion: no-preference) {
  .c9-menu:not([hidden]) { animation: c9-fade-in var(--c9-dur-3) var(--c9-ease); }
}

/* ---------- Section heading ---------- */
.c9-sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.c9-sechead__text { display: grid; gap: 12px; max-width: 640px; }
.c9-sechead__actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Photo frame ---------- */
.c9-frame { position: relative; overflow: hidden; border-radius: var(--c9-radius-card); background: var(--c9-aegean-50); isolation: isolate; }
.c9-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--c9-ease); }
.c9-frame--arch { border-radius: 999px 999px var(--c9-radius-card) var(--c9-radius-card) / 46% 46% var(--c9-radius-card) var(--c9-radius-card); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .c9-zoom:hover img, .c9-zoom:focus-visible img { transform: scale(1.03); }
}
.c9-frame__tag { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 6px 12px; border-radius: var(--c9-radius-pill); background: rgba(255, 255, 255, .92); color: var(--c9-ink); font-size: var(--c9-fs-caption); font-weight: 600; }

/* ---------- Chips ---------- */
.c9-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--c9-line); border-radius: var(--c9-radius-pill); background: var(--c9-white); color: var(--c9-ink); font-size: var(--c9-fs-small); font-weight: 500; }

/* ---------- Availability (bar + compact) ---------- */
.c9-avail { position: relative; }
.c9-avail__bar {
  display: none; align-items: stretch; width: 100%; padding: 8px;
  border: 1px solid var(--c9-line); border-radius: var(--c9-radius-pill); background: var(--c9-white); box-shadow: var(--c9-shadow-2);
}
.c9-avail__seg {
  position: relative; display: grid; align-content: center; gap: 2px; flex: 1 1 0; min-width: 0; min-height: 60px; padding: 8px 24px;
  border: 0; border-radius: var(--c9-radius-pill); background: transparent; text-align: left; cursor: pointer;
  transition: background-color var(--c9-dur-1) var(--c9-ease), box-shadow var(--c9-dur-1) var(--c9-ease);
}
.c9-avail__seg:hover { background: var(--c9-mist); }
.c9-avail__seg[aria-expanded="true"] { background: var(--c9-white); box-shadow: 0 0 0 2px var(--c9-aegean-700), var(--c9-shadow-1); }
.c9-avail__seg + .c9-avail__seg::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--c9-line); }
.c9-avail__seg[aria-expanded="true"]::before, .c9-avail__seg[aria-expanded="true"] + .c9-avail__seg::before, .c9-avail__seg:hover::before, .c9-avail__seg:hover + .c9-avail__seg::before { opacity: 0; }
.c9-avail__label { font-size: var(--c9-fs-caption); font-weight: 700; letter-spacing: .02em; color: var(--c9-ink); }
.c9-avail__value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--c9-fs-small); color: var(--c9-ink-muted); }
.c9-avail__value.is-set { color: var(--c9-ink); font-weight: 600; }
.c9-avail__submit { flex: none; align-self: center; min-height: 56px; padding-inline: 28px; }
.c9-avail__compact {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 10px 10px 20px;
  border: 1px solid var(--c9-line); border-radius: var(--c9-radius-pill); background: var(--c9-white); box-shadow: var(--c9-shadow-2);
  text-align: left; cursor: pointer;
}
.c9-avail__compact-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.c9-avail__compact-text strong { font-size: var(--c9-fs-small); font-weight: 700; }
.c9-avail__compact-text span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--c9-fs-caption); color: var(--c9-ink-muted); }
.c9-avail__compact .c9-avail__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c9-aegean-700); color: #fff; flex: none; }
.c9-avail__note { min-height: 0; margin-top: 10px; font-size: var(--c9-fs-small); color: var(--c9-ink-muted); }
.c9-avail__note:empty { display: none; }
@media (min-width: 768px) {
  .c9-avail__bar { display: flex; }
  .c9-avail__compact { display: none; }
}

/* ---------- Calendar ---------- */
.c9-cal {
  position: absolute; z-index: var(--c9-z-popover); display: flex; flex-direction: column;
  width: min(760px, calc(100vw - 2 * var(--c9-gutter)));
  border: 1px solid var(--c9-line); border-radius: var(--c9-radius-panel); background: var(--c9-white); box-shadow: var(--c9-shadow-3);
  color: var(--c9-ink);
}
.c9-cal[hidden] { display: none; }
.c9-cal__top { display: none; }
.c9-cal__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 32px 8px; }
.c9-cal__title { font-family: var(--c9-font-display); font-size: 1.625rem; font-weight: 400; line-height: 1.2; color: var(--c9-aegean-700); }
.c9-cal__sub { margin-top: 4px; font-size: var(--c9-fs-small); color: var(--c9-ink-muted); }
.c9-cal__body { position: relative; padding: 8px 32px 0; }
.c9-cal__nav { position: absolute; left: 20px; right: 20px; top: 6px; display: flex; justify-content: space-between; pointer-events: none; }
.c9-cal__nav .c9-iconbtn { pointer-events: auto; }
.c9-cal__weekdays-fixed { display: none; }
.c9-cal__months { display: grid; grid-template-columns: repeat(var(--c9-cal-cols, 2), minmax(0, 1fr)); gap: 40px; }
.c9-month__title { margin: 0 0 12px; text-align: center; font-size: 1rem; font-weight: 700; line-height: 44px; }
.c9-month__weekdays, .c9-month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.c9-month__weekdays span { padding-bottom: 6px; text-align: center; font-size: .75rem; font-weight: 600; color: var(--c9-ink-muted); }
.c9-day {
  position: relative; display: grid; place-items: center; min-width: 0; width: 100%; height: 44px; margin: 1px 0; padding: 0;
  border: 0; background: transparent; color: var(--c9-ink); font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.c9-day span { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; max-width: 100%; height: 42px; border-radius: 50%; border: 1.5px solid transparent; transition: border-color var(--c9-dur-1) var(--c9-ease), background-color var(--c9-dur-1) var(--c9-ease); }
.c9-day:hover:not([disabled]) span { border-color: var(--c9-ink); }
.c9-day[disabled] { cursor: default; color: #9AA5A9; font-weight: 500; }
.c9-day.is-past span, .c9-day.is-booked span { text-decoration: line-through; text-decoration-thickness: 1px; }
.c9-day.is-today span::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.c9-day.is-range::before, .c9-day.is-start::before, .c9-day.is-end::before { content: ""; position: absolute; inset: 1px 0; background: var(--c9-aegean-100); }
.c9-day.is-start::before { left: 50%; }
.c9-day.is-end::before { right: 50%; }
.c9-day.is-start.is-end::before { display: none; }
.c9-day.is-start:not(.has-end)::before { display: none; }
.c9-day.is-start span, .c9-day.is-end span { background: var(--c9-aegean-700); color: #fff; border-color: var(--c9-aegean-700); text-decoration: none; }
.c9-day.is-preview::before { content: ""; position: absolute; inset: 1px 0; background: var(--c9-aegean-50); }
.c9-day.is-checkout-only { color: var(--c9-ink); }
.c9-day.is-checkout-only span { text-decoration: none; }
.c9-day.is-loading { color: transparent; }
.c9-day.is-loading span { background: var(--c9-mist); width: 30px; height: 30px; }
.c9-day--blank { visibility: hidden; pointer-events: none; }
.c9-cal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 32px 24px; }
.c9-cal__legend { display: flex; align-items: center; gap: 8px; font-size: var(--c9-fs-caption); color: var(--c9-ink-muted); }
.c9-cal__legend s { color: #9AA5A9; font-weight: 600; }
.c9-cal__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.c9-cal__clear { min-height: 44px; padding: 0 12px; border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.c9-cal__clear[disabled] { opacity: .4; cursor: default; }
.c9-cal__summary { display: none; }
.c9-cal__more { display: none; }
.c9-cal__status { padding: 0 32px; font-size: var(--c9-fs-small); color: var(--c9-error); }
.c9-cal__status:empty { display: none; }
.c9-cal__status.is-info { color: var(--c9-ink-muted); }
.c9-cal__mobile-guests { display: none; }

/* Mobile: full-height sheet (Airbnb-observed pattern, Cloud 9 styling) */
@media (max-width: 767px) {
  .c9-cal {
    position: fixed; inset: auto 0 0 0; z-index: var(--c9-z-dialog); width: 100%; height: calc(100% - 12px); max-height: none;
    border: 0; border-radius: var(--c9-radius-panel) var(--c9-radius-panel) 0 0;
  }
  .c9-cal__top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 0; }
  .c9-cal__head { padding: 4px 20px 12px; }
  .c9-cal__title { font-size: 1.5rem; }
  .c9-cal__weekdays-fixed { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 8px 12px; border-bottom: 1px solid var(--c9-line); }
  .c9-cal__weekdays-fixed span { text-align: center; font-size: .75rem; font-weight: 600; color: var(--c9-ink-muted); }
  .c9-cal__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 16px; }
  .c9-cal__nav { display: none; }
  .c9-cal__months { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .c9-month__title { text-align: left; padding-left: 8px; margin: 12px 0 4px; }
  .c9-month__weekdays { display: none; }
  .c9-day span { width: min(44px, 100%); height: 44px; }
  .c9-cal__more { display: flex; justify-content: center; padding: 8px 0 4px; }
  .c9-cal__legend { display: none; }
  .c9-cal__status { padding: 0 20px 8px; }
  .c9-cal__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--c9-line); background: var(--c9-white); }
  .c9-cal__summary { display: grid; line-height: 1.3; }
  .c9-cal__summary strong { font-size: var(--c9-fs-small); }
  .c9-cal__summary span { font-size: var(--c9-fs-caption); color: var(--c9-ink-muted); }
  .c9-cal__mobile-guests { display: grid; gap: 10px; grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--c9-line); }
  .c9-cal__actions .c9-cal__close-desktop { display: none; }
  .c9-cal__actions { margin: 0; }
  .c9-cal__actions .c9-cal__clear { display: none; }
}
@media (min-width: 768px) {
  .c9-cal__go-mobile { display: none; }
}
.c9-scrim { position: fixed; inset: 0; z-index: calc(var(--c9-z-dialog) - 1); background: rgba(22, 48, 59, .45); }
.c9-scrim[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .c9-cal:not([hidden]) { animation: c9-pop var(--c9-dur-2) var(--c9-ease); }
  .c9-scrim:not([hidden]) { animation: c9-fade-in var(--c9-dur-2) var(--c9-ease); }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .c9-cal:not([hidden]) { animation: c9-sheet-up var(--c9-dur-3) var(--c9-ease); }
}

/* ---------- Guests ---------- */
.c9-guests { position: absolute; z-index: var(--c9-z-popover); width: min(360px, calc(100vw - 2 * var(--c9-gutter))); padding: 24px; border: 1px solid var(--c9-line); border-radius: var(--c9-radius-panel); background: var(--c9-white); box-shadow: var(--c9-shadow-3); }
.c9-guests[hidden] { display: none; }
.c9-stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.c9-guests .c9-stepper + .c9-stepper { margin-top: 16px; }
.c9-stepper__label { display: grid; line-height: 1.35; }
.c9-stepper__label strong { font-weight: 600; }
.c9-stepper__label span { font-size: var(--c9-fs-caption); color: var(--c9-ink-muted); }
.c9-stepper__ctrl { display: flex; align-items: center; gap: 12px; }
.c9-stepper__ctrl output { min-width: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.c9-guests__note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c9-line); font-size: var(--c9-fs-caption); line-height: 1.5; color: var(--c9-ink-muted); }
.c9-guests__done { display: flex; justify-content: flex-end; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) { .c9-guests:not([hidden]) { animation: c9-pop var(--c9-dur-2) var(--c9-ease); } }

/* ---------- Mobile book bar ---------- */
.c9-bookbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--c9-z-bookbar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--c9-gutter) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--c9-line); background: rgba(255, 255, 255, .98);
  transform: translateY(110%); transition: transform var(--c9-dur-3) var(--c9-ease);
}
.c9-bookbar.is-visible { transform: none; }
.c9-bookbar__text { display: grid; align-content: center; flex: 1; min-width: 0; min-height: 44px; line-height: 1.3; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.c9-bookbar .c9-btn { flex: none; white-space: nowrap; padding-inline: 20px; }
.c9-bookbar__text strong { font-size: var(--c9-fs-small); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.c9-bookbar__text span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--c9-fs-caption); color: var(--c9-ink-muted); }
@media (min-width: 1025px) { .c9-bookbar { display: none; } }
@media (min-width: 768px) and (max-width: 1024px) { .c9-bookbar { justify-content: flex-end; } .c9-bookbar__text { display: none; } }

/* ---------- Dialog ---------- */
.c9-dialog { position: fixed; inset: 0; z-index: var(--c9-z-dialog); display: grid; place-items: center; padding: 16px; background: rgba(22, 48, 59, .5); }
.c9-dialog[hidden] { display: none; }
.c9-dialog__panel { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(760px, 100%); max-height: min(86vh, 900px); border-radius: var(--c9-radius-panel); background: #fff; box-shadow: var(--c9-shadow-3); overflow: hidden; }
.c9-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 28px; border-bottom: 1px solid var(--c9-line); }
.c9-dialog__head h2 { font-family: var(--c9-font-display); font-size: 1.5rem; font-weight: 400; color: var(--c9-aegean-700); }
.c9-dialog__body { overflow-y: auto; overscroll-behavior: contain; padding: 28px; }
@media (max-width: 767px) {
  .c9-dialog { padding: 0; align-items: end; }
  .c9-dialog__panel { width: 100%; max-height: calc(100% - 12px); border-radius: var(--c9-radius-panel) var(--c9-radius-panel) 0 0; }
  .c9-dialog__body { padding: 20px 20px max(24px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) { .c9-dialog:not([hidden]) .c9-dialog__panel { animation: c9-pop var(--c9-dur-3) var(--c9-ease); } }

/* ---------- Photo tour (every photo, room by room) ---------- */
.c9-tour { padding: 0; background: #fff; display: block; }
.c9-tour[hidden] { display: none; }
.c9-tour__panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 100%; }
.c9-tour__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; padding: 10px var(--c9-gutter); border-bottom: 1px solid var(--c9-line); }
.c9-tour__title { text-align: center; font-family: var(--c9-font-display); font-weight: 400; font-size: 1.375rem; color: var(--c9-aegean-700); }
.c9-tour__chips { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 14px var(--c9-gutter); border-bottom: 1px solid var(--c9-line); }
.c9-tour__chips::-webkit-scrollbar { display: none; }
.c9-tour__chip { display: grid; gap: 6px; flex: none; width: 104px; padding: 0; border: 0; background: none; text-align: left; font-size: var(--c9-fs-caption); font-weight: 600; line-height: 1.3; color: var(--c9-ink); cursor: pointer; }
.c9-tour__chip img { width: 104px; height: 72px; object-fit: cover; border-radius: 10px; transition: opacity var(--c9-dur-1); }
.c9-tour__chip:hover img { opacity: .85; }
.c9-tour__body { overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--c9-gutter) 48px; }
.c9-tour__room { max-width: 1040px; margin: 0 auto; padding: 28px 0; border-bottom: 1px solid var(--c9-line); }
.c9-tour__room:last-child { border-bottom: 0; }
.c9-tour__room header { margin-bottom: 14px; }
.c9-tour__room h3 { font-family: var(--c9-font-display); font-weight: 400; font-size: 1.5rem; color: var(--c9-aegean-700); }
.c9-tour__room p { margin-top: 4px; font-size: var(--c9-fs-small); color: var(--c9-ink-muted); max-width: 64ch; }
.c9-tour__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.c9-tour__photo { display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--c9-aegean-50); aspect-ratio: 4 / 3; cursor: zoom-in; }
.c9-tour__photo:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.c9-tour__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--c9-ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .c9-tour__photo:hover img { transform: scale(1.03); } }
@media (min-width: 768px) { .c9-tour__grid { gap: 12px; } }

/* ---------- Lightbox ---------- */
/* The single column is minmax(0, 1fr): without it the 42-thumbnail strip's min-content width
   widened the whole grid (3,000px+), pushing the photo and caption off to the right.
   It sits above the photo tour, which opens it. */
.c9-lightbox { position: fixed; inset: 0; z-index: calc(var(--c9-z-dialog) + 10); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; background: #0F1F26; color: #fff; }
.c9-lightbox > * { min-width: 0; }
.c9-lightbox[hidden] { display: none; }
.c9-lightbox__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px var(--c9-gutter); }
.c9-lightbox__top .c9-iconbtn { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.c9-lightbox__top .c9-iconbtn:hover { background: rgba(255, 255, 255, .2); }
.c9-lightbox__close { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: var(--c9-radius-pill); background: rgba(255, 255, 255, .12); color: #fff; font: 600 var(--c9-fs-small)/1 var(--c9-font-body); cursor: pointer; }
.c9-lightbox__close:hover { background: rgba(255, 255, 255, .22); }
.c9-lightbox__count { grid-column: 2; font-size: var(--c9-fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.c9-lightbox__stage { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; user-select: none; }
/* Centred in the stage, whole photo visible, aspect ratio kept (portrait or landscape). */
.c9-lightbox__stage img { position: absolute; inset: 0 calc(var(--c9-gutter) + 56px); margin: auto; width: auto; height: auto; max-width: calc(100% - 2 * (var(--c9-gutter) + 56px)); max-height: 100%; object-fit: contain; border-radius: 8px; }
.c9-lightbox__arrow { position: absolute; top: 50%; translate: 0 -50%; background: #fff; border-color: transparent; color: var(--c9-ink); box-shadow: var(--c9-shadow-1); }
.c9-lightbox__arrow--prev { left: var(--c9-gutter); }
.c9-lightbox__arrow--next { right: var(--c9-gutter); }
.c9-lightbox__caption { max-width: 72ch; margin: 0 auto; padding: 14px var(--c9-gutter) 2px; text-align: center; overflow-wrap: anywhere; }
.c9-lightbox__caption strong { display: block; font-family: var(--c9-font-display); font-size: 1.375rem; font-weight: 400; line-height: 1.25; }
.c9-lightbox__caption span { display: block; margin-top: 2px; font-size: var(--c9-fs-small); line-height: 1.45; color: var(--c9-on-dark-muted); }
.c9-lightbox__thumbs { position: relative; display: flex; justify-content: safe center; gap: 8px; padding: 12px var(--c9-gutter) max(16px, env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.c9-lightbox__thumbs::-webkit-scrollbar { display: none; }
.c9-lightbox__thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .5; transition: opacity var(--c9-dur-1), border-color var(--c9-dur-1); }
.c9-lightbox__thumbs button:hover { opacity: .85; }
.c9-lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: #fff; }
.c9-lightbox__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .c9-lightbox__arrow { display: none; }
  .c9-lightbox__stage img { inset: 0; max-width: 100%; border-radius: 0; }
  .c9-lightbox__caption strong { font-size: 1.125rem; }
  .c9-lightbox__thumbs { gap: 6px; padding-top: 10px; }
  .c9-lightbox__thumbs button { width: 52px; height: 40px; border-radius: 6px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .c9-lightbox__top { padding-block: 4px; }
  .c9-lightbox__thumbs { display: none; }
  .c9-lightbox__caption { padding: 6px var(--c9-gutter) max(8px, env(safe-area-inset-bottom)); }
  .c9-lightbox__caption span { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .c9-lightbox:not([hidden]) { animation: c9-fade-in var(--c9-dur-3) var(--c9-ease); }
  .c9-lightbox__stage img.is-entering { animation: c9-fade-in var(--c9-dur-2) var(--c9-ease); }
}

/* ---------- Review summary + cards ---------- */
.c9-score { display: grid; align-content: start; gap: 4px; padding: 24px; border: 1px solid var(--c9-line); border-radius: var(--c9-radius-card); background: var(--c9-white); }
.c9-score__source { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.c9-score__value { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.c9-score__value strong { font-family: var(--c9-font-display); font-size: 3rem; font-weight: 400; line-height: 1; color: var(--c9-aegean-700); }
.c9-score__value span { font-size: var(--c9-fs-small); color: var(--c9-ink-muted); }
.c9-score__label { font-weight: 600; }
.c9-score__meta { margin-top: 8px; font-size: var(--c9-fs-small); color: var(--c9-ink-muted); }
.c9-score__bars { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c9-line); font-size: var(--c9-fs-small); }
.c9-score__bars div { display: flex; justify-content: space-between; gap: 12px; }
.c9-score__bars b { font-variant-numeric: tabular-nums; }
.c9-stars { display: inline-flex; gap: 2px; color: #D9A43A; } /* warm gold: stands out without shouting */
.c9-stars svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.c9-review { display: grid; align-content: start; gap: 16px; padding: 28px 0; border-top: 1px solid var(--c9-line); }
.c9-review:first-child { border-top: 0; padding-top: 0; }
.c9-review__who { display: flex; align-items: center; gap: 12px; }
.c9-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--c9-aegean-50); color: var(--c9-aegean-700); font-weight: 700; }
.c9-review__name { display: grid; line-height: 1.35; }
.c9-review__name strong { font-weight: 700; }
.c9-review__name span { font-size: var(--c9-fs-caption); color: var(--c9-ink-muted); }
.c9-review__text { font-size: 1.0625rem; line-height: 1.65; }

/* ---------- Map ---------- */
.c9-map { position: relative; overflow: hidden; border-radius: var(--c9-radius-panel); background: #E7EEF0; aspect-ratio: 4 / 3; isolation: isolate; }
.c9-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.c9-map__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--c9-ink);
  background:
    radial-gradient(circle at 58% 44%, rgba(41, 75, 89, .16) 0 18%, transparent 18.5%),
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, .7) 46% 47%, transparent 47%),
    linear-gradient(35deg, transparent 0 60%, rgba(255, 255, 255, .7) 60% 61%, transparent 61%),
    linear-gradient(160deg, #DDE8EA 0 55%, #C9DCE3 55%);
}
.c9-map__pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c9-aegean-700); color: #fff; box-shadow: 0 0 0 10px rgba(41, 75, 89, .18); }
.c9-map__note { font-size: var(--c9-fs-caption); color: var(--c9-ink-muted); }

/* ---------- Place card ---------- */
.c9-place { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.c9-place .c9-frame { aspect-ratio: 4 / 3; }
.c9-place__name { font-family: var(--c9-font-display); font-size: 1.375rem; line-height: 1.2; }
.c9-place__meta { font-size: var(--c9-fs-small); color: var(--c9-ink-muted); }
.c9-section--dark .c9-place__meta { color: var(--c9-on-dark-muted); }

/* ---------- Footer ---------- */
.c9-footer { padding-top: clamp(48px, 6vw, 80px); background: var(--c9-aegean-800); color: var(--c9-on-dark-muted); font-size: var(--c9-fs-small); }
.c9-footer a { color: #fff; text-decoration: none; }
.c9-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.c9-footer__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.c9-footer__brand img { height: 40px; width: auto; }
.c9-footer__brand p { margin-top: 16px; max-width: 34ch; }
.c9-footer__col h2 { margin-bottom: 14px; font-size: var(--c9-fs-caption); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.c9-footer__col ul { display: grid; gap: 2px; }
.c9-footer__col a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.c9-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; margin-top: clamp(40px, 5vw, 64px); padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--c9-fs-caption); }
.c9-footer__base nav { display: flex; gap: 20px; }
.c9-footer__social { display: flex; gap: 14px; margin-left: auto; color: rgba(255, 255, 255, .55); }
.c9-footer__social .c9-icon { width: 20px; height: 20px; }
@media (max-width: 767px) {
  .c9-footer__base { justify-content: flex-start; column-gap: 20px; }
  .c9-footer__social { margin-left: 0; order: 3; flex-basis: 100%; }
}
.c9-footer__base nav a { display: inline-flex; align-items: center; min-height: 40px; }
/* Photo credits: a quiet link beside the legal links; opens a small list across the full width */
.c9-footer__credits > summary { display: inline-flex; align-items: center; min-height: 40px; list-style: none; cursor: pointer; color: rgba(255, 255, 255, .6); }
.c9-footer__credits > summary::-webkit-details-marker { display: none; }
.c9-footer__credits > summary:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.c9-footer__credits > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.c9-footer__credits[open] { flex-basis: 100%; }
.c9-footer__credits > summary { scroll-margin-top: calc(var(--c9-header-h) + 12px); }
.c9-footer__credits > div { padding: 4px 0 8px; font-size: .75rem; line-height: 1.55; color: rgba(255, 255, 255, .6); }
.c9-footer__credits p { margin: 0 0 8px; }
.c9-footer__credits ul { columns: 3 260px; column-gap: 32px; margin: 0; padding: 0; }
.c9-footer__credits li { break-inside: avoid; margin-bottom: 2px; }
.c9-footer__credits a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 2px; overflow-wrap: anywhere; }
@media print { .c9-footer__credits { display: none; } }
@media (min-width: 768px) { .c9-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .c9-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1025px) { .c9-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } .c9-footer__brand { grid-column: auto; } }
@media (max-width: 767px) { .c9-footer { padding-bottom: 72px; } }

/* ---------- Toast ---------- */
.c9-toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--c9-z-toast); width: min(560px, calc(100vw - 32px)); translate: -50% 0; padding: 16px 20px; border-radius: var(--c9-radius-card); background: var(--c9-ink); color: #fff; font-size: var(--c9-fs-small); line-height: 1.5; box-shadow: var(--c9-shadow-3); }
.c9-toast[hidden] { display: none; }
.c9-toast code { word-break: break-all; color: #CFE3EA; }
@media (max-width: 767px) { .c9-toast { bottom: 96px; } }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .c9-js [data-c9-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--c9-ease), transform 700ms var(--c9-ease); }
  .c9-js [data-c9-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Keyframes ---------- */
@keyframes c9-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes c9-pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes c9-sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

body.c9-lock { overflow: hidden; }
