/* Destination pages. Loads after styles.css and reuses its tokens, nav, buttons and hero shell. */

:root {
  --cream: #faf6f0;
  --sand: #f1e9de;
  --line: #e6dccf;
  --ink-dark: #1d1814;
  --muted: #6f6359;
  --accent-ink: #b5651d;      /* amber, readable on cream */
  --night: #14110f;
}

.page-dest { background: var(--cream); color: var(--ink-dark); }
.page-dest img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: var(--ink); }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-ink);
}
.kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.section--night .kicker { color: var(--accent); }

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2 em { font-style: italic; color: var(--accent-ink); }
.section--night .h2 em { color: #ffe2bf; }
.lede { margin: 20px 0 0; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.section--night .lede { color: var(--ink-soft); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Property hero (reuses .hero from styles.css) ---------- */
.hero--property { min-height: 100svh; color: var(--ink); }
.hero--property .hero__title { font-size: clamp(3rem, 8.4vw, 7rem); }
.hero--property .hero__title span:last-child { font-size: 0.4em; margin-top: 0.3em; letter-spacing: -0.01em; }
.hero--property .hero__content { max-width: 820px; }
.hero--property .hero__sub { max-width: 560px; }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) 0.85s forwards; }
.chip {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chip b { color: var(--accent); font-weight: 600; }

/* Hero actions (the booking widget lives further down the page) */
.hero__action { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: clamp(8px, 1vw, 16px); opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) 0.95s forwards; }
.hero__action .btn { display: inline-block; padding: 16px 30px; font-size: 15px; }

/* ---------- Booking widget section ---------- */
.book { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.book__facts { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.book__facts li { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.book__facts b { font-weight: 600; }
.book__facts span { color: var(--muted); }
.book__help { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.btn--outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 1.5px solid var(--ink-dark); background: transparent; color: var(--ink-dark); text-decoration: none; }
.btn--outline:hover { background: var(--ink-dark); color: #fff; transform: translateY(-1px); }
.btn--outline span { transition: transform 0.2s; }
.btn--outline:hover span { transform: translateX(3px); }
.section--white { background: #fff; }
.book__widget { min-width: 0; min-height: 360px; }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__body p { margin: 20px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 580px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stat { padding: 28px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 28px; }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }
.stat__label { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rating { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.rating__star { color: var(--accent-ink); font-size: 18px; }
.rating strong { color: var(--ink-dark); }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(280px, 30vw, 400px); gap: 16px; }
.feature { position: relative; grid-column: span 2; border-radius: 24px; overflow: hidden; background: var(--night); isolation: isolate; }
.feature--wide { grid-column: span 4; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 8, 6, 0.78) 0%, rgba(10, 8, 6, 0.1) 55%, rgba(10, 8, 6, 0) 100%); }
.feature:hover img { transform: scale(1.06); }
.feature__text { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.4vw, 32px); color: var(--ink); }
.feature__title { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.01em; }
.feature__copy { margin: 0; max-width: 440px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 14px; }
.gallery a { display: block; position: relative; margin-bottom: 14px; border-radius: 16px; overflow: hidden; break-inside: avoid; background: #2a231d; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform 0.9s var(--ease), opacity 0.4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a:focus-visible, .btn:focus-visible, .nav a:focus-visible, .lightbox button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(10, 8, 6, 0.94); }
.lightbox.is-open { display: grid; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--ink); font-size: 22px; line-height: 1;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Sleeping ---------- */
.beds { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.bed { padding: 28px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.bed__num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent-ink); }
.bed__type { margin-top: 12px; font-weight: 600; font-size: 15px; }
.bed__note { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.beds__foot { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
/* Sleeping arrangements: same look as the stats above, as a second block in the same panel */
.stats__title { margin: 36px 0 0; padding-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.bedlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bedlist li { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bedlist b { flex: none; min-width: 40px; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--accent-ink); }
.bedlist span { font-weight: 600; }
.bedlist small { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }
.stats__foot { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Amenities ---------- */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.amenities h3 { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #d9ccbb; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.4em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}

/* ---------- Location ---------- */
.near { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.near__item { padding: 22px 22px 20px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.near__time { font-family: var(--serif); font-size: 2.2rem; line-height: 1; letter-spacing: -0.02em; }
.near__time small { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-left: 6px; }
.near__place { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.locmap { margin: 0 0 28px; }
.locmap__frame { position: relative; width: 100%; height: clamp(300px, 42vw, 460px); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #e8e4dc; }
.locmap__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.locmap__frame.is-active iframe { pointer-events: auto; }
.locmap figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.amenities__more { margin: clamp(28px, 4vw, 40px) 0 0; }
.amenities__more .btn { display: inline-block; padding: 16px 30px; font-size: 15px; background: var(--ink-dark); color: #fff; }
.amenities__more .btn:hover { background: #3a2f27; transform: translateY(-1px); }
.near__note { margin: 28px 0 0; max-width: 640px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* ---------- Good to know ---------- */
.know { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.rules { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.rules b { font-weight: 600; }
.rules span { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; isolation: isolate; text-align: center; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 8, 6, 0.68); }
.cta .h2 { max-width: 760px; margin-inline: auto; }
.cta .lede { margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.cta .btn { display: inline-block; font-size: 15px; padding: 16px 30px; }
.cta .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.35; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--ink-soft); padding-block: 48px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer .nav__logo { margin-right: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; }
.footer__links a:hover { color: var(--ink); }
.footer__fine { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* Footer contact details */
.footer__contact { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-size: 14.5px; }
.footer__contact a { color: var(--ink); }
.footer__contact a:hover, .footer__fine a:hover { text-decoration: underline; }
.footer__fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Floating booking shortcut, shown once the hero scrolls away */
.float-bar { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: flex; gap: 10px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s; }
.float-bar.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.float-bar__btn { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); text-align: center; }
.float-bar__btn[hidden] { display: none; }
/* the second button: dark, so it stands out on light and dark sections alike */
.float-bar__btn--photos { background: rgba(20, 17, 15, 0.92); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.float-bar__btn--photos:hover { background: #000; transform: translateY(-1px); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro, .know, .book { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .features { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .feature, .feature--wide { grid-column: span 1; }
  .feature--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery { column-gap: 10px; }
  .gallery a { margin-bottom: 10px; border-radius: 12px; }
  .features { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .feature, .feature--wide { grid-column: span 1; }
  .hero__action .btn { flex: 1 1 100%; text-align: center; }
  .hero__action .btn--ghost { flex: 1 1 calc(50% - 6px); padding-left: 12px; padding-right: 12px; }
  .rules li { grid-template-columns: 1fr; gap: 4px; }
  .lightbox__prev { left: 10px; } .lightbox__next { right: 10px; }
  .float-bar { left: 16px; right: 16px; gap: 8px; }
  .float-bar__btn { flex: 1 1 0; padding: 14px 10px; font-size: 14px; white-space: normal; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .chips, .hero__action { opacity: 1; transform: none; }
}

/* ---------- Booking section: acknowledgement and inline message form ---------- */
.book__facts-rules > span > span { display: block; }
.book__facts-rules > span > span + span { margin-top: 2px; }
/* the one-line agreement note under the booking widget */
.book__widget { container-type: inline-size; }
.book__ack {
  margin: 14px 0 0; text-align: center; color: var(--muted); line-height: 1.5;
  font-size: 11px;                                  /* fallback */
  font-size: clamp(10px, 2.55cqw, 12.5px);          /* scales with the widget so it stays on one line when there is room */
}
.book__ack a { color: var(--ink-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.book__ack a:hover { color: var(--accent-ink); }

.book__help { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.book__msg { margin-top: 24px; padding: clamp(18px, 3vw, 28px); border-radius: 20px; background: var(--cream); border: 1px solid var(--line); animation: msgIn 0.35s var(--ease); }
.book__msg[hidden] { display: none; }
.book__msg .form { margin-top: 0; gap: 14px; }
.book__msg .input input, .book__msg .input textarea { background: #fff; }
.book__msg .form__submit { justify-self: stretch; }
@keyframes msgIn { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .book__msg { animation: none; } }
@media (max-width: 900px) { .book__msg .input input, .book__msg .input textarea { font-size: 16px; } }

/* ---------- Gallery in reading order (see js/gallery-layout.js) ---------- */
.gallery.is-masonry { columns: auto; display: flex; gap: 14px; align-items: flex-start; }
.gallery__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gallery__col a { margin-bottom: 0; }
@media (max-width: 560px) {
  .gallery.is-masonry, .gallery__col { gap: 10px; }
}
