/* Liipa Talu — geomeetria ja ruudustikud.
   Värvid, kirjad ja nupud on theme.json-is; siin on paigutus ja plokistiilid.
   Laaditakse ka redaktoris, nii et toimetaja näeb sama pilti. */

:root {
  --liipa-line: var(--wp--preset--color--line);
  --liipa-gold: var(--wp--preset--color--gold);
  --liipa-muted: var(--wp--preset--color--muted);
  --liipa-sec: var(--wp--preset--spacing--70);
  --liipa-header: 76px;
}

/* klõpsatav = tavaline osuti, mitte suurendusklaas */
a, button, summary, label, select, [role="button"], input[type="submit"], input[type="radio"], input[type="checkbox"], .wp-block-image .wp-lightbox-container img { cursor: pointer !important; }

/* hiire/puutega kasutades fookusraame pole (theme.js: html.using-pointer); klaviatuuril jäävad */
.using-pointer :focus, .using-pointer :focus-visible { outline: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--liipa-header) + var(--wp-admin--admin-bar--height, 0px)); }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

/* ---------- Plokistiilid: lõigud ---------- */
.is-style-eyebrow {
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-deep);
  margin-bottom: 0;
}
.has-ink-background-color .is-style-eyebrow { color: var(--wp--preset--color--gold); }

.is-style-eyebrow + .wp-block-heading { margin-top: 14px !important; }

/* lubadus: raamitud, kuldsed jutumärgid, teine pool kullaga */

.sec-note { color: var(--liipa-muted); max-width: 26em; margin: 0; }

/* ---------- Nupud ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: var(--wp--preset--color--ink); color: #fff; border-color: var(--wp--preset--color--ink);
}
.wp-block-button.is-style-gold > .wp-block-button__link {
  background: var(--liipa-gold); border-color: var(--liipa-gold); color: #fff;
}
.wp-block-button.is-style-gold > .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--ink); }
.wp-block-buttons { gap: 16px; }

/* ---------- Päis ---------- */
/* päis on alati kõige peal; ainult täisekraanivaade (z 2000) katab selle */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 1000;
}
.site-header {
  background: var(--wp--preset--color--paper);
  /* päis on leht lehe peal: pehme vari langeb all olevale sisule */
  box-shadow: 0 1px 0 rgba(28,28,28,.05), 0 10px 28px -10px rgba(28,28,28,.22);
}
.header-inner { min-height: var(--liipa-header); gap: 24px; }
.main-nav { gap: 28px; }
.main-nav .wp-block-navigation-item__content { position: relative; padding: 6px 0; text-decoration: none; font-weight: 600; }
.main-nav .wp-block-navigation-item:not(.nav-cta) .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--liipa-gold); transition: right .3s;
}
.main-nav .wp-block-navigation-item:not(.nav-cta) .wp-block-navigation-item__content:hover::after { right: 0; }
.main-nav .nav-cta .wp-block-navigation-item__content {
  background: var(--wp--preset--color--graphite); color: #fff;
  padding: 11px 20px; font-weight: 500; letter-spacing: .06em; transition: background .25s;
}
.main-nav .nav-cta .wp-block-navigation-item__content:hover { background: var(--liipa-gold); color: #fff; }

/* päise parem pool: menüü + keelevahetaja */
.header-right { gap: 28px; }
.header-right > p, .header-right .wp-block-shortcode { margin: 0; }
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  padding-left: 24px; border-left: 1px solid var(--liipa-line); height: 24px;
}
.lang-switch a { text-decoration: none; color: var(--liipa-muted); padding: 4px 2px; transition: color .25s; }
.lang-switch a:hover { color: var(--liipa-gold); }
.lang-switch a.is-current { color: var(--wp--preset--color--ink); }
.lang-switch span { color: var(--liipa-line); }

/* jaluse menüü (Välimus → Menüüd → Jaluse menüü) */
.footer-nav { gap: 6px !important; }
.footer-nav .wp-block-navigation-item__content { padding: 0; text-decoration: none; }
.site-footer .wp-block-navigation { font-size: 15px; }

/* ---------- Mobiilimenüü (hamburger kuni 1080px: kuus menüüpunkti, Broneeri ja ET/EN ei mahu kitsamale reale) ----------
   Avaneb täisekraanil päise all — päis (logo, hamburger→rist) jääb nähtavaks.
   ET/EN on menüü alguses (functions.php lisab selle menüü plokki), päisest peidus.
   WordPressi enda sulgemisnupp on peidus; hamburger ise lülitab (vt theme.js). */
@media (min-width: 600px) and (max-width: 1080px) {
  .main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1080px) {
  .header-right > .lang-switch, .header-right > .wp-block-shortcode > .lang-switch { display: none; }
}
.main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .lang-switch--menu { display: none; }
.main-nav .is-menu-open .lang-switch--menu {
  justify-content: center; gap: 8px; margin-bottom: 8px; padding: 0; border: 0; height: auto; font-size: 14px;
}
.main-nav .is-menu-open .lang-switch--menu a { padding: 13px 14px; } /* puutepind ≥44px */
.main-nav .wp-block-navigation__responsive-container-open {
  position: relative; width: 44px; height: 44px; align-items: center; justify-content: center;
  margin-right: -13px; /* raamita: kriipsud joonduvad sisu parema servaga */
}
.main-nav .wp-block-navigation__responsive-container-open svg { display: none; }
.main-nav .wp-block-navigation__responsive-container-open::before,
.main-nav .wp-block-navigation__responsive-container-open::after {
  content: ""; position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform .3s ease, top .3s ease;
}
.main-nav .wp-block-navigation__responsive-container-open::before { top: 17px; }
.main-nav .wp-block-navigation__responsive-container-open::after { top: 25px; }
html.has-modal-open .main-nav .wp-block-navigation__responsive-container-open::before { top: 21px; transform: rotate(45deg); }
html.has-modal-open .main-nav .wp-block-navigation__responsive-container-open::after { top: 21px; transform: rotate(-45deg); }
html.has-modal-open { overflow: hidden; }

.main-nav .wp-block-navigation__responsive-container.is-menu-open {
  top: calc(var(--liipa-header) + var(--wp-admin--admin-bar--height, 0px));
  padding: 8px var(--wp--style--root--padding-right, 24px) 40px !important;
  background: var(--wp--preset--color--paper) !important;
  border-top: 1px solid var(--liipa-line);
  z-index: 999; animation: liipa-menu-in .3s ease both;
}
@keyframes liipa-menu-in { from { opacity: 0; } to { opacity: 1; } }
.main-nav .wp-block-navigation__responsive-container-close { display: none !important; }
.main-nav .is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 0 !important; }
.main-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 8px !important; align-items: stretch !important; }
.main-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; align-items: stretch !important; width: 100%; }
.main-nav .is-menu-open .wp-block-navigation-item { width: 100%; }
.main-nav .is-menu-open .wp-block-navigation-item:not(.nav-cta) .wp-block-navigation-item__content {
  display: block; width: 100%; padding: 18px 0 !important; text-align: center;
  font-size: 22px; font-weight: 300; border-bottom: 1px solid var(--liipa-line);
}
.main-nav .is-menu-open .wp-block-navigation-item:not(.nav-cta) .wp-block-navigation-item__content::after { display: none; }
.main-nav .is-menu-open .nav-cta { margin-top: 32px; }
.main-nav .is-menu-open .nav-cta .wp-block-navigation-item__content {
  display: flex; box-sizing: border-box; width: 100%; justify-content: center; padding: 18px 20px !important; font-size: 15px;
} /* puutepind ≥44px */

/* ---------- Sektsioonid ---------- */
.wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
.section { padding-top: var(--liipa-sec); padding-bottom: var(--liipa-sec); }
/* Sektsioonid kui lehed üksteise peal: iga sektsiooni ülaserva langeb eelmise vari
   (taustapildina, nii et värviline taust jääb alla). Tumedad sektsioonid vahelduvad valgetega.
   --liipa-bg: elemendid, mis peavad tausta katma. */
.section { --liipa-bg: var(--wp--preset--color--paper); }
.section.has-stone-background-color { --liipa-bg: var(--wp--preset--color--stone); }
.wp-block-post-content > * + .section, .wp-site-blocks > footer .site-footer {
  background-image: linear-gradient(to bottom, rgba(28,28,28,.06) 0, rgba(28,28,28,.02) 10px, rgba(28,28,28,0) 40px);
}
.wp-block-post-content > * + .section.section-dark, .wp-site-blocks > footer .site-footer {
  background-image: linear-gradient(to bottom, rgba(0,0,0,.6) 0, rgba(0,0,0,.25) 14px, rgba(0,0,0,0) 72px);
}
.section .wp-block-heading { max-width: 14em; }
.section-dark p { color: #c8c8c8; }
.section-dark .wp-block-heading { color: var(--wp--preset--color--paper); }

.wp-block-columns { gap: clamp(32px, 7vw, 104px); }

/* ---------- Hero ---------- */
 /* numbririda ei kleebi järgmise sektsiooni külge */

/* hero pildid: slaidiesitlus kuldse raamiga (raam on veerul, sest galerii lõikab ääred) */

/* ---------- Kaks veergu ---------- */

.sec-head .wp-block-heading { max-width: none; }
/* galerii stiil "Slaidiesitlus": redaktoris tavaline galerii, lehel vahetuvad pildid (JS lisab .is-playing) */
.wp-block-gallery.is-style-slideshow { margin-top: 48px !important; }
.wp-block-gallery.is-style-slideshow.is-playing {
  display: block !important; position: relative; aspect-ratio: 4 / 3; overflow: hidden;
}
.wp-block-gallery.is-style-slideshow.is-playing > .wp-block-image {
  position: absolute; inset: 0; width: 100% !important; margin: 0 !important;
  opacity: 0; transition: opacity 1.2s ease;
}
.wp-block-gallery.is-style-slideshow.is-playing > .wp-block-image.is-active { opacity: 1; z-index: 1; }
.wp-block-gallery.is-style-slideshow.is-playing > .wp-block-image img {
  width: 100% !important; height: 100% !important; object-fit: cover;
  transform: scale(1.06); transition: transform 7s linear;
}
.wp-block-gallery.is-style-slideshow.is-playing > .wp-block-image.is-active img { transform: scale(1); }
.slideshow-nav {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; gap: 0; height: 3px; background: rgba(255,255,255,.35);
}
.slideshow-nav button {
  flex: 1; height: 100%; padding: 0; border: 0; cursor: pointer; background: transparent;
  position: relative;
}
.slideshow-nav button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: -12px; /* suurem klõpsuala */
}
.slideshow-nav button.is-active { background: var(--liipa-gold); }
/* eelmine/järgmine nooled pildi servades, pildi suhtes vertikaalselt keskel; ilma taustata (ka hiirega), vari loetavuseks.
   Ilmuvad hiirega pildil; puuteekraanil alati vaoshoitult näha */
.slideshow-arrow {
  position: absolute; z-index: 3; top: 50%; width: 48px; height: 64px; padding: 0; border: 0; border-radius: 0;
  background: none; cursor: pointer; opacity: 0; transition: opacity .25s, transform .25s; filter: drop-shadow(0 0 2px rgba(0,0,0,.55)) drop-shadow(0 2px 10px rgba(0,0,0,.5));
}
.slideshow-arrow:hover, .slideshow-arrow:focus, .slideshow-arrow:active { background: none; }
.slideshow-prev { left: 8px; transform: translate(-6px, -50%); }
.slideshow-next { right: 8px; transform: translate(6px, -50%); }
.slideshow-arrow::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; border: solid #fff; border-width: 0 3px 3px 0; transition: border-color .25s;
}
.slideshow-prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.slideshow-next::before { transform: translate(-70%, -50%) rotate(-45deg); }
.wp-block-gallery.is-playing:hover .slideshow-arrow, .slideshow-arrow:focus-visible { opacity: 1; transform: translate(0, -50%); }
.slideshow-arrow:hover::before { border-color: var(--liipa-gold); }
.slideshow-arrow:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (hover: none) { .slideshow-arrow { opacity: .85; transform: translate(0, -50%); width: 40px; height: 56px; } .slideshow-arrow::before { width: 16px; height: 16px; } .slideshow-prev { left: 4px; } .slideshow-next { right: 4px; } }
@media (prefers-reduced-motion: reduce) { .slideshow-arrow { transition: opacity .25s; } }
.sec-head-row { margin-bottom: 48px !important; }
.sec-head-row .sec-note { margin-left: auto; }

/* ---------- Ruudustik (lahendused): pildikaardid ---------- */
.is-style-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.is-style-tiles > * {
  position: relative; margin: 0 !important; padding: 0 0 32px;
  background: var(--wp--preset--color--paper);
  border: 1px solid var(--liipa-line);
  transition: border-color .3s;
}
.is-style-tiles > *:hover { border-color: var(--liipa-gold); }
.is-style-tiles > *::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; z-index: 2;
  background: var(--liipa-gold); transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.is-style-tiles > *:hover::before { transform: scaleX(1); }
.is-style-tiles .tile-img { margin: 0 0 28px !important; overflow: hidden; }
.is-style-tiles .tile-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.is-style-tiles > *:hover .tile-img img { transform: scale(1.04); }
.is-style-tiles h3, .is-style-tiles p { padding: 0 32px; }
.is-style-tiles h3 { margin: 0 0 12px !important; }
.is-style-tiles p { margin: 0; font-size: 15px; color: var(--liipa-muted); }

