/* =====================================================================
   Ocean View Bungalow · Camps Bay — guest guide
   Mobile-first stylesheet (no framework)
   ===================================================================== */

/* Self-hosted fonts (SIL Open Font License) — no Google Fonts requests */
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --sand: #f5f1ea;
  --paper: #fbf9f5;
  --stone: #e7e0d4;
  --ink: #0f1e24;
  --ink-2: #1b2f37;
  --text: #33444b;
  --muted: #6b787c;
  --ocean: #2c6e78;
  --ocean-soft: #d8e7e7;
  --sunset: #c4876a;
  --line: rgba(15, 30, 36, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);
  --danger: #a5462f;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 18px 50px -20px rgba(15, 30, 36, 0.35);
}

@media (min-width: 700px) {
  :root { --gutter: 40px; --header-h: 76px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 64px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: #fff; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- type */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 7.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display em, .hero-title em { font-style: italic; font-weight: 400; color: var(--ocean); }

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 34em;
  margin: 18px 0 0;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-glass {
  color: #fff; border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-airbnb { background: #ff5a5f; color: #fff; }
.btn-airbnb:hover { background: #e0484d; color: #fff; }

.round-btn {
  width: 46px; height: 46px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
}
.round-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.round-btn:disabled { opacity: 0.3; pointer-events: none; }
.round-btn.on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.round-btn.on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  height: calc(var(--header-h) + env(safe-area-inset-top));
  color: #fff;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header::before { /* soft gradient for legibility over photos */
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(10, 20, 24, 0.45), rgba(10, 20, 24, 0));
  transition: opacity 0.4s;
}
.site-header.is-solid {
  background: rgba(251, 249, 245, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid::before { opacity: 0; }

.brand { display: block; color: inherit; line-height: 0; }
.brand-logo {
  display: block;
  width: 130px; aspect-ratio: 243 / 60;
  background: currentColor;
  -webkit-mask: url("/assets/img/logo1.png") center / contain no-repeat;
  mask: url("/assets/img/logo1.png") center / contain no-repeat;
}
@media (min-width: 700px) { .brand-logo { width: 150px; } }

.nav-inline { display: none; }
@media (min-width: 1100px) {
  .nav-inline { display: flex; gap: 34px; margin-left: auto; }
  .nav-inline a {
    color: inherit; text-decoration: none; font-size: 0.8125rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; position: relative; padding: 6px 0;
  }
  .nav-inline a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s var(--ease);
  }
  .nav-inline a:hover::after, .nav-inline a.is-current::after { transform: scaleX(1); transform-origin: left; }
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-book {
  min-height: 40px; padding: 0 18px; color: inherit;
  border-color: currentColor; background: transparent;
}
.btn-book:hover { background: #ff5a5f; border-color: #ff5a5f; color: #fff; }
.hide-sm { display: none !important; }
@media (min-width: 700px) { .hide-sm { display: inline-flex !important; } span.hide-sm { display: inline !important; } }

.menu-btn {
  width: 46px; height: 46px; border: 0; background: transparent; color: inherit;
  display: grid; place-items: center; margin-right: -10px; position: relative; z-index: 61;
}
.menu-lines { width: 26px; height: 12px; position: relative; display: block; }
.menu-lines span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.menu-lines span:first-child { top: 0; }
.menu-lines span:last-child { top: 10px; }
.menu-open .menu-lines span:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-lines span:last-child { top: 5px; transform: rotate(-45deg); }
@media (min-width: 1100px) { .menu-btn { display: none; } }

/* full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink); color: #fff;
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu[hidden] { display: none; }
.menu-open .site-header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .site-header::before { opacity: 0; }
.menu-inner { max-width: 640px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; gap: 40px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { border-bottom: 1px solid var(--line-light); }
.menu-list a {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 0;
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.1;
  color: #fff; text-decoration: none;
  transform: translateY(14px); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.25s;
}
.menu.is-open .menu-list a { transform: none; opacity: 1; }
.menu-list li:nth-child(2) a { transition-delay: 0.04s; }
.menu-list li:nth-child(3) a { transition-delay: 0.08s; }
.menu-list li:nth-child(4) a { transition-delay: 0.12s; }
.menu-list li:nth-child(5) a { transition-delay: 0.16s; }
.menu-list a:hover { color: var(--sunset); }
.menu-no { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.15em; opacity: 0.55; }
.menu-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: auto; }
.menu-label { margin: 18px 0 0; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; }
.menu-apps { display: flex; gap: 10px; flex-wrap: wrap; }
.menu .pill { color: #fff; border-color: var(--line-light); }
.menu .pill:hover { background: #fff; color: var(--ink); }
.menu-insta, .footer-insta { color: inherit; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; opacity: 0.85; margin-top: 8px; }
.menu-insta:hover, .footer-insta:hover { color: var(--sunset); opacity: 1; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: 100vh;               /* fallback */
  height: 100svh;              /* full screen on phones without the URL-bar jump */
  min-height: 520px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0; visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.4s var(--ease), visibility 0s; z-index: 1; }
.hero-slide picture, .hero-slide img { width: 100%; height: 100%; }
.hero-slide img {
  object-fit: cover; object-position: center;
  transform: scale(1.08);
  transition: transform 9s linear;
}
.hero-slide.is-active img { transform: scale(1); }

.hero-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 18, 22, 0.35) 0%, rgba(8, 18, 22, 0) 28%),
    linear-gradient(0deg, rgba(8, 18, 22, 0.78) 0%, rgba(8, 18, 22, 0.25) 42%, rgba(8, 18, 22, 0) 62%);
}

.hero-content {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding-bottom: calc(118px + env(safe-area-inset-bottom));
}
.hero-caps { position: relative; min-height: 9.5rem; }
.hero-cap {
  position: absolute; inset: auto 0 0 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}
.hero-cap.is-active { opacity: 1; transform: none; transition-delay: 0.35s; pointer-events: auto; }
.hero-cap .eyebrow { color: rgba(255, 255, 255, 0.85); }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 11vw, 5.8rem); line-height: 0.98; letter-spacing: -0.015em;
  color: #fff; margin: 0; max-width: 12em;
  text-wrap: balance;
}
.hero-title em { color: #f3d9c9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-nav {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  display: flex; align-items: center; gap: 18px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
.hero-count { font-size: 0.8125rem; letter-spacing: 0.12em; opacity: 0.8; font-variant-numeric: tabular-nums; }
.hero-count b { font-weight: 500; opacity: 1; }
.hero-dots { display: flex; gap: 6px; flex: 1; max-width: 340px; }
.hero-dot {
  flex: 1; height: 28px; padding: 0; border: 0; background: transparent; position: relative;
}
.hero-dot::before, .hero-dot span {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(255, 255, 255, 0.3); border-radius: 2px;
}
.hero-dot span { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-done span { transform: scaleX(1); }
.hero-dot.is-active span { animation: heroProgress var(--hero-duration, 7s) linear forwards; }
.hero.is-paused .hero-dot.is-active span { animation-play-state: paused; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-arrows { display: none; gap: 10px; margin-left: auto; }
@media (min-width: 700px) {
  .hero-arrows { display: flex; }
  .hero-content { padding-bottom: 140px; }
  .hero-caps { min-height: 11rem; }
}

/* ---------------------------------------------------------------- facts */
.facts { background: var(--ink); color: #fff; }
.facts-list {
  list-style: none; margin: 0; padding-top: 6px; padding-bottom: 6px;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.facts-list li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line-light);
}
.facts-list li:last-child { grid-column: 1 / -1; border-bottom: 0; }
.facts-list i { grid-row: span 2; font-size: 1.25rem; color: var(--sunset); }
.facts-list strong { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1; }
.facts-list span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
@media (min-width: 900px) {
  .facts-list { grid-template-columns: repeat(5, 1fr); padding-top: 14px; padding-bottom: 14px; }
  .facts-list li, .facts-list li:last-child { grid-column: auto; border-bottom: 0; padding: 18px 0; }
  .facts-list li + li { border-left: 1px solid var(--line-light); padding-left: 24px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 84px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 128px 0; } }
.section-head { margin-bottom: 40px; }
@media (min-width: 900px) { .section-head { margin-bottom: 56px; } }

.is-dark { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.is-dark .display, .is-dark h3 { color: #fff; }
.is-dark .eyebrow, .is-dark .display em { color: #e3b79f; }
.is-dark .lead { color: rgba(255, 255, 255, 0.65); }
.is-dark .round-btn { color: #fff; border-color: var(--line-light); }
.is-dark .round-btn:hover { background: #fff; color: var(--ink); }

/* about */
.section-about { background: var(--paper); }
.about-grid { display: grid; gap: 56px; }
.about-text .display { margin-bottom: 26px; }
.about-text > p { max-width: 36em; }
.essentials { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.essentials-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 0.875rem; transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.chip i { color: var(--ocean); }
.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover i { color: #fff; }

.about-media { position: relative; padding-bottom: 22%; }
.about-img-1 { width: 88%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.about-img-2 {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-lg); border: 6px solid var(--paper); box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
}

/* ---------------------------------------------------------------- card rail (Rooms / Features / Places) */
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(82%, 380px);
  gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  --rail-pad: max(var(--gutter), calc((100% - 1360px) / 2 + var(--gutter)));
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad);
  padding: 4px var(--rail-pad) 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-foot { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.rail-progress { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.is-dark .rail-progress { background: var(--line-light); }
.rail-progress span {
  position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--ocean);
  transition: transform 0.15s linear, width 0.2s;
}
.is-dark .rail-progress span { background: #e3b79f; }
.rail-btns { display: flex; gap: 10px; }

@media (min-width: 900px) {
  /* desktop: a calm 3-column gallery grid instead of a rail */
  .section-rooms .rail-track, .section-features .rail-track {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto;
    gap: 28px; overflow: visible; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter);
  }
  .section-rooms .rail-foot, .section-features .rail-foot { display: none; }
  .rail-track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 2 * 24px) / 3.15); gap: 24px; }
}

.card {
  display: block; padding: 0; border: 0; background: none; text-align: left; color: inherit;
}
.card-img { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--stone); aspect-ratio: 4 / 5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img, .card:focus-visible .card-img img { transform: scale(1.05); }
.card-meta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px;
  padding: 18px 2px 0;
}
.card-no { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted); }
.is-dark .card-no { color: rgba(255, 255, 255, 0.5); }
.card-title { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.1; color: var(--ink); }
.is-dark .card-title { color: #fff; }
.card-more {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ocean);
  display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
}
.is-dark .card-more { color: #e3b79f; }
.card-more i { transition: transform 0.4s var(--ease); }
.card:hover .card-more i { transform: translateX(4px); }

@media (min-width: 900px) {
  .card-img { aspect-ratio: 4 / 3.4; }
}

/* ---------------------------------------------------------------- panorama */
.panorama { position: relative; height: 72svh; min-height: 420px; max-height: 820px; overflow: hidden; color: #fff; background: var(--ink); }
.panorama img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.panorama::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 18, 22, 0.65), rgba(8, 18, 22, 0) 60%);
}
.panorama-copy { position: absolute; inset: auto 0 0 0; z-index: 1; padding-bottom: 48px; }
.panorama-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(2.6rem, 10vw, 5.5rem); line-height: 1; margin: 0 0 12px; }
.panorama-sub { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; margin: 0; }

/* ---------------------------------------------------------------- appliances tiles */
.section-appliances { background: var(--sand); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
.tile {
  position: relative; display: flex; flex-direction: column; text-align: left;
  padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-title { display: block; padding: 12px 40px 14px 14px; font-weight: 500; font-size: 0.9375rem; line-height: 1.3; }
.tile-plus {
  position: absolute; right: 10px; bottom: 11px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; background: var(--ocean-soft); color: var(--ocean);
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.tile:hover .tile-plus { background: var(--ocean); color: #fff; transform: rotate(90deg); }

/* ---------------------------------------------------------------- things around */
.section-around { padding-top: 0; background: var(--paper); }
.explore-banner { position: relative; height: 78svh; min-height: 480px; max-height: 900px; color: #fff; overflow: hidden; margin-bottom: 40px; background: var(--ink); }
.explore-banner .cover, .explore-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.explore-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 18, 22, 0.88) 0%, rgba(8, 18, 22, 0.55) 32%, rgba(8, 18, 22, 0) 62%); }
.explore-copy, .panorama-copy, .hero-content { text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35); }
.explore-copy { position: absolute; inset: auto 0 0 0; z-index: 1; padding-bottom: 48px; }
.explore-copy .eyebrow { color: rgba(255, 255, 255, 0.85); }
.explore-copy .display { color: #fff; }
.explore-copy .display em { color: #f3d9c9; }
.explore-copy .lead { color: rgba(255, 255, 255, 0.8); }

.tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 14px; border: 0; background: none;
  font-family: var(--font-display); font-size: 1.45rem; color: var(--muted);
}
.tabs [role="tab"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transition: transform 0.4s var(--ease);
}
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.tab-count { font-family: var(--font-body); font-size: 0.6875rem; padding: 2px 7px; border-radius: 999px; background: var(--stone); color: var(--text); }
[role="tabpanel"] { animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.places { grid-auto-columns: min(84%, 380px); }
.place {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(15, 30, 36, 0.4);
}
.place-img { position: relative; aspect-ratio: 3 / 2; background: var(--stone); }
.place-img img { width: 100%; height: 100%; object-fit: cover; }
.place-dist {
  position: absolute; left: 12px; top: 12px; display: inline-flex; gap: 6px; align-items: center;
  padding: 5px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
}
.place-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.place-sub { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ocean); margin-bottom: 6px; }
.place h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1.1; margin-bottom: 10px; }
.place p { font-size: 0.9375rem; color: var(--muted); flex: 1; }
.place-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 44px; }
.footer-brand .brand-logo { color: #fff; width: 170px; margin-bottom: 24px; }
.footer-brand p { max-width: 34em; font-size: 0.9375rem; }
.footer-heading { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: inherit; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 0.8125rem; opacity: 0.7; }
.heart { color: var(--sunset); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; }
}

/* ---------------------------------------------------------------- detail sheet (modal) */
.sheet {
  padding: 0; margin: 0; border: 0;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: transparent; color: var(--text);
  overflow: visible;
}
.sheet::backdrop { background: rgba(8, 18, 22, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { display: block; }
.sheet[open] .sheet-panel { animation: sheetIn 0.5s var(--ease); }
.sheet.is-closing .sheet-panel { animation: sheetOut 0.3s var(--ease) forwards; }
.sheet[open]::backdrop { animation: fadeIn 0.4s var(--ease); }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetOut { to { transform: translateY(30px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }

.sheet-panel {
  position: absolute; inset: 0;
  background: var(--paper);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
.sheet-gallery { position: relative; flex: none; background: var(--ink); }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 4 / 3.2; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -3px; }
.gallery-track figure { margin: 0; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count {
  position: absolute; left: 14px; bottom: 14px; padding: 4px 11px; border-radius: 999px;
  font-size: 0.75rem; letter-spacing: 0.08em; color: #fff; background: rgba(8, 18, 22, 0.55);
  font-variant-numeric: tabular-nums;
}
.gallery-prev, .gallery-next { position: absolute; top: 50%; margin-top: -23px; display: none; background: rgba(8, 18, 22, 0.25); }
.gallery-prev { left: 14px; } .gallery-next { right: 14px; }
.sheet.has-many .gallery-prev, .sheet.has-many .gallery-next { display: none; }
.sheet:not(.has-many) .gallery-count { display: none; }

.sheet-body { padding: 30px var(--gutter) 24px; flex: 1; }
.sheet-body .display { font-size: clamp(2.2rem, 8vw, 3.2rem); margin-bottom: 22px; }
.sheet-text { max-width: 40em; }
.sheet-text h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; margin: 30px 0 12px; }
.sheet-text ul, .sheet-text ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; counter-reset: step; }
.sheet-text li { position: relative; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--line); }
.sheet-text li:last-child { border-bottom: 0; }
.sheet-text ul li::before {
  content: ""; position: absolute; left: 10px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--ocean);
}
.sheet-text ol li { counter-increment: step; }
.sheet-text ol li::before {
  content: counter(step); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; background: var(--ocean-soft); color: var(--ocean);
}
.note {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg);
  background: #f7e7df; color: #5a2a1b; font-size: 0.9375rem;
}
.note i { color: var(--danger); font-size: 1.1rem; line-height: 1.4; }

.sheet-foot {
  position: sticky; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line); background: rgba(251, 249, 245, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-step {
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 var(--gutter);
  border: 0; background: none; text-align: left; font-size: 0.875rem; color: var(--ink);
  overflow: hidden;
}
.sheet-step span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-step.is-next { justify-content: flex-end; text-align: right; border-left: 1px solid var(--line); }
.sheet-step:hover { color: var(--ocean); }
.sheet-step[hidden] { display: flex; visibility: hidden; }

.sheet-close {
  position: fixed; z-index: 5;
  top: calc(12px + env(safe-area-inset-top)); right: 12px;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center; font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease);
}
.sheet-close:hover { transform: rotate(90deg); }

@media (min-width: 900px) {
  .sheet {
    width: min(1180px, calc(100% - 64px)); height: min(760px, calc(100% - 64px));
    margin: auto; inset: 0; position: fixed;
  }
  .sheet-panel {
    border-radius: 14px; overflow: hidden;
    display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr auto;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
  }
  .sheet-gallery { grid-row: 1 / 3; }
  .gallery-track { aspect-ratio: auto; height: 100%; }
  .sheet.has-many .gallery-prev, .sheet.has-many .gallery-next { display: grid; }
  .sheet-body { overflow-y: auto; padding: 56px 52px 32px; }
  .sheet-step { padding: 0 28px; }
  .sheet-close { position: absolute; top: 16px; right: 16px; }
}

/* ---------------------------------------------------------------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-slide img { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
