/* ===== Tokens ===== */
:root {
  --forest: #253a33;        /* logo background */
  --forest-900: #1a2a24;
  --forest-700: #33503f;
  --gold: #d49e52;          /* logo mark – accents only */
  --sage: #e4e9e2;
  --sage-200: #d3dbd0;
  --cream: #f6f3ee;         /* warm off-white for quiet sections */
  --gold-tint: rgba(212, 158, 82, 0.16);
  --paper: #ffffff;
  --ink: #1a2a24;
  --ink-soft: #4b5b54;
  --line: rgba(26, 42, 36, 0.16);
  --booked: #9aa59f;

  --font-display: "Jost", "Karla", system-ui, sans-serif;   /* headings, matches the hero title */
  --font-brand: "Playfair Display", Georgia, "Times New Roman", serif; /* logo wordmark only */
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hero: "Jost", "Karla", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 168px);
  --radius-s: 6px;
  --radius-m: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
/* no blue flash when tapping links/buttons on phones */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* no double-tap zoom on phones (pinch zoom is switched off in the viewport tag) */
html, body { touch-action: pan-x pan-y; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* the keyboard ring above stays; a tap or click doesn't leave an outline behind */
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.center { display: flex; justify-content: center; margin-top: 40px; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }

.h-display {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.65; max-width: 62ch; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap;
}
.section-head .muted { margin-top: 12px; max-width: 52ch; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.975rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-900); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--sage); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-block { width: 100%; }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.round-btn:hover:not(:disabled) { background: var(--forest); color: #fff; border-color: var(--forest); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg, .facts svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Header / nav ===== */
/* Transparent over the hero; turns solid forest green once you scroll.
   (No backdrop-filter here: it would trap the fixed mobile menu inside the bar.) */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20; color: #fff;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled { background: rgba(26, 42, 36, .97); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5); }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  max-width: 1440px; margin-inline: auto;
  transition: padding .4s var(--ease);
}
.site-header.scrolled .nav-bar { padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 52px; height: 48px; color: #fff; transition: width .4s var(--ease), height .4s var(--ease); }
.site-header.scrolled .brand-mark { width: 44px; height: 40px; color: var(--gold); }
.site-header.scrolled .nav-cta { background: var(--gold); color: var(--forest-900); }
.brand-word {
  font-family: var(--font-brand); font-size: 0.95rem; line-height: 1.05;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.nav { display: flex; gap: clamp(16px, 2.2vw, 32px); font-size: 0.95rem; }
.nav a { text-decoration: none; padding-block: 8px; position: relative; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lang button {
  min-width: 40px; min-height: 36px; border: 0; border-radius: 999px; background: transparent;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; color: inherit;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--forest); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff;
  min-height: max(680px, 100svh);
  display: flex; flex-direction: column;
  margin-bottom: 64px; /* room for the overlapping booking bar */
  overflow-x: clip;    /* keeps the zoom-in photo from widening the page */
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,42,36,.62) 0%, rgba(26,42,36,.18) 30%, rgba(26,42,36,.10) 55%, rgba(26,42,36,.62) 100%);
}
.hero-inner {
  position: relative; flex: 1; width: 100%; max-width: 1440px; margin-inline: auto;
  padding: 128px var(--gutter) 120px;
  display: grid; grid-template-rows: auto 1fr; gap: 24px;
}
.hero-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.hero-place { font-size: 0.95rem; line-height: 1.4; opacity: .92; }

.hero-title {
  align-self: center;
  font-family: var(--font-hero); font-weight: 300; text-transform: uppercase;
  font-size: clamp(4.2rem, 14.5vw, 15.5rem); line-height: 0.86; letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .18);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-title .l2 { text-align: right; margin-top: -0.02em; }


/* Booking bar – overlaps hero bottom edge */
.booking-bar {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 5;
  width: min(1040px, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: 1fr 1fr 0.8fr auto; align-items: end; gap: 0;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-m); padding: 10px 10px 10px 4px;
  box-shadow: 0 24px 60px -24px rgba(26, 42, 36, .45);
}
.bb-field { display: flex; flex-direction: column; gap: 2px; padding: 8px 20px; min-width: 0; border-right: 1px solid var(--line); }
.bb-field:nth-child(3) { border-right: 0; }
.bb-field span { font-size: 0.8rem; font-weight: 700; color: var(--forest); }
.bb-field input, .bb-field select {
  border: 0; background: transparent; padding: 4px 0; min-height: 32px; width: 100%;
  color: var(--ink-soft); cursor: pointer; outline-offset: 4px; min-width: 0;
}
/* Date fields always read dd/mm/yyyy: the native field keeps its date picker,
   its own (browser-locale) text is hidden and our formatted text sits on top. */
