/* Version: 4 — 2026-08-17 */
/* ============================================
   CA' REMURIN — design tokens
   (same palette/fonts as Lolivo, by design — see project notes)
   ============================================ */
:root {
  --limestone:      #F3EEE3;
  --limestone-deep: #E9E1D0;
  --ink:             #2A2823;
  --olive:           #5B6B43;
  --gold:            #B89456;
  --cream:           #FBF8F2;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-h: 64px;
  --gutter: 20px;
  --max-w: 1240px;
}

@media (min-width: 768px) {
  :root {
    --header-h: 84px;
    --gutter: 40px;
  }
}

/* ============================================
   Reset / base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* anchor targets shouldn't hide behind the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
/* h2 anchors need extra margin to land above the eyebrow label */
h2[id] { scroll-margin-top: calc(var(--header-h) + 32px); }

/* accessibility: visible focus state for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

/* accessibility: skip link, hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 1000;
  font-size: 0.9rem;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}

/* ============================================
   SECTION 1 — Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: transparent;
  transition: background-color 320ms ease, box-shadow 320ms ease;
}
.site-header.is-scrolled {
  background-color: rgba(243, 238, 227, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(42, 40, 35, 0.08);
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  transition: color 320ms ease, text-shadow 320ms ease;
  text-shadow: 0 1px 8px rgba(0,0,0,0.65), 0 0 2px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
  .brand { font-size: 1.25rem; }
}
.site-header.is-scrolled .brand { color: var(--ink); text-shadow: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
@media (max-width: 560px) {
  .main-nav { gap: 10px; margin-left: auto; padding-left: 8px; }
  .main-nav a { font-size: 0.78rem; padding: 8px 2px; }
}
.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  padding: 8px 4px;
  position: relative;
  transition: color 320ms ease, text-shadow 320ms ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 0 2px rgba(0,0,0,0.4);
}
.site-header.is-scrolled .main-nav a { color: var(--ink); text-shadow: none; }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ============================================
   SECTION 2 — Hero
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20,18,14,0.40) 0%, rgba(20,18,14,0.05) 30%, rgba(20,18,14,0.05) 55%, rgba(20,18,14,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--cream);
  padding: 0 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.84rem, 3.36vw, 1.56rem);
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-claim {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.25;
  text-align: center;
  margin: 0;
  color: var(--cream);
  opacity: 0.97;
}

/* Scroll-down arrow at bottom of hero */
.hero-scroll-arrow {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cream);
  opacity: 0.75;
  transition: opacity 220ms ease, transform 220ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-scroll-arrow:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
}

/* placeholder anchors — styled when their sections are built */
#room1, #contact { display: block; }

/* motion effects removed — elements visible immediately */

/* ============================================
   Fade-in on scroll (text elements only)
   ============================================ */
.fade-in {
  opacity: 0;
  transition: opacity 2s ease;
}
.fade-in.is-visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transition: none; }
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 22px;
  color: var(--ink);
}

/* ============================================
   SECTION 3 — Introduction (normal scroll layout)
   ============================================ */
.intro-sticky {
  padding: 80px var(--gutter) 64px;
  max-width: var(--max-w);
  margin: 0 auto 50px;
}

.intro-top {
  text-align: center;
  margin-bottom: 40px;
}

.intro-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.3rem);
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

.intro-carousel-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.intro-desc {
  max-width: 400px;
  margin-left: 50%;
  margin-top: 32px;
}
.intro-desc p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 14px;
}
@media (max-width: 680px) {
  .intro-desc { margin-left: 0; max-width: 100%; }
}

/* ============================================
   Reusable text + carousel feature block
   (used by Introduction, Pool, Villa, Living, Rooms, Patio...)
   ============================================ */
/* Extra 50px spacing between all page sections */
.feature,
.pool-section,
.garden-section,
.living-section,
.surroundings,
.info-section,
.map-section {
  margin-bottom: 50px;
}

