/* =========================================================
   Alma's Haven Resort — coastal styles
   ========================================================= */

:root {
  /* Palette — flat coastal */
  --bg: #f4f7f8;
  --bg-2: #e9eef0;
  --paper: #ffffff;
  --ink: #1a2b30;
  --ink-soft: #3d555c;
  --muted: #6b7f86;
  --line: rgba(26, 43, 48, 0.12);
  --sea: #157a8c;
  --sea-deep: #0d5c68;
  --sea-soft: #e4eef0;
  --sun: #c97a2e;
  --sun-deep: #a8621f;
  --sand: #f5efe6;
  --foam: #f8fafb;
  --green: #1a8a4a;
  --green-bg: #e3f5ea;
  --red: #b83a32;
  --red-bg: #f7e4e2;
  --shadow: 0 2px 10px rgba(18, 40, 46, 0.06);
  --radius: 12px;
  --header-h: 72px;
  --max: 1120px;

  /* Type system — one scale for all pages */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 0.75rem; /* 12px — labels, captions */
  --text-sm: 0.875rem; /* 14px — meta, nav, buttons */
  --text-base: 1rem; /* 16px — body */
  --text-lg: 1.125rem; /* 18px — lead paragraphs */
  --text-xl: clamp(1.2rem, 1.5vw + 0.85rem, 1.35rem); /* card titles */
  --text-2xl: clamp(1.5rem, 2vw + 0.9rem, 1.85rem); /* section h2 */
  --text-3xl: clamp(1.85rem, 3.2vw + 0.75rem, 2.65rem); /* page h1 */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-body: 1.6;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-label: 0.1em;
  --measure: 38rem;
  --measure-wide: 42rem;

  /* Spacing scale (8px base) */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;
  --section-y: clamp(3rem, 6vw, 4.75rem);
  --chat-w: min(380px, calc(100vw - 20px));
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.beach-theme {
  background: var(--bg);
}

img,
iframe {
  max-width: 100%;
  border: 0;
}

a {
  color: var(--sea-deep);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--sea);
}

/* ---- Headings (shared on every page) ---- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.45em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: 0.35em;
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: 0.4em;
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: var(--leading-snug);
}

p {
  margin: 0 0 0.9em;
  color: var(--ink-soft);
  max-width: var(--measure-wide);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

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

/* Shared text utilities */
.lp-kicker,
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--sea-deep);
  margin: 0 0 0.75rem;
}

.lp-lead,
.section-lead,
.page-hero .section-lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-normal);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 0;
}

.lp-head p,
.section-head p {
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink-soft);
  max-width: var(--measure);
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 1.5rem));
  }
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-meta {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.9em;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--sea-deep);
  color: #fff;
  border-color: var(--sea-deep);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--sea);
  color: #fff;
  border-color: var(--sea);
}

.btn-outline,
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover,
.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  min-width: 40px;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--sea-deep);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(244, 247, 248, 0.96);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: none;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.logo:hover {
  color: var(--ink);
}

.logo:hover .logo-mark {
  border-color: var(--sea);
  color: var(--sea-deep);
}

/* Flat monogram â€” no gradient badge (avoids â€œAI app iconâ€ look) */
.logo-mark {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--sea-deep);
  border: 1.5px solid rgba(12, 101, 114, 0.35);
  box-shadow: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0;
  letter-spacing: 0;
  line-height: 0;
  overflow: hidden;
}

.logo-mark .logo-svg,
.logo-svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

/* Fallback if pages still have plain â€œAHâ€ text only */
.logo-mark:not(:has(svg)) {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1;
  font-weight: 600;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.05;
  min-width: 0;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}

.logo-text small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: rgba(30, 26, 22, 0.06);
}

.nav-cta {
  background: var(--sea-deep) !important;
  color: #fff !important;
  margin-left: 0.35rem;
  box-shadow: none;
}

.nav-cta:hover {
  background: var(--sea) !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Image placeholders (flat, no rainbow gradients) ---------- */
.img-placeholder {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  border: 1px solid var(--line);
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-placeholder__fallback {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  background: var(--bg-2);
}

.img-placeholder__icon {
  display: none;
}

.img-placeholder__label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.img-placeholder__hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0.9;
}

.img-placeholder--story img,
.room-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}

.gallery-more-wrap:empty,
.gallery-more-wrap[hidden] {
  display: none !important;
}

.gallery-item--hidden,
.gallery-item[hidden] {
  display: none !important;
}

.gallery-grid--full {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

@media (min-width: 960px) {
  .gallery-grid--full {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

.room-photo {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.room-badge-extra {
  left: auto;
  right: 0.65rem;
  background: rgba(26, 155, 176, 0.95);
  color: #fff;
}

/* Gallery grid + lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.gallery-item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--bg-2);
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.gallery-item:hover {
  border-color: var(--sea-deep);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item:hover img {
  transform: none;
}

.gallery-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.65rem;
  background: rgba(26, 43, 48, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: grid;
  place-items: center;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 34, 0.9);
}

.gallery-lightbox__stage {
  position: relative;
  width: min(920px, 94vw);
  max-height: 90vh;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.gallery-lightbox__figure {
  margin: 0;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox__figure img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
  background: #111;
}

.gallery-lightbox__figure figcaption {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.gallery-lightbox__nav {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.gallery-lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.gallery-lightbox__count {
  position: absolute;
  bottom: -1.75rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  white-space: nowrap;
}

.img-placeholder--hero .img-placeholder__fallback {
  background: #c5dce1;
  color: var(--ink-soft);
}

.img-placeholder--hero .img-placeholder__label,
.img-placeholder--hero .img-placeholder__hint {
  color: var(--ink-soft);
}

.img-placeholder--gallery {
  aspect-ratio: 1;
  min-height: 140px;
  border: 1px solid var(--line);
  box-shadow: none;
  background: var(--bg-2);
}

.img-placeholder--gallery:nth-child(n) {
  background: var(--bg-2);
}

.img-placeholder--story {
  aspect-ratio: 4 / 3;
  margin-bottom: 0.85rem;
  box-shadow: none;
}

.img-placeholder--room {
  width: 100%;
  height: 100%;
  border-radius: 0;
  margin: 0;
}

.img-placeholder--room .img-placeholder__fallback {
  min-height: 100%;
}



/* ---------- Landing page ---------- */
.lp-hero {
  position: relative;
  padding: calc(var(--header-h) + var(--space-6)) 0 var(--space-6);
  overflow: hidden;
  isolation: isolate;
}

/* Photo behind content (not full-screen tall) */
.lp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #b8dce3; /* base tint so 50% photo still reads */
}

.lp-hero-bg-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.lp-hero-bg-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  opacity: 0.5;
}

/* Soft overlay so hero text stays readable over the photo */
.lp-hero-bg-wash {
  position: absolute;
  inset: 0;
  background: rgba(244, 247, 248, 0.52);
}

.lp-hero .container {
  position: relative;
  z-index: 1;
}

/* Original layout: typography left, facts right */
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: end;
}

.lp-hero-copy {
  max-width: 34rem;
}

.lp-hero-panel {
  display: grid;
  gap: var(--space-3);
  justify-items: stretch;
  max-width: 260px;
  margin-left: auto;
}

.lp-hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: 0.45em;
}

