/* ============================================================
   Port Melbourne Villa — a postcard from Kallikratia
   ============================================================ */

:root {
  --plaster: #FAF9F5;
  --plaster-deep: #F2EFE7;
  --seaglass: #E7F0F0;
  --sand: #EFE9DD;
  --ink: #20313B;
  --ink-soft: #51626C;
  --aegean: #0F5A73;
  --aegean-deep: #0B4459;
  --pen: #2B4C9B;
  --hibiscus: #C0393E;
  --wood: #A8794F;
  --line: #DCD6C8;

  /* GFS Didot covers the Greek glyphs Marcellus lacks; Noto Sans Mono does
     the same for Fragment Mono — browsers fall back per glyph. */
  --font-display: "Marcellus", "GFS Didot", "Georgia", serif;
  --font-body: "Albert Sans", system-ui, sans-serif;
  --font-mono: "Fragment Mono", "Noto Sans Mono", "Courier New", monospace;
  --font-pen: "Caveat", cursive;

  --maxw: 1360px;
  --maxw-hero: 1120px;
  --radius: 14px;
  --shadow: 0 10px 32px rgba(32, 49, 59, .10);
  --shadow-soft: 0 4px 14px rgba(32, 49, 59, .07);
}

* { box-sizing: border-box; }

/* author display rules (e.g. .btn) must not defeat the hidden attribute */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth; scroll-padding-top: 84px;
  /* the polaroid deck's rotated cards spill sideways by design. Left uncontained
     they widen the document past the layout viewport, which lets mobile pan
     horizontally — and a position:fixed nav is pinned to the layout viewport, so
     it slides out of view as soon as the page drifts. `clip` (not `hidden`) keeps
     the viewport as the scroll container, so fixed/sticky keep working. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); letter-spacing: .01em; }
h3 { font-size: 1.35rem; }
h4 { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--aegean); margin: 0 0 .7em; }
p { margin: 0 0 1em; }
a { color: var(--aegean); }

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

.section { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.section--tint { background: var(--seaglass); }
/* land nav-link jumps just under the header instead of a screen of padding:
   pull the anchor up past the section's own top padding */
.section[id] { scroll-margin-top: calc(-12px - clamp(3rem, 6.5vw, 5rem)); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--aegean);
  margin: 0 0 1.1rem;
}
.eyebrow--center { text-align: center; margin-bottom: 3rem; }

.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head p { color: var(--ink-soft); }

/* ---------- host's pen ---------- */
.pen {
  font-family: var(--font-pen);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--pen);
  transform: rotate(-2deg);
}
.pen--note { margin-top: -.2rem; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none;
  padding: .78em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--aegean); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--aegean-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--plaster); }