.feature {
  padding: 64px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.feature:first-of-type { padding-top: 88px; }

.feature-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 16px;
  max-width: 56ch;
}

.feature-inner .carousel { margin-top: 40px; }

@media (min-width: 900px) {
  .feature-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
  }
  .feature-inner .carousel { margin-top: 0; }
  .feature-inner--reverse .feature-text { order: 2; }
  .feature-inner--reverse .carousel { order: 1; }
}

/* ============================================
   Reusable carousel / slideshow
   ============================================ */
.carousel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--limestone-deep, #E9E1D0);
}

.carousel-track {
  display: flex;
  transition: transform 480ms cubic-bezier(0.65, 0, 0.35, 1);
  touch-action: pan-y;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 248, 242, 0.85);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 200ms ease;
  z-index: 2;
}
.carousel-btn:hover { background: var(--cream); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

@media (max-width: 560px) {
  .carousel-btn { width: 32px; height: 32px; }
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 248, 242, 0.55);
  background-clip: content-box;
  cursor: pointer;
  padding: 18px;
  margin: -18px;
  box-sizing: content-box;
  transition: background-color 200ms ease, transform 200ms ease;
}
.carousel-dot.is-active {
  background: var(--cream);
  background-clip: content-box;
  transform: scale(1.25);
}

.carousel-slide img { cursor: zoom-in; }

.feature-text--full { max-width: 62ch; }

/* ============================================
   Multi-gallery grid (Villa, Living spaces, Rooms, Patio...)
   ============================================ */
.gallery-grid {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}
.gallery-caption {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.7;
  margin: 0 0 12px;
}

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

/* ============================================
   SECTION 4 — Pool / Garden (full-width immersive)
   Ca' Remurin has no pool: reuses the same immersive full-bleed
   treatment for "The Garden" (its signature feature instead).
   ============================================ */
.pool-section,
.garden-section {
  width: 100%;
}

/* override the standard carousel inside pool/garden to be full-width */
.pool-carousel,
.garden-carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 540px;
  max-height: 980px;
  overflow: hidden;
  border-radius: 0;
}

.pool-carousel .carousel-track,
.garden-carousel .carousel-track { height: 100%; }

.pool-carousel .carousel-slide,
.garden-carousel .carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  aspect-ratio: unset;    /* override the 4:3 default */
}

.pool-carousel .carousel-slide img,
.garden-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* gradient scrim — dark at bottom for text legibility */
.pool-carousel::after,
.garden-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,18,14,0.05) 0%,
    rgba(20,18,14,0.05) 45%,
    rgba(20,18,14,0.55) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* text overlay — bottom left, above scrim */
.pool-overlay,
.garden-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 var(--gutter) 36px;
  pointer-events: none;
}

.pool-eyebrow,
.garden-eyebrow {
  color: rgba(251,248,242,0.80);
  margin-bottom: 8px;
}

.pool-title,
.garden-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.1;
  color: var(--cream);
  margin: 0;
  letter-spacing: 0.01em;
}

/* carousel controls sit above scrim */
.pool-carousel .carousel-btn,
.garden-carousel .carousel-btn { z-index: 3; }
.pool-carousel .carousel-dots,
.garden-carousel .carousel-dots { z-index: 3; }