.lp-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--sea-deep);
  letter-spacing: -0.01em;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0 var(--space-4);
}

.lp-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.4;
}

.lp-rating .stars {
  color: #c4921a;
  letter-spacing: 0.06em;
}

.lp-hero-facts {
  list-style: none;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(12, 101, 114, 0.08);
}

.lp-hero-facts li {
  position: relative;
  padding-left: 0.85rem;
}

.lp-hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sea);
}

.lp-section {
  padding: var(--section-y) 0;
}

.lp-section-tint {
  background: var(--bg-2);
}

.lp-head {
  max-width: var(--measure-wide);
  margin-bottom: var(--space-5);
}

.lp-head h2 {
  margin-bottom: 0.4em;
}

.lp-head p {
  margin-bottom: 0;
}

.lp-note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--muted);
  line-height: var(--leading-body);
  max-width: var(--measure-wide);
}

.lp-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: start;
}

.lp-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: start;
}

.lp-story-media {
  display: grid;
  gap: 0.85rem;
}

.lp-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.lp-list li {
  padding: 0.4rem 0 0.4rem 1.35rem;
  position: relative;
  color: var(--ink-soft);
}

.lp-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.75em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sea-deep);
}

.lp-aside {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.lp-aside-score {
  margin: 0 0 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.lp-aside-score strong {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--sea-deep);
}

.lp-aside-score span {
  color: var(--muted);
}

.lp-aside-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.lp-find {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.75rem;
  align-items: center;
}

.lp-addr {
  font-size: 1.05rem;
}

.dot-green,
.dot-amber,
.dot-red {
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.15rem;
}

.dot-green {
  background: var(--green);
}

.dot-amber {
  background: #e6c06a;
}

.dot-red {
  background: var(--red);
}

.lp-cta {
  background: var(--sea-deep);
  color: #fff;
  padding: var(--section-y) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lp-cta::before {
  display: none;
}

.lp-cta h2 {
  color: #fff;
  position: relative;
}

.lp-cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 28rem;
  margin: 0 auto var(--space-4);
  position: relative;
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

.lp-cta .btn {
  position: relative;
}

.lp-cta-inner {
  max-width: 36rem;
}

/* Rooms grid */
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.room-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.room-card:hover {
  transform: none;
  border-color: rgba(13, 92, 104, 0.35);
  box-shadow: none;
}

.room-media {
  position: relative;
  aspect-ratio: 5 / 3.4;
  overflow: hidden;
}

.ph-family .img-placeholder__fallback,
.ph-couple .img-placeholder__fallback,
.ph-family6 .img-placeholder__fallback,
.ph-group .img-placeholder__fallback,
.ph-kubo .img-placeholder__fallback {
  background: var(--bg-2);
}

.room-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 252, 247, 0.94);
  color: var(--ink);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

.room-body {
  padding: var(--space-4) var(--space-4) 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.2rem;
}

.room-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.room-card-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.room-count {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg-2);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  line-height: 1.3;
}

.room-pax {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--muted);
}

.room-price {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw + 0.8rem, 1.75rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0.35rem 0 0.65rem;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}

.room-price span {
  font-size: 0.85em;
}

.room-price small {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.25rem;
  letter-spacing: 0.02em;
}

.room-facts {
  list-style: none;
  margin: 0 0 0.95rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.room-facts li {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--sea-deep);
  background: var(--sea-soft);
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
}

.room-card .btn {
  margin-top: 0.35rem;
}

.room-card .btn-ghost {
  margin-top: auto;
}

.room-card {
  cursor: pointer;
}

.room-card .btn {
  cursor: pointer;
}

.room-photo-count {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(12, 101, 114, 0.85);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

/* Room photo viewer */
.room-viewer {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.room-viewer[hidden] {
  display: none !important;
}

.room-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 30, 36, 0.72);
  backdrop-filter: blur(6px);
}

.room-viewer__panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(8, 40, 48, 0.28);
  padding: 1.15rem 1.25rem 1.25rem;
}

.room-viewer__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.room-viewer__header h2 {
  margin: 0 0 0.2rem;
  font-size: 1.45rem;
}

.room-viewer__meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.room-viewer__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.room-viewer__stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.room-viewer__figure {
  margin: 0;
  text-align: center;
}

.room-viewer__figure img {
  max-width: 100%;
  max-height: 48vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg-2);
}

/* Hide file-name captions under room photos (public viewer) */
.room-viewer__figure figcaption {
  display: none !important;
}

.room-viewer__nav {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--sea-soft);
  color: var(--sea-deep);
  font-size: 1.5rem;
  cursor: pointer;
}

.room-viewer__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  justify-content: center;
}

.room-viewer__thumbs button {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
}

.room-viewer__thumbs button.is-active {
  border-color: var(--sea);
}

.room-viewer__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.room-viewer__count {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Admin login + photos */
/* Live chat admin desk */
.admin-online-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
}

.admin-online-toggle input {
  width: auto;
  accent-color: #7dffa8;
}

.live-chat-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 1rem;
  min-height: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.live-chat-list {
  border-right: 1px solid var(--line);
  overflow-y: auto;
  max-height: 520px;
  background: var(--foam);
}

.live-chat-item {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font: inherit;
}

.live-chat-item strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.live-chat-item span {
  font-size: 0.78rem;
  color: var(--muted);
}

.live-chat-item:hover,
.live-chat-item.is-active {
  background: var(--sea-soft);
}

.live-chat-thread {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.live-chat-thread-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
}

.live-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #faf7f2;
  max-height: 380px;
  min-height: 280px;
}

.live-msg {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.live-msg .live-msg-meta {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.15rem;
}

.live-msg.guest {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
}

.live-msg.agent {
  align-self: flex-end;
  background: var(--sea);
  color: #fff;
}

.live-msg.system {
  align-self: center;
  background: #fff8e8;
  font-size: 0.8rem;
  color: #6a5520;
}

.live-chat-compose {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.live-chat-compose input {
  flex: 1;
  min-width: 140px;
}

/* Accept only for queued chats â€” never show when active */
#liveChatAccept[hidden] {
  display: none !important;
}

.live-chat-need {
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  background: #fff8e8;
  border-bottom: 1px solid #f0e0b8;
  color: #5c4a1a;
  line-height: 1.45;
  word-break: break-word;
}

.inbox-message {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
  max-height: 16rem;
  overflow: auto;
}

.live-badge {
  display: inline-block;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.live-badge--active {
  background: #d4f5e2;
  color: #0d5c32;
}

.live-badge--queue {
  background: #fff0d6;
  color: #8a6a10;
}

.live-chat-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--foam);
}

