/* ── Merengő Pihenőház ────────────────────────────────────────────────
   Guest-facing marketing page, not an internal tool. The palette is taken
   from the logo (deep forest green) and the two brand greens: #8CD9A3 as
   the accent, #D6E8D9 as the quiet panel ground.

   One stylesheet, no CDN, no framework — the whole site is four files.
   ───────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --forest:    #004d1e;   /* logo green — headings, dark sections, footer */
  --forest-2:  #0a6431;
  --mint:      #8CD9A3;   /* accent */
  --mint-d:    #58bd7f;   /* accent, darkened enough to carry white text */
  --sage:      #D6E8D9;   /* soft panel ground */
  --sage-2:    #eaf4ec;

  /* Neutrals, warmed very slightly towards the green so nothing reads grey */
  --paper:     #fbfdfb;
  --paper-2:   #f3f7f4;
  --ink:       #14241a;
  --ink-soft:  #35483c;
  --muted:     #6b8073;
  --line:      #dce8df;
  --on-dark:   #e8f3ea;
  --on-dark-m: #a9c6b3;

  --radius:    16px;
  --radius-s:  10px;
  --shadow:    0 1px 2px rgba(0,45,18,.05), 0 10px 30px -10px rgba(0,45,18,.18);
  --shadow-lg: 0 2px 6px rgba(0,45,18,.06), 0 30px 60px -20px rgba(0,45,18,.28);

  --font-ui:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-disp: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --wrap:      1160px;
  --gutter:    clamp(18px, 4vw, 34px);
  --header-h:  72px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Anchored sections must clear the sticky header when jumped to. */
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

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

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.68;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mint-d); }
h1, h2, h3 { font-family: var(--font-disp); color: var(--ink); line-height: 1.16;
             font-weight: 600; letter-spacing: -.012em; }
::selection { background: var(--mint); color: var(--forest); }

:focus-visible { outline: 3px solid var(--mint-d); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--forest); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-s) var(--radius-s); text-decoration: none;
  transition: top .18s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ── Top bar ──────────────────────────────────────────────────────────
   Transparent over the hero photo, solid once the page scrolls. The logo
   exists in two colourways and swaps with the bar, because the dark-green
   wordmark is invisible against a night photograph.                     */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .28s ease, box-shadow .28s ease, border-color .28s ease;
  border-bottom: 1px solid transparent;
}
.topbar.is-solid {
  background: rgba(251,253,251,.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px -8px rgba(0,45,18,.25);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; min-height: var(--header-h);
  padding: 8px var(--gutter);
  display: flex; align-items: center; gap: 16px;
}

.brand { display: block; line-height: 0; flex: none; }
.brand-logo { width: auto; height: 46px; transition: opacity .28s ease; }
.brand-logo.on-dark  { opacity: 1; }
.brand-logo.on-light { opacity: 0; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.topbar.is-solid .brand-logo.on-dark  { opacity: 0; }
.topbar.is-solid .brand-logo.on-light { opacity: 1; }
.brand-wrap { position: relative; display: block; height: 46px; }

.topnav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.topnav > a {
  color: var(--on-dark); text-decoration: none; font-size: .95rem; font-weight: 600;
  letter-spacing: .005em; padding: 6px 2px; border-bottom: 2px solid transparent;
  text-shadow: 0 1px 12px rgba(0,30,12,.55);
  transition: color .18s, border-color .18s;
}
.topbar.is-solid .topnav > a { color: var(--ink-soft); text-shadow: none; }
.topnav > a:hover { color: var(--mint); border-bottom-color: var(--mint); }
.topbar.is-solid .topnav > a:hover { color: var(--forest); border-bottom-color: var(--mint-d); }

.lang-switcher { display: flex; gap: 4px; margin-left: 6px; }
.lang-btn {
  min-width: 46px; min-height: 36px; padding: 5px 12px;
  border: 1.5px solid rgba(232,243,234,.5); background: rgba(0,40,16,.28);
  color: var(--on-dark); border-radius: 999px; cursor: pointer;
  font: 700 .78rem/1 var(--font-ui); letter-spacing: .04em;
  transition: background .16s, color .16s, border-color .16s;
}
.topbar.is-solid .lang-btn { border-color: var(--line); background: transparent; color: var(--muted); }
.lang-btn:hover { border-color: var(--mint); color: #fff; }
.topbar.is-solid .lang-btn:hover { color: var(--forest); border-color: var(--mint-d); }
.lang-btn.is-active { background: var(--mint); border-color: var(--mint); color: var(--forest); }
.topbar.is-solid .lang-btn.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }

.nav-toggle { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  isolation: isolate; overflow: hidden;
}
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,26,10,.62) 0%, rgba(0,26,10,.18) 32%,
                            rgba(0,26,10,.38) 68%, rgba(0,32,13,.80) 100%);
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; width: 100%;
  padding: calc(var(--header-h) + 40px) var(--gutter) 120px;
  text-align: center; color: #fff;
}
.hero-logo {
  width: clamp(170px, 26vw, 260px); height: auto; margin: 0 auto clamp(6px, 2vw, 14px);
  filter: drop-shadow(0 10px 34px rgba(0,20,8,.55));
}
.hero-title {
  font-size: clamp(2.3rem, 6.4vw, 4.3rem); color: #fff; margin-bottom: .34em;
  text-shadow: 0 2px 26px rgba(0,22,9,.5);
}
.hero-sub {
  max-width: 34ch; margin: 0 auto; font-size: clamp(1.03rem, 2.2vw, 1.22rem);
  color: #eaf5ec; text-shadow: 0 1px 16px rgba(0,22,9,.6); text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255,255,255,.8); z-index: 2; padding: 8px;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font: 600 .98rem/1.2 var(--font-ui); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .18s, color .18s,
                                             border-color .18s, transform .12s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mint); color: var(--forest); border-color: var(--mint);
               box-shadow: 0 6px 20px -8px rgba(0,77,30,.55); }