/* description text below image */
.pool-desc,
.garden-desc {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.pool-desc p,
.garden-desc p {
  flex: 1;
  min-width: 260px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.85;
}

@media (max-width: 600px) {
  .pool-carousel,
  .garden-carousel {
    height: 72vh;
    min-height: 440px;
  }
  .pool-title,
  .garden-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .pool-desc,
  .garden-desc { flex-direction: column; gap: 16px; padding-bottom: 40px; }
}
/* Bedrooms section — limestone-deep background */
.bedrooms-section {
  background: var(--limestone-deep);
  max-width: 100% !important;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.bedrooms-section .feature-text--full,
.bedrooms-section .gallery-grid { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.surroundings {
  background: var(--limestone-deep);
  padding: 80px var(--gutter);
}
.surroundings-inner {
  max-width: 64ch;
  margin: 0 auto;
  text-align: center;
}
.surroundings .eyebrow { text-align: center; }
.surroundings .section-title { margin-bottom: 28px; }
.surroundings-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 20px;
}
.surroundings p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 16px;
}
.surroundings p:last-child { margin-bottom: 0; }

/* ============================================
   SECTION 10 — Contact form
   ============================================ */
.contact-section {
  max-width: none;
  margin: 0;
  padding: 64px var(--gutter) 96px;
  background: var(--limestone-deep);
}
.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner .eyebrow { text-align: center; }
.contact-inner .section-title { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }

.contact-form {
  margin-top: 36px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.required { color: var(--olive); }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="date"],
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(42, 40, 35, 0.18);
  border-radius: 3px;
  padding: 11px 13px;
  width: 100%;
}
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
}
.form-field textarea { resize: vertical; min-height: 110px; }

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232A2823' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.form-field--checkbox input { margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0; }
.form-field--checkbox label {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
}
.form-field--checkbox a { color: var(--olive); text-decoration: underline; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  background: var(--ink);
  border: none;
  border-radius: 3px;
  padding: 13px 28px;
  cursor: pointer;
  transition: background-color 220ms ease;
}
.form-submit:hover { background: var(--olive); }

/* pool/garden full-bleed carousel: clip overflow */
.pool-carousel,
.garden-carousel { overflow: hidden; }

/* Living area — contained, full image, limestone surround */
.living-section {
  background: var(--limestone);
  padding: 64px 0;
}
.living-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.living-header { margin-bottom: 28px; }

.living-carousel {
  position: relative;
  width: 100%;
  background: var(--limestone);
  border-radius: 3px;
  overflow: hidden;
}
/* Override standard carousel-slide aspect-ratio — show full image */
.living-carousel .carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: unset;
  height: auto;
  background: var(--limestone);
}
.living-carousel .carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.living-desc {
  margin: 24px 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.85;
  max-width: 62ch;
}

/* ============================================
   Footer — three-column layout
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--cream);
  justify-self: start;
}
.share-wrap { justify-self: center; }
.footer-privacy {
  justify-self: end;
  color: var(--cream);
  opacity: 0.85;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 200ms ease;
}
.footer-privacy:hover { opacity: 1; }

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 16px 12px;
  }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-legal { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-end; gap: 26px; }
  .share-wrap { grid-column: 1; grid-row: 2; justify-self: start; }
}

/* ============================================
   SECTION 10 — General Info
   ============================================ */
.info-section {
  padding: 64px var(--gutter);
  background: var(--limestone-deep);
}
.info-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.info-inner .eyebrow { text-align: center; }
.info-inner .section-title { margin-bottom: 40px; }

.info-grid {
  display: grid;
  gap: 0;
  text-align: left;
}
@media (min-width: 700px) {
  .info-grid { grid-template-columns: 1fr 1fr; gap: 0 48px; }
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(42,40,35,0.10);
  font-size: 0.92rem;
  line-height: 1.5;
}
.info-list li:first-child { border-top: 1px solid rgba(42,40,35,0.10); }
.info-label {
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 140px;
}
.info-value {
  color: var(--ink);
  opacity: 0.8;
  text-align: right;
}

/* ============================================
   Simple content pages (thank-you, privacy)
   ============================================ */