.live-templates-label {
  width: 100%;
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.live-template-btn {
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
}

.live-template-btn:hover {
  border-color: var(--sea);
  color: var(--sea-deep);
  background: var(--sea-soft);
}

@media (max-width: 720px) {
  .live-chat-layout {
    grid-template-columns: 1fr;
  }

  .live-chat-list {
    max-height: 160px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg);
}

.admin-login[hidden] {
  display: none !important;
}

.admin-login-card {
  width: min(400px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.admin-login-card form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

#adminApp[hidden] {
  display: none !important;
}

.admin-photo-preview,
.admin-photo-selected,
.admin-photo-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  margin: 0.75rem 0 1.25rem;
}

.admin-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.admin-gallery-card figcaption {
  padding: 0.35rem 0.4rem 0.25rem;
}

.admin-gallery-label {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.3rem 0.35rem;
  background: #fff;
  color: var(--ink);
  min-height: 32px;
}

.admin-gallery-move {
  display: flex;
  gap: 0.25rem;
  padding: 0 0.4rem 0.45rem;
}

.admin-gallery-move .btn {
  flex: 1;
  min-height: 32px;
  padding: 0.15rem;
  font-size: 0.85rem;
}

.admin-photo-card {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  padding: 0;
  text-align: left;
  cursor: default;
  font: inherit;
  color: inherit;
  width: 100%;
}

button.admin-photo-pick {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

button.admin-photo-pick:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--sea);
}

button.admin-photo-pick.is-in-list {
  border-color: var(--sea);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--sea) 35%, transparent);
}

.admin-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.admin-photo-card figcaption {
  font-size: 0.72rem;
  padding: 0.4rem 0.5rem;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-photo-card.is-broken {
  outline: 2px solid var(--red, #c43228);
}

.admin-photo-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 1;
}

.admin-photo-remove:hover {
  background: #c43228;
}

.admin-subhead {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.25rem 0 0.35rem;
  color: var(--sea-deep);
}

.admin-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0.25rem;
}

.admin-cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.admin-cal-layout--wide {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
}

.cal-day.partial {
  background: #fff3d6;
  color: #8a5a00;
  border-color: #e6c06a;
}

.leg.partial {
  background: #e6c06a !important;
}

.admin-status-pill.is-partial {
  background: #fff3d6;
  color: #8a5a00;
}

.admin-unit-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0;
  max-height: min(55vh, 520px);
  overflow: auto;
  padding-right: 0.25rem;
}