.btn--whatsapp { background: #1FA855; color: #fff; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  padding: .42em 1.05em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--plaster);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--aegean); color: var(--aegean); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--plaster); }
.chip__swatch { display: inline-block; width: .62em; height: .62em; border-radius: 50%; margin-right: .45em; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: color-mix(in srgb, var(--plaster) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.7rem clamp(1.1rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1.5rem;
  transition: padding .3s ease;
}
.nav.is-scrolled .nav__inner { padding-top: .8rem; padding-bottom: .8rem; }
.nav__brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: 1.18rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav__brand em { font-style: normal; color: var(--aegean); }
.nav__mark { width: 1.5em; height: 1.5em; color: var(--aegean); }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a {
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
}
.nav__links a:hover { color: var(--aegean); }
.nav__cta { padding: .55em 1.25em; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: .5rem; margin-left: auto; cursor: pointer;
}
.nav__burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* full-screen postcard menu */
.nav__mobile {
  /* the nav's backdrop-filter makes it the containing block for fixed
     children, so size against the viewport explicitly */
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
  z-index: -1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 5.5rem 1.6rem 2rem;
  background: var(--plaster);
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.nav.menu-open .nav__mobile {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s ease, transform .3s ease;
}
.nav__mobile-links { display: flex; flex-direction: column; }
.nav__mobile-links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .85rem .15rem;
  font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1;
  color: var(--ink); text-decoration: none;
  border-bottom: 1.5px dotted var(--line);
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.nav__mobile-eyebrow {
  order: 1; font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .14em; color: var(--aegean); text-align: right;
}
.nav.menu-open .nav__mobile-links a { opacity: 1; transform: none; }
.nav.menu-open .nav__mobile-links a:nth-child(1) { transition-delay: .05s; }
.nav.menu-open .nav__mobile-links a:nth-child(2) { transition-delay: .1s; }
.nav.menu-open .nav__mobile-links a:nth-child(3) { transition-delay: .15s; }
.nav.menu-open .nav__mobile-links a:nth-child(4) { transition-delay: .2s; }
.nav.menu-open .nav__mobile-links a:nth-child(5) { transition-delay: .25s; }
.nav__mobile-foot { display: grid; gap: .9rem; }
.nav__mobile-foot .btn { text-align: center; }
.nav__mobile-foot .pen { margin: 0; text-align: center; font-size: 1.35rem; }

@media (prefers-reduced-motion: reduce) {
  .nav__mobile, .nav__mobile-links a { transition: none; transform: none; }
}

/* ============================================================
   HERO — the postcard
   ============================================================ */
.hero { padding: 8.6rem clamp(1.1rem, 4vw, 2.5rem) 0; }

.hero__card {
  max-width: var(--maxw-hero); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
/* postcard divider */
.hero__card::after {
  content: ""; position: absolute; top: 8%; bottom: 8%; left: 46%;
  border-left: 1.5px dashed var(--line);
}

.hero__left {
  padding: clamp(1.8rem, 4vw, 3.4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__title {
  /* width-aware so the greeting never clips inside the postcard column */
  font-size: clamp(2.7rem, -0.85rem + 7.3vw, 5.6rem);
  /* top margin lives on the h1 no longer: the eyebrow now sits inside it */
  margin: 0 0 .25em;
}
/* the location eyebrow is part of the h1 for SEO; restore its old
   paragraph rendering (block + body line-height) inside the heading */
.hero__title .eyebrow { display: block; line-height: 1.65; }
.hero__lede { color: var(--ink-soft); max-width: 34em; }

.hero__addr {
  margin: 2rem 0 0;
  display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; row-gap: .55rem;
  align-items: baseline;
  font-family: var(--font-pen); font-size: 1.35rem; color: var(--pen);
}
.hero__addr-to { grid-row: 1; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .15em; color: var(--ink-soft); text-transform: uppercase; }
.hero__addr-line { grid-column: 2; border-bottom: 1.5px dotted var(--line); padding-bottom: .1em; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }

/* photo height follows the viewport so hero + facts always fit one screen */
.hero__right { position: relative; min-height: clamp(380px, calc(100vh - 200px), 580px); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero__stamp { position: absolute; top: 1.4rem; right: 1.4rem; width: clamp(96px, 12vw, 130px); }
.stamp {
  position: relative; padding: 8px 8px 21px;
  transform: rotate(3deg);
  filter: drop-shadow(0 4px 10px rgba(32,49,59,.22));
}
/* white stamp paper with perforated edge — holes tile from the corners, so
   the rim scallops; the photo sits on top and covers the interior holes */
.stamp::before {
  content: ""; position: absolute; inset: 0; background: #fff; padding: 6.5px;
  /* two mask layers union: a solid center + a hole grid that only stays
     visible on the outer rim, which scallops the edge */
  -webkit-mask:
    radial-gradient(circle 4px at 0 0, transparent 97%, #000) -6.5px -6.5px / 13px 13px,
    linear-gradient(#000 0 0) content-box;
          mask:
    radial-gradient(circle 4px at 0 0, transparent 97%, #000) -6.5px -6.5px / 13px 13px,
    linear-gradient(#000 0 0) content-box;
}
.stamp img { position: relative; aspect-ratio: 1 / 1.08; width: 100%; object-fit: cover; }
.stamp__value {
  position: absolute; bottom: 3px; left: 0; right: 0;
  text-align: center; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em;
  color: var(--hibiscus);
}
.postmark {
  position: absolute; width: 108%; top: 46%; left: -42%;
  color: var(--hibiscus); opacity: .82;
  transform: rotate(-11deg);
  fill: currentColor;
  font-family: var(--font-mono);
}
.hero__pen {
  position: absolute; bottom: 1rem; right: 1.4rem;
  margin: 0; font-size: 1.6rem; color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}

/* on shorter screens, compress the postcard so hero + facts fit one view */
@media (min-width: 921px) and (max-height: 900px) {
  .hero { padding-top: 6.4rem; }
  .hero__left { padding: clamp(1.5rem, 2.6vw, 2.4rem) clamp(1.7rem, 3vw, 2.8rem); }
  .hero__title { font-size: clamp(2.5rem, -0.85rem + 6.4vw, 4.4rem); }
  .hero__lede { font-size: .96rem; }
  .hero__addr { margin-top: 1.2rem; row-gap: .45rem; font-size: 1.2rem; }
  .hero__actions { margin-top: 1.6rem; }
  .hero__actions .btn { padding: .62em 1.3em; font-size: .92rem; }
  .facts { padding-top: .8rem; }
}

/* facts strip */
.facts {
  max-width: var(--maxw-hero); margin: 0 auto; padding: 1.1rem .4rem 0;
  list-style: none;
  display: flex; flex-wrap: wrap; gap: .4rem 2.6rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em;
  color: var(--ink-soft);
}
.facts strong { color: var(--ink); font-weight: 400; font-size: 1.05rem; }
.facts li { display: flex; align-items: baseline; gap: .45em; }

/* ============================================================
   STORY & HIGHLIGHTS
   ============================================================ */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: 3rem; }
.story h2 { max-width: 9em; }
.story__text { color: var(--ink-soft); columns: 1; }

.high-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.high {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
}
/* .high is also a .reveal — the transition list must keep opacity for the
   scroll reveal while making the hover lift snappier than the reveal */
.high-grid .high {
  transition: transform .4s cubic-bezier(.2, .7, .3, 1), box-shadow .4s ease, opacity .6s ease;
}
.high-grid .high:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.high__frame { position: relative; overflow: hidden; }
/* soft scrim so the pen note stays legible on bright photos */
.high__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(32, 49, 59, .48), transparent 36%);
}
.high img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .3, 1); }
.high-grid .high:hover img { transform: scale(1.05); }
/* .high p would win on specificity, so anchor the pen note to .high too */
.high .high__pen {
  position: absolute; left: 1.1rem; bottom: .55rem; margin: 0; z-index: 1;
  color: #fff; font-size: 1.4rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.high figcaption { padding: 1.2rem 1.4rem 1.4rem; }
.high h3 { margin-bottom: .3em; }
.high p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ============================================================
   GALLERY
   ============================================================ */
/* items are distributed into row-first columns by js/main.js */
.masonry { display: flex; gap: 1rem; align-items: flex-start; }
.masonry__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.masonry__item {
  position: relative;
  border-radius: 10px; overflow: hidden; cursor: zoom-in;
  border: 0; padding: 0; background: none; display: block; width: 100%;
}
.masonry__item img { width: 100%; transition: transform .35s ease; }
.masonry__item:hover img { transform: scale(1.035); }
.masonry__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(32,49,59,.62), transparent 42%);
  opacity: 0; transition: opacity .25s ease;
}
.masonry__item:hover::after, .masonry__item:focus-visible::after { opacity: 1; }
.masonry__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 2rem .95rem .75rem; text-align: left;
  color: #fff; font-size: .88rem; font-weight: 500; line-height: 1.35;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.masonry__item:hover .masonry__cap, .masonry__item:focus-visible .masonry__cap {
  opacity: 1; transform: none;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(18, 27, 33, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  opacity: 0; transition: opacity .26s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); }
.lightbox img {
  max-height: 82vh; max-width: 100%; margin: 0 auto; border-radius: 6px;
  cursor: zoom-in;
  transition: transform .35s cubic-bezier(.2, .8, .25, 1);
}
.lightbox.is-zoomed img { cursor: zoom-out; }
.lightbox figcaption {
  color: #C8D4DA; text-align: center; padding-top: .9rem; font-size: .95rem;
}
.lightbox.is-zoomed figcaption { visibility: hidden; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer; padding: .4rem .9rem;
  opacity: .8; transition: opacity .15s;
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: .8rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lightbox__nav--prev { left: .6rem; }
.lightbox__nav--next { right: .6rem; }

/* ============================================================
   ROOMS & AMENITIES
   ============================================================ */
/* the polaroid deck — holiday photos of each room, shuffled by clicking */
.roomdeck {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center;
  margin-bottom: 3.2rem;
}
.roomdeck__stack {
  position: relative; width: 100%; height: 500px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.polaroid {
  position: absolute; left: 50%; top: 50%;
  width: min(360px, 80%);
  background: #fff; padding: 12px 12px 54px;
  box-shadow: 0 14px 34px rgba(32, 49, 59, .2);
  transition: transform .55s cubic-bezier(.22, .8, .3, 1);
  will-change: transform;
}
.polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.polaroid__cap {
  position: absolute; left: 0; right: 0; bottom: 10px;
  text-align: center;
  font-family: var(--font-pen); font-size: 1.4rem; color: var(--pen);
}
.roomdeck__tag {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--hibiscus);
}
.roomdeck__name { font-size: 1.9rem; margin: .35em 0 .3em; }
.roomdeck__desc { color: var(--ink-soft); font-size: .98rem; margin: 0; min-height: 3.2em; }
.roomdeck__info.swap .roomdeck__tag,
.roomdeck__info.swap .roomdeck__name,
.roomdeck__info.swap .roomdeck__desc { animation: roomswap .4s ease; }
@keyframes roomswap {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.roomdeck__nav { display: flex; align-items: center; gap: .7rem; margin-top: 1.5rem; }
.roomdeck__arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); background: none;
  font-size: 1.35rem; line-height: 1; color: var(--ink); cursor: pointer;
}
.roomdeck__arrow:hover { border-color: var(--aegean); color: var(--aegean); }
.roomdeck__dots { display: flex; gap: .35rem; }
.roomdeck__dot {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em;
  padding: .45em .7em; border-radius: 999px;
  border: 1.5px solid var(--line); background: none; color: var(--ink-soft);
  cursor: pointer;
}
.roomdeck__dot:hover { border-color: var(--aegean); color: var(--aegean); }
.roomdeck__dot[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--plaster); }
.roomdeck__pen { margin: 1.4rem 0 0; font-size: 1.3rem; }

.amenities {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  border-top: 1px solid var(--line); padding-top: 2.4rem;
}
.amenity-group ul { list-style: none; margin: 0; padding: 0; }
.amenity-group li {
  padding: .34em 0 .34em 1.5em; position: relative; color: var(--ink-soft); font-size: .97rem;
}
.amenity-group li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: .9em; height: .5em;
  border-left: 2px solid var(--aegean); border-bottom: 2px solid var(--aegean);
  transform: rotate(-45deg) scale(.8);
}

/* ============================================================
   MAP — host's notebook
   ============================================================ */
.mapbox {
  max-width: 1500px; margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.mapbox__side {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  max-height: 620px;
}
.chips--map { padding: 1rem 1rem .4rem; margin-bottom: 0; }
.poi-list { list-style: none; margin: 0; padding: .4rem 0 0; overflow-y: auto; flex: 1; }
.poi-item { border-top: 1px solid var(--plaster-deep); }
.poi-item button {
  display: grid; grid-template-columns: auto 1fr; gap: .3rem .75rem;
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: .85rem 1.1rem; font-family: var(--font-body);
}
.poi-item button:hover, .poi-item.is-active button { background: var(--seaglass); }
.poi-item .poi-pin {
  grid-row: span 2; align-self: start; margin-top: .15rem;
  width: 26px; height: 26px; border-radius: 50% 50% 50% 4px;
  display: grid; place-items: center; color: #fff;
}
.poi-item .poi-pin svg { width: 14px; height: 14px; }
.poi-item .poi-name { font-weight: 700; font-size: .98rem; color: var(--ink); }
.poi-item .poi-note { font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.poi-item .poi-penline { font-family: var(--font-pen); font-size: 1.15rem; color: var(--pen); grid-column: 2; }

.mapbox__map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
#mapCanvas { width: 100%; height: 620px; }
.mapbox__pen {
  position: absolute; top: .55rem; left: .9rem; z-index: 5; margin: 0;
  font-size: 1.5rem;
  background: rgba(250, 249, 245, .88); border-radius: 8px; padding: .1em .55em;
  pointer-events: none;
}

/* map markers */
.marker { width: 34px; height: 34px; cursor: pointer; }
.marker__pin {
  width: 100%; height: 100%; border-radius: 50% 50% 50% 4px;
  display: grid; place-items: center; color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.3);
  transition: transform .15s ease;
}
.marker:hover .marker__pin { transform: scale(1.15); }
.marker__pin svg { width: 17px; height: 17px; }
.marker--home { width: 46px; height: 46px; z-index: 3; }
.marker--home .marker__pin { background: var(--ink); border-radius: 50% 50% 50% 6px; }
.marker--home .marker__pin svg { width: 24px; height: 24px; }

.maplibregl-popup-content {
  font-family: var(--font-body); border-radius: 10px; padding: .9rem 1.05rem;
  box-shadow: var(--shadow);
}
.maplibregl-popup-content h5 { margin: 0 0 .25em; font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.maplibregl-popup-content p { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.maplibregl-popup-content .poi-penline { font-family: var(--font-pen); font-size: 1.1rem; color: var(--pen); display: block; margin-top: .2em; }

/* ============================================================
   AVAILABILITY & INQUIRY
   ============================================================ */
.stay { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }

.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.cal__month { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.3rem; box-shadow: var(--shadow-soft); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.cal__title { font-family: var(--font-display); font-size: 1.15rem; }
.cal__btn {
  background: none; border: 1.5px solid var(--line); border-radius: 8px;
  width: 34px; height: 34px; font-size: 1.15rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.cal__btn:hover:not(:disabled) { border-color: var(--aegean); color: var(--aegean); }
.cal__btn:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__dow {
  font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-soft); text-align: center; padding: .3em 0 .6em;
}
.cal__day {
  aspect-ratio: 1; border: 0; background: none; border-radius: 8px;
  font-family: var(--font-body); font-size: .92rem; color: var(--ink);
  cursor: pointer; position: relative;
}
.cal__day:hover:not(:disabled):not(.is-selected):not(.is-inrange) { background: var(--seaglass); }
.cal__day:disabled { color: #C3BFB2; cursor: default; }
.cal__day.is-booked { color: #C3BFB2; text-decoration: line-through; text-decoration-color: var(--hibiscus); text-decoration-thickness: 1.5px; }
.cal__day.is-today::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--wood);
}
.cal__day.is-inrange { background: var(--seaglass); border-radius: 0; }
.cal__day.is-selected { background: var(--aegean); color: #fff; }
.cal__day.is-checkin { border-radius: 8px 0 0 8px; }
.cal__day.is-checkout { border-radius: 0 8px 8px 0; }
.cal__day.is-checkin.is-checkout { border-radius: 8px; }

.cal__legend {
  display: flex; gap: 1.6rem; margin-top: 1rem;
  font-size: .85rem; color: var(--ink-soft); flex-wrap: wrap;
}
.cal__legend span { display: flex; align-items: center; gap: .45em; }
.dot { width: .8em; height: .8em; border-radius: 3px; display: inline-block; }
.dot--free { background: #fff; border: 1.5px solid var(--line); }
.dot--booked { background: repeating-linear-gradient(45deg, #E7E3D8 0 3px, #fff 3px 6px); border: 1.5px solid var(--line); }
.dot--sel { background: var(--aegean); }

.stay__panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.7rem 1.8rem 1.9rem;
  position: sticky; top: 92px;
}
.stay__title { margin-bottom: 1rem; }
.stay__dates {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; align-items: center;
  margin: 0 0 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--plaster-deep);
}
.stay__dates dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.stay__dates dd { margin: .2em 0 0; font-family: var(--font-display); font-size: 1.1rem; }
.stay__arrow { color: var(--wood); font-size: 1.3rem; }

.stay__guests { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; font-weight: 500; }
.stepper { display: flex; align-items: center; gap: .4rem; }
.stepper button {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line);
  background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.stepper button:hover:not(:disabled) { border-color: var(--aegean); color: var(--aegean); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 2.2em; text-align: center; font-weight: 700; font-size: 1.05rem; }

.stay__price { background: var(--plaster); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.stay__price-row { display: flex; justify-content: space-between; font-size: .95rem; color: var(--ink-soft); }
.stay__price-row--total { margin-top: .5rem; padding-top: .6rem; border-top: 1px dashed var(--line); color: var(--ink); font-size: 1.05rem; }
.stay__price-note { margin: .7rem 0 0; font-size: .8rem; color: var(--ink-soft); }

.stay__hint { color: var(--ink-soft); font-size: .92rem; }
.stay__actions { display: grid; gap: .7rem; margin-top: 1.1rem; }
.stay__actions .btn { text-align: center; }
.stay__pen { margin: 1rem 0 0; font-size: 1.3rem; }
.stay__platforms {
  margin: 1.1rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--plaster-deep);
  font-size: .85rem; color: var(--ink-soft);
}
.stay__platforms a { font-weight: 500; white-space: nowrap; }

/* ============================================================
   GOOD TO KNOW + FOOTER
   ============================================================ */
/* the stay as an itinerary: four stops on a dashed travel route */
.journey {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; position: relative;
}
.journey::before {
  content: ""; position: absolute; top: 28px; left: 12.5%; right: 12.5%;
  border-top: 2px dashed var(--line);
}
.journey__step { position: relative; text-align: center; padding: 0 .4rem; }
.journey__icon {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 50%; background: #fff; border: 1.5px solid var(--line);
  color: var(--aegean);
}
.journey__icon svg { width: 24px; height: 24px; }
.journey__num {
  display: block; font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .18em; color: var(--hibiscus); margin-bottom: .45em;
}
.journey__step h4 { color: var(--ink); margin-bottom: .5em; }
.journey__step p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.journey__pen { text-align: center; margin: 2.4rem 0 0; font-size: 1.4rem; }

.footer { background: var(--ink); color: #B9C6CE; padding: 3.4rem 0 0; }
.footer a { color: #E6EDF1; }
.footer h4 { color: #7FB6C4; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem;
  font-size: .93rem; padding-bottom: 2.6rem;
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.footer__col p { margin: 0; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__brand { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin: 0; }
.footer__brand em { font-style: normal; color: #7FB6C4; }
.footer__pen { color: #9DB4E8; font-size: 1.35rem; margin-top: .5rem; }
.footer__platforms { display: flex; gap: 1.2rem; margin-top: .5rem; }
.footer__bar { border-top: 1px solid rgba(185, 198, 206, .18); }
.footer__bar-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 2rem;
  padding-top: 1.1rem; padding-bottom: 1.2rem;
  font-size: .8rem; opacity: .75;
}

/* ============================================================
   REVEALS & MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .masonry__item img, .marker__pin, .nav__inner, .polaroid { transition: none; }
  .lightbox, .lightbox img, .high-grid .high, .high img { transition: none; }
  .roomdeck__info.swap .roomdeck__tag,
  .roomdeck__info.swap .roomdeck__name,
  .roomdeck__info.swap .roomdeck__desc { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .amenities { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-top: 6.8rem; }
  .hero__card { grid-template-columns: 1fr; }
  .hero__card::after { display: none; }
  .hero__right { min-height: 340px; order: -1; }
  .hero__stamp { top: 1rem; right: 1rem; }

  .story { grid-template-columns: 1fr; margin-bottom: 2.2rem; }
  .high-grid { grid-template-columns: 1fr; }
  .high img { aspect-ratio: 16 / 9; }

  .mapbox { grid-template-columns: 1fr; }
  .mapbox__side { max-height: none; order: 2; }
  .poi-list { max-height: 320px; }
  #mapCanvas { height: 440px; }

  .stay { grid-template-columns: 1fr; }
  .stay__panel { position: static; }
  .cal { gap: 1.2rem; }

  .roomdeck { grid-template-columns: 1fr; gap: 2rem; }
  .roomdeck__stack { height: 420px; }
  .polaroid { width: min(320px, 84%); }

  /* the itinerary turns vertical: route line down the left */
  .journey { grid-template-columns: 1fr; gap: 1.7rem; }
  .journey::before {
    top: 28px; bottom: 28px; left: 28px; right: auto;
    border-top: none; border-left: 2px dashed var(--line);
  }
  .journey__step {
    display: grid; grid-template-columns: 56px 1fr; column-gap: 1.2rem;
    text-align: left; padding: 0;
  }
  .journey__icon { margin: 0; grid-column: 1; grid-row: 1 / span 3; }
  .journey__num, .journey__step h4, .journey__step p { grid-column: 2; }
  .journey__num { margin-bottom: .35em; }
  .journey__pen { text-align: left; margin-top: 1.8rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cal { grid-template-columns: 1fr; }
  .cal__month--next { display: none; }
  .amenities { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer__bar-inner { flex-direction: column; }
  .facts { gap: .3rem 1.6rem; font-size: .76rem; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .lightbox__nav { font-size: 2.6rem; }
}
