/* =============================================
   SAUNAFINDER.FI — Brand CSS
   Mobile-first | Forest green + Copper + White
   ============================================= */

/* Fonts are NOT @imported here. An @import made the browser fetch this file,
   parse it, discover the import, fetch Google's CSS, and only then fetch the
   font files — three serial hops before text renders in the right face. Each
   page now carries <link rel="preconnect"> + <link rel="stylesheet"> for
   Poppins/Inter ahead of this stylesheet. A new page MUST copy those three
   lines or it gets system fonts. cookies.html discloses Google Fonts. */

/* ---------- Tokens ---------- */
:root {
  --green-900: #0d2b1e;
  --green-800: #143d29;
  --green-700: #1a5235;
  --green-600: #1e6640;
  --green-500: #237a4b;
  --green-100: #e8f5ee;
  /* --copper was #c8763a and --stone-500 was #8a8075; both failed WCAG AA
     (white-on-copper 3.44:1, stone-500-on-white 3.87:1). Darkened to the
     nearest same-hue shades that clear 4.5:1 on the backgrounds they sit on. */
  --copper:    #a85c28;
  --copper-lt: #e8a06a;
  --copper-dk: #9e5a25;
  --white:     #ffffff;
  --stone-50:  #f8f7f5;
  --stone-100: #eeece8;
  --stone-300: #c5bfb5;
  --stone-500: #756c61;
  --stone-700: #504840;
  --stone-900: #1c1815;
  /* Form-field boundary. --stone-100 on white is 1.18:1 — WCAG 1.4.11 wants
     3:1 for a UI boundary, and a field you cannot see the edge of is not a
     decorative problem. 3.06:1 on white. */
  --field-border: #8d857a;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.18);

  --max-w: 1200px;
  --px: 1.25rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--stone-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* Keyboard focus must always be visible — never remove outlines. */
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--green-900); color: var(--white);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.skip-link:focus { left: 0; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section { padding: 4rem 0; }
.section--dark { background: var(--green-900); color: var(--white); }
.section--tinted { background: var(--stone-50); }
.section--copper { background: var(--copper); color: var(--white); }

.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: .6rem;
}
.tag--light { color: var(--copper-lt); }

h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--copper);
  color: var(--white);
}
.btn-primary:hover { background: var(--copper-dk); }

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }

.btn-outline-green {
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--green-600);
}
.btn-outline-green:hover { background: var(--green-100); }

.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
}
.badge--green { background: var(--green-100); color: var(--green-700); }
.badge--copper { background: #fdf0e6; color: var(--copper-dk); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-900);
  padding: .9rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav__logo span { color: var(--copper-lt); }
.nav__links {
  display: none;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}
.nav__links a:hover { color: var(--white); }
.nav__cta { display: none; }
/* 44px minimum: this is the primary navigation control on mobile and it was
   about 32px. The glyph size is unchanged — only the hit area grows.
   The `display: none` in the desktop media query below is later in source
   order at the same specificity, so it still wins. */
.nav__hamburger {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: .25rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--green-800);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .5rem 0;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: .85rem var(--px);
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .15s;
}
.nav__mobile a:hover { background: rgba(255,255,255,.08); }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__hamburger { display: none; }
}

/* ---------- Admin bar (admin-bar.js) ----------
   Pinned above the normal header for a logged-in admin only; the header
   itself (.nav, position:sticky top:0) is untouched except that
   .sf-has-admin-bar pushes its sticky offset down by the bar's real
   measured height (--sf-admin-bar-h, set in JS — the bar can wrap to two
   lines on narrow screens, so a fixed height here would be wrong). */