.bb-field .bb-date { position: relative; display: block; font-size: inherit; font-weight: inherit; color: inherit; }
.bb-date input { color: transparent; }
.bb-date input::-webkit-datetime-edit { opacity: 0; }
.bb-field .bb-date-text {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); pointer-events: none;
  font-size: 1rem; font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.bb-field .bb-date-text.empty { color: #8a958f; }
.booking-bar .btn { min-height: 56px; border-radius: 10px; padding-inline: 28px; }

/* ===== Intro ===== */
.intro { padding-top: calc(var(--section) + 24px); }
.intro-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: end; }
.intro-text .h-display { margin-bottom: 28px; max-width: 16ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts li {
  display: flex; align-items: center; gap: 14px; padding: 20px 4px;
  border-bottom: 1px solid var(--line); font-size: 1.02rem;
}
.facts li:nth-child(odd) { padding-right: 16px; }
.facts svg { width: 24px; height: 24px; color: var(--forest); }
.facts strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-right: 2px; }

/* ===== Wellness: three tall photo cards ===== */
.wellness { background: var(--forest); color: #fff; }
.w-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
/* desktop: the three photos break out wider than the text column (up to 1600px) and stand taller */
@media (min-width: 1081px) {
  .w-cards {
    width: min(calc(100vw - 2 * var(--gutter)), 1600px);
    margin-left: calc(50% - min(50vw - var(--gutter), 800px));
  }
  .wellness .w-card { height: clamp(640px, 88vh, 980px); }
  .wellness .w-card h3 { font-size: clamp(2.2rem, 2.8vw, 3rem); }
  .wellness .w-card p { font-size: 1.05rem; }
}
.w-card {
  position: relative; overflow: hidden; border-radius: var(--radius-m);
  height: clamp(480px, 76vh, 760px); isolation: isolate;
}
.w-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.4s var(--ease);
}
.w-card:hover img { transform: scale(1.04); }
.w-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,42,36,0) 42%, rgba(26,42,36,.82) 100%);
}
/* the text blocks get the same height (js/main.js), so the three headings sit on one line */
.w-card-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 2.6vw, 34px);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.w-card h3 { font-weight: 300; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.1; margin-bottom: 10px; }
.w-card p { color: rgba(255, 255, 255, .86); font-size: 0.98rem; line-height: 1.55; max-width: 38ch; }
.wellness :focus-visible { outline-color: var(--gold); }
/* the whole card is a button that opens the photo in the gallery viewer */
.card-open {
  position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; margin: 0;
  background: transparent; cursor: zoom-in; border-radius: inherit;
}
.card-open:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }

/* ===== Full-width photo breaks ===== */
.photo-break {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  height: clamp(420px, 84vh, 880px); display: flex; align-items: flex-end;
}
.photo-break img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-break::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,42,36,.05) 35%, rgba(26,42,36,.6) 100%);
}
.photo-break-text {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(2rem, 4.6vw, 4rem); max-width: 18ch; padding-block: clamp(40px, 7vw, 88px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .2);
}

/* ===== Rooms strip ===== */
.strip-controls { display: flex; gap: 10px; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 380px); gap: 24px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-bottom: 8px; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.room { scroll-snap-align: start; }
/* computers: the row can be dragged sideways with the mouse */
@media (hover: hover) and (pointer: fine) { .strip { cursor: grab; } }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.strip.dragging img { pointer-events: none; }
.strip img { -webkit-user-drag: none; }
.room img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-m); margin-bottom: 18px; }
.room h3 { font-size: 1.5rem; margin-bottom: 6px; }
.room p { color: var(--ink-soft); }