.btn-primary:hover { background: var(--mint-d); border-color: var(--mint-d); color: #06280f; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.65);
             backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-outline:hover { border-color: var(--forest); color: var(--forest); background: var(--sage-2); }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-sage { background: var(--sage); }
.section-dark { background: var(--forest); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--mint); }

.eyebrow {
  font: 700 .76rem/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase;
  color: var(--mint-d); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.9vw, 2.65rem); margin-bottom: .6em; text-wrap: balance; }
.lede { max-width: 62ch; font-size: 1.08rem; }
.note { margin-top: 28px; color: var(--muted); font-size: .95rem; max-width: 62ch; }
.section-dark .note { color: var(--on-dark-m); }

.split { display: grid; gap: clamp(28px, 5vw, 60px); align-items: center;
         grid-template-columns: 1fr; }
@media (min-width: 861px) { .split { grid-template-columns: 1fr 1fr; } }
.split-text > p { margin-bottom: 1.05em; max-width: 56ch; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); font-style: italic; }
@media (min-width: 861px) { .split-tight .split-media { order: -1; } }

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.facts li {
  display: flex; align-items: baseline; gap: 7px;
  background: var(--sage-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; font-size: .93rem; color: var(--ink-soft);
}
.facts strong { font-family: var(--font-disp); font-size: 1.2rem; color: var(--forest); }

/* ── Amenities ────────────────────────────────────────────────────── */
.amenities {
  list-style: none; display: grid; gap: 12px; margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}
.amenity {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.66); border: 1px solid rgba(0,77,30,.09);
  border-radius: var(--radius-s); padding: 14px 16px; font-size: .96rem; color: var(--ink-soft);
}
.amenity-icon { flex: none; color: var(--forest); display: grid; place-items: center;
                width: 38px; height: 38px; border-radius: 50%; background: var(--mint); }

/* ── Gallery ──────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.filter {
  min-height: 42px; padding: 8px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--muted);
  font: 600 .9rem/1 var(--font-ui); transition: all .16s;
}
.filter:hover { border-color: var(--mint-d); color: var(--forest); }
.filter.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }

/* Columns rather than a grid of fixed cells: the set mixes 3:4 portraits with
   4:3 landscapes and a couple of squares, and cropping them all to one ratio
   throws away the thing each photo was taken for. */
.grid { column-count: 4; column-gap: 14px; }
@media (max-width: 1100px) { .grid { column-count: 3; } }
@media (max-width: 760px)  { .grid { column-count: 2; } }
@media (max-width: 420px)  { .grid { column-count: 1; } }