/* ---------- Malelaud (lahendused): suur pilt ja tekst kõrvuti, rea kaupa vaheldumisi ----------
   Kaks teenust reas; teises reas on pilt paremal → pildid ja tekstid moodustavad malelaua.
   Pildi kõrguse annab ::before (4:3), tekst joondub keskele; pikem tekst teeb rea kõrgemaks. */

/* paarisread: pilt paremal */
@media (min-width: 1101px) {
  p), p) { grid-column: 1; }
}
/* kitsam ekraan: üks teenus reas, pilt vaheldumisi vasakul ja paremal */
@media (min-width: 601px) and (max-width: 1100px) {
  p) { grid-column: 1; }
}
/* mobiil: pilt üleval, tekst all */

/* ---------- Pilt + tekst ---------- */
/* Kärpimise fookus (pildi klass): kui pildi olulisem osa on üleval või all */

/* baar: kaks pilti kõrvuti, sama kõrgusega, täidavad veeru äärest ääreni */

/* peopaik: Liipa Talu pildid vahetuvad, raam nagu media-wide-il */

/* kaart/aerofoto: alati terve pilt, ilma kärpimata (sildid piltidel peavad jääma näha) */
 /* aspect-ratio tuleb width/height atribuutidest */

.wp-block-list.is-style-checks {
  list-style: none; padding: 0; margin-top: 32px !important;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--liipa-line);
}
.wp-block-list.is-style-checks li {
  position: relative; padding: 14px 16px 14px 26px; font-size: 15px; margin: 0;
  border-bottom: 1px solid var(--liipa-line);
}
.wp-block-list.is-style-checks li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px;
  margin-top: -4px; background: var(--liipa-gold); transform: rotate(45deg);
}

.wp-block-list.is-style-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-top: 16px; }
.wp-block-list.is-style-chips li { padding: 6px 14px; border: 1px solid var(--liipa-line); font-size: 13px; letter-spacing: .04em; margin: 0; }

/* ---------- Galerii mosaiik ---------- */


/* Üle nelja pildi: mosaiigis neli esimest, nupp avab kõik ühtlase ruudustikuna (theme.js) */
 /* "Näita kõiki pilte" nupp + vahe */

/* JS-iga loodud nupp ei saa theme.json-i "outline" variatsiooni klassi, seega sama välimus siin */


/* ---------- Pildi modaal ----------
   Kolm eraldi ala, mis jagavad ekraani kõrguse: ülariba | pildiala (nooled + peapilt) | pisipildid.
   Miski ei kattu ega lähe vaatest välja. */


.sc-modal {
  position: fixed; inset: 0; z-index: 2000; overflow: hidden;
  height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: 64px minmax(0, 1fr) auto;
  background: var(--wp--preset--color--ink); color: #fff;
  opacity: 0; transition: opacity .3s ease;
}
.sc-modal.is-open { opacity: 1; }
.sc-bg {
  position: absolute; inset: -80px; z-index: 0; background-size: cover; background-position: center;
  filter: blur(40px) saturate(1.1) brightness(.55); transform: scale(1.1);
}

/* ülariba */
.sc-top {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 24px; gap: 16px;
}
.sc-count { grid-column: 1; font-size: 12px; letter-spacing: .16em; }
.sc-caption { grid-column: 2; font-size: 13px; opacity: .85; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }

/* pildiala */
.sc-stage { position: relative; z-index: 1; min-height: 0; margin: 0 96px; }
.sc-main {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  transition: opacity .35s ease, transform .35s ease;
}
.sc-main.is-fading { opacity: 0; transform: scale(.985); }

/* nooled ja rist: ainult jooned, ilma taustata */
.sc-nav, .sc-close {
  width: 56px; height: 56px; padding: 0; cursor: pointer;
  display: grid; place-items: center; position: relative;
  background: none; border: 0; color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
  transition: color .25s;
}
.sc-nav:hover, .sc-close:hover { color: var(--liipa-gold); }
.sc-nav:focus-visible, .sc-close:focus-visible, .sc-thumb:focus-visible { outline: 1.5px solid var(--liipa-gold); outline-offset: 2px; }
.sc-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.sc-prev { left: -84px; }
.sc-next { right: -84px; }
.sc-nav::before {
  content: ""; width: 18px; height: 18px;
  border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor;
}
.sc-prev::before { transform: translateX(5px) rotate(-45deg); }
.sc-next::before { transform: translateX(-5px) rotate(135deg); }
.sc-close { grid-column: 3; justify-self: end; width: 48px; height: 48px; margin-right: -12px; }
.sc-close::before, .sc-close::after {
  content: ""; position: absolute; width: 22px; height: 1.5px; background: currentColor;
}
.sc-close::before { transform: rotate(45deg); }
.sc-close::after { transform: rotate(-45deg); }

/* pisipiltide riba — oma ala, mitte pildi peal */
.sc-thumbs {
  position: relative; z-index: 1; display: flex; gap: 10px;
  justify-content: safe center; overflow-x: auto; scrollbar-width: none;
  padding: 16px 24px 20px;
}
.sc-thumbs::-webkit-scrollbar { display: none; }
.sc-thumb {
  flex: 0 0 auto; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: pointer;
  position: relative; overflow: hidden; background: rgba(255,255,255,.1);
}
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .3s; }
.sc-thumb:hover img { opacity: .85; }
.sc-thumb::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; transition: border-color .3s; }
.sc-thumb.is-active img { opacity: 1; }
.sc-thumb.is-active::after { border-color: var(--liipa-gold); }
body.sc-lock { overflow: hidden; }