.sf-admin-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #14100c;
  color: rgba(255,255,255,.92);
  font-size: .82rem;
}
.sf-admin-bar__inner {
  padding-top: .5rem;
  padding-bottom: .5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.25rem;
}
.sf-admin-bar__label { font-weight: 700; color: var(--copper-lt); white-space: nowrap; }
.sf-admin-bar__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-right: auto; }
.sf-admin-bar__links a { color: rgba(255,255,255,.85); text-decoration: underline; }
.sf-admin-bar__links a:hover { color: var(--white); }
.sf-admin-bar__logout { margin: 0; }
.sf-admin-bar__logout button {
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.sf-admin-bar__logout button:hover { background: rgba(255,255,255,.12); }
.sf-has-admin-bar .nav { top: var(--sf-admin-bar-h, 0px); }

/* ---------- Language switcher ---------- */
.lang-switch {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: .35rem .5rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  order: 3;
  min-height: 44px; /* was ~25px */
}
.lang-switch:hover { background: rgba(255,255,255,.15); }
.lang-switch option { color: #111; background: #fff; }
.nav__mobile .lang-switch {
  margin: .5rem 1rem;
  width: calc(100% - 2rem);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 60%, #2a5c3a 100%);
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-pill);
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before { content: '🇫🇮'; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { color: var(--copper-lt); font-style: normal; }
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero__stat { color: rgba(255,255,255,.75); font-size: .85rem; }
.hero__stat strong { color: var(--white); font-family: var(--font-head); font-size: 1.1rem; display: block; }

/* ---------- Value Props ---------- */
.props { padding: 3.5rem 0; background: var(--white); }
.props__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.prop-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--stone-50);
  border: 1px solid var(--stone-100);
  transition: box-shadow .2s;
}
.prop-card:hover { box-shadow: var(--shadow-md); }
.prop-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
/* h2 for correct heading order (h1 → h2), styled at the old h3 size. */
.prop-card__body h2, .prop-card__body h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .3rem; }
.prop-card__body p { font-size: .9rem; color: var(--stone-500); }

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

/* ---------- FAQ Accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border-radius: var(--radius-md); background: var(--stone-50); border: 1px solid var(--stone-100); overflow: hidden; transition: box-shadow .2s; }
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left; padding: 1.1rem 1.5rem; background: none; border: none; font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--stone-900); cursor: pointer; }
.faq-item__icon { flex-shrink: 0; font-size: 1.2rem; color: var(--copper); transition: transform .2s; }
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 1.5rem; font-size: .92rem; color: var(--stone-500); line-height: 1.7; }
.faq-item.open .faq-item__a { max-height: 500px; padding: 0 1.5rem 1.25rem; }

/* ---------- Sauna Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 480px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.sauna-card {
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--stone-100);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.sauna-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.sauna-card__img {
  aspect-ratio: 4/3;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.sauna-card__img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.sauna-card__img a { display: block; position: absolute; inset: 0; z-index: 1; }
.sauna-card h3 a { color: inherit; text-decoration: none; }
.sauna-card h3 a:hover { color: var(--green-700); }
.sauna-card__img-placeholder { position: relative; z-index: 1; }

.sauna-card__body { padding: 1.1rem; }
/* Four things share this row (city, rating, status badge, heating chip) and
   at intermediate widths space-between with no wrapping broke the badges
   across lines mid-phrase ("Walk-in, no / booking"). Wrap the row, never the
   inside of a chip. */