.shot {
  display: block; width: 100%; padding: 0; margin: 0 0 14px; cursor: zoom-in;
  border: 0; background: var(--sage); border-radius: var(--radius-s);
  overflow: hidden; break-inside: avoid; position: relative; line-height: 0;
  box-shadow: 0 1px 2px rgba(0,45,18,.06);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.shot::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,45,18,0);
  transition: background .3s; pointer-events: none;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot:hover::after { background: rgba(0,45,18,.1); }
.shot img { width: 100%; height: auto; }
.shot[hidden] { display: none; }

/* ── Lightbox ─────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(3,22,10,.95); padding: clamp(12px, 4vw, 48px);
  animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lb-stage { display: grid; place-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb-stage img {
  max-width: 100%; max-height: 78svh; width: auto; height: auto;
  border-radius: 6px; box-shadow: var(--shadow-lg); background: var(--forest);
}
.lb-stage figcaption { color: var(--on-dark); font-size: .93rem; text-align: center;
                       max-width: 62ch; padding-inline: 8px; }

.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; color: #fff;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.28);
  transition: background .16s, border-color .16s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); border-color: #fff; }
.lb-close { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-close, .lb-nav { width: 46px; height: 46px; }
  .lb-stage img { max-height: 68svh; }
}

/* ── Surroundings ─────────────────────────────────────────────────── */
.nearby {
  list-style: none; display: grid; gap: 10px 26px; margin: 30px 0 42px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.nearby li { display: flex; align-items: baseline; gap: 14px;
             border-bottom: 1px solid rgba(232,243,234,.16); padding-bottom: 10px; }
.nearby-km { flex: none; min-width: 58px; font-family: var(--font-disp);
             font-size: 1.06rem; color: var(--mint); }

.strip { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr; } }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
             border-radius: var(--radius-s); }

/* ── Booking ──────────────────────────────────────────────────────── */
/* Sits under the calendar in the same section now, hence the top margin. */
.booking { display: grid; gap: clamp(26px, 4vw, 48px); align-items: start;
           grid-template-columns: 1fr; margin-top: clamp(34px, 5vw, 56px); }
@media (min-width: 861px) { .booking { grid-template-columns: 1.25fr 1fr; } }
.booking-text > p { margin-bottom: 1.05em; max-width: 56ch; }
.booking-h { font-family: var(--font-disp); font-weight: 600; color: var(--ink);
             font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: .6em; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.booking-hint { color: var(--muted); font-size: .96rem; }

/* Paper, not sage: the section under it is sage now, and a sage card on a
   sage ground is not a card. Matches the calendar card beside it. */
.booking-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
}
.booking-card-h { font-size: 1.28rem; margin-bottom: 16px; }
.booking-list { list-style: none; display: grid; gap: 12px; }
.booking-list li { position: relative; padding-left: 28px; font-size: .97rem; color: var(--ink-soft); }
.booking-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 9px;
  border-left: 2.5px solid var(--forest); border-bottom: 2.5px solid var(--forest);
  transform: rotate(-45deg); border-radius: 1px;
}
.booking-card-note {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(0,77,30,.14);
  font-size: .88rem; color: var(--muted); font-style: italic;
}

.address { font-style: normal; font-size: 1.06rem; line-height: 1.75;
           margin-bottom: 1.1em; color: var(--ink); }

/* ── Naptár ───────────────────────────────────────────────────────── */
/* Sits on .section-sage, so the calendar itself is a white card: a free night
   has to read as lighter than the page, and a sold one as darker. */
.cal {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(16px, 2.6vw, 26px); margin-top: 30px;
}
.cal-status { margin-top: 30px; color: var(--muted); font-size: .96rem; }
.cal-status.is-error { color: var(--ink-soft); }

.cal-head { display: flex; align-items: flex-start; gap: 8px; }
.cal-nav {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--line);
  color: var(--forest); cursor: pointer;
  transition: border-color .18s, background .18s, opacity .18s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--forest); background: var(--sage-2); }
.cal-nav:disabled { opacity: .3; cursor: default; }

.cal-months { flex: 1 1 auto; display: grid; gap: clamp(18px, 3vw, 34px); grid-template-columns: 1fr; }
@media (min-width: 861px) { .cal-months { grid-template-columns: 1fr 1fr; } }