/* suurenda-nupp mosaiigi pildil: kaks nurga-chevroni (vasak ülal, parem all) */
.sc-expand, .wp-lightbox-container .lightbox-trigger {
  width: 30px; height: 30px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.92) !important; border: 1px solid rgba(255,255,255,.92) !important;
  border-radius: 0 !important; box-shadow: none !important;
  transition: background .25s, border-color .25s, opacity .25s;
}
.sc-expand { position: absolute; z-index: 2; top: 12px; right: 12px; opacity: 0; }
.wp-block-image:hover > .sc-expand, .sc-expand:focus-visible { opacity: 1; }
/* puutekraanil (telefon) nuppu ei näidata — pilt avaneb puudutusega */
@media (hover: none), (max-width: 781px) { .sc-expand:not(:focus-visible) { opacity: 0; pointer-events: none; } }
.sc-expand:hover, .wp-lightbox-container .lightbox-trigger:hover { background: var(--liipa-gold) !important; border-color: var(--liipa-gold) !important; }
.sc-expand:focus-visible, .wp-lightbox-container .lightbox-trigger:focus-visible { outline: 2px solid var(--liipa-gold); outline-offset: 3px; }
.wp-lightbox-container .lightbox-trigger svg { display: none; }
.sc-expand::before, .sc-expand::after,
.wp-lightbox-container .lightbox-trigger::before, .wp-lightbox-container .lightbox-trigger::after {
  content: ""; position: absolute; width: 6px; height: 6px;
  border: 0 solid var(--wp--preset--color--ink); transition: top .2s, left .2s, bottom .2s, right .2s, border-color .25s;
}
.sc-expand::before, .wp-lightbox-container .lightbox-trigger::before { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.sc-expand::after, .wp-lightbox-container .lightbox-trigger::after { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.sc-expand:hover::before, .wp-lightbox-container .lightbox-trigger:hover::before { top: 6px; left: 6px; border-color: #fff; }
.sc-expand:hover::after, .wp-lightbox-container .lightbox-trigger:hover::after { bottom: 6px; right: 6px; border-color: #fff; }

@media (max-width: 781px) {
  .sc-modal { grid-template-rows: 56px minmax(0, 1fr) auto; }
  .sc-top { padding: 0 12px; }
  .sc-caption { display: none; }
  .sc-stage { margin: 0 12px; }
  .sc-nav { width: 44px; height: 44px; }
  .sc-prev { left: 0; } .sc-next { right: 0; }
  .sc-thumbs { padding: 12px 12px 16px; }
  .sc-thumb { width: 72px; }
}

/* ---------- Tagasiside (tumedal taustal) ---------- */

/* vormi lisaväljad: valikmenüü, fail, nõusolek, 2 veergu */
.wpcf7 select {
  width: 100%; padding: 8px 28px 10px 0; border: 0; border-bottom: 1px solid #b5b5b5; border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23ccaa50' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E") no-repeat right 4px center;
  font: 400 16px var(--wp--preset--font-family--raleway); color: var(--wp--preset--color--ink);
  -webkit-appearance: none; appearance: none; outline: none; cursor: pointer;
}
.wpcf7 select:focus { border-bottom-color: var(--liipa-gold); }
.wpcf7 input[type="file"] {
  width: 100%; padding: 10px 0; font: 400 14px var(--wp--preset--font-family--raleway); color: var(--liipa-muted);
  border-bottom: 1px dashed #b5b5b5; cursor: pointer;
}
.wpcf7 input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 9px 16px; border: 1px solid var(--wp--preset--color--ink); background: transparent;
  font: 500 13px var(--wp--preset--font-family--raleway); letter-spacing: .05em; color: var(--wp--preset--color--ink);
  cursor: pointer; transition: background .25s, color .25s;
}
.wpcf7 input[type="file"]::file-selector-button:hover { background: var(--wp--preset--color--ink); color: #fff; }
/* vihje välja all ei mõjuta välja kõrgust → alumised jooned ühel joonel */
.rf-field { position: relative; }
.wpcf7 input[type="file"] { padding: 6px 0 9px; }
.rf-consent { margin: 0; font-size: 14px; color: var(--liipa-muted); }
.rf-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rf-consent a:hover { color: var(--liipa-gold); }
/* nõusolek ja saatmisnupp ühel real (kui mahub) */
.wpcf7 form.wpcf7-form { display: flex; flex-wrap: wrap; align-items: center; column-gap: 32px; }
.wpcf7 form.wpcf7-form > * { flex: 1 1 100%; min-width: 0; }
.wpcf7 form.wpcf7-form > .rf-consent { flex: 1 1 20em; }
.wpcf7 form.wpcf7-form > .rf-foot { flex: 0 0 auto; margin-left: auto; }
.wpcf7 form.wpcf7-form > .rf-consent + .rf-foot { margin-top: 0; }
.wpcf7 form.wpcf7-form > .hidden-fields-container { display: none; }
.rf-consent .wpcf7-list-item { margin: 0; }
.rf-consent label { display: inline-flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.rf-consent input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; margin: 3px 0 0;
  width: 16px; height: 16px; border: 1px solid #8a8a8a; display: grid; place-content: center; cursor: pointer;
}
.rf-consent input[type="checkbox"]::after { content: ""; width: 8px; height: 8px; background: var(--liipa-gold); transform: scale(0); transition: transform .15s; }
.rf-consent input[type="checkbox"]:checked { border-color: var(--liipa-gold); }
.rf-consent input[type="checkbox"]:checked::after { transform: scale(1); }

/* ---------- Päring: pealkiri vasakul, vorm paremal ---------- */

/* sotsiaalmeedia (WordPressi "Sotsiaalmeedia ikoonid" plokk): brändivärvide asemel teema toonid */
 /* puutepind ≥44px */




/* ---------- Päringu pealkiri ---------- */

/* ---------- Contact Form 7 ---------- */
.wpcf7 form { max-width: 960px; margin: 0 auto; }
/* Vormi read: väli koos sildiga liigub tervikuna uuele reale, kui ruumi ei jätku;
   sildid jäävad ühele reale ja sama rea väljad joonduvad alt. */
.rf-row { display: flex; flex-wrap: wrap; gap: 22px 20px; margin-bottom: 28px; align-items: flex-end; }
.rf-row > .rf-field { flex: 1 1 100%; min-width: 0; }
.rf-3 > .rf-field { flex: 1 1 13em; } /* kuupäev vajab kalendriikooni jaoks veidi rohkem */
.rf-field > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rf-field > span:first-child, .rf-legend { font-size: 14px; font-weight: 500; }
.rf-field .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="date"], .wpcf7 input[type="number"], .wpcf7 textarea {
  width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid #b5b5b5;
  background: transparent; font: 400 16px var(--wp--preset--font-family--raleway); color: var(--wp--preset--color--ink);
  border-radius: 0; outline: none; transition: border-color .25s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-bottom-color: var(--liipa-gold); }
.wpcf7 textarea { resize: vertical; min-height: 110px; height: 110px; }
.wpcf7 .wpcf7-not-valid { border-bottom-color: #b3261e; }
.wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
/* veateated alles pärast esimest saatmiskatset (CF7 kontrollib ka valiku muutmisel ja näitaks täitmata välju liiga vara) */
.wpcf7 form:not(.rf-tried) .wpcf7-not-valid-tip { display: none; }
.wpcf7 form:not(.rf-tried) .wpcf7-not-valid { border-bottom-color: inherit; }
.rf-radios { margin-bottom: 28px; }
.rf-legend { display: block; margin-bottom: 14px; }
.wpcf7-radio { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.wpcf7-radio .wpcf7-list-item { margin: 0; }
.wpcf7-radio label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.wpcf7-radio input {
  -webkit-appearance: none; appearance: none; margin: 0;
  width: 16px; height: 16px; border: 1px solid #8a8a8a; display: grid; place-content: center; cursor: pointer;
}
.wpcf7-radio input::after { content: ""; width: 8px; height: 8px; background: var(--liipa-gold); transform: scale(0); transition: transform .15s; }
.wpcf7-radio input:checked { border-color: var(--liipa-gold); }
.wpcf7-radio input:checked::after { transform: scale(1); }
.wpcf7-radio input:focus-visible { outline: 2px solid var(--liipa-gold); outline-offset: 2px; }
.rf-foot { position: relative; display: flex; justify-content: flex-end; margin-top: 28px; }
.wpcf7-submit {
  height: 48px; padding: 0 28px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--wp--preset--color--graphite); color: #fff;
  font: 500 14px/1 var(--wp--preset--font-family--raleway); letter-spacing: .06em; transition: background .25s;
}
.wpcf7-submit:hover { background: var(--liipa-gold); }
.rf-foot .wpcf7-spinner { position: absolute; right: 100%; top: 50%; margin: -12px 12px 0 0; }
.rf-foot { padding-left: 48px; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border-width: 1px; font-size: 15px; }

/* ---------- Jalus: neli tasakaalus veergu + alumine riba ---------- */
.site-footer { padding-top: clamp(48px, 7vw, 80px); font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--wp--preset--color--gold); }
.site-footer p { margin: 0; }
.site-footer .is-style-eyebrow { margin-bottom: 18px !important; }
.footer-grid { gap: clamp(32px, 4vw, 64px) !important; padding-bottom: clamp(40px, 5vw, 64px); }
.footer-tagline { margin-top: 20px !important; max-width: 22em; color: #a8a8a8; line-height: 1.65; }
.footer-contact { line-height: 2; }
.footer-nav { gap: 6px !important; }
.footer-nav .wp-block-navigation-item__content { padding: 0; line-height: 1.8; }
.site-footer .wp-block-navigation { font-size: 15px; }
.footer-social { line-height: 2; }
.footer-base {
  padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: #8c8c8c;
}
@media (min-width: 600px) and (max-width: 1080px) {
  .footer-grid { flex-wrap: wrap !important; }
  .footer-grid > .wp-block-column { flex-basis: calc(50% - 32px) !important; flex-grow: 0 !important; }
}
@media (max-width: 599px) {
  .footer-grid { text-align: center; }
  .footer-brand .footer-logo { display: flex; justify-content: center; }
  .site-footer .footer-tagline { margin-left: auto; margin-right: auto; } /* .site-footer p { margin: 0 } muidu võidab */
  .site-footer .footer-nav, .site-footer .footer-nav .wp-block-navigation__container { width: 100%; align-items: center !important; justify-content: center; }
  .site-footer .footer-nav .wp-block-navigation-item { justify-content: center; }
  .footer-base { justify-content: center !important; text-align: center; flex-direction: column; gap: 6px; }
}

/* ---------- Tavaleht ---------- */
.page-main { padding-top: 64px; padding-bottom: 96px; }
/* tekstilehed (nt privaatsuspoliitika): loetav rütm — üldine reegel nullib sisu plokkide vahed */
.page-main .wp-block-post-title { margin-bottom: 40px; }
.page-main .wp-block-post-content > h2.wp-block-heading { font-size: clamp(22px, 2.2vw, 28px) !important; font-weight: 400; /* !important: lauaarvuti sektsioonide h2 reegel */ margin-top: 48px; margin-bottom: 12px; }
.page-main .wp-block-post-content > h3 { font-size: 19px; margin-top: 32px; margin-bottom: 8px; }
.page-main .wp-block-post-content > p, .page-main .wp-block-post-content > ul { margin-top: 0; margin-bottom: 16px; }
.page-main .wp-block-post-content > ul { padding-left: 1.2em; }
.page-main .wp-block-post-content > ul li + li { margin-top: 8px; }
.page-main .wp-block-post-content a { color: inherit; text-underline-offset: 2px; }
.page-main .wp-block-post-content a:hover { color: var(--liipa-gold); }

/* ---------- Ilmumise animatsioon (ainult esilehel, ainult JS-iga) ---------- */
.js .liipa-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .liipa-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wp-block-gallery.is-style-slideshow.is-playing > .wp-block-image img { transform: none !important; transition: none; }
  .js .liipa-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Kohanduv ---------- */

/* täismenüü kitsamal sülearvutil: kõik mahub ühele reale (ka ingliskeelne menüü ja ET/EN) */
@media (min-width: 1081px) and (max-width: 1320px) {
  .header-logo img { width: 170px; }
  .header-inner, .header-right { gap: 18px; }
  .main-nav .wp-block-navigation__container { gap: 18px !important; }
  .main-nav .wp-block-navigation-item__content { font-size: 12px; letter-spacing: .07em; }
  .main-nav .nav-cta .wp-block-navigation-item__content { padding: 10px 14px; }
  .lang-switch { padding-left: 16px; }
}
@media (max-width: 1080px) {
  .header-right { gap: 14px; }
  .lang-switch { padding-left: 14px; }
  .main-nav { gap: 16px; }
  .main-nav .wp-block-navigation-item__content { font-size: 13px; }
}

@media (max-width: 781px) {
  .is-style-tiles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .is-style-tiles { grid-template-columns: 1fr; }
  .is-style-tiles h3, .is-style-tiles p { padding: 0 24px; }
  .wp-block-list.is-style-checks { grid-template-columns: 1fr; }
  .rf-foot .wpcf7-submit { width: 100%; }
}

/* ---------- Lauaarvuti/sülearvuti: iga sektsioon mahub ekraanile ----------
   Laius ≥921px. Vahed, pealkirjad ja pildid sõltuvad vaateala kõrgusest;
   --liipa-avail = ekraani kõrgus päise all. Koos ekraani laiusega kasvava sisulaiusega
   (vt "Suur ekraan" all) näeb 1920×1080 ja 2560×1440 välja nagu sülearvuti, mitte välja veninud. */
@media (min-width: 921px) {
  :root {
    --liipa-sec: clamp(40px, 8vh, 84px);
    /* ekraani kõrgus päise all, aga mitte rohkem kui sülearvuti suhe sisu laiusest (905/1320) */
    --liipa-avail: min(calc(100vh - var(--liipa-header) - var(--wp-admin--admin-bar--height, 0px)), clamp(1320px, 86vw, 1650px) * .69);
    --liipa-h2: clamp(30px, 5.4vh, 46px);
  }
  h2.wp-block-heading { font-size: var(--liipa-h2) !important; }
  .is-style-eyebrow + .wp-block-heading { margin-top: 10px !important; }

  /* hero: pilt + numbririda mahuvad koos ekraanile */

  /* meist: slaidiesitluse kõrgus ekraani järgi */

  .wp-block-gallery.is-style-slideshow { margin-top: 3.4vh !important; }
  .wp-block-gallery.is-style-slideshow.is-playing { aspect-ratio: auto; height: calc(var(--liipa-avail) - 2 * var(--liipa-sec) - 3.4vh - 24px - 2 * 5.4vh * 1.12 - 20px); min-height: 240px; }

  /* lahendused: horisontaalsed pildikaardid (pilt vasakul) */
  .sec-head-row { margin-bottom: 3.4vh !important; }
  .is-style-tiles { gap: 16px; }
  .is-style-tiles > * { display: grid; grid-template-columns: 40% 1fr; grid-template-rows: auto 1fr; column-gap: 22px; padding: 0 22px 0 0; }
  .is-style-tiles .tile-img { grid-row: 1 / span 2; margin: 0 !important; position: relative; min-height: 100%; }
  .is-style-tiles .tile-img img { position: absolute; inset: 0; height: 100% !important; aspect-ratio: auto; }
  .is-style-tiles h3 { padding: 2.4vh 0 0 !important; margin-bottom: 8px !important; font-size: 19px; }
  .is-style-tiles p { padding: 0 0 2.4vh !important; font-size: 14px; line-height: 1.55; }

  /* baar ja pildid kõrvuti tekstiga */

  .wp-block-list.is-style-checks { margin-top: 2.6vh !important; }
  .wp-block-list.is-style-checks li { padding-top: 11px; padding-bottom: 11px; }
  .section-dark .has-large-font-size { margin: 2.4vh 0 3vh !important; }

  /* galerii: mosaiigi read ekraani järgi */
  
  /* "Näita kõiki pilte" nupp (~54px + vahe) mahub samale ekraanile: mosaiigi read selle võrra madalamad */
  

  /* tagasiside */

  /* päringuvorm tihedamaks */
  .rf-row { margin-bottom: 2.2vh; gap: 18px; }
  .rf-radios { margin-bottom: 2.2vh; }
  .rf-legend { margin-bottom: 10px; }
  .wpcf7 textarea { min-height: 76px; height: 76px; }
  .rf-foot { margin-top: 2vh; }
}

/* ---------- Mobiil: nupud keskel ja sama laiad kui muu sisu ---------- */
@media (max-width: 781px) {
  .wp-block-buttons { flex-direction: column; align-items: stretch !important; justify-content: center !important; width: 100%; }
  .wp-block-buttons > .wp-block-button { width: 100%; margin: 0; }
  .wp-block-buttons > .wp-block-button > .wp-block-button__link { display: flex; box-sizing: border-box; width: 100%; justify-content: center; text-align: center; }
  .rf-foot { padding-left: 0; justify-content: stretch; }
  .wpcf7 form.wpcf7-form > .rf-foot { flex: 1 1 100%; margin-left: 0; }
  .wpcf7 form.wpcf7-form > .rf-consent + .rf-foot { margin-top: 24px; }
  .rf-foot .wpcf7-submit { width: 100%; }
  .rf-foot .wpcf7-spinner { right: auto; left: 50%; top: auto; bottom: -32px; margin: 0 0 0 -12px; }
  }

/* ---------- Suur ekraan: sama ilme mis sülearvutil ----------
   Sisu laius kasvab koos ekraaniga (sülearvutil ~1320px ehk ~86% laiusest) kuni 1650px, nii et
   laial ekraanil ei jää kitsas veerg keskele. theme.json-i contentSize/wideSize (1320/1440px) on miinimum.
   Body't kasutab ka WordPressi globaalsete stiilide muutuja, seega sama selektor. */
body {
  --wp--style--global--content-size: clamp(1320px, 86vw, 1650px);
  --wp--style--global--wide-size: clamp(1440px, 92vw, 1770px);
}
/* Kõrgemal ekraanil pealkirjad ja numbrid samas suhtes ekraaniga (sülearvutil ≤1000px ei muutu midagi) */
@media (min-width: 921px) and (min-height: 1001px) {
  /* suurused --liipa-avail-ist (mitte vh-st), et 1650px sisulaiuse juures jääks suhe samaks */
  :root { --liipa-h2: clamp(46px, calc(var(--liipa-avail) * .055), 80px); }
}

/* =====================================================================
   Liipa Talu: suured pildid (Maasikavillade vaimus) + Rehe korrapärane põhi
   ===================================================================== */
:root { --liipa-header: 84px; --liipa-deep: var(--wp--preset--color--gold-deep); }

/* ---------- Logo: tume valgel päisel, hele pildi peal ja jaluses ---------- */
.header-logo img { display: block; width: clamp(170px, 15vw, 240px); height: auto; }
.header-logo .logo-light { display: none; }
.footer-logo img { width: 220px; height: auto; }

/* ---------- Täisekraani pildiga lehed (body.has-hero): päis on pildi peal läbipaistev ---------- */
.site-header { transition: background-color .35s ease, box-shadow .35s ease, color .35s ease; }
.has-hero .wp-site-blocks > header.wp-block-template-part { position: fixed; left: 0; right: 0; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header { background: transparent; box-shadow: none; color: #fff; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header :is(a, .wp-block-site-title a) { color: #fff; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .header-logo .logo-dark { display: none; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .header-logo .logo-light { display: block; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .main-nav .nav-cta .wp-block-navigation-item__content {
  background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .main-nav .nav-cta .wp-block-navigation-item__content:hover { background: #fff; color: var(--wp--preset--color--ink); }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header .main-nav .wp-block-navigation-item__content::after { background: #fff; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header .lang-switch { border-left-color: rgba(255,255,255,.35); }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header .lang-switch a { color: rgba(255,255,255,.7); }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header .lang-switch a.is-current,
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header .lang-switch a:hover { color: #fff; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header .lang-switch span { color: rgba(255,255,255,.35); }
.main-nav .nav-cta .wp-block-navigation-item__content { background: var(--wp--preset--color--ink); }
.main-nav .nav-cta .wp-block-navigation-item__content:hover { background: var(--liipa-gold); color: var(--wp--preset--color--ink); }

/* ---------- Hero (core/cover): pilt üle ekraani, pealkiri all vasakul ---------- */
/* Tume taust kohe; pilt või video tuleb sujuvalt ette alles siis, kui see on laaditud (theme.js lisab .is-loaded).
   Varuvõrk: kui theme.js ei käivitu (html.js, aga mitte .hero-js), tuleb pilt 6 s pärast sujuvalt ette.
   Ilma JS-ita (html:not(.js)) on pilt kohe nähtav. */
.wp-block-cover:is(.hero-full, .page-hero) { background-color: var(--wp--preset--color--ink); }
html.js .wp-block-cover:is(.hero-full, .page-hero) > :is(.wp-block-cover__image-background, .wp-block-cover__video-background) {
  opacity: 0; transition: opacity .9s cubic-bezier(.2, .6, .2, 1);
}
html.js:not(.hero-js) .wp-block-cover:is(.hero-full, .page-hero) > :is(.wp-block-cover__image-background, .wp-block-cover__video-background) { animation: liipa-hero-fallback .9s 6s forwards; }
html.js .wp-block-cover:is(.hero-full, .page-hero) > .is-loaded { opacity: 1; }
html.js .wp-block-cover:is(.hero-full, .page-hero) > .is-loaded.is-instant { transition: none; }
@keyframes liipa-hero-fallback { to { opacity: 1; } }
/* Sisupildid: ootel pilt on nähtamatu, laaditud pilt tuleb sujuvalt ette (theme.js: .liipa-wait → .liipa-in).
   Animatsioon (mitte transition), et pildi enda hover-üleminekud (suum, läbipaistvus) jääksid alles; „from“ ilma
   „to“-ta animeerib pildi tavalise läbipaistvuseni (nt galerii pisipilt .5). */
html.js img.liipa-wait { opacity: 0 !important; }
html.js img.liipa-in { animation: liipa-img-in .7s cubic-bezier(.2, .6, .2, 1); }
@keyframes liipa-img-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.js .wp-block-cover:is(.hero-full, .page-hero) > :is(.wp-block-cover__image-background, .wp-block-cover__video-background) { transition-duration: .2s; }
  html.js img.liipa-in { animation-duration: .2s; }
}
.wp-block-cover.hero-full, .wp-block-cover.page-hero {
  align-items: flex-end; padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right);
}
.wp-block-cover.hero-full { min-height: 100vh !important; min-height: 100svh !important; padding-bottom: clamp(48px, 10vh, 112px); }
.wp-block-cover.page-hero { min-height: clamp(420px, 66vh, 760px) !important; padding-bottom: clamp(40px, 8vh, 88px); }
.wp-block-cover.hero-full::after, .wp-block-cover.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.42) 0, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 48%, rgba(0,0,0,.58) 100%);
}
/* alalehtede päis: tugevam varjutus vasakul ja all, kus tekst on, et pealkiri ja tekst paistaksid paremini välja */
.wp-block-cover.page-hero::after {
  background:
    linear-gradient(to right, rgba(0,0,0,.5) 0, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 75%),
    linear-gradient(to bottom, rgba(0,0,0,.42) 0, rgba(0,0,0,0) 24%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.72) 100%);
}
.page-hero .wp-block-cover__inner-container { text-shadow: 0 2px 14px rgba(0,0,0,.35); }
:is(.hero-full, .page-hero) > .wp-block-cover__inner-container {
  position: relative; z-index: 1; width: 100%; max-width: var(--wp--style--global--content-size); margin: 0 auto; color: #fff;
}
:is(.hero-full, .page-hero) .wp-block-heading { color: #fff; max-width: none; margin: 14px 0 0; }
.hero-full h1.wp-block-heading { font-size: clamp(60px, 11vw, 168px) !important; line-height: .92; letter-spacing: .005em; }
.page-hero h1.wp-block-heading { font-size: clamp(48px, 7.4vw, 112px) !important; line-height: .95; }
:is(.hero-full, .page-hero) .is-style-eyebrow { color: #fff; opacity: .9; }
.hero-sub { margin: 22px 0 0 !important; max-width: 34em; font-size: clamp(16px, 1.3vw, 19px); letter-spacing: .02em; color: rgba(255,255,255,.92); }
:is(.hero-full, .page-hero) .wp-block-buttons { margin-top: clamp(28px, 5vh, 44px); }
/* nupp pildi peal: valge joon */
.wp-block-button.is-style-light > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }
.wp-block-button.is-style-gold > .wp-block-button__link { color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-gold > .wp-block-button__link:hover { background: #fff; border-color: #fff; }
/* kerimisvihje hero all */

/* ---------- Tekst ---------- */
/* suur serif-lause (sissejuhatus) */
.is-style-statement {
  font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(28px, 3vw, 46px) !important;
  line-height: 1.22; color: var(--wp--preset--color--ink); max-width: 24em;
}
.is-style-statement em { font-style: normal; color: var(--liipa-deep); }
.section .wp-block-heading { max-width: 18em; }
.sec-head-row { align-items: flex-end !important; gap: 24px 64px !important; }

/* ---------- Hoone/teema sektsioon: pilt(id) ja tekst kõrvuti, vaheldumisi ---------- */
.feature { gap: clamp(32px, 6vw, 96px) !important; }
.feature .wp-block-gallery.is-style-slideshow { margin-top: 0 !important; }
.feature .wp-block-gallery.is-style-slideshow.is-playing { aspect-ratio: 4 / 3 !important; height: auto !important; }
.feature-media .wp-block-image { margin: 0; }
.feature-media .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.feature-body > .wp-block-heading { margin-top: 12px !important; }
.feature-body p:not(.is-style-eyebrow) { color: #3a3a3a; }
.section-dark .feature-body p:not(.is-style-eyebrow) { color: #c8c8c8; }
@media (min-width: 782px) { .feature.is-reversed { flex-direction: row-reverse; } }
.facts { margin-top: 28px !important; }

/* ---------- Hinnatabel (core/table, stiil "Hinnatabel") ---------- */
.wp-block-table.is-style-prices { margin: 0; overflow-x: auto; }
.wp-block-table.is-style-prices table { width: 100%; border-collapse: collapse; font-size: 16px; table-layout: fixed; } /* fixed: kõigi hinnatabelite veerud joonduvad */
.wp-block-table.is-style-prices :is(th, td):first-child { width: 50%; }
.wp-block-table.is-style-prices tbody td:first-child { font-weight: 600; }
.wp-block-table.is-style-prices :is(th, td) { border: 0; border-bottom: 1px solid var(--liipa-line); padding: 16px 12px 16px 0; text-align: left; vertical-align: top; }
.wp-block-table.is-style-prices thead :is(th, td) {
  border-bottom: 1px solid var(--wp--preset--color--ink); padding-top: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-muted);
}
.wp-block-table.is-style-prices :is(th, td):not(:first-child) { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 16px; }
.wp-block-table.is-style-prices tbody td:not(:first-child) { font-size: 17px; line-height: 1.4; white-space: normal; } /* hind on &nbsp;-idega koos, murduda saab ainult „/ kämping“ */ /* hinnad samas kirjas kui objektid: vähem erinevaid kirju ja suurusi */
.wp-block-table.is-style-prices tbody tr:hover td { background: var(--wp--preset--color--stone); }
.wp-block-table.is-style-prices figcaption{ font-size: 14px; color: var(--liipa-muted); margin-top: 14px; text-align: left; }
.price-block + .price-block { margin-top: clamp(40px, 6vh, 64px) !important; }
.price-block > .wp-block-heading { margin: 0 0 18px !important; font-size: clamp(24px, 2.2vw, 32px) !important; font-weight: 600; color: var(--wp--preset--color--gold-deep); }
.season { display: grid; grid-template-columns: repeat(auto-fit, minmax(16em, 1fr)); gap: 0; border-top: 1px solid var(--liipa-line); border-bottom: 1px solid var(--liipa-line); margin-top: 32px !important; }
.season > * { margin: 0 !important; padding: 20px 24px 20px 0; }
.season > * + * { border-left: 1px solid var(--liipa-line); padding-left: 24px; }
.season strong { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-deep); margin-bottom: 4px; }

/* ---------- Paketid: pildikaardid hinnaga ---------- */
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } /* neli kaarti ühes reas */
.packages > .package { margin: 0 !important; display: flex; flex-direction: column; border: 1px solid var(--liipa-line); background: var(--wp--preset--color--paper); transition: border-color .3s; }
.packages > .package:hover { border-color: var(--liipa-gold); }
.package > .wp-block-image { margin: 0 !important; overflow: hidden; }
.package > .wp-block-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.package:hover > .wp-block-image img { transform: scale(1.03); }
.package > :not(.wp-block-image) { margin-left: clamp(18px, 1.5vw, 24px) !important; margin-right: clamp(18px, 1.5vw, 24px) !important; }
.package > .is-style-eyebrow { margin-top: 20px !important; font-size: 11px !important; }
.package > h3 { margin-top: 8px !important; margin-bottom: 8px !important; font-size: clamp(21px, 1.6vw, 25px) !important; line-height: 1.2; }
.package > p:not(.is-style-eyebrow):not(.package-price) { font-size: 14px; line-height: 1.55; color: var(--liipa-muted); margin-top: 0; }
.package .wp-block-list.is-style-checks { grid-template-columns: 1fr; margin-top: 10px !important; }
.package .wp-block-list.is-style-checks li { padding-top: 6px; padding-bottom: 6px; font-size: 13.5px; line-height: 1.45; }
.package-price { margin-top: auto !important; padding-top: 18px; font-family: var(--wp--preset--font-family--abhaya); font-size: 28px; line-height: 1.1; }
.package-price small { display: block; min-height: 2.9em; margin-top: 4px; font-family: var(--wp--preset--font-family--raleway); font-size: 12px; line-height: 1.45; color: var(--liipa-muted); letter-spacing: .04em; }
.package-price.is-quote { font-size: 22px; }
.package > .wp-block-buttons { margin-top: 14px !important; margin-bottom: 22px !important; }
@media (max-width: 1100px) { .packages { grid-template-columns: repeat(2, 1fr); } }
/* telefonis kaardid kõrvuti, sõrmega libistatav rida (järgmine kaart paistab servast) */
@media (max-width: 600px) {
  .packages { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
  .packages > .package { scroll-snap-align: start; }
}

/* lisavõimalused / sildid tumedal taustal */
.section-dark .wp-block-list.is-style-checks { border-top-color: rgba(255,255,255,.18); }
.section-dark .wp-block-list.is-style-checks li { border-bottom-color: rgba(255,255,255,.12); color: #ddd; }

/* ---------- Ajalugu: pilt ja soe tekst ---------- */

/* ---------- Kaart ---------- */
.map-embed { margin: 0; border: 1px solid var(--liipa-line); }
.map-embed iframe { display: block; width: 100%; height: clamp(360px, 60vh, 560px); border: 0; }
.map-address { font-size: 15px; line-height: 1.9; color: var(--liipa-muted); }
.map-address a { color: var(--wp--preset--color--ink); }

/* ---------- Kodukord: rahulik tekstiveerg + loetelud ---------- */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 64px) clamp(32px, 6vw, 96px); }
.rules > * { margin: 0 !important; }
.rules h3 { font-size: clamp(24px, 2vw, 30px) !important; margin: 0 0 14px !important; padding-top: 18px; border-top: 1px solid var(--wp--preset--color--ink); }
.rules ul { margin: 0; padding: 0; list-style: none; }
.rules li { position: relative; padding: 8px 0 8px 22px; font-size: 16px; line-height: 1.6; }
.rules li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--liipa-gold); }
.rules p { font-size: 16px; color: #3a3a3a; }
@media (max-width: 781px) { .rules { grid-template-columns: 1fr; } }

/* ---------- Discgolfi rajad ---------- */
.holes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30em), 1fr)); gap: 0 48px; border-top: 1px solid var(--liipa-line); }
.holes li { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--liipa-line); font-size: 16px; margin: 0; }
.holes li strong { font-family: var(--wp--preset--font-family--abhaya); font-size: 28px; font-weight: 400; color: var(--liipa-deep); }