/* ===== Gallery ===== */
.gallery { background: var(--cream); }
.gallery-count { margin: 0 0 24px; }
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry li { break-inside: avoid; margin-bottom: 16px; }
.masonry button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 10px; overflow: hidden;
}
.masonry img { width: 100%; transition: transform .6s var(--ease); }
.masonry button:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(16, 26, 22, .96); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 24px; }
.lightbox::backdrop { background: rgba(16, 26, 22, .8); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; height: 100%; justify-content: center; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { font-size: 0.95rem; opacity: .85; }
.lightbox .round-btn { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.lightbox .round-btn:hover { background: #fff; color: var(--forest); }
.lb-close { position: absolute; top: 20px; right: 20px; z-index: 2; }
/* phones: the photo uses the full screen width; arrows move below it (swiping also works) */
@media (max-width: 760px) {
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); padding: 68px 0 100px; gap: 0; }
  .lightbox figure { gap: 12px; }
  .lightbox img { width: 100%; max-width: 100%; max-height: calc(100svh - 200px); border-radius: 0; }
  .lightbox figcaption { padding-inline: 16px; text-align: center; }
  .lb-close { top: 14px; right: 14px; }
  .lb-prev, .lb-next { position: absolute; bottom: 28px; z-index: 2; }
  .lb-prev { left: calc(50% - 66px); }
  .lb-next { left: calc(50% + 14px); }
}

/* ===== Reviews band ===== */
.reviews { background: var(--forest); color: #fff; padding-block: clamp(56px, 8vw, 96px); }
.reviews-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.score {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(5.5rem, 14vw, 11rem); line-height: .85;
  color: var(--gold); letter-spacing: -0.04em;
}
.reviews .h-display { margin-bottom: 12px; }
.reviews-text { color: rgba(255, 255, 255, .8); max-width: 52ch; }
.review-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(40px, 6vw, 72px);
}
.review-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.review-card blockquote { margin: 0; }
.review-card blockquote p {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.45; letter-spacing: -0.005em;
}
.review-card blockquote p::before { content: "“"; }
.review-card blockquote p::after { content: "”"; }
html[lang="hr"] .review-card blockquote p::before, html[lang="de"] .review-card blockquote p::before { content: "„"; }
html[lang="hr"] .review-card blockquote p::after, html[lang="de"] .review-card blockquote p::after { content: "“"; }
.review-by { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; color: rgba(255, 255, 255, .72); }
.review-by strong { color: #fff; font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.9rem; }
.review-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; }
.review-note { font-size: 0.85rem; color: rgba(255, 255, 255, .6); }

/* ===== Amenities ===== */
.amen-grid { columns: 3 260px; column-gap: clamp(32px, 5vw, 64px); }
.amen-group { break-inside: avoid; margin-bottom: 36px; }
.amen-group h3 {
  font-size: 1.35rem; padding-bottom: 10px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.amen-group li { padding: 6px 0; color: var(--ink-soft); }

/* ===== Sub-pages (amenities.html) ===== */
.page-hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: clamp(380px, 62vh, 620px); display: flex; align-items: flex-end;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,42,36,.55) 0%, rgba(26,42,36,.1) 35%, rgba(26,42,36,.7) 100%);
}
.page-hero-text { padding-block: 120px clamp(40px, 6vw, 72px); }
.page-hero .h-display { font-size: clamp(3rem, 8vw, 6.5rem); margin-bottom: 14px; }
.page-hero .lead { color: rgba(255, 255, 255, .9); }
.amen-group { background: var(--cream); border-radius: var(--radius-m); padding: 24px 26px 18px; }
.amenities .amen-grid {
  columns: auto; display: grid; gap: 20px; align-items: stretch;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
.amen-col { display: flex; flex-direction: column; gap: 20px; }
.amenities .amen-group { margin-bottom: 0; }
.amen-col .amen-group { flex-grow: 1; } /* columns end on the same line; spare room is shared by the boxes */
.amenities .amen-group h3 { border-bottom-color: rgba(26, 42, 36, .12); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nearby-page { row-gap: 0; }
.nearby-page li { padding: 32px 0; }
.nearby-page h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -0.015em; margin-bottom: 10px; }
.nearby-page p { font-size: 1.05rem; }
.surr-more { margin-top: 24px; }
.surr-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-cta { background: var(--forest); color: #fff; padding-block: clamp(64px, 9vw, 112px); }
.page-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* ===== Nearby ===== */
.nearby { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px); }
.nearby li { padding: 22px 0; border-top: 1px solid var(--line); }
.nearby h4 { font-size: 1.35rem; margin: 0 0 6px; }
.nearby p { color: var(--ink-soft); max-width: 58ch; }

/* ===== Surroundings ===== */
.surr-band { position: relative; min-height: clamp(380px, 62vh, 640px); display: flex; align-items: flex-end; color: #fff; }
.surr-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.surr-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,42,36,0) 40%, rgba(26,42,36,.7) 100%);
}
.surr-band-text { position: relative; z-index: 1; padding-block: 48px; }
.surr-band .h-display { font-size: clamp(2.6rem, 7vw, 6rem); max-width: 12ch; }
.surr-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.surr-chapel img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-m); }
.surr-text .lead { margin-bottom: 16px; }
/* Map in logo colours (js/map.js) */
.map { margin-top: 32px; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 16 / 10; background: var(--forest); position: relative; }
.map-failed { display: none; }
.map-pin {
  width: 52px; height: 58px; display: grid; place-items: center; padding-bottom: 8px;
  background: var(--forest-900); color: var(--gold);
  clip-path: path("M26 58 L17 47 H8 A8 8 0 0 1 0 39 V8 A8 8 0 0 1 8 0 H44 A8 8 0 0 1 52 8 V39 A8 8 0 0 1 44 47 H35 Z");
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
}
.map-pin svg { width: 36px; height: 33px; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-weight: 600; color: var(--forest); text-decoration: none;
}
.map-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.map-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* MapLibre's controls, toned to match */
.map .maplibregl-ctrl-group { background: var(--forest-900); border: 1px solid rgba(212, 158, 82, .35); box-shadow: none; }
.map .maplibregl-ctrl-group button + button { border-top-color: rgba(212, 158, 82, .25); }
.map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(76%) sepia(30%) saturate(700%) hue-rotate(358deg); }
.map .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(26, 42, 36, .85); color: rgba(246, 243, 238, .75); }
.map .maplibregl-ctrl.maplibregl-ctrl-attrib a { color: rgba(246, 243, 238, .9); }
.map .maplibregl-ctrl.maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button { background-color: rgba(246, 243, 238, .85); }