.cal-m-h {
  font-family: var(--font-disp); font-size: 1.15rem; color: var(--forest);
  text-align: center; margin-bottom: 12px; text-transform: capitalize;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow {
  display: grid; place-items: center; height: 26px;
  font: 600 .72rem/1 var(--font-ui); letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}

/* A cell is one night. aspect-ratio keeps the grid square at every width
   without a media query per breakpoint. */
.cal-d {
  aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper-2); color: var(--ink);
  font: 500 .92rem/1 var(--font-ui); padding: 0; cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.cal-d.is-blank { border: 0; background: none; cursor: default; }
.cal-d:hover:not(:disabled) { border-color: var(--forest); background: var(--sage-2); }
.cal-d:disabled { cursor: default; }

/* Sold nights. The diagonal halves are the changeover drawn literally: on an
   arrival day the room is free until the afternoon, on a departure day it is
   free from the afternoon — both are still sellable, and shading them solid
   would hide a bookable night at every turnaround. */
.cal-d.is-full { background: var(--muted); border-color: var(--muted); color: #fff; }
.cal-d.is-arr,
.cal-d.is-dep { color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.cal-d.is-arr { background: linear-gradient(135deg, var(--paper-2) 0 50%, var(--muted) 50% 100%); }
.cal-d.is-dep { background: linear-gradient(135deg, var(--muted) 0 50%, var(--paper-2) 50% 100%); }
/* Dimmed but not blanked: a guest still wants to see that the days just
   outside the bookable window are taken. */
.cal-d.is-off { opacity: .32; }

/* Selection wins over availability shading — it is what the guest just did. */
.cal-d.is-mid { background: var(--mint); border-color: var(--mint); color: var(--forest); text-shadow: none; }
.cal-d.is-in,
.cal-d.is-out {
  background: var(--forest); border-color: var(--forest); color: #fff;
  font-weight: 700; text-shadow: none;
}

.cal-legend {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.cal-legend li { display: flex; align-items: center; gap: 8px; }
.cal-key { width: 17px; height: 17px; border-radius: 5px; border: 1px solid var(--line); flex: none; }
.cal-key.is-free { background: var(--paper-2); }
.cal-key.is-full { background: var(--muted); border-color: var(--muted); }
.cal-key.is-dep { background: linear-gradient(135deg, var(--muted) 0 50%, var(--paper-2) 50% 100%); }

.cal-sel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
}
.cal-sel-text { font-family: var(--font-disp); font-size: 1.1rem; color: var(--forest); }
.cal-sel-note { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.cal-sel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-sel-actions .btn { min-height: 44px; padding: 10px 20px; }

@media (max-width: 420px) {
  .cal { padding: 14px 10px; }
  .cal-head { gap: 2px; }
  .cal-nav { width: 38px; height: 38px; }
  .cal-d { font-size: .84rem; }
}

/* ── Footer ───────────────────────────────────────────────────────── */
.footer { background: var(--forest); color: var(--on-dark);
          padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(46px, 7vw, 72px) var(--gutter) 40px;
  display: grid; gap: clamp(28px, 5vw, 52px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { width: 140px; height: auto; margin-bottom: 14px; }
.footer-tagline { color: var(--on-dark-m); max-width: 32ch; font-size: .96rem; }
.footer-h { font-size: 1.04rem; color: #fff; margin-bottom: 14px;
            font-family: var(--font-ui); font-weight: 700;
            letter-spacing: .08em; text-transform: uppercase; }
.footer-list, .footer-social { list-style: none; display: grid; gap: 11px; }
.footer-list a, .footer-social a {
  color: var(--on-dark); text-decoration: none; font-size: .96rem;
  display: inline-flex; align-items: center; gap: 11px;
}
.footer-list a:hover, .footer-social a:hover { color: var(--mint); text-decoration: underline; }
.footer-social svg { flex: none; }

.footer-bar {
  border-top: 1px solid rgba(232,243,234,.15);
  max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter) 30px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  font-size: .87rem; color: var(--on-dark-m);
}

/* ── Error pages ──────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  /* No hero on these pages, so nothing else clears the fixed header. */
  padding: calc(var(--header-h) + clamp(50px, 11vw, 120px)) 0 clamp(60px, 14vw, 140px);
}
.error-code { font-family: var(--font-disp); font-size: clamp(3.4rem, 12vw, 6rem);
              color: var(--mint); line-height: 1; }
.error-msg { font-size: 1.14rem; margin: 10px 0 30px; }

/* ── Mobile navigation ────────────────────────────────────────────────
   Below 880px the links collapse into a drawer. The toggle is a real
   button with aria-expanded so it announces its state.                 */
@media (max-width: 880px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; margin-left: auto;
    width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
    background: rgba(0,40,16,.3); border: 1.5px solid rgba(232,243,234,.45);
  }
  .topbar.is-solid .nav-toggle { background: transparent; border-color: var(--line); }
  .nav-toggle-bar { display: block; width: 20px; height: 2px; border-radius: 2px;
                    background: var(--on-dark); transition: transform .22s, opacity .22s; }
  .topbar.is-solid .nav-toggle-bar { background: var(--ink-soft); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .topnav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 22px;
    box-shadow: 0 24px 40px -24px rgba(0,45,18,.45);
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .topnav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .topnav > a {
    color: var(--ink-soft); text-shadow: none; padding: 15px 2px;
    border-bottom: 1px solid var(--line); font-size: 1.06rem;
  }
  .topnav > a:hover { border-bottom-color: var(--line); color: var(--forest); }
  .lang-switcher { margin: 18px 0 0; }
  .lang-btn { border-color: var(--line); background: transparent; color: var(--muted); flex: 1; }
  .lang-btn.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
}

/* ── Booking form ─────────────────────────────────────────────────── */
/* This stylesheet had no form rules at all before the form existed, so
   everything below is new rather than an override. */
.bk-form { display: grid; gap: 16px; margin-top: 26px; max-width: 720px; }

.bk-row { display: grid; gap: 14px;
          grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }

.bk-field label { display: block; font-size: .82rem; font-weight: 600;
                  color: var(--muted); margin-bottom: 6px; }
.bk-field input, .bk-field select, .bk-field textarea {
  width: 100%; padding: 11px 13px; min-height: 48px;
  /* font: inherit matters — iOS Safari zooms the viewport on focus for any
     input under 16px, which throws the page sideways mid-form. */
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-s);
}
.bk-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus {
  border-color: var(--mint-d);
}
.bk-field input.is-bad, .bk-field textarea.is-bad, .bk-field select.is-bad {
  border-color: #c0523f; background: #fefaf9;
}

/* A short field has no business spanning the column on its own. */
.bk-field-s { max-width: 220px; }

/* The chosen range, said back in words. The calendar above is the input —
   this is the form's receipt of it, so a guest who has scrolled past the grid
   still sees which nights they are asking for, and knows where to change it. */
.bk-dates {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  padding: 14px 16px; border-radius: var(--radius-s);
  background: var(--sage-2); border: 1px solid var(--line);
}
.bk-dates.is-bad { border-color: #c0523f; background: #fefaf9; }
.bk-dates-label { width: 100%; font-size: .82rem; font-weight: 600; color: var(--muted); }
.bk-dates-value { font-family: var(--font-disp); font-size: 1.1rem; color: var(--forest); }
.bk-dates-value.is-empty { font-family: var(--font-ui); font-size: .95rem; color: var(--muted); }
.bk-dates-edit { font-size: .9rem; }

/* Off-screen, not display:none and not type=hidden — the bots worth catching
   skip hidden inputs deliberately and autofill visible ones. */
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bk-consent { display: flex; gap: 10px; align-items: flex-start;
              font-size: .9rem; color: var(--muted); line-height: 1.45; }
.bk-consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px;
                    accent-color: var(--mint-d); }

.bk-submit-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bk-submit-row .btn[disabled] { opacity: .6; cursor: progress; }

.bk-msg { margin: 0; padding: 10px 14px; border-radius: var(--radius-s);
          background: #fdecea; border: 1px solid #f5c2bd; color: #9a2b1c;
          font-size: .9rem; }

.bk-ok { margin-top: 26px; padding: 22px 24px; background: var(--sage-2);
         border: 1px solid #bfdcc6; border-radius: var(--radius); max-width: 720px; }
.bk-ok h3 { font-family: var(--font-disp); font-weight: 400; color: var(--forest);
            font-size: 1.35rem; margin-bottom: 8px; }
.bk-ok p { margin-bottom: 6px; }
.bk-ok-note { font-size: .88rem; color: var(--muted); }

/* A nyilvántartási szám nem folyószöveg: kiolvasva és összevetve kell
   legyen a hatósági nyilvántartással, ezért nem törik és nem kurzivált. */
.footer-ntak { font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