/* ---------- Päringu riba (iga lehe jaluses) ---------- */
.inquiry { border-top: 1px solid var(--liipa-line); }
/* kui sisu viimane sektsioon on pilt või värviline/tume taust, eraldab see juba ise — joont pole vaja */
.wp-site-blocks:has(.site-main .wp-block-post-content > :is(.wp-block-cover, .has-background:not(.has-paper-background-color)):last-child) .inquiry { border-top: 0; }
.inquiry .wp-block-heading { max-width: 10em; }
.wpcf7-submit { background: var(--wp--preset--color--ink); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 600; }
.wpcf7-submit:hover { background: var(--liipa-gold); color: var(--wp--preset--color--ink); }
/* linnukesed (mitu valikut) nagu raadionupud */
.wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.wpcf7-checkbox label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.wpcf7-checkbox input {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none;
  width: 16px; height: 16px; border: 1px solid #8a8a8a; display: grid; place-content: center; cursor: pointer;
}
.wpcf7-checkbox input::after { content: ""; width: 8px; height: 8px; background: var(--liipa-gold); transform: scale(0); transition: transform .15s; }
.wpcf7-checkbox input:checked { border-color: var(--liipa-gold); }
.wpcf7-checkbox input:checked::after { transform: scale(1); }
.wpcf7-checkbox input:focus-visible { outline: 2px solid var(--liipa-gold); outline-offset: 2px; }
.rf-group { margin-bottom: 28px; }
.rf-group .rf-legend small { font-weight: 400; color: var(--liipa-muted); }
/* ööbijate arv: nähtav ainult siis, kui ööbimine = jah (theme.js), ilma JS-ita alati */
.js .rf-stay-count[hidden] { display: none; }
.js .rf-catering-more[hidden] { display: none; }
.js .rf-other[hidden] { display: none; }
.rf-other { max-width: 32em; margin-top: 14px !important; }
/* ööbimise ja toitlustuse rida: kaks veergu, lisaväljad ilmuvad oma valiku alla */
.rf-stay { align-items: flex-start; }
.rf-stay > .rf-col { flex: 1 1 22em; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rf-stay .rf-stay-count { max-width: 16em; }
.rf-catering-more { display: grid; gap: 16px; padding: 4px 0 4px 20px; border-left: 2px solid var(--liipa-gold); background: #fff; }
.rf-catering-more > .rf-row { margin-bottom: 0; }
.rf-catering-more > br, .rf-catering-more > p:empty { display: none; } /* CF7 lisab reavahetused ja tühjad lõigud */
.rf-catering-more > p { margin: 0 !important; }

/* ---------- Jalus ---------- */
.site-footer .is-style-eyebrow { color: var(--liipa-gold); }
.footer-booking { margin-top: 18px !important; font-size: 14px; color: #a8a8a8; line-height: 1.7; }
.footer-booking a { color: #fff; border-bottom: 1px solid rgba(204,170,80,.6); }

/* ---------- Kitsas ekraan ---------- */
@media (max-width: 781px) {
  .header-logo img { width: 170px; }
  .feature-media { order: -1; }
  .season > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--liipa-line); }
}
.center-cta { justify-content: center; margin-top: clamp(32px, 5vh, 56px) !important; }
/* kõrvuti nupud ühelaiused (laiema järgi) */
@media (min-width: 782px) {
  .center-cta { display: grid !important; grid-template-columns: repeat(2, minmax(200px, 1fr)); width: fit-content; margin-left: auto !important; margin-right: auto !important; }
  .center-cta > .wp-block-button > .wp-block-button__link { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
}
.section-stone { --liipa-bg: var(--wp--preset--color--stone); }
.section-stone .is-style-tiles > * { background: var(--wp--preset--color--paper); }
.section-stone { background-color: var(--wp--preset--color--stone); }
.rules-col .wp-block-list, .rules-item .wp-block-list { margin: 0; padding: 0; list-style: none; }
.rules-col .wp-block-list li { position: relative; padding: 8px 0 8px 22px; font-size: 16px; line-height: 1.6; }
.rules-col .wp-block-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--liipa-gold); }
.rules-col .sec-note { margin-top: 24px !important; }
.rules { margin-top: clamp(40px, 6vh, 72px) !important; }
.booking-row .wp-block-buttons { justify-content: flex-end; }
.intro-cols { margin-top: clamp(28px, 4vh, 48px) !important; }
.intro-cols p { color: #3a3a3a; }

/* ---------- Parandused (ülevaatus 1) ---------- */
.wpcf7 form br { display: none; } /* CF7 lisab välja märgendite vahele <br>-i */
.site-footer .wp-block-navigation { text-transform: none; letter-spacing: 0; font-weight: 400; }
/* suur lause algab sisu vasakust servast (constrained layout tsentreeriks kitsama ploki) */
.section > .is-style-statement { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; margin-right: auto !important; }
/* päis on pildi peal (fixed): sisu algab kohe ülevalt, ilma plokkide vahe-marginita */
.has-hero .wp-site-blocks > main, .has-hero .wp-site-blocks > header + * { margin-block-start: 0 !important; }

/* =====================================================================
   Avaleht v2 — oma ülesehitus (kollaaž, sündmuste valik, hoonete riba,
   fotoriba, paketiread, tume veerugalerii, KKK)
   ===================================================================== */

/* nupp-link: tekst + nool, joon all */
.wp-block-button.is-style-link > .wp-block-button__link {
  background: none; border: 0; padding: 0 0 6px; color: var(--wp--preset--color--ink);
  border-bottom: 1px solid var(--wp--preset--color--ink); border-radius: 0;
}
.wp-block-button.is-style-link > .wp-block-button__link:hover { color: var(--liipa-deep); border-color: var(--liipa-gold); background: none; }
.section-dark .wp-block-button.is-style-link > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- Tutvustus: kollaaž ---------- */
.intro-grid { gap: clamp(32px, 6vw, 96px) !important; }
.collage { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 5 / 4; }
.collage > .wp-block-image { margin: 0 !important; overflow: hidden; }
.collage > .wp-block-image:first-child { grid-row: 1 / span 2; }
.collage img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.intro-text > .wp-block-heading { margin-top: 12px !important; }
.intro-lead { font-size: 19px; line-height: 1.6; color: var(--wp--preset--color--ink); }
.intro-text p:not(.intro-lead):not(.is-style-eyebrow) { color: #3a3a3a; }

/* ---------- Talu lugu: fotoriba ---------- */
.wp-block-cover.story-band { padding: clamp(64px, 12vh, 140px) var(--wp--style--root--padding-left); }
.story-band > .wp-block-cover__inner-container { max-width: 720px; margin: 0 auto; text-align: center; color: #fff; }
.story-band .wp-block-heading { color: #fff; margin: 12px auto 20px !important; max-width: none; }
.story-band p:not(.is-style-eyebrow) { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; color: rgba(255,255,255,.92); }
.story-band .is-style-eyebrow { color: var(--liipa-gold); }
/* galerii stiil "Liikuv riba": pildid ühes reas, JS paneb riba aeglaselt ja lõputult liikuma (topeltrida, -50%).
   Peatub hiire all ja fookuses; vähendatud liikumise korral ja ilma JS-ita saab rida sõrme/hiirega kerida. */
.wp-block-gallery.is-style-marquee {
  --marquee-h: clamp(150px, 19vw, 250px);
  display: flex !important; flex-wrap: nowrap !important; gap: clamp(14px, 1.6vw, 24px) !important;
  overflow-x: auto; padding: 22px 0 !important; scrollbar-width: none;
}
.wp-block-gallery.is-style-marquee::-webkit-scrollbar { display: none; }
.wp-block-gallery.is-style-marquee > .wp-block-image,
.wp-block-gallery.is-style-marquee .marquee-track > .wp-block-image { flex: 0 0 auto !important; width: auto !important; height: var(--marquee-h); margin: 0 !important; }
.wp-block-gallery.is-style-marquee .wp-block-image img { height: 100% !important; width: auto !important; max-width: none; object-fit: contain; display: block; }
.wp-block-gallery.is-style-marquee.is-running { overflow: hidden; }
.marquee-track { display: flex; gap: inherit; width: max-content; animation: liipa-marquee var(--marquee-dur, 60s) linear infinite; }
.wp-block-gallery.is-style-marquee.is-running:is(:hover, :focus-within) .marquee-track { animation-play-state: paused; }
@keyframes liipa-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* talu loo vanad fotod: paberfoto valge äärisega, kergelt viltu, riba üle kogu ekraani laiuse */
.wp-block-cover.story-band { overflow: hidden; }
.story-band .wp-block-gallery.story-old { width: 100vw; max-width: none; margin: clamp(32px, 5vh, 56px) 0 -12px calc(50% - 50vw) !important; }
.story-band .story-old .wp-block-image { border: 6px solid #f4f1ea; box-shadow: 0 14px 34px rgba(0,0,0,.45); transform: rotate(-1.6deg); }
.story-band .story-old .wp-block-image:nth-child(even) { transform: rotate(1.4deg) translateY(6px); }
.story-band .story-old .wp-block-image:nth-child(3n) { transform: rotate(-.6deg) translateY(-4px); }
.story-band .story-old img { filter: grayscale(1) contrast(1.05); }
@media (max-width: 600px) { .story-band .wp-block-gallery.story-old { --marquee-h: 150px; } }

/* ---------- Paketid ridadena ---------- */
.pkg-grid { gap: clamp(32px, 6vw, 96px) !important; }
@media (min-width: 782px) { .pkg-head { position: sticky; top: calc(var(--liipa-header) + 32px); align-self: flex-start; } }
.pkg-list { border-top: 1px solid var(--wp--preset--color--ink); }
.pkg-list > .pkg-row {
  margin: 0 !important; display: grid; grid-template-columns: 1fr auto; column-gap: 32px; row-gap: 6px;
  padding: 26px 0; border-bottom: 1px solid var(--liipa-line); position: relative; transition: padding .3s;
}
.pkg-row:hover { padding-left: 12px; }
.pkg-row h3 { grid-column: 1; margin: 0 !important; font-size: clamp(24px, 2.2vw, 34px) !important; }
.pkg-row h3 a { text-decoration: none; color: inherit; }
.pkg-row h3 a::after { content: ""; position: absolute; inset: 0; } /* terve rida on klõpsatav */
.pkg-row p { grid-column: 1; margin: 0; font-size: 15px; color: var(--liipa-muted); max-width: 36em; }
.pkg-row .pkg-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; white-space: nowrap;
  font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(22px, 2vw, 30px); color: var(--wp--preset--color--ink); max-width: none; }
.pkg-row .pkg-price small { display: block; font-family: var(--wp--preset--font-family--raleway); font-size: 12px; color: var(--liipa-muted); letter-spacing: .08em; }
@media (max-width: 600px) { .pkg-list > .pkg-row { grid-template-columns: 1fr; } .pkg-row .pkg-price { grid-column: 1; grid-row: auto; text-align: left; } }

/* sektsiooni otsesed pealkirjad ja hoonete riba algavad sisu vasakust servast */
.section > .wp-block-heading, .section > .is-style-eyebrow { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; margin-right: auto !important; }

/* =====================================================================
   Avaleht v3
   ===================================================================== */
.section-dark .wp-block-heading { color: #fff; }

/* pealkiri keskel (sündmused, kompleks, galerii, KKK) */
.center-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vh, 56px) !important; }
.center-head .wp-block-heading { margin: 12px auto 0 !important; max-width: none; }
.center-head .sec-note { margin: 16px auto 0 !important; }

/* ---------- Sündmused: pildikaardid, nimi pildil ---------- */
.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event-cards > .event-card { position: relative; margin: 0 !important; overflow: hidden; aspect-ratio: 1 / 1; background: var(--wp--preset--color--ink); }
.event-card > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; }
.event-card > .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.event-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%); transition: background .5s; pointer-events: none; }
.event-card h3, .event-card p { position: absolute; left: 28px; right: 28px; z-index: 2; margin: 0 !important; color: #fff; }
/* pealkiri sama kirjaga nagu hero „Saha küla · Jõelähtme vald“ (Raleway, suurtähed, lai tähevahe) */
.event-card h3 { bottom: 28px; font-family: var(--wp--preset--font-family--raleway); font-size: 15px !important; font-weight: 600; line-height: 1.4; letter-spacing: .28em; text-transform: uppercase; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.event-card h3 a { color: inherit; text-decoration: none; }
.event-card h3 a::after { content: ""; position: absolute; inset: -2000px; } /* terve kaart on klõpsatav */
.event-card p { bottom: 28px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.9); opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .5s; }
@media (hover: hover) {
  .event-card:hover > .wp-block-image img { transform: scale(1.05); }
  .event-card:hover::after { background: linear-gradient(to top, rgba(0,0,0,.85) 0, rgba(0,0,0,.45) 60%, rgba(0,0,0,.15) 100%); }
  .event-card:hover h3 { transform: translateY(calc(-1 * var(--liipa-card-shift, 76px))); }
  .event-card:hover p { opacity: 1; transform: none; }
}
/* puutekraanil kirjeldus kohe näha */
@media (hover: none) { .event-card h3 { bottom: auto; top: auto; position: relative; } .event-card { display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; } .event-card h3, .event-card p { position: relative; left: 0; right: 0; bottom: 0; opacity: 1; transform: none; } .event-card p { margin-top: 8px !important; } }
@media (max-width: 900px) { .event-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .event-cards { grid-template-columns: 1fr; } }

/* ---------- Galerii: ruudustik, "Näita rohkem pilte" (theme.js) ---------- */
.wp-block-gallery.is-style-showcase { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 12px !important; }
.wp-block-gallery.is-style-showcase > .wp-block-image { width: auto !important; margin: 0 !important; overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.wp-block-gallery.is-style-showcase > .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; cursor: pointer; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.wp-block-gallery.is-style-showcase > .wp-block-image:hover img { transform: scale(1.04); }
.wp-block-gallery.is-style-showcase > .wp-block-image.is-more { display: none !important; }
.wp-block-gallery.is-style-showcase > .wp-block-image.is-new { animation: liipa-rise .6s ease both; }
@keyframes liipa-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 781px) { .wp-block-gallery.is-style-showcase { grid-template-columns: 1fr 1fr; } }
.gallery-more { display: flex; justify-content: center; margin-top: 32px; }
.gallery-more button {
  height: 48px; padding: 0 28px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); cursor: pointer;
  font: 600 13px var(--wp--preset--font-family--raleway); letter-spacing: .14em; text-transform: uppercase; transition: background .25s, color .25s;
}
.gallery-more button:hover { background: #fff; color: var(--wp--preset--color--ink); }

/* ---------- KKK: puhas, ilma raamideta; vastus avaneb sujuvalt (theme.js) ---------- */
.faq-cards { gap: 0 clamp(40px, 6vw, 96px) !important; max-width: 1080px; margin-left: auto !important; margin-right: auto !important; }
.faq-cards .wp-block-details { margin: 0 !important; border: 0; background: none; padding: 0; }
.faq-cards summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 40px 18px 0;
  font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(20px, 1.6vw, 23px); line-height: 1.3;
  color: var(--wp--preset--color--ink); transition: color .3s;
}
.faq-cards summary::-webkit-details-marker { display: none; }
.faq-cards summary:hover, .faq-cards details[open] > summary { color: var(--liipa-deep); }
/* pluss, mis avatult pöördub ristiks */
.faq-cards summary::before, .faq-cards summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; margin: 0; border: 0;
  background: var(--liipa-gold); transform: none; transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.faq-cards summary::after { transform: rotate(90deg); }
.faq-cards details[open] > summary::after { transform: rotate(0deg); }
.faq-cards details[open] > summary::before { transform: rotate(180deg); }
.faq-cards details p { margin: 0 !important; padding: 0 40px 22px 0; color: #4a4a4a; font-size: 16px; line-height: 1.65; }
.faq-cards details.is-animating { overflow: hidden; }
.faq-more { text-align: center; margin-top: clamp(32px, 5vh, 48px) !important; color: var(--liipa-muted); }
.faq-more a { color: var(--wp--preset--color--ink); }

/* ---------- Jaluse päring: valge, sama lai kui leht ---------- */
.inquiry { background: var(--wp--preset--color--paper); }
.inquiry-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vh, 48px) !important; }
.inquiry-head .wp-block-heading { margin: 12px auto 16px !important; max-width: none; }
.inquiry-head .sec-note { margin: 0 auto !important; }
/* otsekontakt vormi kohal: telefon ja e-post suurelt, et vormi asemel saaks kohe helistada või kirjutada */
.inquiry-direct { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 28px; margin: 24px auto 0 !important; }
.inquiry-direct span { flex-basis: 100%; font: 600 12px var(--wp--preset--font-family--raleway); letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-deep); }
.inquiry-direct a { font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(22px, 2vw, 28px); color: var(--wp--preset--color--ink); text-decoration: none; border-bottom: 1px solid var(--liipa-gold); }
.inquiry-direct a:hover { color: var(--liipa-deep); }
.rehe-social { margin-top: 20px !important; font-size: 15px; }
.rehe-social a { color: #fff; }
.inquiry-card { padding: clamp(28px, 4vw, 56px) 0 0; border-top: 1px solid var(--wp--preset--color--ink); }
.inquiry .wpcf7 form { max-width: none; }
.inquiry-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; margin: 40px auto 0 !important; padding-top: 24px; border-top: 1px solid var(--liipa-line); font-size: 15px; color: var(--liipa-muted); text-align: center; }
.inquiry-contact a { color: var(--wp--preset--color--ink); text-decoration: none; }
.inquiry-contact a:hover { color: var(--liipa-deep); }