.sauna-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .5rem;
  margin-bottom: .5rem;
  min-width: 0;
}
.sauna-card__meta .badge,
.sauna-card__meta .sauna-card__heating,
.sauna-card__meta .sauna-card__rating { white-space: nowrap; }
.sauna-card__location { font-size: .78rem; color: var(--stone-500); }
.sauna-card__rating { font-size: .8rem; font-weight: 600; color: var(--stone-700); }
.sauna-card__rating::before { content: '⭐ '; }
.sauna-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.sauna-card__desc { font-size: .85rem; color: var(--stone-500); margin-bottom: .9rem; line-height: 1.5; }
.sauna-card__availability { font-size: .78rem; font-weight: 600; color: var(--copper, #b5651d); margin: -.4rem 0 .75rem; }
.detail-availability-note { font-size: .82rem; font-weight: 600; color: var(--copper, #b5651d); margin-top: .5rem; }
.sauna-card__heating {
  font-size: .72rem;
  font-weight: 600;
  color: var(--stone-700);
  background: var(--stone-50);
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-pill);
  padding: .15rem .5rem;
}
.sauna-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.sauna-card__price { font-family: var(--font-head); font-weight: 700; color: var(--green-700); }
.sauna-card__price span { font-size: .75rem; font-weight: 400; color: var(--stone-500); }
/* Copper = you can book this here, and pay here. Everything else on a card is
   secondary — see --ghost below and listing-cards.js's cta. */
.sauna-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* thumb-sized on a phone, per WCAG 2.5.5 */
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--copper);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-head);
  transition: background .15s;
}
.sauna-card__btn:hover { background: var(--copper-dk); }
.sauna-card__btn--ghost {
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--green-600);
}
.sauna-card__btn--ghost:hover { background: var(--green-100); color: var(--green-700); }

/* ---------- No-photo listings ----------
   Many verified walk-in saunas have no rights-cleared photo. Rather than a
   broken <img>, they get a tinted block in the same aspect ratio so the grid
   stays even and the absence reads as deliberate. */
.media-nophoto {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(150deg, var(--green-100) 0%, var(--stone-50) 55%, #fdf0e6 100%);
  position: relative;
}
/* Own layer, so the credit bar below isn't laid out by this flex box. */
.media-nophoto__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--green-700);
  text-align: center;
}
.media-nophoto__inner svg { width: 44px; height: 44px; opacity: .75; }
.media-nophoto__region {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--stone-500);
}

/* ---------- Photo attribution ----------
   CC BY-SA requires the credit to be actually visible, so this is never
   hidden — only made small. */
.photo-credit {
  font-size: .68rem;
  line-height: 1.3;
  color: var(--stone-500);
}
.photo-credit a { color: inherit; text-decoration: underline; }
.sauna-card__credit {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 2;
  padding: .28rem .5rem;
  background: rgba(28, 24, 21, .58);
  color: rgba(255, 255, 255, .92);
  font-size: .62rem;
  line-height: 1.25;
  /* Wraps rather than truncating: a clipped licence name is not attribution. */
  overflow-wrap: anywhere;
}
/* Undo the full-bleed .sauna-card__img a overlay rule for credit links. */
.sauna-card__credit a {
  color: inherit;
  text-decoration: underline;
  position: static;
  display: inline;
  inset: auto;
}
.detail-credit { margin: -1rem 0 1.5rem; }

/* ---------- How it works ---------- */
.steps { padding: 4rem 0; background: var(--green-900); }
.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}
@media (min-width: 768px) { .steps__grid { grid-template-columns: repeat(3, 1fr); } }

.step {
  text-align: center;
  color: var(--white);
}
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1.1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step p { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.6; }

/* ---------- Section header ---------- */
.section-header { margin-bottom: 2.5rem; }
.section-header--center { text-align: center; }
.section-header p { margin-top: .6rem; color: var(--stone-500); font-size: 1rem; max-width: 520px; }
.section-header--center p { margin-left: auto; margin-right: auto; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--copper);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.05rem; }