/* ===== Availability ===== */
.availability { background: var(--cream); }
.legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.sw-free { background: var(--paper); border: 1px solid var(--line); }
.sw-booked {
  background: var(--sage-200);
  background-image: linear-gradient(135deg, transparent 45%, var(--booked) 45%, var(--booked) 55%, transparent 55%);
}
.sw-sel { background: var(--forest); }

.avail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.wa-short { display: none; }

/* Computers: a compact form the same height as the calendar, so title, calendar and form fit on one screen.
   Dates, then guests underneath, name + email side by side, Send with WhatsApp right under it. */
@media (min-width: 1081px) {
  .enquiry:not(.enquiry-done) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; align-content: start;
    grid-template-areas:
      "stay stay"
      "derr derr"
      "guests guests"
      "name email"
      "msg msg"
      "send send"
      "wa wa"
      "serr serr"
      "help help";
  }
  .enquiry .stay { grid-area: stay; margin-bottom: 10px; padding-bottom: 8px; }
  .enquiry .f-guests { grid-area: guests; }
  .enquiry .f-guests select { min-height: 0; padding: 6px 0; }
  .enquiry #date-error { grid-area: derr; }
  .enquiry .f-name { grid-area: name; }
  .enquiry .f-email { grid-area: email; }
  .enquiry .f-msg { grid-area: msg; }
  .enquiry .f-msg textarea { min-height: 48px; height: 48px; }
  .enquiry .field { margin-bottom: 10px; }
  .enquiry #f-send { grid-area: send; margin: 4px 0 8px; }
  .enquiry .wa-link { grid-area: wa; margin: 0 0 10px; }
  .enquiry #send-error { grid-area: serr; }
  .enquiry #form-helper { grid-area: help; margin: 0; }
  .enquiry .or-line { display: none; }
  .enquiry .stay-val { font-size: 1.2rem; white-space: nowrap; }
  .enquiry .stay-nights { min-height: 1.4em; font-size: .9rem; }
  .cal-updated { margin-top: 12px; }
}
/* Short laptop screens: a tighter calendar and title so the whole booking area still fits */
@media (min-width: 1081px) and (max-height: 820px) {
  .availability .section-head { margin-bottom: 28px; }
  .availability .h-display { font-size: clamp(2.4rem, 4vw, 3.4rem); }
  .cal-month h3 { min-height: 36px; margin-bottom: 6px; font-size: 1.25rem; }
  .cal-day { aspect-ratio: auto; height: 38px; }
  .cal-day > span { width: 34px; }
  .calendar, .enquiry { padding: 22px 26px; }
  .cal-nav { top: 18px; }
}
.calendar, .enquiry {
  background: var(--paper); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(26, 42, 36, .08);
  box-shadow: 0 40px 80px -48px rgba(26, 42, 36, .35);
}
.calendar { position: relative; }
.cal-nav { position: absolute; top: clamp(16px, 2.6vw, 28px); left: clamp(12px, 2.4vw, 24px); right: clamp(12px, 2.4vw, 24px); display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav .round-btn { pointer-events: auto; }
.cal-months { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.cal-month h3 {
  text-align: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 400;
  min-height: 44px; display: grid; place-items: center; margin-bottom: 12px; text-transform: capitalize;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 0; }
.cal-dow { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); padding-bottom: 6px; text-transform: capitalize; }
.cal-day {
  aspect-ratio: 1; min-width: 0; border: 0; padding: 0; background: transparent; cursor: pointer;
  font-size: 0.95rem; font-variant-numeric: tabular-nums; color: var(--ink); position: relative;
  display: grid; place-items: center;
}
.cal-day > span { width: min(40px, 100%); aspect-ratio: 1; height: auto; display: grid; place-items: center; border-radius: 50%; transition: background-color .15s, color .15s; }
.cal-day:hover:not(:disabled) > span { background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.cal-day:disabled { cursor: default; }
.cal-day.past { color: #a4aea9; }
.cal-day.booked { color: var(--booked); }
.cal-day.booked > span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-day.today > span { box-shadow: inset 0 0 0 1px var(--forest); }
.cal-day.in-range { background: var(--gold-tint); }
.cal-day.range-start { background: linear-gradient(90deg, transparent 50%, var(--gold-tint) 50%); }
.cal-day.range-end { background: linear-gradient(90deg, var(--gold-tint) 50%, transparent 50%); }
.cal-day.range-start.range-end { background: transparent; }
.cal-day.range-start > span, .cal-day.range-end > span { background: var(--forest); color: #fff; box-shadow: none; }
.cal-day.preview { background: rgba(212, 158, 82, .09); }
.cal-updated { margin-top: 20px; font-size: 0.85rem; }

.stay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.stay-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--forest); }
.stay-val { font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; }
.stay-nights { grid-column: 1 / -1; color: var(--ink-soft); min-height: 1.6em; }
.form-error { color: #9b2c1f; font-size: 0.92rem; min-height: 0; }
.form-error:not(:empty) { margin-bottom: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 0.8rem; font-weight: 700; color: var(--forest); }
/* Quiet underline fields */
.field input, .field select, .field textarea {
  min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(26, 42, 36, .25); border-radius: 0;
  background: transparent; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--forest); outline: none; box-shadow: 0 1px 0 0 var(--forest); }
.field input[aria-invalid="true"] { border-color: #9b2c1f; }
.field-error { color: #9b2c1f; font-size: 0.85rem; min-height: 0; }
.enquiry .btn { margin: 12px 0 14px; min-height: 54px; }
.enquiry .btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* "or" divider + WhatsApp button */
.or-line { display: flex; align-items: center; gap: 12px; margin: 8px 0 2px; color: var(--ink-soft); font-size: .85rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-whatsapp { background: #fff; color: var(--forest); border-color: var(--line); gap: 10px; }
.btn-whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp svg { width: 20px; height: 20px; fill: #25d366; flex: none; transition: fill .2s; }
.btn-whatsapp:hover svg { fill: #fff; }
/* thank-you panel after sending */
.enquiry-done { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.enquiry[hidden] { display: none; }
.enquiry-done h3 { font-size: 1.6rem; margin: 6px 0 4px; }
.enquiry-done p { max-width: 36ch; }
.done-mark { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--sage); stroke: var(--forest); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.footer-wa { display: inline-flex; align-items: center; gap: 6px; }

/* "This page is also available in English" bar (js/lang.js) */
.langbar {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: min(420px, calc(100% - 32px));
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 14px 44px 14px 18px;
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 12px 40px rgba(26, 42, 36, .22);
  transform: translateY(20px); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.langbar.show { transform: none; opacity: 1; }
.langbar p { margin: 0; flex: 1 1 200px; font-size: .95rem; }
.langbar .btn { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.langbar-x {
  position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; background: none;
  font-size: 22px; line-height: 1; color: var(--ink-soft); cursor: pointer; border-radius: 50%;
}
.langbar-x:hover { background: var(--sage); }
@media (min-width: 761px) { .langbar { left: auto; right: 24px; bottom: auto; top: 96px; transform: translateY(-12px); } .langbar.show { transform: none; } }
@media (max-width: 760px) { .langbar { bottom: 84px; } } /* above the "Check availability" button on phones */

/* ===== Sticky "check availability" button (phones only) ===== */
.sticky-book { display: none; }

/* ===== Footer ===== */
.site-footer { background: var(--forest-900); color: rgba(255, 255, 255, .82); position: relative; }
.footer-img { width: 100%; height: clamp(160px, 22vw, 300px); object-fit: cover; opacity: .9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.footer-mark { width: 92px; height: 84px; color: var(--gold); margin-bottom: 14px; }
.footer-word { font-family: var(--font-brand); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 8px; }
.footer-h { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: #fff; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copyright { padding-block: 20px 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 0.85rem; }

/* ===== Load moment: hero title rises once ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise 1.2s var(--ease) both; }
  .hero-title .l2 > span { animation-delay: .14s; }
  .hero-img { animation: settle 2.4s var(--ease) both; }
  @keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
  @keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

  /* Scroll reveal: only when JS is running (html.reveal), so nothing stays hidden without it */
  .reveal [data-reveal] {
    opacity: 0; transform: translateY(32px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .reveal [data-reveal].in { opacity: 1; transform: none; }
  /* photo breaks: the picture settles as it comes into view */
  .reveal .photo-break img { transform: scale(1.08); transition: transform 2.2s var(--ease); }
  .reveal .photo-break.in img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip { scroll-behavior: auto; }
  * { transition-duration: 0s !important; }
}

/* ===== Responsive ===== */
/* the full menu (9 links, German is longest) needs ~1390px; below that it folds into the ☰ button */
@media (max-width: 1400px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; inset: 0; z-index: -1; padding: 120px var(--gutter) 40px;
    background: var(--forest); font-family: var(--font-display); font-weight: 300; font-size: 2.2rem;
    overflow-y: auto;
  }
  .nav-bar { position: relative; }
}
@media (max-width: 1080px) {
  /* tablets: still three in a row, a bit shorter */
  .w-card { height: clamp(460px, 70vh, 640px); }
  .w-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
  .w-card p { font-size: 0.9rem; }
}
@media (max-width: 760px) {
  /* phones: one row you swipe sideways; the next photo peeks in from the right */
  .w-cards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .w-cards::-webkit-scrollbar { display: none; }
  .w-card { scroll-snap-align: start; height: clamp(440px, 68svh, 600px); }
  .w-card p { font-size: 0.95rem; }
  .avail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav-cta { display: none; }
  .hero-meta { flex-direction: column; gap: 12px; }
  .hero-title { font-size: clamp(3.4rem, 19.5vw, 8rem); }
  .booking-bar {
    position: relative; left: auto; bottom: auto; transform: none; margin: -40px auto 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 8px; gap: 0;
  }
  .hero { margin-bottom: 0; }
  .hero-inner { padding-bottom: 72px; }
  .bb-field { padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .bb-field:nth-child(1) { border-right: 1px solid var(--line); }
  .bb-field:nth-child(3) { grid-column: 1 / -1; }
  .booking-bar .btn { grid-column: 1 / -1; margin-top: 8px; }
  .intro { padding-top: var(--section); }
  .intro-grid, .surr-grid, .footer-grid { grid-template-columns: 1fr; }
  .photo-break { height: clamp(380px, 70svh, 620px); }
  .sticky-book {
    display: flex; position: fixed; z-index: 30; left: 16px; right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)); min-height: 54px;
    background: var(--gold); color: var(--forest-900);
    box-shadow: 0 18px 40px -12px rgba(26, 42, 36, .6);
    transform: translateY(calc(100% + 40px)); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .sticky-book.show { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  .menu-open .sticky-book { visibility: hidden; }
  .site-footer { padding-bottom: 76px; }
  .cal-months { grid-template-columns: minmax(0, 1fr); }
  .cal-months .cal-month:nth-child(2) { display: none; }
  .surr-chapel { max-width: 420px; }
  .reviews-inner, .nearby, .review-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .brand-word { display: none; }
  .lang button { min-width: 36px; }
  .facts { grid-template-columns: 1fr; }
  .stay { grid-template-columns: 1fr 1fr; }
}