/* Vormi veateade välja all ei lükka järgmisi välju allapoole: teade on välja all absoluutselt
   (rea vahe sisse), välja kõrgus jääb samaks. */
.wpcf7 .wpcf7-form-control-wrap { position: relative; }
.wpcf7 .wpcf7-not-valid-tip {
  position: absolute; left: 0; top: 100%; margin-top: 4px; z-index: 1;
  font-size: 12px; line-height: 1.3; white-space: nowrap; color: #b3261e;
}
.rf-radios, .rf-group { position: relative; }

/* =====================================================================
   Ekraanide kontroll (telefon, iPad, 13"/16" Mac, teler)
   ===================================================================== */
/* WordPress teeb kohandatud asendiga cover-ploki sisu kitsaks (width:auto) → telefonis olid nupud poole laiusega */
.wp-block-cover:is(.hero-full, .page-hero, .story-band) > .wp-block-cover__inner-container { width: 100% !important; }
/* paketikaardi nupp: mobiilis 100% laius + kaardi külgvahed ajas üle serva */
.package > .wp-block-buttons { width: auto !important; }
/* pildikaartide ruudustik: kuni 1100px kaks veergu (iPad püsti/pikali) */
@media (max-width: 1100px) and (min-width: 601px) { .is-style-tiles { grid-template-columns: 1fr 1fr; } }
/* telefon pikali / madal ekraan: hero sisu mahub ära */
@media (max-height: 520px) and (orientation: landscape) {
  .wp-block-cover.hero-full { min-height: 100vh !important; padding-top: 96px; padding-bottom: 32px; }
  .hero-full h1.wp-block-heading { font-size: clamp(44px, 9vh, 72px) !important; }
}
/* toitlustus: miks Rehe */
.why-cols { gap: clamp(24px, 3vw, 40px) !important; }
.why-cols .wp-block-image { margin: 0 0 20px !important; overflow: hidden; }
.why-cols .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.why-cols h3 { margin: 0 0 8px !important; font-size: 26px !important; }
.why-cols p { margin: 0; color: #4a4a4a; font-size: 16px; }
.offer-row:hover { padding-left: 0; }
.story-band .wp-block-buttons { justify-content: center; margin-top: 28px !important; }

/* ---------- Tahvel (iPad): suurem hero tekst ja nupud ---------- */
@media (min-width: 600px) and (max-width: 1180px) {
  .hero-full h1.wp-block-heading { font-size: clamp(88px, 13vw, 150px) !important; }
  .hero-sub { font-size: 20px !important; }
  :is(.hero-full, .page-hero, .story-band) .wp-block-button__link { padding: 18px 34px !important; font-size: 14px !important; }
}

/* ---------- Hinnatabel telefonis: iga rida on kaart (nimi üleval, hinnad sildiga all) ---------- */
@media (max-width: 600px) {
  .wp-block-table.is-style-prices { overflow: visible; }
  .wp-block-table.is-style-prices thead { display: none; }
  .wp-block-table.is-style-prices tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--liipa-line); }
  .wp-block-table.is-style-prices tbody tr:hover td { background: none; }
  .wp-block-table.is-style-prices tbody td { border: 0 !important; padding: 0 !important; text-align: left !important; white-space: normal !important; }
  .wp-block-table.is-style-prices tbody td:first-child { grid-column: 1 / -1; margin-bottom: 10px; font-weight: 600; width: auto; }
  .wp-block-table.is-style-prices tbody td:not(:first-child) { font-size: 17px !important; }
  .wp-block-table.is-style-prices tbody td:nth-child(2)::before,
  .wp-block-table.is-style-prices tbody td:nth-child(3)::before {
    display: block; margin-bottom: 2px; font-family: var(--wp--preset--font-family--raleway);
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--liipa-deep);
  }
  /* sildid tulevad tabeli enda veerupealkirjadest (theme.js → data-label), muutuvad koos tabeliga */
  .wp-block-table.is-style-prices tbody td:nth-child(2)::before,
  .wp-block-table.is-style-prices tbody td:nth-child(3)::before { content: attr(data-label); }
}

