  /* Colours come from the theme (assets/themes/themes.css, chosen in site.php: SITE_THEME), in light and dark. This
     block only gives the theme's colours the names this stylesheet uses.
     --surface: cards, chips, menu items, booking bar. --brand-ink: brand colour used as text or icon (lighter in dark).
     --brand-grad: banner, stuck menu and booking header without a photo. --on-brand: text on --brand. --brand-shadow:
     button shadow. --shade: the darkened photo behind the stuck menu and the shrunk booking header. --chip-ink: rule
     chips on the booking header. The banner, its photo overlay, the stuck menu, the photo viewer and the back-to-top
     button look the same in light and dark. */
  :root { color-scheme:light dark;
          --brand:var(--th-brand); --brand-l:var(--th-brand-l); --ink:var(--th-ink); --muted:var(--th-muted); --bg:var(--th-bg); --line:var(--th-line);
          --surface:var(--th-surface); --brand-ink:var(--th-brand-ink); --feat-ink:var(--th-brand-ink-2); --tile-bg:var(--th-tile);
          --ph-a:var(--th-ph-a); --ph-b:var(--th-ph-b); --ph-ink:var(--th-ph-ink); --ph-ink2:var(--th-ph-ink-2);
          --nav-bg:var(--th-bar-bg); --veil:var(--th-veil); --frame-bg:var(--th-frame-bg);
          --shadow-chip:var(--th-shadow-1); --shadow:var(--th-shadow-2); --shadow-bar:var(--th-shadow-3); --shadow-b:var(--th-shadow-brand);
          --brand-grad:var(--th-brand-grad); --on-brand:var(--th-on-brand); --brand-shadow:var(--th-brand-shadow); --shade:var(--th-shade);
          --chip-ink:var(--th-brand-deep); }
  * { box-sizing:border-box; }
  [hidden] { display:none !important; }
  html { scroll-behavior:smooth; }
  body { margin:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; background:var(--bg); color:var(--ink); line-height:1.5; }
  img, svg { max-width:100%; }

  /* banner */
  /* The banner is as tall as its content: no fixed minimum height, so the title starts 24 px below the language switch */
  .hero { position:relative; color:#fff; display:flex; flex-direction:column;
          background:var(--brand-grad); background-size:cover; background-position:center; }
  .hero.has-img::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.30) 0%,rgba(0,0,0,.72) 100%); }
  /* site hero image (views.php hero_block): 1280 px on narrow screens, 1920 px elsewhere. A narrow banner is filled by
     the image's height, so phones need about 1280 px too. */
  .hero.hero-v { background-image:var(--hero-s),var(--brand-grad); }
  @media (min-width:700px) { .hero.hero-v { background-image:var(--hero-l),var(--brand-grad); } }
  /* the wave under the banner, in the page background colour (--bg; the SVG is only its shape) */
  .hero::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:34px; pointer-events:none; background:var(--bg);
                 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30c240 40 480 40 720 20s480-40 720-10v20H0z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
                 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30c240 40 480 40 720 20s480-40 720-10v20H0z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; }
  .hero > * { position:relative; z-index:1; }
  .hero-top { display:flex; justify-content:flex-end; padding:12px 14px; }
  .hero-body { padding:12px 18px 56px; max-width:1100px; width:100%; margin:0 auto; }
  .hero h1 { margin:0 0 8px; font-size:clamp(32px,8vw,56px); line-height:1.08; letter-spacing:-.5px; text-shadow:0 2px 8px rgba(0,0,0,.25); }
  .hero p { margin:0 0 20px; font-size:clamp(16px,3.8vw,21px); max-width:620px; opacity:.96; text-shadow:0 1px 4px rgba(0,0,0,.35); }
  .lang { display:inline-flex; background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.7); border-radius:999px; padding:3px; cursor:pointer; font-family:inherit; }
  .lang span { padding:4px 9px; border-radius:999px; font-weight:700; font-size:12px; color:#fff; }   /* one size on every page */
  .lang span.on { background:#fff; color:var(--brand); }

  /* buttons */
  .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--brand); color:var(--on-brand); text-decoration:none; border:0;
         padding:13px 24px; border-radius:10px; font-size:16px; font-weight:600; font-family:inherit; cursor:pointer; box-shadow:0 4px 14px var(--brand-shadow); }
  .btn svg { width:18px; height:18px; flex:none; }
  .btn.light { background:#fff; color:var(--brand); }
  .btn.ghost { background:var(--surface); color:var(--brand-ink); border:1px solid var(--brand-ink); box-shadow:none; }
  .btn.sm { padding:9px 16px; font-size:14px; }

  /* menu */
  /* The items scroll sideways inside .nav-links. Once the menu sticks to the top of the screen, site.js adds .stuck:
     the menu then shows the language switch (.nav-lang) and the banner photo (--nav-img, copied from the banner),
     darkened like the booking page's header, with white items. */
  .nav { position:sticky; top:0; z-index:40; display:flex; align-items:center; gap:8px; padding:10px 14px; background:var(--nav-bg);
         background-size:cover; background-position:center;
         backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
  .nav > * { position:relative; z-index:1; }
  /* The items are centred (auto margins: a row that does not fit starts at its first item and can still be scrolled).
     The switch sits on the right, over the menu, and fades in. Phones: when it appears, the items' row gets narrower (margin),
     so the items glide left only as far as needed and a row that no longer fits is cut off before the switch. Wider screens: the room is always kept on both sides, so
     the items stay centred and nothing moves. */
  .nav-links { display:flex; gap:8px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; transition:margin-right .3s ease; }
  .nav-links::-webkit-scrollbar { display:none; }
  .nav-links a { flex:none; padding:7px 14px; border-radius:999px; text-decoration:none; color:var(--ink); font-size:14px; font-weight:600; background:var(--surface); border:1px solid var(--line);
                 transition:background-color .25s ease, color .25s ease, border-color .25s ease; }
  .nav-links a:first-child { margin-left:auto; }
  .nav-links a:last-child { margin-right:auto; }
  .nav-links a.on { background:var(--brand); border-color:var(--brand); color:var(--on-brand); }
  .nav .nav-lang { position:absolute; right:14px; top:50%; transform:translateY(-50%); opacity:0; visibility:hidden; transition:opacity .25s ease, visibility 0s linear .25s; }
  .nav.stuck { background-color:var(--brand); background-image:var(--nav-img, var(--brand-grad)); border-bottom-color:transparent; box-shadow:0 2px 10px rgba(0,0,0,.18); }
  .nav.stuck.has-img::before { content:""; position:absolute; inset:0; background:var(--shade); }
  .nav.stuck .nav-lang { opacity:1; visibility:visible; transition:opacity .25s ease, visibility 0s; }
  .nav.stuck .nav-links { margin-right:84px; }               /* the switch (75 px) and a gap */
  .nav.stuck .nav-links a { color:#fff; background:rgba(0,0,0,.2); border-color:rgba(255,255,255,.55); }
  .nav.stuck .nav-links a.on { background:#fff; color:var(--brand); border-color:#fff; }
  @media (min-width:700px) { .nav-links, .nav.stuck .nav-links { margin:0 84px; } }
  .nav.one-lang.stuck .nav-links { margin-right:0; }           /* no language switch (one language): no room kept for it */
  @media (min-width:700px) { .nav.one-lang .nav-links, .nav.one-lang.stuck .nav-links { margin:0; } }
  @media (prefers-reduced-motion:reduce) { .nav-links, .nav-links a, .nav .nav-lang { transition:none; } }

  main { max-width:1100px; margin:0 auto; padding:8px 14px 24px; }
  .loading { text-align:center; padding:60px 10px; color:var(--muted); }
  .sec { padding:30px 0 6px; scroll-margin-top:64px; }
  .sec h2 { margin:0 0 6px; font-size:clamp(24px,5.5vw,32px); letter-spacing:-.3px; }
  .lead { color:var(--muted); margin:0 0 16px; max-width:720px; white-space:pre-line; }
  .chips { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0; }
  .chip { background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:8px 14px; font-size:14px; font-weight:600; box-shadow:0 1px 3px var(--shadow-chip); }

  /* gallery tiles */
  .gal { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .gal .tile:first-child { grid-column:span 2; aspect-ratio:16/9; }
  @media (min-width:900px) {
    .gal { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
    .gal .tile:first-child { grid-column:span 2; grid-row:span 2; aspect-ratio:auto; height:100%; }
  }
  .tile { position:relative; display:block; width:100%; aspect-ratio:4/3; border:0; padding:0; border-radius:14px; overflow:hidden; background:var(--tile-bg); cursor:pointer; font-family:inherit; }
  .tile img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s ease; }
  .tile:hover img { transform:scale(1.05); }
  .tile .cap { position:absolute; left:0; right:0; bottom:0; padding:26px 12px 10px; color:#fff; font-size:13px; text-align:left; background:linear-gradient(transparent,rgba(0,0,0,.62)); }
  .tile .more { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px; font-weight:700; background:rgba(10,18,24,.55); }
  .tile.ph { cursor:default; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:var(--ph-ink); font-size:13px; text-align:center; padding:8px;
             background:repeating-linear-gradient(135deg,var(--ph-a) 0 14px,var(--ph-b) 14px 28px); }
  .tile.ph svg { width:34px; height:34px; }
  .tile.ph b { color:var(--ph-ink2); }
  .tile.thumb.ph b, .tile.thumb.ph span { display:none; }

  /* bungalow cards */
  .cards { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
  @media (min-width:700px) { .cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
  @media (min-width:1000px) { .cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
  .bcard { background:var(--surface); border-radius:16px; box-shadow:0 2px 10px var(--shadow-b); overflow:hidden; display:flex; flex-direction:column; }
  .bcard .cover { aspect-ratio:16/10; border-radius:0; }
  .bstrip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:4px; }
  .bstrip .tile { border-radius:8px; aspect-ratio:4/3; }
  .bbody { padding:14px 16px 18px; display:flex; flex-direction:column; gap:10px; flex:1; }
  .bbody h3 { margin:0; font-size:20px; }
  .bbody p { margin:0; color:var(--muted); font-size:15px; white-space:pre-line; }
  .feat .chip { font-size:13px; padding:5px 11px; box-shadow:none; background:var(--brand-l); border-color:transparent; color:var(--feat-ink); }
  .bbody .btn { align-self:flex-start; margin-top:auto; }

  /* location */
  .loc { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; align-items:start; }
  @media (min-width:900px) { .loc { grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); } }
  .addr { display:flex; align-items:flex-start; gap:10px; font-weight:600; margin:0 0 12px; }
  .addr svg { width:22px; height:22px; flex:none; color:var(--brand-ink); }
  .map { border-radius:16px; overflow:hidden; aspect-ratio:16/10; min-height:240px; background:var(--tile-bg); box-shadow:0 2px 10px var(--shadow-b); }
  .map iframe { width:100%; height:100%; border:0; display:block; }
  .mapph { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--ph-ink2); text-align:center; padding:16px; font-weight:600;
           background:repeating-linear-gradient(135deg,var(--ph-a) 0 14px,var(--ph-b) 14px 28px); }
  .mapph svg { width:40px; height:40px; }

  /* contact */
  .contact { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-bottom:14px; }
  @media (min-width:700px) { .contact { grid-template-columns:repeat(2,minmax(0,1fr)); } }
  @media (min-width:1000px) { .contact { grid-template-columns:repeat(3,minmax(0,1fr)); } }
  .ctile { display:flex; align-items:center; gap:14px; background:var(--surface); border-radius:14px; padding:14px 16px; text-decoration:none; color:var(--ink); box-shadow:0 1px 4px var(--shadow); }
  .ctile small { display:block; color:var(--muted); overflow-wrap:anywhere; }
  .ic { width:44px; height:44px; border-radius:12px; background:var(--brand-l); color:var(--brand-ink); display:flex; align-items:center; justify-content:center; flex:none; }
  .ic svg { width:22px; height:22px; }
  .hours { display:flex; align-items:center; gap:14px; background:var(--surface); border-radius:14px; padding:14px 16px; box-shadow:0 1px 4px var(--shadow); white-space:pre-line; }
  .foot { text-align:center; color:var(--muted); font-size:13px; padding:10px 14px 30px; }
  /* With the sticky booking bar, the page ends with exactly the bar's height (--btt-lift, measured by site.js;
     72 px until then) plus 16 px under the footer text, so the text is just above the bar and never hidden behind it */
  body:has(> .sticky) .foot { padding-bottom:calc(var(--btt-lift, 72px) + 16px); }

  /* sticky booking bar */
  .sticky { position:fixed; left:0; right:0; bottom:0; z-index:50; background:var(--surface); border-top:1px solid var(--line);
            box-shadow:0 -2px 10px var(--shadow-bar); padding:10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .sticky-in { max-width:1100px; margin:0 auto; display:flex; justify-content:flex-end; }
  .sticky .btn { width:100%; }
  @media (min-width:700px) { .sticky .btn { width:auto; min-width:320px; } }

  /* back-to-top button (package from 7pizzi.com, site.js). Brand colours, the same in light and dark (the package's light
     dark-mode button would be hard to see on the light page). z-index: above the sticky bar (50), below the photo
     viewer (100). --btt-lift: the sticky bar's height, set by site.js */
  :root { --btt-bg:var(--th-brand-glass); --btt-bg-hover:var(--th-brand-glass-2); --btt-fg:#fff; --btt-line:rgba(255,255,255,.45); --btt-focus:var(--th-accent); }
  .btt { position:fixed; z-index:60; right:calc(16px + env(safe-area-inset-right, 0px));
         bottom:calc(16px + max(var(--btt-lift, 0px), env(safe-area-inset-bottom, 0px)));
         width:44px; height:44px; padding:0; margin:0; border-radius:50%; display:grid; place-items:center; cursor:pointer;
         background:var(--btt-bg); color:var(--btt-fg); border:1px solid var(--btt-line);
         -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); box-shadow:0 4px 14px rgba(0,0,0,.18);
         opacity:0; visibility:hidden; transform:translateY(10px) scale(.9);
         transition:opacity .2s ease, transform .2s ease, background .15s ease, visibility 0s linear .2s; -webkit-tap-highlight-color:transparent; }
  .btt.is-visible { opacity:1; visibility:visible; transform:none; transition:opacity .2s ease, transform .2s ease, background .15s ease, visibility 0s; }
  .btt:hover, .btt:focus-visible { background:var(--btt-bg-hover); }
  .btt:focus-visible { outline:3px solid var(--btt-focus); outline-offset:2px; }
  .btt:active { transform:scale(.94); }
  .btt svg { display:block; }
  body:focus { outline:none; }   /* the button moves the focus to the page itself */
  @media (min-width:860px) {
    .btt { width:48px; height:48px; right:calc(24px + env(safe-area-inset-right, 0px));
           bottom:calc(24px + max(var(--btt-lift, 0px), env(safe-area-inset-bottom, 0px))); }
  }
  @media (prefers-reduced-motion:reduce) { .btt, .btt.is-visible { transition:none; transform:none; } }

  /* photo viewer */
  .lb { position:fixed; inset:0; z-index:100; background:rgba(10,18,24,.94); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:12px; touch-action:pan-y; }
  .lb img { max-width:100%; max-height:calc(100vh - 150px); border-radius:10px; object-fit:contain; user-select:none; -webkit-user-select:none; }
  @supports (height:100dvh) { .lb img { max-height:calc(100dvh - 150px); } }
  .lb-cap { color:#fff; margin-top:12px; text-align:center; font-size:15px; min-height:22px; }
  .lb-count { color:#b8c7d1; font-size:13px; }
  .lb button { position:absolute; width:46px; height:46px; border-radius:50%; border:0; padding:0; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.16); color:#fff; cursor:pointer; }
  .lb button svg { width:24px; height:24px; }
  .lb .x { top:14px; right:14px; }
  .lb .pv { left:10px; top:50%; transform:translateY(-50%); }
  .lb .nx { right:10px; top:50%; transform:translateY(-50%); }

  /* reveal animation */
  @media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    .js .reveal { opacity:1; transform:none; transition:none; }
    .tile img { transition:none; }
  }

  /* ---- server-rendered additions ---- */
  .js .reveal { opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity:1; transform:none; }
  .lang { cursor:default; }
  .lang a { padding:4px 9px; border-radius:999px; font-weight:700; font-size:12px; color:#fff; text-decoration:none; }   /* one size on every page */
  .lang a.on { background:#fff; color:var(--brand); }
  a.tile { text-decoration:none; }
  .bbody h3 a { color:inherit; text-decoration:none; }
  .bbody h3 a:hover { text-decoration:underline; }
  .hero-sm .hero-body { padding-bottom:48px; }
  .hero-sm h1 { font-size:clamp(28px,6.5vw,44px); }
  .lead-lg { font-size:18px; color:var(--ink); }
  .sec h2 + .chips { margin-top:6px; }
  .pnav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:30px 0 0; }
  .pnav a { display:block; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:12px 16px; text-decoration:none; color:var(--ink); }
  .pnav a.next { text-align:right; }
  .pnav small { display:block; color:var(--muted); }
  .pnav span { font-weight:600; }
  @media (prefers-reduced-motion:reduce) { .js .reveal { opacity:1; transform:none; transition:none; } }
  .map { aspect-ratio:auto; height:clamp(240px,56vw,420px); }

  /* booking page: one header that collapses, and the booking app below it */
  body.view-booking { height:100vh; display:flex; flex-direction:column; overflow:hidden; }
  @supports (height:100dvh) { body.view-booking { height:100dvh; } }
  .bkh { flex:none; position:relative; z-index:45; color:#fff; background:var(--brand-grad); background-size:cover; background-position:center;
         box-shadow:0 2px 10px rgba(0,0,0,.18); }
  .bkh.has-img::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.30) 0%,rgba(0,0,0,.72) 100%); transition:background .3s ease; }
  .bkh.has-img.shrunk::before { background:var(--shade); }
  .bkh > * { position:relative; }
  .bkh-top { display:flex; align-items:center; gap:10px; height:54px; padding:0 12px; }
  .bar-back { display:inline-flex; align-items:center; gap:2px; flex:none; color:#fff; text-decoration:none; font-weight:600; font-size:13px;
              background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.7); border-radius:999px; padding:5px 12px 5px 6px; }
  .bar-back svg { width:18px; height:18px; }
  .bar-ttl { flex:1; min-width:0; font-weight:700; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; opacity:0; transition:opacity .25s ease; }
  .bkh.shrunk .bar-ttl { opacity:1; }
  .bkh .lang { margin-left:auto; }
  .bkh-body { max-width:1100px; width:100%; margin:0 auto; padding:0 18px 18px; overflow:hidden; max-height:55vh; transition:max-height .3s ease, padding .3s ease, opacity .25s ease; }
  @supports (height:100dvh) { .bkh-body { max-height:55dvh; } }
  .bkh.shrunk .bkh-body { max-height:0; padding-top:0; padding-bottom:0; opacity:0; }
  .bkh h1 { margin:0 0 4px; font-size:28px; }
  .bkh-season { margin:0; opacity:.92; }
  .bkh-intro { margin:8px 0 0; max-width:760px; }
  .bkh-rules { margin-top:10px; }
  .bkh-rules .chip { font-size:13px; padding:5px 11px; box-shadow:none; background:rgba(255,255,255,.9); color:var(--chip-ink); border-color:transparent; }
  .bkh-info { margin-top:12px; max-width:760px; }
  .bkh-info h2 { margin:0 0 4px; font-size:20px; }
  .bkh-info p { margin:0; font-size:15px; line-height:1.45; white-space:pre-line; text-shadow:0 1px 3px rgba(0,0,0,.45); }
  .bkh .thumbs { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
  .bkh .th { width:64px; height:44px; border-radius:8px; border:2px solid rgba(255,255,255,.6); padding:0; background-size:cover; background-position:center; opacity:.8; cursor:pointer; }
  .bkh .th.on { border-color:#fff; opacity:1; }
  @media (max-width:600px) {
    .bkh h1 { font-size:24px; }
    .bkh-intro { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  }
  body.view-booking main { position:relative; flex:1; min-height:0; max-width:none; margin:0; padding:0; }
  body.view-booking iframe#bk { display:block; width:100%; height:100%; border:0; background:var(--frame-bg); }
  /* Collapsing toolbar (site.js): the frame is fixed under the 54 px bar and never moves or resizes, so the app's sticky
     footer stays at the bottom of the screen (a resized frame from another site repaints late, which made it jump).
     The header lies over the top of the frame; its height follows the app's scrolling and clips the banner, which fades.
     The app leaves the banner's height empty at its top ('bungalow-top'). */
  .js body.view-booking .bkh { position:fixed; top:0; left:0; right:0; overflow:hidden; }
  .js body.view-booking main { position:fixed; left:0; right:0; top:54px; bottom:0; flex:none; }
  .js body.view-booking .bkh-body,
  .js body.view-booking .bkh.shrunk .bkh-body { max-height:55vh; padding:0 18px 18px; transition:none; }
  @supports (height:100dvh) { .js body.view-booking .bkh-body, .js body.view-booking .bkh.shrunk .bkh-body { max-height:55dvh; } }
  .js body.view-booking .bk-load { align-items:flex-start; padding-top:calc(var(--bkh-banner, 0px) + 32px); }
  /* In-page booking app (a site with the Bungalow Engine: body.bk-inpage, #bkApp): no frame, so the page itself scrolls.
     The header stays fixed over the top and collapses with the page's scroll (site.js); the app starts below the bar
     and leaves the banner's height empty at its top (--embed-top in its own styles). */
  body.view-booking.bk-inpage { height:auto; display:block; overflow:visible; }
  .js body.view-booking.bk-inpage main { position:relative; top:auto; left:auto; right:auto; bottom:auto; margin-top:54px; min-height:calc(100vh - 54px); }
  body.bk-inpage .bk-load { position:fixed; top:54px; }
  #bkApp { display:block; }
  /* setup wizard: the booking page's bar (title always shown, no back link, no banner) and the wizard below it */
  body.view-setup { height:100vh; display:flex; flex-direction:column; overflow:hidden; }
  @supports (height:100dvh) { body.view-setup { height:100dvh; } }
  body.view-setup .bkh-top { padding:0 16px; }
  body.view-setup .bar-ttl { opacity:1; font-size:16px; }
  body.view-setup main { position:relative; flex:1; min-height:0; max-width:none; margin:0; padding:0; }
  body.view-setup iframe#wz { display:block; width:100%; height:100%; border:0; background:var(--frame-bg); }
  /* While the app sends a booking request, the header is dimmed like the app's own overlay and cannot be used */
  .bkh.busy::after { content:""; position:absolute; inset:0; z-index:2; background:var(--veil); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); }
  .bk-msg { padding:30px 18px; text-align:center; }
  @media (prefers-reduced-motion:reduce) { .bkh-body, .bkh.has-img::before, .bar-ttl { transition:none; } }

  /* loader shown over the booking app until its calendar is ready */
  .bk-load { display:none; position:absolute; inset:0; z-index:5; align-items:center; justify-content:center; padding:20px; text-align:center; background:var(--bg);
             transition:opacity .3s ease, visibility .3s; }
  .js .bk-load { display:flex; }
  .bk-load.done { opacity:0; visibility:hidden; pointer-events:none; }
  .bk-load-in { display:flex; flex-direction:column; align-items:center; gap:8px; }
  .bk-load b { font-size:18px; }
  .bk-load small { color:var(--muted); font-size:14px; }
  .spin { width:46px; height:46px; margin-bottom:6px; border-radius:50%; border:4px solid var(--brand-l); border-top-color:var(--brand); animation:bkspin .9s linear infinite; }
  @keyframes bkspin { to { transform:rotate(360deg); } }
  @media (prefers-reduced-motion:reduce) { .spin { animation-duration:3s; } .bk-load { transition:none; } }

  /* Hover lift, the same effect as 7pizzi.com: a clickable item rises 1-3 px and its shadow grows (0.15-0.2 s); gallery
     photos also zoom (.tile img above). It uses the translate property, not transform, so it adds to the transforms
     already there (the cards' reveal, the photo viewer's arrows). Only with a real mouse (hover:hover): on a phone a
     tapped item would stay lifted. The booking app (PublicView.html in the Bungalow Scheduler) has the same rules. */
  :root { --lift-shadow:0 1px 2px var(--shadow), 0 12px 28px var(--shadow-b); }
  .btn, .ctile, .pnav a, .gal .tile, .bar-back, .bkh .th { transition:translate .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease; }
  .bcard { transition:translate .2s ease, box-shadow .2s ease; }
  .js .bcard.reveal { transition:opacity .6s ease, transform .6s ease, translate .2s ease, box-shadow .2s ease; }   /* keeps the reveal */
  .nav-links a { transition:background-color .25s ease, color .25s ease, border-color .25s ease, translate .15s ease, box-shadow .15s ease; }
  .lang a, .lb button { transition:background-color .15s ease; }
  /* the menu scrolls sideways, so it clips anything outside it: 4 px of room above and below for the lift (the menu
     keeps its height: 6 + 4 px instead of 10 px) */
  .nav { padding-top:6px; padding-bottom:6px; }
  .nav-links { padding:4px 0; }
  @media (hover:hover) {
    .btn:hover { translate:0 -1px; box-shadow:0 6px 18px var(--brand-shadow); }
    .btn.ghost:hover { box-shadow:0 4px 12px var(--shadow-b); }
    .nav-links a:hover { translate:0 -1px; box-shadow:0 3px 8px var(--shadow-b); }
    .gal .tile:not(.ph):hover { translate:0 -3px; box-shadow:var(--lift-shadow); }
    .bcard:hover { translate:0 -3px; box-shadow:var(--lift-shadow); }
    .ctile:hover, .pnav a:hover { translate:0 -2px; box-shadow:var(--lift-shadow); }
    .bar-back:hover { translate:0 -1px; background:rgba(0,0,0,.4); }
    .bkh .th:hover { translate:0 -2px; opacity:1; box-shadow:0 4px 10px rgba(0,0,0,.3); }
    .lang a:not(.on):hover { background:rgba(255,255,255,.2); }
    .lb button:hover { background:rgba(255,255,255,.28); }
  }
  @media (prefers-reduced-motion:reduce) {
    .btn, .ctile, .pnav a, .gal .tile, .bcard, .js .bcard.reveal, .bar-back, .bkh .th, .nav-links a, .lang a, .lb button { transition:none; }
  }

  /* Animated background (a theme with a scene, html[data-scene]; the scene module is assets/scene/, drawn behind the home,
     bungalow and 404 pages by views.php). The sections sit on slightly see-through, blurred panels so their text stays
     easy to read, as on 7pizzi.com. Nothing here applies to a theme without a scene. */
  html[data-scene] main, html[data-scene] .foot { position:relative; z-index:1; }
  html[data-scene] .hero::after { display:none; }            /* the wave in the page colour would show as a band over the scene */
  html[data-scene] main > .sec { background:var(--surface); background:color-mix(in srgb, var(--surface) 86%, transparent);
         -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border:1px solid color-mix(in srgb, var(--line) 70%, transparent);
         border-radius:18px; padding:22px 20px 24px; margin:18px 0 0; box-shadow:0 2px 12px var(--shadow-b); }
  @media (max-width:600px) { html[data-scene] main > .sec { padding:18px 14px 20px; border-radius:14px; } }
  html[data-scene] .foot span { display:inline-block; padding:6px 14px; border-radius:999px; background:var(--surface);
         background:color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
  /* the sound button (assets/scene/<scene>-sound.js): bottom left on the scene pages (the module's style); on the booking
     page in the bar, next to the language switch, in the style of the back link */
  .bkh .sc-snd.bar { position:relative; left:auto; bottom:auto; flex:none; width:32px; height:32px; margin-left:auto;
         background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.7); box-shadow:none; color:#fff; }
  .bkh .sc-snd.bar svg { width:18px; height:18px; }
  .bkh .sc-snd.bar + .lang { margin-left:0; }
  @media (hover:hover) { .bkh .sc-snd.bar:hover { background:rgba(0,0,0,.4); } }

  /* online payment pages (_app/pay/pay.php): the booking summary, the choice of amount and the button in one card */
  .pay .pay-box { max-width:560px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:18px 18px 16px; box-shadow:0 1px 3px var(--shadow-chip); }
  .pay-sum { margin:0 0 14px; }
  .pay-sum div { display:flex; justify-content:space-between; gap:16px; padding:7px 0; border-bottom:1px solid var(--line); }
  .pay-sum dt { color:var(--muted); }
  .pay-sum dd { margin:0; font-weight:600; text-align:right; }
  .pay-sum .pay-due dd { color:var(--brand-ink); }
  .pay-form fieldset { border:0; margin:0 0 12px; padding:0; }
  .pay-form legend { font-weight:700; margin:0 0 8px; padding:0; }
  .pay-opt { display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin:0 0 8px; cursor:pointer; background:var(--bg); }
  .pay-opt:has(input:checked) { border-color:var(--brand-ink); box-shadow:0 0 0 1px var(--brand-ink); }
  .pay-opt input, .pay-terms input { accent-color:var(--brand); width:18px; height:18px; margin:0; flex:none; }
  .pay-opt span { flex:1; }
  .pay-terms { display:flex; align-items:flex-start; gap:10px; margin:4px 0 14px; cursor:pointer; }
  .pay-terms a { color:var(--brand-ink); }
  .pay-form .btn { width:100%; }
  .pay-how { color:var(--muted); font-size:14px; margin:12px 0 0; }
  .pay-err { color:#c62828; font-weight:600; margin:0 0 12px; }
  .pay-test { display:inline-block; background:#fff3cd; color:#6b4e00; border:1px solid #e0c060; border-radius:8px; padding:6px 12px; font-weight:600; font-size:14px; margin:0 0 14px; }
  @media (prefers-color-scheme:dark) { .pay-err { color:#ff8a80; } }
  .pay-form .btn:disabled { opacity:.75; cursor:progress; }