.admin-unit-floor {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.admin-unit-card {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: var(--bg-2, #f7f8f6);
}

.admin-unit-card.is-occupied {
  border-color: #f0b4ae;
  background: #fff7f6;
}

.admin-unit-card.is-free {
  border-color: #b7e4c7;
  background: #f4fcf7;
}

.admin-unit-card__main {
  min-width: 0;
  flex: 1;
}

.admin-unit-card__main strong {
  display: block;
  font-size: 0.95rem;
  color: var(--sea-deep);
  margin-bottom: 0.2rem;
}

.admin-unit-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.admin-unit-badge.free {
  background: #d8f5e5;
  color: #0d6b3a;
}

.admin-unit-badge.occupied {
  background: #fde0dd;
  color: #9b241c;
}

.admin-unit-guest,
.admin-unit-dates {
  margin: 0.15rem 0;
  font-size: 0.88rem;
}

.admin-assign-box {
  margin-top: 0.85rem;
  padding: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.admin-assign-box h4 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  color: var(--sea-deep);
}

.admin-assign-form {
  display: grid;
  gap: 0.65rem;
}

.admin-assign-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.public-cal-nav {
  width: 100%;
  justify-content: center;
}

.public-day-detail {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.public-floor-label {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.public-type-block {
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2, #f7f8f6);
}

.public-type-head {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.4rem;
}

.public-type-head strong {
  color: var(--sea-deep);
}

.public-type-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.public-unit-status {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.public-unit-status li {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.public-unit-status .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.public-unit-status li.is-free .dot {
  background: #1a9a52;
}

.public-unit-status li.is-busy .dot {
  background: #c43228;
}

/* Public calendar days â€” fixed square click targets */
.public-cal-grid .cal-day {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  margin: 0;
  border: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: clamp(0.7rem, 2.6vw, 0.85rem);
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.public-cal-grid .cal-day:nth-child(7n) {
  border-right: none;
}

.public-cal-grid button.cal-day:hover:not(:disabled) {
  filter: brightness(0.97);
}

.public-cal-grid .cal-day.is-selected {
  outline: none;
  z-index: 1;
  box-shadow: inset 0 0 0 2.5px var(--sea-deep, #0b4f6c);
}

.public-cal-grid .cal-day:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2.5px var(--sea, #178fa3);
  z-index: 1;
}

.admin-day-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  position: sticky;
  top: 1rem;
}

.admin-day-panel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  color: var(--sea-deep);
}

.admin-day-status {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.admin-status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-status-pill.is-open {
  background: #d8f5e5;
  color: #0d6b3a;
}

.admin-status-pill.is-closed {
  background: #fde0dd;
  color: #9b241c;
}

.admin-muted {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85em;
}

.admin-cal-grid .cal-day {
  position: relative;
}

.admin-cal-grid .cal-day.is-selected {
  outline: 2px solid var(--sea-deep, #0b4f6c);
  outline-offset: 1px;
  z-index: 1;
}

.admin-cal-grid .cal-day.has-note .cal-note-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e6a817;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.leg.admin-note-leg {
  background: #e6a817 !important;
  border-radius: 50%;
  width: 0.65rem;
  height: 0.65rem;
}

.admin-price-list {
  display: grid;
  gap: 0.85rem;
}

.admin-price-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px) auto;
  gap: 0.85rem;
  align-items: end;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.admin-price-card__info {
  display: grid;
  gap: 0.2rem;
}

.admin-price-card__info strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--sea-deep);
}

.admin-price-card__info span {
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-price-input input {
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .admin-body {
    overflow-x: hidden;
  }

  .admin-body.admin-drawer-open {
    overflow: hidden;
    touch-action: none;
  }

  .admin-shell {
    display: block;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .admin-hamburger {
    display: inline-flex;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 88vw);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: none;
    height: 100dvh;
    max-height: 100dvh;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .admin-shell.sidebar-open .admin-sidebar {
    transform: none;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.22);
  }

  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 36, 0.48);
    z-index: 35;
    border: none;
    padding: 0;
  }

  .admin-sidebar-backdrop[hidden] {
    display: none !important;
  }

  .admin-main-wrap {
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
  }

  .admin-topbar {
    padding: 0.65rem 0.7rem;
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
    gap: 0.5rem;
  }

  .admin-topbar-title h1 {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .admin-topbar-title p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .admin-topbar-status .admin-cloud-badge--top {
    display: none;
  }

  .admin-content {
    padding: 0.7rem 0.65rem 5.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-panel {
    gap: 0.7rem;
    min-width: 0;
  }

  .admin-panel-toolbar,
  .admin-panel-toolbar--row {
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
  }

  .admin-panel-toolbar--row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-nav-item {
    min-height: 46px;
    padding: 0.78rem 0.8rem;
  }

  .admin-cal-layout,
  .admin-cal-layout--wide {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .admin-cal-wrap {
    padding: 0.5rem;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-cal-grid {
    min-width: 0;
    width: 100%;
  }

  .admin-cal-grid .cal-day {
    font-size: clamp(0.62rem, 2.8vw, 0.78rem);
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .admin-cal-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .admin-cal-nav strong {
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  .admin-day-panel {
    position: static;
    padding: 0.8rem;
    border-radius: 12px;
  }

  .admin-unit-list {
    max-height: none;
  }

  .admin-unit-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
  }

  .admin-unit-card .btn {
    width: 100%;
    min-height: 44px;
  }

  .admin-assign-box {
    padding: 0.7rem;
  }

  .admin-assign-dates {
    grid-template-columns: 1fr;
  }

  .admin-price-card {
    grid-template-columns: 1fr;
    padding: 0.8rem;
  }

  .admin-price-card .btn {
    width: 100%;
    min-height: 44px;
  }

  .admin-photo-selected,
  .admin-photo-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .admin-footer-actions {
    position: sticky;
    bottom: 0;
    z-index: 15;
    margin: 0 -0.65rem -0.35rem;
    padding: 0.65rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(238, 243, 245, 0.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
    gap: 0.45rem;
  }

  .admin-footer-actions .btn,
  .admin-footer-actions label.btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
  }

  .stat-card {
    padding: 0.6rem 0.35rem;
    text-align: center;
  }

  .stat-card strong {
    font-size: 1.15rem;
  }

  .stat-card span {
    font-size: 0.68rem;
  }

  .live-chat-layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: min(70dvh, 560px);
    max-height: none;
    border-radius: 12px;
    overflow: hidden;
  }

  .live-chat-list {
    max-height: 32vh;
    min-height: 120px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .live-chat-thread {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .live-chat-messages {
    flex: 1;
    min-height: 180px;
    max-height: none;
  }

  .live-chat-compose {
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    gap: 0.4rem;
    padding: 0.55rem;
    background: var(--paper);
  }

  .live-chat-compose input {
    flex: 1 1 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .live-chat-compose .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .live-chat-templates {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .inbox-item {
    padding: 0.75rem 0.8rem;
  }

  .admin-field select,
  .admin-field input,
  .admin-price-input input {
    font-size: 16px;
    min-height: 44px;
  }

  .admin-login,
  .admin-boot {
    padding: 1rem 0.75rem 2rem;
    min-height: 100dvh;
  }

  .admin-login-card {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    padding: 1.2rem 1rem;
  }
}

@media (max-width: 420px) {
  .admin-topbar-title p {
    display: none;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .admin-photo-selected,
  .admin-photo-library {
    grid-template-columns: 1fr 1fr;
  }

  .admin-legend {
    font-size: 0.72rem;
    gap: 0.35rem 0.55rem;
  }
}

@media (max-width: 720px) {
  .admin-main {
    padding: 1rem 0 2.5rem;
  }

  .admin-header {
    padding: 0.9rem 0;
  }

  .admin-header h1 {
    font-size: 1.2rem;
  }

  .admin-header p {
    font-size: 0.8rem;
  }

  .admin-tabs {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .admin-tab {
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
  }

  .admin-cal-nav .btn {
    padding: 0.45rem 0.65rem;
    min-height: 44px;
  }

  .admin-actions-row {
    width: 100%;
  }

  .admin-actions-row .btn,
  .admin-actions-row label.btn {
    flex: 1 1 calc(50% - 0.35rem);
    text-align: center;
    justify-content: center;
    min-height: 44px;
  }

  .admin-photo-card figcaption {
    font-size: 0.68rem;
  }

  .admin-upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-upload-row .btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }

  .admin-field-room {
    max-width: none;
  }

  .live-template-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 380px) {
  .admin-photo-selected,
  .admin-photo-library {
    grid-template-columns: 1fr 1fr;
  }

  .admin-tab {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem;
  }
}

@media (max-width: 720px) {
  .room-viewer__stage {
    grid-template-columns: 1fr;
  }

  .room-viewer__nav {
    position: absolute;
    top: 45%;
    z-index: 2;
  }

  .room-viewer__prev {
    left: 0.35rem;
  }

  .room-viewer__next {
    right: 0.35rem;
  }
}

/* Legacy amenity chips (if any) */
.amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.85rem;
}

.amenity-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sea-deep);
  background: rgba(47, 111, 106, 0.1);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

/* Calendar */
.public-cal-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: clamp(0.85rem, 3vw, 1.25rem);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.public-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.cal-field,
.admin-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  flex: 1;
  min-width: 160px;
}

.cal-field select,
.admin-field select,
input,
select,
textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(47, 111, 106, 0.15);
}

.admin-cal-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-legend,
.booking-legend,
.admin-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.cal-legend span,
.booking-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.leg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.leg.available {
  background: var(--green);
}

.leg.unavailable,
.leg.booked,
.leg.blocked,
.leg.pending {
  background: var(--red);
}

.cal-grid {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #faf7f2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cal-weekdays,
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
}

.cal-weekdays span {
  text-align: center;
  font-size: clamp(0.62rem, 2.2vw, 0.72rem);
  font-weight: 700;
  color: var(--muted);
  padding: 0.45rem 0.1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.cal-day {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  font: inherit;
  font-size: clamp(0.7rem, 2.6vw, 0.85rem);
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.cal-day:nth-child(7n) {
  border-right: none;
}

.cal-day.empty {
  background: #f0ebe3;
  pointer-events: none;
}

.cal-day.past {
  color: #9a948c;
  background: #f0ebe3;
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.public-cal-grid .cal-day.past,
.public-cal-grid span.cal-day.past {
  pointer-events: none;
  cursor: not-allowed;
}

.cal-day.available {
  background: var(--green-bg) !important;
  color: #0d5c32 !important;
  font-weight: 700;
}

.cal-day.unavailable,
.cal-day.booked,
.cal-day.blocked,
.cal-day.pending,
.cal-day.full {
  background: var(--red-bg) !important;
  color: var(--red) !important;
}

.cal-day.partial {
  background: #fff3d6 !important;
  color: #8a5a00 !important;
  font-weight: 700;
}

.cal-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.65rem 0 0.85rem;
  max-width: none;
}

.public-day-detail {
  min-width: 0;
}

.public-type-block {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Map */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: none;
  min-height: 280px;
  background: var(--bg-2);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
}

/* Footer */
.site-footer {
  background: #0d3d45;
  color: rgba(243, 248, 249, 0.85);
  padding: var(--space-6) 0 var(--space-5);
}

.footer-inner {
  display: grid;
  gap: var(--space-4);
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: #f3f8f9;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.footer-tag {
  margin: 0.35rem 0 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(243, 248, 249, 0.55);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-links a {
  color: rgba(243, 248, 249, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  margin: 0;
  font-size: var(--text-xs);
  color: rgba(243, 248, 249, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  letter-spacing: 0.02em;
}

/* Scroll reveal — subtle */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

.reduce-motion .reveal,
.reduce-motion .room-card {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Inner pages */
.page-hero {
  padding: calc(var(--header-h) + var(--space-5)) 0 var(--space-4);
}

.page-hero-inner {
  max-width: var(--measure-wide);
}

.page-hero h1 {
  font-size: var(--text-3xl);
  max-width: 18ch;
}

.page-hero code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  font-weight: 500;
  background: var(--sea-soft);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  color: var(--sea-deep);
}

/* FAQ page */
.faq-list {
  max-width: 720px;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 16px rgba(12, 101, 114, 0.05);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  letter-spacing: 0;
  padding: 1rem 1.15rem;
  color: var(--ink);
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--sea-deep);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  background: var(--foam);
}

.faq-answer {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.faq-answer p,
.faq-answer ul {
  color: var(--ink-soft);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  max-width: none;
}

.faq-answer ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.faq-answer li {
  margin-bottom: 0.35rem;
}

/* Rooms page: clearer cards for review */
.page-rooms .room-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 960px) {
  .page-rooms .room-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .page-rooms .room-grid {
    grid-template-columns: 1fr;
  }
}

.section {
  padding: var(--section-y) 0;
}

.section-head {
  max-width: var(--measure-wide);
  margin-bottom: var(--space-5);
}

.section-head h2 {
  margin-bottom: 0.4em;
}

.about-grid,
.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.checklist li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.7em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sea-deep);
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.75rem;
}

.info-card.accent {
  background: var(--sea-deep);
  border: none;
  color: #f4efe6;
}

.info-card.accent p,
.info-card.accent h3 {
  color: #f4efe6;
}

.info-card.accent .text-link {
  color: #f0d5a8;
}

.big-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.15rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--sea-deep);
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.amenity-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.amenity-icon {
  display: none; /* text-first cards; no decorative emoji */
}

.amenity-card h3 {
  margin: 0 0 0.4em;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.amenity-card p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  max-width: none;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.review-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
}

.review-card p {
  flex: 1;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  max-width: none;
}

.review-stars {
  color: #c4921a;
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  line-height: 1;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.review-card footer strong {
  font-weight: 600;
  color: var(--ink);
}

.review-card footer span {
  color: var(--muted);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

.review-card.highlight {
  background: var(--sea-deep);
  border: none;
  color: #f4efe6;
}

.review-card.highlight p {
  color: rgba(244, 239, 230, 0.9);
}

.review-card.highlight .text-link {
  color: #f0d5a8;
}

.review-score {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.review-score .score {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}

.location-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.location-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.location-list strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Chat */
.chat-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  background: var(--ink);
  color: #f4efe6;
  font: inherit;
  font-weight: 700;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.chat-launcher-label {
  display: inline;
  white-space: nowrap;
}

.chat-launcher:hover {
  background: var(--sea-deep);
}

.chat-badge {
  display: none;
}

.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.75rem;
  width: var(--chat-w);
  height: min(560px, calc(100vh - 100px));
  z-index: 210;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(30, 26, 22, 0.22);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--sea-deep);
  color: #f4efe6;
}

.chat-header h2 {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
  color: #f4efe6;
}

.chat-status {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(244, 239, 230, 0.9);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dffa8;
}

.status-dot.agent {
  background: #ffd56a;
}

.chat-header-actions {
  display: flex;
  gap: 0.2rem;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
}

.chat-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
}

.chat-mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.chip-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--sun);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.chip-btn-danger {
  color: var(--red);
  border-color: rgba(196, 50, 40, 0.45);
  background: #fff5f4;
  font-weight: 700;
}

.chip-btn-danger:hover {
  background: #ffe8e6;
}

.chip-btn[hidden] {
  display: none !important;
}

.chat-live-end-bar {
  padding: 0.45rem 0.75rem 0.15rem;
  border-top: 1px solid var(--line);
  background: #fff8f7;
}

.chat-live-end-bar[hidden] {
  display: none !important;
}

.chat-end-live-btn {
  color: var(--red) !important;
  border-color: rgba(196, 50, 40, 0.4) !important;
  font-weight: 700;
  min-height: 40px;
}

.chat-end-live-btn:hover {
  background: #ffe8e6 !important;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #faf7f2;
}

.msg {
  max-width: 88%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: msgIn 0.2s ease;
  word-break: break-word;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.msg.bot,
.msg.agent {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

.msg.user {
  align-self: flex-end;
  background: var(--sea);
  color: white;
}

.msg.system {
  align-self: center;
  max-width: 95%;
  background: #fff8e8;
  border: 1px solid #f0e0b8;
  color: #6a5520;
  font-size: 0.8rem;
  text-align: center;
}

.msg .msg-meta {
  display: block;
  font-size: 0.68rem;
  opacity: 0.7;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

/* Bot typing indicator */
.msg.typing-msg {
  min-width: 4.5rem;
  padding-bottom: 0.85rem;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  height: 1rem;
  padding: 0.15rem 0.1rem;
}

.typing-dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.55;
  animation: typingBounce 1.1s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.75rem 0.5rem;
  background: #faf7f2;
}

.chat-suggestions:empty {
  display: none;
}

.chat-suggestions button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.chat-input-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.chat-input-row input {
  flex: 1;
  border-radius: 999px;
}

.chat-send {
  border-radius: 999px;
  flex-shrink: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 48, 0.5);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--paper);
  border-radius: 18px;
  padding: 1.4rem 1.35rem 1.35rem;
  box-shadow: 0 24px 60px rgba(13, 110, 124, 0.22);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.modal-card form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.modal-open {
  overflow: hidden;
}

/* Book form (name + when â†’ Facebook) */
.book-form-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.55rem;
}

.book-form-room {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--sea-deep);
  font-size: 0.95rem;
}

.book-form-lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Compact booking form on small screens */
@media (max-width: 720px) {
  .booking-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .book-form-card {
    width: 100%;
    max-height: min(88vh, 100%);
    overflow-y: auto;
    padding: 1rem 0.9rem 0.9rem;
    border-radius: 16px 16px 12px 12px;
    -webkit-overflow-scrolling: touch;
  }

  .book-form-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
  }

  .book-form-room {
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
  }

  .book-form-lead {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .book-form-card .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .book-form-card label {
    font-size: 0.78rem;
    gap: 0.25rem;
  }

  .book-form-card input,
  .book-form-card select,
  .book-form-card textarea {
    padding: 0.55rem 0.65rem;
    font-size: 0.9rem;
  }

  .book-form-card .fb-instruct-box {
    padding: 0.6rem 0.75rem;
    margin: 0.15rem 0;
  }

  .book-form-card .fb-instruct-box > strong {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .book-form-card .fb-steps {
    font-size: 0.78rem;
    padding-left: 1.2rem !important;
    line-height: 1.4;
  }

  .book-form-card .fb-steps li {
    margin-bottom: 0.25rem;
  }

  .book-form-card .book-preview-box {
    padding: 0.55rem 0.65rem;
  }

  .book-form-card .fb-message-preview {
    max-height: 72px;
    font-size: 0.72rem;
    padding: 0.45rem 0.5rem;
  }

  .book-form-card .preview-head {
    margin-bottom: 0.3rem;
  }

  .book-form-card .modal-actions {
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
  }

  .book-form-card .modal-actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  .book-form-card .modal-actions .btn-primary {
    flex: 1 1 100%;
  }

  .booking-close {
    top: 0.45rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  /* Agent offline form (chat) also compact on mobile */
  #agentModal .modal-card {
    width: 100%;
    max-height: min(88vh, 100%);
    overflow-y: auto;
    padding: 1rem 0.9rem;
    -webkit-overflow-scrolling: touch;
  }

  #agentModal .fb-message-preview {
    max-height: 72px;
    font-size: 0.72rem;
  }

  #agentModal .fb-steps {
    font-size: 0.78rem;
  }

  #agentModal .fb-instruct-box {
    padding: 0.6rem 0.75rem;
  }
}

.book-form-card .optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}

.booking-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.booking-close:hover {
  background: var(--sea-soft);
}

.book-preview-box {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.fb-message-preview {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border-radius: 8px;
  border: 1.5px dashed rgba(13, 110, 124, 0.35);
  font-size: 0.82rem;
  white-space: pre-wrap;
  color: var(--ink);
  max-height: 160px;
  overflow: auto;
  font-family: var(--font-body);
  cursor: text;
  user-select: all;
}

.fb-message-preview:focus {
  outline: 2px solid var(--sea);
  outline-offset: 1px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.preview-head strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.fb-instruct-box {
  background: #eef8f9;
  border: 1px solid rgba(13, 110, 124, 0.18);
  border-radius: 12px;
  padding: 0.9rem 1rem 1rem;
  margin: 0.35rem 0;
}

/* Title only â€” not strong tags inside the steps */
.fb-instruct-box > strong {
  display: block;
  font-size: 0.88rem;
  color: var(--sea-deep);
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.fb-steps {
  list-style: decimal !important;
  list-style-position: outside !important;
  margin: 0;
  padding: 0 0 0 1.5rem !important;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.fb-steps li {
  display: list-item !important;
  margin: 0 0 0.5rem;
  padding-left: 0.35rem;
  color: var(--ink-soft);
}

.fb-steps li:last-child {
  margin-bottom: 0;
}

.fb-steps li strong {
  display: inline;
  font-weight: 700;
  color: var(--ink);
  font-size: inherit;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 400;
  background: var(--ink);
  color: #f4efe6;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  max-width: min(92vw, 400px);
  text-align: center;
}

.toast[hidden] {
  display: none !important;
}

/* Admin */
.admin-body {
  background: #eef3f5;
  min-height: 100vh;
}

.admin-boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.admin-boot[hidden] {
  display: none !important;
}

.admin-boot-card {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
}

.admin-boot-card p {
  margin: 0;
  max-width: none;
}

.admin-boot-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid rgba(12, 101, 114, 0.15);
  border-top-color: var(--sea-deep);
  animation: adminSpin 0.7s linear infinite;
}

@keyframes adminSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Admin app shell (sidebar + content) ---- */
.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef3f5;
}

.admin-shell[hidden] {
  display: none !important;
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 0.9rem 1rem;
  background: #0d5c68;
  color: #f4efe6;
  z-index: 40;
  overflow-y: auto;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.45rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.admin-sidebar-brand strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
}

.admin-sidebar-brand span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.72;
  margin-top: 0.1rem;
}

.admin-nav {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.35rem;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(244, 239, 230, 0.88);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  padding: 0.72rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav-item.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.admin-nav-ico {
  width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.95;
}

.admin-nav-label {
  flex: 1;
  min-width: 0;
}

.admin-nav-count:empty {
  display: none;
}

.admin-nav-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.admin-sidebar-foot {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar .admin-cloud-badge {
  text-align: center;
  width: 100%;
}

.admin-sidebar .admin-online-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4efe6;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-side-link {
  color: rgba(244, 239, 230, 0.85);
  text-align: center;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.35rem;
}

.admin-side-link:hover {
  color: #fff;
}

.admin-signout {
  color: #f4efe6 !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.admin-main-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.admin-hamburger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 0;
  place-items: center;
  gap: 4px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
}

.admin-hamburger span {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.admin-topbar-title {
  min-width: 0;
  flex: 1;
}

.admin-topbar-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--ink);
}

.admin-topbar-title p {
  margin: 0.2rem 0 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  max-width: none;
}

.admin-topbar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-cloud-badge--top {
  background: var(--bg-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.admin-cloud-badge--top.is-ok {
  background: #e7f8ee;
  color: #0d6b3a;
  border-color: #b7e4c7;
}

.admin-cloud-badge--top.is-warn {
  background: #fff6e0;
  color: #8a5a00;
  border-color: #f0d48a;
}

.admin-cloud-badge--top.is-off {
  background: #f3f3f3;
  color: var(--muted);
}

.admin-content {
  padding: 1.15rem 1.25rem 2.5rem;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.admin-panel {
  display: grid;
  gap: 1rem;
}

.admin-panel-toolbar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.admin-panel-toolbar--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.admin-hint {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: none;
  line-height: var(--leading-body);
}

.admin-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.25rem;
}

.admin-footer-actions--inline {
  padding-top: 0;
}

.admin-photo-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem 1rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-field-room {
  max-width: 320px;
  margin: 0;
  min-width: min(100%, 220px);
}

.admin-cal-toolbar {
  width: 100%;
}

.admin-cal-toolbar .admin-cal-nav {
  width: 100%;
  justify-content: center;
}

/* Legacy header (unused in new shell but keep safe) */
.admin-header {
  background: var(--sea-deep);
  color: #f4efe6;
  padding: 1.15rem 0;
}

.admin-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-header-text {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-header h1 {
  font-size: 1.45rem;
  margin: 0;
  color: #f4efe6;
}

.admin-header p {
  margin: 0.25rem 0 0;
  color: rgba(244, 239, 230, 0.7);
  font-size: 0.88rem;
}

.admin-cloud-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  white-space: nowrap;
}

.admin-cloud-badge.is-ok {
  background: rgba(34, 180, 100, 0.35);
}

.admin-cloud-badge.is-warn {
  background: rgba(230, 160, 30, 0.4);
}

.admin-cloud-badge.is-off {
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.9;
}

.admin-btn-light {
  color: #f4efe6 !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.admin-main {
  padding: 1.75rem 0 3.5rem;
}

.admin-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.admin-tab {
  border: 1.5px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  white-space: nowrap;
  flex: 0 0 auto;
}

.admin-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #f4efe6;
}

.admin-panel[hidden] {
  display: none !important;
}

.admin-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
  margin-bottom: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.admin-cal-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.admin-cal-grid .cal-day {
  cursor: pointer;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.stat-card {
  background: var(--paper);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--sea-deep);
  line-height: 1;
}

.stat-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

.inbox-list {
  display: grid;
  gap: 0.75rem;
}

.inbox-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.inbox-item.unread {
  border-left: 4px solid var(--sun);
}

.inbox-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.inbox-item-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.inbox-item-title strong {
  font-size: 0.95rem;
}

.inbox-item .type-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(47, 111, 106, 0.12);
  color: var(--sea-deep);
}

.inbox-item .type-pill.reservation {
  background: #fff0ea;
  color: var(--sun);
}

.inbox-item .type-pill.live_chat_ended {
  background: #f0eefc;
  color: #4b3f8a;
}

.inbox-meta,
.inbox-meta-line {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.inbox-preview {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inbox-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.inbox-details {
  margin-top: 0.45rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  display: grid;
  gap: 0.55rem;
}

.inbox-details[hidden] {
  display: none !important;
}

.inbox-item.is-expanded {
  border-color: var(--sea, #178fa3);
  box-shadow: 0 0 0 1px rgba(12, 101, 114, 0.12);
}

.inbox-detail-grid {
  display: grid;
  gap: 0.4rem;
}

.inbox-detail-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  font-size: 0.86rem;
}

.inbox-detail-row span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-top: 0.1rem;
}

.inbox-detail-row strong {
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.inbox-detail-heading {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.inbox-muted {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.inbox-transcript {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: var(--bg-2, #f4f7f8);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: min(50vh, 22rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
}

@media (max-width: 520px) {
  .inbox-detail-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.inbox-item p {
  margin: 0;
}

.inbox-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-note.success {
  color: var(--green);
}

.form-note.error {
  color: var(--red);
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Trust / legacy strips if used */
.trust-strip {
  padding: 0.5rem 0 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.trust-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* FAQ chips */
.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.faq-chips button {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 960px) {
  .lp-hero-grid,
  .lp-split,
  .lp-story,
  .lp-find,
  .about-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .lp-hero-bg-wash {
    background:
      background: rgba(244, 247, 248, 0.6);
  }

  .lp-hero-panel {
    max-width: none;
    margin-left: 0;
  }

  .room-grid {
    grid-template-columns: 1fr 1fr;
  }

  .amenity-grid,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.85rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .gallery-lightbox__stage {
    grid-template-columns: 1fr;
    width: 96vw;
  }

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

  .gallery-lightbox__prev {
    left: 0.25rem;
  }

  .gallery-lightbox__next {
    right: 0.25rem;
  }

  .gallery-lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0.9rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .room-grid,
  .amenity-grid,
  .review-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .lp-hero {
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lp-section {
    padding: clamp(2.75rem, 8vw, 3.5rem) 0;
  }

  .lp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-actions .btn {
    width: 100%;
  }

  .lp-head {
    margin-bottom: var(--space-4);
  }

  /* Keep "FAQ & help" label visible on mobile (not icon-only) */
  .chat-launcher {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.7rem 0.95rem 0.7rem 0.85rem;
    border-radius: 999px;
    gap: 0.4rem;
    max-width: calc(100vw - 1.5rem);
  }

  .chat-launcher-label {
    display: inline;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .chat-launcher-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
  }

  .chat-panel {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    bottom: 4.5rem;
    height: min(65vh, 520px);
  }

  .public-cal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-cal-nav,
  .public-cal-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .public-cal-nav strong {
    font-size: 0.95rem;
    text-align: center;
    flex: 1;
    min-width: 0;
  }

  .public-cal-card {
    padding: 0.85rem 0.75rem 1rem;
  }

  .cal-legend {
    gap: 0.45rem 0.75rem;
    font-size: 0.75rem;
  }

  .cal-day,
  .public-cal-grid .cal-day {
    font-size: clamp(0.68rem, 3.2vw, 0.8rem);
  }

  /* Keep day cells square and tappable on narrow phones */
  .public-cal-grid .cal-day {
    min-height: 0;
  }

  .public-type-head strong {
    font-size: 0.95rem;
  }

  .public-type-meta {
    font-size: 0.78rem;
  }

  .btn,
  .lp-actions .btn,
  .hero-actions .btn {
    min-height: 44px;
  }

  .site-header .logo {
    max-width: min(70vw, 16rem);
    gap: 0.5rem;
  }

  .site-header .logo-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .site-header .logo-text strong {
    font-size: 0.98rem;
  }

  .site-header .logo-text small {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .map-frame {
    min-height: 220px;
  }

  .room-card .btn {
    width: 100%;
  }

  img {
    height: auto;
  }

  /* Prevent horizontal overflow from long content */
  .lp-split,
  .lp-story,
  .public-cal-card,
  .room-body,
  .section {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 1rem);
  }

  .public-cal-card {
    padding: 0.7rem 0.55rem 0.9rem;
  }

  .cal-weekdays span {
    font-size: 0.58rem;
    padding: 0.35rem 0;
  }

  .cal-day,
  .public-cal-grid .cal-day {
    font-size: 0.65rem;
  }
}

@media (min-width: 1100px) {
  .room-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 5 rooms: last two span naturally on row 2 */
  .page-home .room-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-home .room-card {
    grid-column: span 2;
  }
}

/* ---- 404 / missing page ---- */
.error-page {
  min-height: calc(100dvh - 10rem);
  display: grid;
  place-items: center;
  padding: 3.5rem 0 4rem;
  background: var(--bg, #f4f7f8);
}

.error-page-inner {
  max-width: var(--measure);
  text-align: center;
}

.error-page h1 {
  font-size: var(--text-2xl);
}

.error-page-code {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sea-deep, #0c6572);
  opacity: 0.18;
}

.error-page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 4.5vw, 2.15rem);
  color: var(--ink, #14272b);
}

.error-page .section-lead {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
}

.error-page-path {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--muted, #5c6b70);
  word-break: break-all;
  padding: 0.55rem 0.75rem;
  background: var(--paper, #fff);
  border: 1px solid var(--line, #d5e0e3);
  border-radius: 10px;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.error-page-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  justify-content: center;
}

.error-page-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sea-deep, #0c6572);
  text-decoration: none;
}

.error-page-links a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .error-page {
    padding: 2.25rem 0 3rem;
  }

  .error-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-page-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/*
 * Admin mobile layout â€” MUST stay at end of file.
 * Base .admin-shell styles are defined mid-file; without this trailing
 * block they override earlier @media rules and break phones
 * (hamburger hidden, 260px sidebar column stuck on screen).
 */
@media (max-width: 960px) {
  .admin-body {
    overflow-x: hidden;
  }

  .admin-body.admin-drawer-open {
    overflow: hidden;
    position: fixed;
    inset: 0;
    width: 100%;
    touch-action: none;
  }

  /* Single column shell â€” sidebar is a drawer, not a grid track */
  .admin-shell:not([hidden]) {
    display: block !important;
    grid-template-columns: none !important;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .admin-hamburger {
    display: inline-flex !important;
    flex-shrink: 0;
  }

  .admin-sidebar {
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 88vw) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: none;
    z-index: 50;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
  }

  .admin-sidebar-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 36, 0.48);
    z-index: 45;
    border: none;
    padding: 0;
    margin: 0;
  }

  .admin-sidebar-backdrop[hidden] {
    display: none !important;
  }

  .admin-main-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
    margin: 0;
  }

  .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0.65rem 0.7rem;
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
    gap: 0.5rem;
  }

  .admin-topbar-title h1 {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .admin-topbar-title p {
    font-size: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .admin-topbar-status .admin-cloud-badge--top {
    display: none !important;
  }

  .admin-content {
    padding: 0.7rem 0.65rem 5.5rem;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    box-sizing: border-box;
  }

  .admin-panel {
    gap: 0.7rem;
    min-width: 0;
  }

  .admin-panel[hidden] {
    display: none !important;
  }

  .admin-panel-toolbar,
  .admin-panel-toolbar--row {
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
  }

  .admin-panel-toolbar--row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-hint {
    font-size: 0.84rem;
  }

  .admin-nav-item {
    min-height: 48px;
    padding: 0.8rem 0.85rem;
  }

  .admin-sidebar .admin-online-toggle {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  /* Availability */
  .admin-cal-layout,
  .admin-cal-layout--wide {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .admin-cal-wrap {
    padding: 0.5rem;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-cal-grid {
    min-width: 0;
    width: 100%;
  }

  .admin-cal-grid .cal-day {
    font-size: clamp(0.62rem, 2.8vw, 0.78rem);
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .admin-cal-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .admin-cal-nav strong {
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  .admin-cal-nav .btn {
    min-height: 44px;
    padding: 0.45rem 0.65rem;
  }

  .admin-day-panel {
    position: static !important;
    padding: 0.8rem;
    border-radius: 12px;
  }

  .admin-unit-list {
    max-height: none;
  }

  .admin-unit-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
  }

  .admin-unit-card .btn {
    width: 100%;
    min-height: 44px;
  }

  .admin-assign-box {
    padding: 0.7rem;
  }

  .admin-assign-dates {
    grid-template-columns: 1fr !important;
  }

  .admin-actions-row {
    width: 100%;
  }

  .admin-actions-row .btn,
  .admin-actions-row label.btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  /* Rates */
  .admin-price-card {
    grid-template-columns: 1fr !important;
    padding: 0.8rem;
  }

  .admin-price-card .btn {
    width: 100%;
    min-height: 44px;
  }

  /* Photos */
  .admin-photo-selected,
  .admin-photo-library {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem;
  }

  .admin-field-room {
    max-width: none;
    width: 100%;
  }

  .admin-upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-upload-row .btn {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  /* Sticky footers */
  .admin-footer-actions {
    position: sticky;
    bottom: 0;
    z-index: 15;
    margin: 0 -0.65rem -0.35rem;
    padding: 0.65rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(238, 243, 245, 0.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
    gap: 0.45rem;
  }

  .admin-footer-actions .btn,
  .admin-footer-actions label.btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  /* Inbox stats â€” keep 3 columns, not 1 */
  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.4rem;
    width: 100%;
  }

  .stat-card {
    padding: 0.55rem 0.3rem;
    text-align: center;
  }

  .stat-card strong {
    font-size: 1.1rem;
  }

  .stat-card span {
    font-size: 0.65rem;
  }

  /* Live chat */
  .live-chat-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-height: min(68dvh, 540px);
    max-height: none;
    border-radius: 12px;
    overflow: hidden;
    gap: 0;
  }

  .live-chat-list {
    max-height: 30vh !important;
    min-height: 110px;
    border-right: none !important;
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .live-chat-thread {
    flex: 1 1 auto;
    min-height: 240px;
    display: flex;
    flex-direction: column;
  }

  .live-chat-thread-head {
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
  }

  .live-chat-messages {
    flex: 1 1 auto;
    min-height: 160px;
    max-height: none !important;
  }

  .live-chat-compose {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.55rem;
    position: sticky;
    bottom: 0;
  }

  .live-chat-compose input {
    flex: 1 1 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 16px;
  }

  .live-chat-compose .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .live-chat-templates {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .live-template-btn {
    flex: 0 0 auto;
  }

  .inbox-item {
    padding: 0.75rem 0.8rem;
  }

  .admin-field select,
  .admin-field input,
  .admin-price-input input,
  .admin-login-card input {
    font-size: 16px;
    min-height: 44px;
  }

  .admin-login,
  .admin-boot {
    padding: 1rem 0.75rem 2rem;
    min-height: 100dvh;
  }

  .admin-login-card {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    padding: 1.2rem 1rem;
    box-sizing: border-box;
  }
}

@media (max-width: 420px) {
  .admin-topbar-title p {
    display: none;
  }

  .admin-photo-selected,
  .admin-photo-library {
    grid-template-columns: 1fr 1fr !important;
  }

  .admin-legend {
    font-size: 0.72rem;
    gap: 0.35rem 0.55rem;
  }

  .admin-stats {
    gap: 0.3rem;
  }

  .stat-card strong {
    font-size: 1rem;
  }

  .stat-card span {
    font-size: 0.62rem;
  }
}