/* =====================================================================
   Hero v2: video valges raamis, sisu keskel, faktiriba all
   ===================================================================== */
.wp-block-cover.hero-framed {
  margin: 0 !important;
  min-height: 100vh !important; min-height: 100svh !important;
  align-items: center; justify-content: center; padding: 110px var(--wp--style--root--padding-left);
}
.wp-block-cover.hero-framed::after { background: linear-gradient(to bottom, rgba(0,0,0,.36) 0, rgba(0,0,0,.04) 30%, rgba(0,0,0,.08) 60%, rgba(0,0,0,.42) 100%); }
.hero-framed > .wp-block-cover__inner-container { position: static !important; text-align: center; max-width: 900px !important; }
.hero-framed > .wp-block-cover__inner-container > * { position: relative; z-index: 1; }
.hero-framed .is-style-eyebrow { letter-spacing: .32em; }
.hero-framed h1.wp-block-heading { font-size: clamp(64px, 10vw, 150px) !important; margin: 18px 0 0 !important; }
.hero-framed .hero-sub { margin: 18px auto 0 !important; font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(22px, 2vw, 30px) !important; letter-spacing: .01em; }
.hero-framed .wp-block-buttons { justify-content: center; margin-top: clamp(28px, 4.5vh, 44px) !important; }
/* päis raamitud hero kohal: logo ja menüü joonduvad raami sisse */
.has-hero .site-header { transition: background-color .35s ease, box-shadow .35s ease; }

/* ---------- Tutvustusvideo Meist-sektsioonis ---------- */
.video-facade { position: relative; margin-top: clamp(48px, 7vh, 80px) !important; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-facade > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; }
.video-facade > .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; display: block; cursor: pointer; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: brightness(.72); }
.video-facade:hover > .wp-block-image img { transform: scale(1.03); filter: brightness(.6); }
.video-facade .video-facade-link { position: absolute; inset: 0; margin: 0 !important; display: grid; place-items: center; pointer-events: none; }
.video-facade .video-facade-link a {
  pointer-events: auto; display: inline-flex; flex-direction: column; align-items: center; gap: 18px; color: #fff; text-decoration: none;
  font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(26px, 3vw, 44px);
}
.video-facade .video-facade-link a::before {
  content: ""; width: clamp(68px, 7vw, 96px); height: clamp(68px, 7vw, 96px); border-radius: 50%; border: 1px solid rgba(255,255,255,.85);
  background: no-repeat 56% 50% / 26% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='white'/%3E%3C/svg%3E");
  transition: background-color .3s, border-color .3s, transform .3s;
}
.video-facade:hover .video-facade-link a::before { background-color: var(--liipa-gold); border-color: var(--liipa-gold); transform: scale(1.06); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Instagram (Smash Balloon) teema stiilis ---------- */
.section-instagram #sb_instagram { padding-bottom: 0 !important; }
.section-instagram #sb_instagram .sbi_header_text, .section-instagram #sb_instagram .sbi_follow_btn, .section-instagram #sb_instagram #sbi_load { display: none !important; }
.section-instagram #sb_instagram .sbi_photo img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.section-instagram #sb_instagram .sbi_item:hover .sbi_photo img { transform: scale(1.04); }
.section-instagram .center-head .wp-block-heading a { color: inherit; text-decoration: none; }
.section-instagram .center-head .wp-block-heading a:hover { color: var(--liipa-deep); }

/* tegevused */
.program-contact { text-align: center; margin-top: clamp(32px, 5vh, 48px) !important; font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(19px, 1.6vw, 23px); }
.program-contact a { color: var(--wp--preset--color--ink); text-decoration: none; border-bottom: 1px solid var(--liipa-gold); }
.games-label { margin: 24px 0 0 !important; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-deep); }
.section-stone .wp-block-list.is-style-chips li { background: var(--wp--preset--color--paper); }
.games-cols .wp-block-details { margin-top: 14px !important; border-top: 1px solid var(--liipa-line); }
.games-cols .wp-block-details summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; letter-spacing: .06em; }
.games-cols .wp-block-details p { font-size: 15px; color: #4a4a4a; }

/* kontakt */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--wp--preset--color--ink); }
.contact-cards > .contact-card { margin: 0 !important; padding: 28px 24px 8px 0; }
.contact-cards > .contact-card + .contact-card { padding-left: 24px; border-left: 1px solid var(--liipa-line); }
.contact-value { margin-top: 12px !important; font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.45; }
.contact-value a { color: var(--wp--preset--color--ink); text-decoration: none; }
.contact-value a:hover { color: var(--liipa-deep); }
.contact-note { margin-top: 40px !important; color: var(--liipa-muted); }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } .contact-cards > .contact-card + .contact-card { border-left: 0; padding-left: 0; border-top: 1px solid var(--liipa-line); } }
.social-list { max-width: 720px; margin: 0 auto !important; border-top: 1px solid var(--wp--preset--color--ink); }
.social-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 !important; padding: 18px 0; border-bottom: 1px solid var(--liipa-line); }
.social-row span { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-deep); }
.social-row a { font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(20px, 1.8vw, 26px); color: var(--wp--preset--color--ink); text-decoration: none; }
.social-row a:hover { color: var(--liipa-deep); }
/* hero nupud ühelaiused (geomeetriliselt rahulikum) */
@media (min-width: 782px) {
  .hero-framed .wp-block-buttons { display: grid !important; grid-template-columns: repeat(2, minmax(220px, max-content)); justify-content: center; gap: 16px; }
  .hero-framed .wp-block-buttons > .wp-block-button { width: 100%; }
  .hero-framed .wp-block-buttons > .wp-block-button > .wp-block-button__link { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
  .hero-framed .wp-block-buttons > .wp-block-button { min-width: 0; }
}

/* =====================================================================
   Suur ekraan: sisu kindla max-laiusega, kirjad ei kasva lõputult (ei ole "luubiga")
   ===================================================================== */
body { --wp--style--global--content-size: 1320px; --wp--style--global--wide-size: 1440px; }
@media (min-width: 921px) {
  :root { --liipa-avail: min(calc(100vh - var(--liipa-header)), 905px); --liipa-h2: clamp(30px, 5.4vh, 50px); }
}
@media (min-width: 921px) and (min-height: 1001px) {
  :root { --liipa-h2: 50px; }
}
.hero-framed h1.wp-block-heading { font-size: clamp(64px, 9vw, 128px) !important; }
.page-hero h1.wp-block-heading { font-size: clamp(48px, 6.5vw, 96px) !important; }
.wp-block-cover.page-hero { min-height: clamp(420px, 62vh, 680px) !important; }

/* ---------- Tutvustusvideo oma kastis: tekst vasakul, video paremal ---------- */
.video-box { margin-top: clamp(64px, 9vh, 112px) !important; padding: 0; gap: clamp(32px, 5vw, 80px) !important; }
.video-box .wp-block-heading { margin: 10px 0 12px !important; font-size: clamp(28px, 2.4vw, 38px) !important; }
.video-box p:not(.is-style-eyebrow):not(.video-facade-link) { color: #4a4a4a; margin: 0; }
.video-facade { margin-top: 0 !important; }
.video-facade > .wp-block-image img { filter: brightness(.82); }
.video-facade:hover > .wp-block-image img { filter: brightness(.7); transform: scale(1.02); }
.video-facade .video-facade-link { place-items: center; }
.video-facade .video-facade-link a { flex-direction: row; gap: 0; font-size: 0; }
/* esitusnupp: YouTube'i logo (punane), et oleks kohe aru saada, et tegu on YouTube'i videoga */
.video-facade .video-facade-link a::before {
  width: 84px; height: 59px; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 10px 24px rgba(0,0,0,.4));
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z' fill='%23f00'/%3E%3Cpath d='M45 24 27 14v20' fill='%23fff'/%3E%3C/svg%3E");
}
.video-facade:hover .video-facade-link a::before { background-color: transparent; transform: scale(1.08); }
/* silt all vasakul: videolingi tekst (redaktoris muudetav, theme.js → data-label) */
.video-facade .video-facade-link a::after {
  content: attr(data-label); position: absolute; left: 18px; bottom: 16px; padding: 7px 12px; background: rgba(17,17,17,.72); color: #fff;
  font: 600 11px var(--wp--preset--font-family--raleway); letter-spacing: .16em; text-transform: uppercase;
}
@media (max-width: 781px) { .video-facade .video-facade-link a::before { width: 68px; height: 48px; } }

/* video kõrval: puhas punktiloend */
.video-points { list-style: none; padding: 0; margin: 20px 0 0 !important; border-top: 1px solid var(--liipa-line); }
.video-points li { position: relative; margin: 0; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--liipa-line); font-size: 15px; line-height: 1.5; color: #3a3a3a; }
.video-points li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--liipa-gold); }