.simple-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px var(--gutter) 96px;
}
.simple-page-inner h1.section-title { margin-bottom: 18px; }
.simple-page-inner > p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 16px;
}
.simple-page-inner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 40px 0 12px;
  color: var(--ink);
}
.simple-page-inner ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink);
  opacity: 0.85;
  line-height: 1.7;
}
.simple-page-inner a { color: var(--olive); text-decoration: underline; }
.simple-page-inner .updated {
  font-size: 0.82rem;
  opacity: 0.6;
  margin-bottom: 36px;
}
.simple-page-inner--center { text-align: center; }
.simple-page-inner--center .eyebrow { text-align: center; }
.thank-you-cta { margin-top: 28px; }
.thank-you-cta .form-submit { display: inline-block; text-decoration: none; }
.form-submit--white { color: #fff; }

/* ============================================
   Shared fullscreen lightbox
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16, 14, 11, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 240ms ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 56px;
  touch-action: pan-y pinch-zoom;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-btn {
  position: absolute;
  border: none;
  background: rgba(251, 248, 242, 0.12);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.lightbox-close:hover,
.lightbox-btn:hover { background: rgba(251, 248, 242, 0.24); }

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  z-index: 2;
}

.lightbox-btn {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  z-index: 2;
}
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--cream);
  opacity: 0.75;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

@media (max-width: 560px) {
  .lightbox-stage { padding: 56px 16px; }
  .lightbox-btn { width: 38px; height: 38px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ============================================
   SECTION 9b — Position / Google Maps
   ============================================ */
.map-section {
  padding: 64px var(--gutter) 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
.map-section-inner { margin-bottom: 28px; }
.map-address {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
}
.map-address a {
  color: #1a0dab;
  text-decoration: underline;
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--limestone-deep);
}
@media (min-width: 900px) { .map-container { height: 520px; } }

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-blocked {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--limestone-deep);
  text-align: center;
  padding: var(--gutter);
}
.map-blocked p { margin: 0; font-size: 0.95rem; opacity: 0.75; }
.map-blocked-btn { display: inline-block; text-decoration: none; }

.map-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.map-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(42,40,35,0.25);
  padding: 9px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.map-action-btn:hover {
  background: var(--limestone-deep);
  border-color: var(--ink);
}

/* ============================================
   Footer — Share button
   ============================================ */
.share-wrap { position: relative; }

.share-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  background: none;
  border: 1px solid rgba(251,248,242,0.35);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.share-toggle:hover,
.share-toggle[aria-expanded="true"] {
  border-color: var(--cream);
  background: rgba(251,248,242,0.08);
}

.share-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 170px;
  overflow: hidden;
  z-index: 200;
}
.share-menu[hidden] { display: none; }

.share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #111;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.share-item:hover { background: #f5f5f5; }

/* ============================================
   Cookie consent banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: min(460px, calc(100vw - 32px));
  width: 100%;
  animation: slideUp 300ms ease;
}
.cookie-banner[hidden] { display: none; }

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink);
}
.cookie-text a {
  color: var(--olive);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease;
  white-space: nowrap;
  flex: 1 1 0;
  text-align: center;
}

@media (max-width: 480px) {
  .cookie-btn { font-size: 0.74rem; padding: 7px 8px; }
  .cookie-text { font-size: 0.8rem; }
}
.cookie-reject {
  background: #fff;
  border-color: rgba(0,0,0,0.2);
  color: var(--ink);
}
.cookie-reject:hover { background: #f5f5f5; }
.cookie-essential {
  background: #fff;
  border-color: rgba(0,0,0,0.2);
  color: var(--ink);
}
.cookie-essential:hover { background: #f5f5f5; }
.cookie-accept {
  background: var(--ink);
  color: var(--cream);
}
.cookie-accept:hover { background: var(--olive); }

/* footer legal links group */
.footer-legal {
  justify-self: end;
  display: flex;
  gap: 18px;
  align-items: center;
}

/* ============================================
   Form — contact note & label note
   ============================================ */
.contact-note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.75;
  margin: -10px 0 28px;
}
.label-note {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 4px;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--olive);
  margin-top: 3px;
  min-height: 1.2em;
}

.price-estimate {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
  background: rgba(91, 107, 67, 0.08);
  border: 1px solid rgba(91, 107, 67, 0.25);
  border-radius: 4px;
  padding: 12px 14px;
  margin: 10px 0 0;
}
.price-estimate:empty { display: none; margin: 0; padding: 0; border: 0; }