/* ---------- Products teaser ---------- */
.products-teaser {
  padding: 4rem 0;
  background: var(--stone-50);
}
.products-teaser__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) { .products-teaser__inner { grid-template-columns: 1fr 1fr; } }
.products-teaser__text h2 { margin-bottom: 1rem; }
.products-teaser__text p { color: var(--stone-500); margin-bottom: 1.5rem; line-height: 1.7; }
.products-teaser__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.product-mini {
  background: var(--white);
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.product-mini__icon { font-size: 1.8rem; margin-bottom: .4rem; }
.product-mini__name { font-size: .8rem; font-weight: 600; }
.product-mini__price { font-size: .75rem; color: var(--copper); font-weight: 600; }

/* ---------- Trust bar ---------- */
.trust {
  padding: 2rem 0;
  background: var(--white);
  border-top: 1px solid var(--stone-100);
  border-bottom: 1px solid var(--stone-100);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: center;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--stone-700);
  font-weight: 500;
}
.trust__item span { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand p { font-size: .85rem; margin-top: .6rem; line-height: 1.7; }
.footer__col h4 { color: var(--white); font-size: .85rem; font-family: var(--font-head); font-weight: 600; margin-bottom: .75rem; }
.footer__col a { display: block; font-size: .83rem; margin-bottom: .4rem; color: rgba(255,255,255,.6); transition: color .15s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
}
.footer__bottom a { color: rgba(255,255,255,.5); }
.footer__bottom a:hover { color: var(--white); }

/* Simplified single-column footer used on legal pages */
.footer__inner { text-align: center; }
.footer__inner .footer__logo { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: .5rem; }
.footer__inner p { font-size: .85rem; margin-bottom: .4rem; line-height: 1.7; }
.footer__inner a { color: rgba(255,255,255,.6); transition: color .15s; }
.footer__inner a:hover { color: var(--white); }

/* ---------- Listings page specific ---------- */
.search-bar {
  background: var(--green-800);
  padding: 1.5rem 0;
}
.search-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: .75rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .15s, background .15s;
}
.search-input::placeholder { color: rgba(255,255,255,.78); }
.search-input:focus { border-color: var(--copper-lt); background: rgba(255,255,255,.15); }

.filter-select {
  padding: .72rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  cursor: pointer;
}
.filter-select option { background: var(--green-900); color: var(--white); }

.listings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}
@media (min-width: 900px) { .listings-layout { grid-template-columns: 280px 1fr; } }

.filters-panel {
  background: var(--white);
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: fit-content;
}
.filters-panel h3 { font-size: 1rem; margin-bottom: 1.25rem; color: var(--stone-900); }
.filter-group { margin-bottom: 1.5rem; }
.filter-group label,
.filter-group .filter-group__label { display: block; font-size: .82rem; font-weight: 600; color: var(--stone-700); margin-bottom: .6rem; }
.filter-group input[type=range] { width: 100%; accent-color: var(--green-600); }
.filter-group__checkboxes { display: flex; flex-direction: column; gap: .4rem; }
.filter-group__checkboxes label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .87rem; font-weight: 400; color: var(--stone-700); cursor: pointer;
}
.filter-group__checkboxes input[type=checkbox] { accent-color: var(--green-600); width: 15px; height: 15px; }

.map-placeholder {
  background: linear-gradient(135deg, var(--green-100), #d4ead9);
  border-radius: var(--radius-md);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--stone-100);
  margin-bottom: 2rem;
}
.map-placeholder__inner { color: var(--green-700); }
.map-placeholder__inner p { font-size: .9rem; margin-top: .4rem; }

/* ---------- Booking Modal ---------- */
/* display:none (not opacity/pointer-events) so a closed modal's controls are
   genuinely out of the tab order and invisible to assistive tech. The open
   fade is sacrificed deliberately — correctness beats animation here. */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .25s;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal__header {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}
.modal__header h2 { color: var(--white); font-size: 1.2rem; margin-bottom: .2rem; }
.modal__header p { color: rgba(255,255,255,.75); font-size: .85rem; }
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.modal__close:hover { background: rgba(255,255,255,.3); }

.modal__body { padding: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--stone-700);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--stone-900);
  background: var(--white);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-500); }
.form-group textarea { resize: vertical; min-height: 80px; }
/* Sits under a .form-row, not inside a .form-group, so it can explain a field
   that only occupies half the row without stretching that column. */
.form-hint {
  margin: -.7rem 0 1.1rem;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--stone-500);
}

/* Quantity stepper (booking modal guest count). The −/+ buttons carry the
   44px touch target the native number spinners never had on mobile; the input
   itself stays a real, typable number field so a keyboard user can just enter
   a value. Focus styling is left to the global :focus-visible rule. */