/* ---------- Liikuva sisu peatamine (WCAG 2.2.2) ---------- */
/* slaidiesitlus: väike peata/mängi nupp pildi paremas alanurgas */
.slideshow-toggle {
  position: absolute; z-index: 3; right: 12px; bottom: 14px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(17,17,17,.55); cursor: pointer; opacity: 0; transition: opacity .25s, background .25s;
}
.wp-block-gallery.is-playing:hover .slideshow-toggle, .slideshow-toggle:focus-visible, .slideshow-toggle.is-paused { opacity: 1; }
@media (hover: none) { .slideshow-toggle { opacity: .85; } }
.slideshow-toggle:hover { background: var(--liipa-gold); }
.slideshow-toggle::before, .slideshow-toggle::after { content: ""; position: absolute; top: 11px; width: 3px; height: 12px; background: #fff; }
.slideshow-toggle::before { left: 12px; } .slideshow-toggle::after { right: 12px; }
.slideshow-toggle.is-paused::after { display: none; }
.slideshow-toggle.is-paused::before { left: 13px; top: 10px; width: 0; height: 0; background: none; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
/* =====================================================================
   Kasutajakogemus (lehekaupa ülevaatus)
   ===================================================================== */
/* kompleks: kiirlingid hoonetele */
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(32px, 5vh, 48px) !important; }
.jump-links a { padding: 8px 14px; border: 1px solid var(--liipa-line); font-size: 13px; letter-spacing: .04em; color: var(--wp--preset--color--ink); text-decoration: none; transition: border-color .25s, color .25s; }
.jump-links a:hover { border-color: var(--liipa-gold); color: var(--liipa-deep); }
/* tumedal taustal (kompleksi tutvustus) */
.section-dark .is-style-statement { color: var(--wp--preset--color--paper); }
.section-dark .is-style-statement em { color: var(--liipa-gold); }
.section-dark .intro-cols p { color: #c8c8c8; }
.section-dark .jump-links a { color: #eee; border-color: rgba(255,255,255,.28); }
.section-dark .jump-links a:hover { color: #fff; border-color: var(--liipa-gold); }
/* hoone hinnarida */
.feature-note { margin-top: 18px !important; font-size: 14px; color: var(--liipa-muted); }
.feature-note a { color: var(--wp--preset--color--ink); }
/* tegevuste kaardi pealkiri-link */
.is-style-tiles h3 a { color: inherit; text-decoration: none; }
.is-style-tiles h3 a:hover { color: var(--liipa-deep); }
/* kodukord: lühidalt */
.quick-facts { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(32px, 5vh, 48px) !important; border-top: 1px solid var(--wp--preset--color--ink); border-bottom: 1px solid var(--liipa-line); }
.quick-facts > p { margin: 0 !important; padding: 18px 16px 18px 0; font-family: var(--wp--preset--font-family--abhaya); font-size: 20px; line-height: 1.3; }
.quick-facts > p + p { padding-left: 16px; border-left: 1px solid var(--liipa-line); }
.quick-facts strong { display: block; margin-bottom: 6px; font: 600 11px var(--wp--preset--font-family--raleway); letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-deep); }
@media (max-width: 1000px) { .quick-facts { grid-template-columns: 1fr 1fr; } .quick-facts > p:nth-child(odd) { border-left: 0; padding-left: 0; } .quick-facts > p:nth-child(n+3) { border-top: 1px solid var(--liipa-line); } }
/* kaart: pilt + nupp, iframe alles klõpsuga */
.map-facade { position: relative; margin: 0 !important; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wp--preset--color--stone); }
.map-facade > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; }
.map-facade > .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; filter: brightness(.75); cursor: pointer; }
.map-facade-link { position: absolute; inset: 0; margin: 0 !important; display: grid; place-items: center; pointer-events: none; }
.map-facade-link a { pointer-events: auto; padding: 15px 28px; background: #fff; color: var(--wp--preset--color--ink); text-decoration: none; font: 600 13px var(--wp--preset--font-family--raleway); letter-spacing: .14em; text-transform: uppercase; transition: background .25s; }
.map-facade-link a:hover { background: var(--liipa-gold); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: opacity .5s; }
/* kaart laeb: ring kaanepildi peal, kaart ise nähtamatu kuni valmis */
.map-facade.is-loading iframe { opacity: 0; }
.map-facade.is-loading .map-facade-link { display: none; }
.map-facade.is-loading > .wp-block-image img { cursor: progress; filter: brightness(.5); transition: filter .4s; }
.map-loading {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 16px; pointer-events: none;
  color: #fff; font: 600 12px var(--wp--preset--font-family--raleway); letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.map-loading::before { content: ""; width: 46px; height: 46px; box-sizing: border-box; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: liipa-spin .9s linear infinite; }
@keyframes liipa-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .map-loading::before { animation-duration: 2.4s; } }
/* discgolf: toetajad */
.sponsor-grid { gap: clamp(32px, 6vw, 96px) !important; }
.sponsors { margin-top: 0 !important; }
.sponsor-grid .wp-block-details { margin-top: 20px !important; border-top: 1px solid var(--liipa-line); }
.sponsor-grid .wp-block-details summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; letter-spacing: .06em; }
.sponsor-grid .wp-block-details p { font-size: 14px; color: var(--liipa-muted); line-height: 1.7; }
/* Instagram telefonis: 2 veergu, 4 postitust */
@media (max-width: 600px) {
  .section-instagram #sb_instagram #sbi_images { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .section-instagram #sb_instagram .sbi_item { width: 100% !important; }
  .section-instagram #sb_instagram .sbi_item:nth-child(n+5) { display: none !important; }
}
/* peatamisnupud puuteekraanil vaoshoitumad */
@media (hover: none) { .slideshow-toggle { opacity: .55; width: 30px; height: 30px; } .slideshow-toggle::before, .slideshow-toggle::after { top: 9px; } .slideshow-toggle::before { left: 10px; } .slideshow-toggle::after { right: 10px; } }

/* tumedal taustal tavanupp kuldne (tume nupp kaoks tausta sisse) */
.section-dark .wp-block-button:not([class*="is-style-"]) > .wp-block-button__link { background: var(--liipa-gold); color: var(--wp--preset--color--ink); }
.section-dark .wp-block-button:not([class*="is-style-"]) > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); }