.char-counter {
  display: block;
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.45;
  margin-top: 4px;
  text-align: right;
}

/* ── Visual availability calendar ─────────────────────────────────────────── */
.calendar-section { margin-bottom: 24px; }

.calendar-period-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  text-align: left;
}

.calendar-min-stay {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--olive);
  margin-top: 3px;
}

.calendar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.calendar-selected {
  font-size: 0.95rem;
  color: var(--olive);
  font-weight: 500;
  margin-bottom: 12px;
  min-height: 1.4em;
}

.calendar-wrap {
  border: 1px solid rgba(42,40,35,0.18);
  border-radius: 6px;
  padding: 16px;
  background: #fff;
}

.calendar-nav {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cal-prev, .cal-next {
  background: none;
  border: 1px solid rgba(42,40,35,0.18);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 160ms;
}
.cal-prev:hover, .cal-next:hover { background: var(--limestone-deep); }

.calendar-months {
  display: flex;
  gap: 24px;
  flex: 1;
  flex-wrap: wrap;
}

.calendar-month { flex: 1; min-width: 220px; }

.cal-month-title {
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.45;
  padding: 4px 0;
}

.cal-day {
  text-align: center;
  padding: 6px 2px;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
  transition: background 120ms;
  user-select: none;
  position: relative;
}

.cal-day:hover:not(.booked):not(.past):not(.empty) {
  background: var(--limestone-deep);
}

.cal-day.empty { cursor: default; }

.cal-day.past {
  color: rgba(42,40,35,0.25);
  cursor: not-allowed;
}

.cal-day.booked {
  color: rgba(42,40,35,0.25);
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-day.checkin {
  background: var(--ink);
  color: #fff;
  border-radius: 4px 0 0 4px;
}

.cal-day.checkout {
  background: var(--ink);
  color: #fff;
  border-radius: 0 4px 4px 0;
}

.cal-day.inrange {
  background: var(--limestone-deep);
  border-radius: 0;
}

.cal-day.checkin.checkout { border-radius: 4px; }

.cal-day.today {
  box-shadow: inset 0 0 0 1.5px var(--olive);
  font-weight: 600;
}

.calendar-loading {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.5;
  padding: 16px 0;
}

@media (max-width: 600px) {
  .calendar-months { gap: 0; }
  .calendar-month + .calendar-month { display: none; }
  .calendar-labels span:last-child { display: none; }
}

/* ── FAQ accordion ──────────────────────────────────────────────────────────── */
.faq-section {
  padding: 64px var(--gutter);
  background: var(--limestone);
}
.faq-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.faq-inner .eyebrow { text-align: center; }
.faq-inner .section-title { text-align: center; margin-bottom: 40px; }

.faq-list {
  text-align: left;
  border-top: 1px solid rgba(42,40,35,0.12);
}
.faq-item {
  border-bottom: 1px solid rgba(42,40,35,0.12);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  line-height: 1.4;
  transition: color 200ms ease;
}
.faq-q:hover { color: var(--olive); }
.faq-q:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}
.faq-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 260ms ease, opacity 260ms ease;
}
.faq-icon::before {
  top: 8px; left: 0;
  width: 18px; height: 2px;
}
.faq-icon::after {
  top: 0; left: 8px;
  width: 2px; height: 18px;
}
.faq-q[aria-expanded="true"] .faq-icon::after {
  transform: scaleY(0);
  opacity: 0;
}
.faq-q[aria-expanded="true"] { color: var(--olive); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 320ms ease;
}
.faq-a p {
  margin: 0 0 22px;
  padding-right: 38px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.85;
}

@media (max-width: 560px) {
  .faq-q { font-size: 0.95rem; padding: 18px 2px; }
  .faq-a p { padding-right: 8px; }
}