.stepper {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  max-width: 220px;
}
.stepper__btn {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--stone-900);
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.stepper__btn:hover:not(:disabled) { border-color: var(--green-500); background: var(--green-100); }
.stepper__btn:disabled { opacity: .45; cursor: not-allowed; }
.form-group .stepper__input {
  width: auto;
  flex: 1 1 auto;
  min-height: 44px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}
/* Sits inside its .form-group, right under the field it explains, so it needs
   none of .form-hint's negative pull-up. */
.form-group .stepper__hint { margin: .45rem 0 0; }

.modal__price-summary {
  background: var(--green-100);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal__price-summary span { font-size: .85rem; color: var(--green-700); }
.modal__price-summary strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--green-700); }
.modal__price-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

/* Inline checkout error — replaces the old alert(); the server's own message
   is shown verbatim, with the form left intact for another attempt. */
.modal__error {
  background: #fdeeea;
  border: 1px solid #e5b8a8;
  color: #86230e; /* 7.2:1 on #fdeeea */
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Cancellation/confirmation terms, directly above the submit button. Sits at
   the point of commitment on purpose: this is the last thing read before an
   authorisation is created. */
.modal__terms {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--stone-500);
  margin: 0 0 1rem;
}
.modal__terms a { color: var(--green-700); text-decoration: underline; }

.modal__submit {
  width: 100%;
  padding: 1rem;
  background: var(--copper);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.modal__submit:hover { background: var(--copper-dk); transform: translateY(-1px); }
.modal__submit:disabled { background: var(--stone-300); cursor: not-allowed; transform: none; }

.modal__success {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.modal__success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal__success h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.modal__success p { color: var(--stone-500); font-size: .9rem; line-height: 1.6; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  padding: 3rem 0;
  color: var(--white);
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1rem; }

/* ===== Customer favourites (favourites.js) ===== */
.sauna-card__fav {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  color: var(--stone-500, #8a8075);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.18);
  transition: color .15s, transform .1s;
}
.sauna-card__fav:hover { transform: scale(1.08); color: #cc0033; }
.sauna-card__fav.is-active { color: #cc0033; }

/* ---------- Cookie consent (consent.js) ---------- */
.cc-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 3000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.25rem;
}
.cc-banner__text { font-size: .88rem; line-height: 1.6; color: var(--stone-700); margin-bottom: .85rem; }
.cc-banner__text a { color: var(--green-600); text-decoration: underline; }
.cc-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cc-btn { font-size: .85rem; padding: .55rem 1.1rem; min-height: 44px; }
.cc-btn--secondary {
  background: var(--green-100);
  color: var(--green-800);
}
.cc-btn--secondary:hover { background: var(--stone-100); }
.cc-btn--ghost {
  background: transparent;
  color: var(--stone-700);
  border: 1px solid var(--stone-300);
}
.cc-btn--ghost:hover { background: var(--stone-50); }

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 3100;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cc-modal {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
}
.cc-modal h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.cc-row { border-top: 1px solid var(--stone-100); padding: .85rem 0; }
.cc-row__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .3rem; }
.cc-row p { font-size: .83rem; line-height: 1.55; color: var(--stone-500); }
.cc-row__always { font-size: .78rem; font-weight: 600; color: var(--green-600); }
.cc-modal__policy { font-size: .83rem; margin: .85rem 0 1rem; }
.cc-modal__policy a { color: var(--green-600); text-decoration: underline; }

.cc-toggle { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.cc-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-toggle__track {
  position: absolute; inset: 0;
  background: var(--stone-300);
  border-radius: var(--radius-pill);
  transition: background .15s ease;
}
.cc-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .15s ease;
}
.cc-toggle input:checked + .cc-toggle__track { background: var(--green-600); }
.cc-toggle input:checked + .cc-toggle__track::after { transform: translateX(18px); }
.cc-toggle input:focus-visible + .cc-toggle__track { outline: 2px solid var(--green-600); outline-offset: 2px; }

@media (max-width: 480px) {
  .cc-banner { left: .5rem; right: .5rem; bottom: .5rem; }
  .cc-banner__actions .cc-btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- Footer: shop teaser ----------
   All that is left of the "Sauna Shop" nav item and homepage band, until
   there is an actual product to sell. */
.footer__soon { display: block; font-size: .83rem; color: rgba(255,255,255,.4); }

/* ---------- Breadcrumb (listing pages) ----------
   Replaces the old "← Back to all saunas" link, which said nothing about
   where you were and always returned to an unfiltered list. */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .85rem;
  color: var(--stone-500);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--stone-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); text-decoration: underline; }
.breadcrumb__sep { color: var(--stone-300); }
.breadcrumb [aria-current="page"] { color: var(--stone-900); font-weight: 600; }

/* ---------- Sticky mobile booking bar (sauna-detail.html) ----------
   Mobile only: the in-page Book Now scrolls away and never comes back.
   Rendered by renderBookBar() for bookable listings only — a walk-in venue
   never gets one. Hidden from 700px up, where the CTA stays in view. */
.detail-bookbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem var(--px);
  /* iOS home-indicator area, so the button is never half under it. */
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--stone-100);
  box-shadow: 0 -2px 14px rgba(0,0,0,.12);
}
.detail-bookbar__price { display: flex; flex-direction: column; min-width: 0; }
.detail-bookbar__amount { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--green-700); }
.detail-bookbar__amount span { font-size: .75rem; font-weight: 400; color: var(--stone-500); }
.detail-bookbar__note { font-size: .7rem; color: var(--stone-500); }
.detail-bookbar__btn { min-height: 44px; padding: .6rem 1.4rem; white-space: nowrap; }
/* So the bar never covers the last of the footer. */
body.has-bookbar { padding-bottom: 5rem; }
@media (min-width: 700px) {
  .detail-bookbar { display: none; }
  body.has-bookbar { padding-bottom: 0; }
}