/* ---------- Tegevused: meeskonnatöö seiklused (tume) ---------- */
.games-head { gap: clamp(32px, 5vw, 80px) !important; }
.games-head .intro-lead { margin-top: 18px !important; }
.section-dark .intro-lead { color: #e6e6e6; }
.games-facts { grid-template-columns: repeat(4, 1fr); }
.section-dark .quick-facts { border-top-color: rgba(255,255,255,.5); border-bottom-color: rgba(255,255,255,.14); }
.section-dark .quick-facts > p { color: #fff; }
.section-dark .quick-facts > p + p { border-left-color: rgba(255,255,255,.14); }
.section-dark .quick-facts strong { color: var(--liipa-gold); }
.games-grid { margin-top: clamp(40px, 6vh, 64px) !important; gap: clamp(32px, 4vw, 64px) !important; }
.games-media .wp-block-image { height: 100%; margin: 0 !important; }
.games-media .wp-block-image img { width: 100%; height: 100% !important; min-height: 320px; object-fit: cover; }
.section-dark .games-label { color: var(--liipa-gold); margin-top: 0 !important; }
.games-list { list-style: none; padding: 0; margin: 14px 0 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; counter-reset: game; }
.games-list li { counter-increment: game; display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; line-height: 1.35; color: #e6e6e6; }
.games-list li::before { content: counter(game, decimal-leading-zero); flex: none; font: 600 11px var(--wp--preset--font-family--raleway); letter-spacing: .08em; color: var(--liipa-gold); }
.games-grid .wp-block-buttons { margin-top: clamp(24px, 4vh, 36px) !important; }
@media (max-width: 1000px) { .games-facts { grid-template-columns: 1fr 1fr; } .games-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 781px) { .games-media .wp-block-image img { min-height: 0; aspect-ratio: 16 / 10; } .section-dark .quick-facts > p:nth-child(n+3) { border-top-color: rgba(255,255,255,.14); } }
@media (max-width: 480px) { .games-list { grid-template-columns: 1fr; } }
/* tumedal taustal äärisega nupp hele */
.section-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.section-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--ink); }
.section-dark .feature-note, .section-dark .feature-note a { color: #bdbdbd; }

/* ---------- Discgolf: tumedad sektsioonid, toetajad ringis ---------- */
.section-dark .rules-col .wp-block-list li { color: #ddd; }
.section-dark .rules-col .wp-block-list li a { color: #fff; }
.section-dark .sec-note { color: #a8a8a8; }
.section-dark .wp-block-list.is-style-checks li { color: #ddd; }
.sponsor-note { margin-top: 14px !important; font-size: 14px; color: var(--liipa-muted); }
.sponsor-note a { color: var(--wp--preset--color--ink); }
/* toetajad südamekujulise nimepilvena (JS: .is-heart + .heart-canvas); ilma JS-ita loendid ridamisi */
.heart-legend { margin-top: 24px !important; padding-top: 18px; border-top: 1px solid var(--liipa-line); font-size: 15px; }
.heart-key { color: var(--liipa-deep); font-weight: 600; }
.name-heart .wp-block-list { list-style: none; padding: 0; margin: 8px 0 20px !important; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.name-heart .heart-sponsors { font-weight: 600; color: var(--liipa-deep); }
.name-heart.is-heart { position: relative; }
.name-heart.is-heart > :not(.heart-canvas) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0 !important; }
.heart-canvas { position: relative; width: 100%; animation: liipa-heart-in 1.2s ease both; }
.heart-shape { position: absolute; inset: -3% -2%; width: 104%; height: 106%; overflow: visible; }
.heart-shape path { fill: var(--liipa-gold); opacity: .09; }
.heart-row { position: absolute; display: flex; align-items: center; white-space: nowrap; }
.heart-w { white-space: nowrap; font-family: var(--wp--preset--font-family--raleway); font-weight: 600; font-size: 1em; line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: var(--wp--preset--color--ink); }
.heart-w.is-soft { color: #8c8c8c; }
.heart-w.is-sponsor { font-weight: 800; color: var(--liipa-gold); }
@keyframes liipa-heart-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .heart-canvas { animation: none; } }

/* ---------- Kompleks: hoonete kiirlingid pildikaartidena (pisipilt = hoone sektsiooni esimene pilt, theme.js) ---------- */
#tutvustus .jump-links { display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; margin-top: clamp(40px, 6vh, 64px) !important; }
#tutvustus .jump-links a {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 10px 8px; padding: 0 0 10px; border: 0; border-bottom: 1px solid rgba(255,255,255,.16);
  font-family: var(--wp--preset--font-family--abhaya); font-size: 17px; letter-spacing: 0; line-height: 1.2; color: #eee;
}
#tutvustus .jump-links a::before {
  content: ""; grid-column: 1 / -1; aspect-ratio: 4 / 5; background: #222 var(--nav-img) center / cover no-repeat;
  filter: brightness(.8) saturate(.95); transition: filter .4s, box-shadow .4s;
}
#tutvustus .jump-links a::after { content: "↓"; font-family: var(--wp--preset--font-family--raleway); font-size: 14px; color: var(--liipa-gold); transition: transform .3s; }
#tutvustus .jump-links a:hover { color: #fff; border-bottom-color: var(--liipa-gold); }
#tutvustus .jump-links a:hover::before { filter: brightness(1) saturate(1.05); box-shadow: inset 0 0 0 1px var(--liipa-gold); }
#tutvustus .jump-links a:hover::after { transform: translateY(4px); }
/* tahvlis ja telefonis keritav riba */
@media (max-width: 1200px) {
  #tutvustus .jump-links { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 21%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  #tutvustus .jump-links a { scroll-snap-align: start; }
}
@media (max-width: 781px) { #tutvustus .jump-links { grid-auto-columns: minmax(130px, 34%); } }

/* nupp ja link kõrvuti: link sama kõrge kui nupp → tekst samal joonel ja alumine joon nupu alumise servaga ühel kõrgusel */
@media (min-width: 782px) {
  .wp-block-buttons:has(> .wp-block-button:not(.is-style-link)) { align-items: stretch; }
  .wp-block-buttons:has(> .wp-block-button:not(.is-style-link)) > .wp-block-button.is-style-link { display: flex; }
  .wp-block-buttons:has(> .wp-block-button:not(.is-style-link)) > .wp-block-button.is-style-link > .wp-block-button__link { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
}

/* avaleht: tutvustus tumedal taustal, video eraldi heledas sektsioonis */
.section-dark .intro-lead { color: #eee; }
.section-dark .intro-text p:not(.intro-lead):not(.is-style-eyebrow) { color: #c8c8c8; }
.section-video .video-box { margin-top: 0 !important; }
/* asukoht tumedal taustal */
.section-dark .map-address { color: #b5b5b5; }
.section-dark .map-address a { color: #fff; }
.section-dark .map-facade-link a:hover { background: var(--liipa-gold); }

/* kodukord: Booking.com riba pildiga taustal */
.wp-block-cover.booking-band { min-height: 0 !important; padding: clamp(64px, 11vh, 120px) var(--wp--style--root--padding-left); }
.booking-band > .wp-block-cover__inner-container { width: 100% !important; max-width: var(--wp--style--global--content-size); margin: 0 auto; color: #fff; }
.booking-band .is-style-eyebrow { color: var(--liipa-gold); }
.booking-band .wp-block-heading { color: #fff; }
.booking-band p:not(.is-style-eyebrow) { color: rgba(255,255,255,.9); }
.booking-band .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.booking-band .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--ink); }
.booking-band .wp-block-button:not([class*="is-style-"]) > .wp-block-button__link { background: var(--liipa-gold); color: var(--wp--preset--color--ink); }
.booking-band .wp-block-button:not([class*="is-style-"]) > .wp-block-button__link:hover { background: #fff; }


/* ---------- Avalehe hero: nimi nagu logos (gooti kiri + RESORT), alapealkiri asukoharea stiilis, nuppudega sama suur ---------- */
.hero-full h1.wp-block-heading:has(.hero-wordmark) { line-height: 0; }
.hero-full .hero-wordmark { display: block; width: clamp(250px, 47vw, 720px); max-width: 100%; height: auto; margin: 0 auto; filter: drop-shadow(0 2px 18px rgba(0,0,0,.35)); }
.hero-framed .hero-sub { font-family: var(--wp--preset--font-family--raleway); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: 13px !important; padding-left: .22em; }
@media (min-width: 600px) and (max-width: 1180px) { .hero-framed .hero-sub { font-size: 14px !important; } } /* nupud on tahvlis 14 px */
@media (max-width: 600px) { .hero-full .hero-wordmark { width: 78vw; } }

/* ---------- Hinnakiri: lisainventari pildid (lauad, toolid, lisainventar) ---------- */
.inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); margin-top: clamp(40px, 6vh, 64px) !important; }
.inventory-item { margin: 0 !important; }
.inventory-item .wp-block-image { margin: 0 !important; overflow: hidden; }
.inventory-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.inventory-caption { margin: 12px 0 0 !important; font: 600 12px var(--wp--preset--font-family--raleway); letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-gold); }
@media (max-width: 781px) { .inventory-grid { grid-template-columns: 1fr 1fr; } .inventory-item:last-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .inventory-grid { grid-template-columns: 1fr; } }

/* ---------- Discgolf: raja kaart (klõps avab suurelt) ---------- */
.course-map { max-width: 1200px; margin: clamp(48px, 8vh, 88px) auto 0 !important; }
.course-map .is-style-eyebrow { margin-bottom: 14px !important; }
.course-map .wp-block-image { position: relative; margin: 0 !important; }
.course-map img { display: block; width: 100%; height: auto; cursor: zoom-in; box-shadow: 0 18px 44px rgba(0,0,0,.28); }
#kaart .course-map { margin-top: 0 !important; }


/* ---------- Päringuvorm kokku pandud: nupp avab vormi (details.inquiry-toggle, vt theme.js) ---------- */
.inquiry-toggle { margin-top: 0 !important; margin-bottom: 0 !important; } /* külgmised jäävad paigutusele (auto = keskel) */
.inquiry-toggle > summary {
  display: block; width: max-content; max-width: 100%; margin: 0 auto; text-align: center; /* Safari: summary ei ole flex-konteiner */
  padding: 20px 40px; list-style: none; cursor: pointer; background: var(--liipa-gold); border: 1px solid var(--liipa-gold);
  color: var(--wp--preset--color--ink); font: 600 14px var(--wp--preset--font-family--raleway); letter-spacing: .16em; text-transform: uppercase;
  transition: background .3s, border-color .3s;
}
.inquiry-toggle > summary::-webkit-details-marker { display: none; }
.inquiry-toggle > summary::marker { content: ""; }
.inquiry-toggle > summary::after { content: ""; display: inline-block; vertical-align: middle; margin-left: 14px; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .3s; }
.inquiry-toggle[open] > summary { background: transparent; border-color: var(--wp--preset--color--ink); margin-bottom: clamp(28px, 4vw, 48px); }
@media (hover: hover) { .inquiry-toggle > summary:hover, .inquiry-toggle[open] > summary:hover { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; } }
.inquiry-toggle[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.inquiry-toggle[open] > .inquiry-card { animation: liipa-rise .5s ease both; }
@media (prefers-reduced-motion: reduce) { .inquiry-toggle[open] > .inquiry-card { animation: none; } }

/* ---------- Avaleht: miks valida (lühike riba: kuus põhjust ühes reas) ---------- */
.wp-block-group.section-reasons { padding-top: clamp(48px, 8vh, 88px) !important; padding-bottom: clamp(48px, 8vh, 88px) !important; }
#miks .center-head { margin-bottom: clamp(24px, 4vh, 40px) !important; }
.reasons { display: grid; grid-template-columns: repeat(6, minmax(min-content, 1fr)); gap: 0 clamp(16px, 1.6vw, 32px); }
@media (min-width: 1280px) { .reason h3 { white-space: nowrap; } } /* arvutis pealkiri ühel real; veerg on vähemalt pealkirja laiune (kuus pealkirja ≈ 1035 px) */
.reasons > .reason { margin: 0 !important; text-align: center; }
/* pealkiri nagu ülapealkiri (Saha küla · Jõelähtme vald): sama kiri, suurtähed, harvendus */
.reason h3 { margin: 0 0 8px !important; font-family: var(--wp--preset--font-family--raleway); font-size: 13px !important; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.45; }
.reason h3 { padding-left: .2em; } /* tähevahe lisab lõppu tühiku: tekst keskel */
/* ülipeenike joon pealkirja all: kõigil sama pikk, keskel */
.reason h3::after { content: ""; display: block; width: min(140px, 100%); height: 1px; margin: 8px auto 0; background: rgba(17, 17, 17, .14); }
.reason p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--liipa-muted); }
@media (max-width: 1279px) { .reasons { grid-template-columns: repeat(3, 1fr); gap: 24px clamp(16px, 2vw, 32px); } }
.reasons-cta { justify-content: center; margin-top: clamp(24px, 4vh, 40px) !important; }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr 1fr; gap: 22px 16px; } .reason h3 { font-size: 12px !important; letter-spacing: .16em; padding-left: .16em; } .reason p { font-size: 13.5px; } }

/* ---------- Malelaud (toitlustus: mida Rehe pakub), sama mis rehecatering.ee lahendused ----------
   Kaks teenust reas; teises reas on pilt paremal → pildid ja tekstid moodustavad malelaua.
   Pildi kõrguse annab ::before (4:3), tekst joondub keskele; pikem tekst teeb rea kõrgemaks. */
.is-style-chess { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--liipa-line); }
.is-style-chess > .tile {
  margin: 0 !important; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr;
  background: var(--wp--preset--color--paper); box-shadow: 0 0 0 .5px var(--liipa-line);
}
.is-style-chess .tile-img { grid-column: 1; grid-row: 1 / -1; position: relative; margin: 0 !important; overflow: hidden; }
.is-style-chess .tile-img::before { content: ""; display: block; padding-top: 75%; }
.is-style-chess .tile-img img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.is-style-chess > .tile:hover .tile-img img { transform: scale(1.04); }
.is-style-chess h3, .is-style-chess p { grid-column: 2; padding: 0 clamp(20px, 2.4vw, 40px); }
.is-style-chess h3 { grid-row: 2; margin: 0 0 10px !important; font-size: clamp(22px, 1.9vw, 30px) !important; padding-top: 22px; }
.is-style-chess p { grid-row: 3; margin: 0; padding-bottom: 22px; font-size: 15px; line-height: 1.6; color: var(--liipa-muted); }
@media (min-width: 1101px) {
  /* paarisread: pilt paremal */
  .is-style-chess > .tile:nth-child(4n+3) .tile-img, .is-style-chess > .tile:nth-child(4n+4) .tile-img { grid-column: 2; }
  .is-style-chess > .tile:nth-child(4n+3) :is(h3, p), .is-style-chess > .tile:nth-child(4n+4) :is(h3, p) { grid-column: 1; }
  /* paaritu arv teenuseid: viimane üle kogu laiuse, pilt sama suur kui teistel (veerand), tekst ülejäänud osas */
  .is-style-chess > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .is-style-chess > .tile:last-child:nth-child(4n+1) :is(h3, p) { grid-column: 2 / -1; }
  .is-style-chess > .tile:last-child:nth-child(4n+3) .tile-img { grid-column: 4; }
  .is-style-chess > .tile:last-child:nth-child(4n+3) :is(h3, p) { grid-column: 1 / 4; }
  .is-style-chess > .tile:last-child:nth-child(odd) p { max-width: 40em; }
}
/* kitsam ekraan: üks teenus reas, pilt vaheldumisi vasakul ja paremal */
@media (min-width: 601px) and (max-width: 1100px) {
  .is-style-chess { grid-template-columns: 1fr; }
  .is-style-chess .tile-img::before { padding-top: 62%; }
  .is-style-chess > .tile:nth-child(2n) .tile-img { grid-column: 2; }
  .is-style-chess > .tile:nth-child(2n) :is(h3, p) { grid-column: 1; }
}
/* telefon: kompaktne rida, pilt vasakul (38%) ja tekst paremal, et lehte ei peaks palju kerima */
@media (max-width: 600px) {
  .is-style-chess { grid-template-columns: 1fr; }
  .is-style-chess > .tile { grid-template-columns: 38% 1fr; }
  .is-style-chess > .tile :is(.tile-img) { grid-column: 1 !important; }
  .is-style-chess > .tile :is(h3, p) { grid-column: 2 !important; }
  .is-style-chess .tile-img::before { padding-top: 100%; }
  .is-style-chess h3, .is-style-chess p { padding: 0 14px; }
  .is-style-chess h3 { font-size: 19px !important; padding-top: 12px; margin-bottom: 4px !important; }
  .is-style-chess p { font-size: 13.5px; line-height: 1.5; padding-bottom: 12px; }
}
/* malelaua viimane ruut: tume, link Rehe Cateringi lahendustele (ruut on kahe lahtri laiune nagu teenus) */
.is-style-chess > .tile.tile-cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(24px, 2.6vw, 44px); background: var(--wp--preset--color--ink); }
.is-style-chess > .tile-cta :is(h3, p) { padding: 0 !important; color: #fff; }
.is-style-chess > .tile-cta p { color: rgba(255,255,255,.75); max-width: 30em; }
.is-style-chess > .tile-cta .wp-block-buttons { margin-top: 18px !important; }
@media (max-width: 600px) { .is-style-chess > .tile.tile-cta { padding: 20px; } .is-style-chess > .tile-cta .wp-block-buttons { width: 100%; } }

/* ---------- Küpsiste riba (all, Liipa Talu tume + kuldne nupp) ---------- */
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px 28px; padding: 18px 22px;
  background: var(--wp--preset--color--ink); color: rgba(255,255,255,.88); box-shadow: 0 12px 40px rgba(0,0,0,.28);
  border-top: 2px solid var(--liipa-gold); font-size: 14px; line-height: 1.55;
  opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease;
}
.consent-bar.is-open { opacity: 1; transform: none; }
.consent-bar[hidden] { display: none; }
.consent-bar p { margin: 0; flex: 1; }
.consent-bar a { color: #fff; border-bottom: 1px solid rgba(204,170,80,.7); text-decoration: none; }
.consent-actions { display: flex; gap: 10px; flex: none; }
.consent-actions button {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  padding: 12px 20px; border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; transition: background .2s, color .2s, border-color .2s;
}
.consent-actions button:hover { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }
.consent-actions .consent-accept { background: var(--liipa-gold); border-color: var(--liipa-gold); color: var(--wp--preset--color--ink); }
.consent-actions .consent-accept:hover { background: #fff; border-color: #fff; }
@media (max-width: 600px) { .consent-bar { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; } .consent-actions button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .consent-bar { transition: none; } }
@media print { .consent-bar { display: none !important; } }

/* ---------- Printimine (nt kodukord, hinnakiri): ilmumisanimatsioonid ja laadimata piltide peitmine välja ---------- */
@media print {
  .js .liipa-reveal, html.js img.liipa-wait,
  html.js .wp-block-cover:is(.hero-full, .page-hero) > :is(.wp-block-cover__image-background, .wp-block-cover__video-background) { opacity: 1 !important; transform: none !important; animation: none !important; }
}