/* ---------- Active filter chips (saunas.html) ---------- */
.filter-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: -.5rem 0 1.25rem;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .75rem;
  min-height: 32px;
  border: 1px solid var(--green-600);
  border-radius: var(--radius-pill);
  background: var(--green-100);
  color: var(--green-700);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip:hover { background: var(--white); }
.filter-chip__x { font-size: .7rem; opacity: .7; }
.filter-clear {
  background: none;
  border: none;
  padding: .35rem .25rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  color: var(--stone-700);
  text-decoration: underline;
  cursor: pointer;
}
.filter-clear:hover { color: var(--stone-900); }

/* ---------- Logged-in nav menu (nav-account.js) ----------
   Replaces the "Log in / Sign up" link in place, in both the desktop list and
   the mobile menu, so the nav finally reflects who is signed in. */
.nav__account { position: relative; }
.nav__account-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: none;
  padding: .25rem 0;
  color: rgba(255,255,255,.85);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
}
.nav__account-btn:hover { color: var(--white); }
.nav__account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
}
.nav__account-caret { font-size: .7rem; opacity: .7; }
.nav__account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  z-index: 120;
  min-width: 190px;
  padding: .4rem;
  background: var(--white);
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.nav__account-menu a,
.nav__account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .6rem .7rem;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--stone-900);
  cursor: pointer;
}
.nav__account-menu a:hover,
.nav__account-menu button:hover { background: var(--stone-50); color: var(--green-700); }
.nav__account-logout { border-top: 1px solid var(--stone-100) !important; border-radius: 0 !important; margin-top: .25rem; }
/* In the mobile drawer the menu is part of the flow, not a floating card. */
.nav__mobile .nav__account { padding: .85rem var(--px); border-bottom: 1px solid rgba(255,255,255,.07); }
.nav__mobile .nav__account-menu { position: static; min-width: 0; margin-top: .5rem; }
