/* ==========================================================================
   Villa Karhu Virpiniemi — puhdas CSS
   Brändi: magenta + taivaansininen, lämmin hirsi-/luontosävyinen tausta.
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.41a72a3a0ae3.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin.0243e05f3f8d.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
/* Varafontit mitoitettu Jostin/Oswaldin mukaan, jotta teksti ei hyppää
   (CLS), kun oma fontti latautuu. Arvot mitattu leveys-/korkeussuhteista. */
@font-face {
  font-family: "Jost Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 95.5%;
  ascent-override: 112%;
  descent-override: 40%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Oswald Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 81.4%;
  ascent-override: 146%;
  descent-override: 36%;
  line-gap-override: 0%;
}

:root {
  --brand-magenta: #C6007E;
  --brand-magenta-dark: #9c0064;
  --brand-magenta-soft: #fbe8f3;
  --brand-blue: #6EC1E4;
  --brand-blue-dark: #2f8fb8;
  --brand-blue-soft: #e8f5fb;
  --brand-red: #d0021b;
  --green: #2f9e66;
  --green-soft: #e3f5ec;

  --text: #5a5c66;
  --text-dark: #1f2024;
  --text-muted: #6b6d76;
  --bg: #ffffff;
  --bg-alt: #f7f4ef;
  --bg-warm: #efe9e0;
  --footer-bg: #16140f;
  --border: #e6e1d8;

  --font-body: "Jost", "Jost Fallback", system-ui, sans-serif;
  --font-heading: "Oswald", "Oswald Fallback", sans-serif;

  --container-width: 1200px;
  --header-h: 76px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: clamp(64px, 9vw, 112px);

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

  --shadow-sm: 0 1px 2px rgba(31, 32, 36, 0.06), 0 2px 8px rgba(31, 32, 36, 0.05);
  --shadow: 0 2px 4px rgba(31, 32, 36, 0.04), 0 12px 32px rgba(31, 32, 36, 0.08);
  --shadow-lg: 0 4px 8px rgba(31, 32, 36, 0.05), 0 24px 56px rgba(31, 32, 36, 0.14);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

/* Footer pysyy aina alalaidassa myös lyhyillä sivuilla (esim. 404): main venyy. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

main { flex: 1 0 auto; }

a { color: var(--brand-magenta); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-magenta-dark); }

:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  vertical-align: -0.25em;
}
.icon--inline { color: var(--brand-magenta); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-magenta);
  margin: 0 0 0.8em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
}
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--brand-blue); }

.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: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--text-dark);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.container--narrow { max-width: 880px; margin-left: auto; margin-right: auto; }

.container--two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) {
  .container--two-col { grid-template-columns: 1fr; }
}

.section { padding: var(--space-7) 0; }
.section--gallery,
.section--details { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head > p:last-child { margin-bottom: 0; }

.prose h3 { margin-top: 1.4em; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-magenta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(198, 0, 126, 0.28);
}
.btn--primary:hover { background: var(--brand-magenta-dark); color: #fff; box-shadow: 0 8px 24px rgba(198, 0, 126, 0.35); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: #fff; color: var(--text-dark); }

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dark);
}
.btn--outline:hover { border-color: var(--text-dark); color: var(--text-dark); }

.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Kotisivulla header alkaa läpinäkyvänä hero-kuvan päällä ja muuttuu
   valkoiseksi kun sivua vieritetään (JS lisää is-scrolled-luokan).
   position: fixed koko ajan, jotta se ei vaikuta dokumentin asetteluun. */
.site-header.is-transparent {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.site-header.is-transparent .site-header__nav a { color: #fff; }
.site-header.is-transparent .site-header__burger span { background: #fff; }
.site-header.is-transparent.is-scrolled,
.site-header.is-transparent.menu-open {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.site-header.is-transparent.is-scrolled .site-header__nav a { color: var(--text-dark); }
.site-header.is-transparent.is-scrolled .site-header__burger span,
.site-header.is-transparent.menu-open .site-header__burger span { background: var(--text-dark); }

.site-header__inner {
  max-width: var(--container-width);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header__logo img { height: 52px; width: auto; }

.site-header__nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-header__nav a {
  position: relative;
  padding: 8px 14px;
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--brand-magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-header__nav a:hover::after { transform: scaleX(1); }
.site-header__nav a:hover { color: var(--brand-magenta); }
.site-header.is-transparent:not(.is-scrolled) .site-header__nav a:hover { color: #fff; }

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.site-header__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dark);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px clamp(16px, 4vw, 32px) 24px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.mobile-menu a:not(.btn) {
  padding: 14px 0;
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 16px; }
.mobile-menu.is-open { display: flex; }

@media (max-width: 960px) {
  .site-header__nav, .site-header__cta { display: none; }
  .site-header__burger { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 620px;
  height: 100vh;
  height: 100svh;
  max-height: 900px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--header-h) + 40px) 0 clamp(48px, 9vh, 96px);
}

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 8, 6, 0.75) 0%, rgba(10, 8, 6, 0.25) 45%, rgba(10, 8, 6, 0.1) 100%),
    linear-gradient(90deg, rgba(10, 8, 6, 0.35) 0%, rgba(10, 8, 6, 0) 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.hero__content > * { max-width: 720px; }

.hero__kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.8em;
}

.hero__content h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.3em;
}

.hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.6em;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none !important;
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__facts .icon { width: 1.1em; height: 1.1em; color: var(--brand-blue); }
.hero__facts li.hero__facts-link { padding: 0; }
.hero__facts-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
  transition: background-color 0.2s ease;
}
.hero__facts-link a:hover,
.hero__facts-link a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__badge {
  position: absolute;
  z-index: 3;
  right: clamp(16px, 5vw, 64px);
  top: calc(var(--header-h) + 24px);
  width: 112px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
}

@media (max-width: 700px) {
  /* Korkeus sisällön mukaan, ettei otsikko jää matalilla näytöillä headerin alle. */
  .hero { min-height: 560px; height: auto; max-height: none; }
  .hero__badge { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__facts li { font-size: 0.8rem; padding: 6px 12px; }
  .hero__facts li.hero__facts-link { padding: 0; }
  .hero__facts-link a { padding: 6px 12px; }
}

/* ==========================================================================
   Esittely + hinnasto
   ========================================================================== */

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.intro-grid__sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.intro-grid__image { position: relative; }
.intro-grid__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.intro-grid__image::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: var(--radius-lg);
  background: var(--brand-blue-soft);
  z-index: -1;
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid__image { order: -1; }
  .intro-grid__image img { aspect-ratio: 16 / 10; }
  .intro-grid__image::before { inset: 16px -8px -16px 16px; }
}


.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.price-card__title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6em;
}
.price-card__note { font-size: 0.92rem; margin: 1em 0 0; }
.price-card--extras { margin-top: 20px; }
.price-card--extras .price-list li:last-child { border-bottom: 0; }
.price-card--extras .price-list__price { font-size: 1rem; white-space: nowrap; }

.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.price-list__label { color: var(--text-dark); font-weight: 500; }
.price-list__label small { display: block; font-size: 0.82rem; font-weight: 400; color: var(--text-muted); }
.price-list__price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-magenta);
  white-space: nowrap;
}
.price-list__notes {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 0.92rem;
}
.price-list__notes li { position: relative; padding-left: 20px; }
.price-list__notes li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}

/* ==========================================================================
   Kuvausteksti / sijaintiedut
   ========================================================================== */

.section--description { background: var(--bg); padding-top: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}
.feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease;
}
.feature:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-3px); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--brand-magenta);
  box-shadow: var(--shadow-sm);
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature__title { display: block; color: var(--text-dark); font-size: 1.05rem; margin-bottom: 4px; }
.feature p { margin: 0; font-size: 0.95rem; }

@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Varauskalenteri
   ========================================================================== */

.section--booking {
  background:
    radial-gradient(1200px 400px at 50% 0%, rgba(110, 193, 228, 0.35), transparent 70%),
    var(--brand-blue-soft);
}

.booking-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 auto var(--space-5);
}
.booking-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.booking-steps .icon { color: var(--brand-blue-dark); }
.booking-steps__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-magenta);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.booking-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 32px);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.booking-footer {
  max-width: 600px;
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.booking-longstay { margin: 0; color: var(--text-dark); font-weight: 500; }
.booking-longstay a { text-decoration: underline; text-underline-offset: 3px; }

.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.calendar__month-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text-dark);
  text-transform: capitalize;
}
.calendar__nav-btn {
  display: inline-flex;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.calendar__nav-btn:hover { background: var(--brand-magenta); border-color: var(--brand-magenta); color: #fff; }

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* Päivät: vapaa vihreä, varattu punainen, vaihtopäivä vinosti puolitettu,
   esikorostus vaaleansininen ja valinta tummansininen (kuten vanhalla sivulla). */
.booking-calendar {
  --cal-free: #447a24;
  --cal-booked: #b3403a;
  --cal-preview: #8fb0dd;
  --cal-selected: #2f5fa3;
}

.calendar__day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  font: 600 1rem/1 var(--font-body);
  color: #fff;
  background: var(--cal-free);
  cursor: pointer;
  transition: background-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.calendar__day:hover:not(:disabled) { transform: scale(1.04); }
.calendar__day:focus-visible { outline: 3px solid var(--text-dark); outline-offset: 2px; }
.calendar__day--other { background: transparent; cursor: default; }
.calendar__day.is-booked { background: var(--cal-booked); }
.calendar__day.is-checkin { background: linear-gradient(to bottom right, var(--cal-free) 50%, var(--cal-booked) 50%); }
.calendar__day.is-checkout { background: linear-gradient(to bottom right, var(--cal-booked) 50%, var(--cal-free) 50%); }
.calendar__day.is-past {
  background: transparent;
  color: #767676;
  font-weight: 400;
}
.calendar__day:disabled { cursor: default; pointer-events: none; }
.calendar__day.is-disabled:not(.is-past):not(.is-booked) { background: #ededed; color: #767676; }
.calendar__day.is-preview { background: var(--cal-preview); color: var(--text-dark); }
.calendar__day.is-selected,
.calendar__day.is-start { background: var(--cal-selected); color: #fff; }
.calendar__day.is-range-start { box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.55); }
.calendar__day.is-range-end { box-shadow: inset -3px 0 0 rgba(255, 255, 255, 0.55); }

.booking-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dark);
}
.booking-legend li { display: flex; align-items: center; gap: 8px; }
.booking-legend__swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
}
.booking-legend__swatch--free { background: var(--cal-free); }
.booking-legend__swatch--booked { background: var(--cal-booked); }
.booking-legend__swatch--changeover { background: linear-gradient(to bottom right, var(--cal-free) 50%, var(--cal-booked) 50%); }
.booking-legend__swatch--selected { background: var(--cal-selected); }

.booking-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--text);
}
.booking-guide::before {
  content: "i";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font: 700 0.75rem/1 var(--font-body);
}
.booking-guide.is-warning { color: var(--brand-red); }

.booking-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: center;
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--brand-blue-soft);
  animation: accordion-in 0.3s var(--ease);
}
.booking-summary[hidden] { display: none; }
.booking-summary p { margin: 0; }
.booking-summary__period { font-weight: 600; color: var(--text-dark); }
.booking-summary__dates { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-dark); }
.booking-summary__prices { display: flex; gap: 24px; margin: 0; text-align: right; }
.booking-summary__prices dt { font-size: 0.8rem; color: var(--text-muted); }
.booking-summary__prices dd { margin: 0; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--text-dark); }
.booking-summary__prices div:first-child dd { color: var(--brand-magenta); }
.booking-summary__note { grid-column: 1 / -1; font-size: 0.85rem; }
.booking-summary__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.booking-summary__clear {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.booking-calendar.is-loading { opacity: 0.5; pointer-events: none; }
.booking-calendar.is-error::after {
  content: "Päivitys epäonnistui. Päivitä sivu.";
  display: block;
  margin-top: 10px;
  color: var(--brand-red);
  font-size: 0.85rem;
}
.calendar__nav-btn:disabled { visibility: hidden; }

/* Ilman JavaScriptiä: palvelimen renderöimä ruudukko jaksolinkkeineen. */
.booking-calendar--static .calendar__grid { gap: 6px; }
.booking-calendar--static .calendar__day {
  display: block;
  aspect-ratio: auto;
  min-height: 72px;
  padding: 6px;
  font-size: 0.75rem;
  color: var(--text-dark);
  background: var(--bg-alt);
  cursor: default;
}
.booking-calendar--static .calendar__day--past,
.booking-calendar--static .calendar__day--other { background: transparent; color: #767676; }
.booking-calendar--static .calendar__day--booked,
.booking-calendar--static .calendar__day--blocked { background: #f2d3d3; }
.booking-calendar--static .calendar__day-num { display: block; font-weight: 600; }
.period-option {
  display: block;
  margin-top: 3px;
  padding: 3px 5px;
  font-size: 0.68rem;
  border: 1px solid var(--cal-free, #447a24);
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark);
}

@media (max-width: 600px) {
  .calendar__grid { gap: 3px; }
  .calendar__day { font-size: 0.9rem; border-radius: 6px; }
  .booking-steps li { font-size: 0.85rem; }
  .booking-summary { grid-template-columns: 1fr; }
  .booking-summary__prices { text-align: left; }
  .booking-summary__actions .btn { flex: 1 1 100%; }
}

/* Maksutavat */
.pay-methods { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pay-methods__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.pay-methods__title .icon { color: var(--green); }
.pay-methods picture { display: block; max-width: 100%; }
.pay-methods__banner { display: block; width: 520px; max-width: 100%; height: auto; }
@media (min-width: 900px) {
  .pay-methods--wide .pay-methods__banner { width: 760px; }
}
.pay-methods--dark .pay-methods__title { color: #fff; }
.panel .pay-methods { margin-top: 16px; align-items: center; }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-warm);
}
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(7n + 5) { grid-row: span 2; }
.gallery__item:nth-child(9n + 8) { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--top img { object-position: center 15%; }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption { opacity: 1; transform: none; }

@media (hover: none) { .gallery__caption { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
  .gallery__item:nth-child(9n + 8) { grid-column: span 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 6, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}
.lightbox.is-open { display: flex; animation: fade-in 0.25s ease; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius-sm); }
.lightbox figcaption { color: #fff; margin-top: 14px; font-size: 0.95rem; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Accordion / FAQ
   ========================================================================== */

.accordion {
  display: grid;
  gap: 10px;
  margin: 0 0 var(--space-6);
}
.accordion details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.accordion details[open] { box-shadow: var(--shadow); border-color: transparent; }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-magenta-soft);
  color: var(--brand-magenta);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--brand-magenta); color: #fff; }
.accordion details > :not(summary) {
  margin: 0;
  padding: 0 22px 20px;
  animation: accordion-in 0.3s var(--ease);
}
.accordion details > ul { padding-left: 42px; }

@keyframes accordion-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.two-col-list { columns: 2; column-gap: 32px; }
.two-col-list li { break-inside: avoid; }
@media (max-width: 600px) { .two-col-list { columns: 1; } }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.map-embed__link { margin: 16px 0 0; text-align: center; }

/* ==========================================================================
   Amenities + kumppanit
   ========================================================================== */

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  text-align: center;
}
.amenity {
  padding: 22px 8px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}
.amenity:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.amenity__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-magenta);
  box-shadow: var(--shadow-sm);
}
.amenity__icon .icon { width: 26px; height: 26px; }
.amenity__label { font-size: 0.92rem; font-weight: 500; color: var(--text-dark); }

@media (max-width: 900px) { .amenities-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .amenities-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }

.partners-title { margin-bottom: 0.4em; }
.partners-note { max-width: 640px; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: var(--space-5);
}
.partner {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease);
}
.partner:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.partner__logo {
  display: grid;
  place-items: center;
  height: 72px;
  margin-bottom: 14px;
}
.partner__logo img { max-height: 72px; width: auto; object-fit: contain; }
.partner__url {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-blue-dark);
  overflow-wrap: break-word;
}
.partner__badge {
  position: absolute;
  top: -12px;
  right: 14px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-magenta);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(198, 0, 126, 0.3);
}
.partner p { margin: 0; font-weight: 500; color: var(--text-dark); font-size: 0.92rem; line-height: 1.45; }

@media (max-width: 860px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .partner { padding: 24px 12px 16px; }
  .partner__url { font-size: 0.75rem; }
}

.dog-forest-offer {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  background: linear-gradient(120deg, var(--brand-magenta-soft), var(--brand-blue-soft));
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}
.dog-forest-offer img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.dog-forest-offer h3 { margin: 10px 0; }
.dog-forest-offer p { margin: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-magenta);
  background: #fff;
  border-radius: var(--radius-pill);
}

@media (max-width: 600px) {
  .dog-forest-offer { flex-direction: column; text-align: center; }
  .dog-forest-offer img { width: 100%; height: 220px; }
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.section--cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.section--cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section--cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.55), rgba(10, 8, 6, 0.7));
}
.section--cta .container { position: relative; z-index: 1; max-width: 820px; }
.section--cta h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.section--cta__lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 1.8em; }

/* ==========================================================================
   Contact
   ========================================================================== */

.section--contact { background: var(--bg-alt); }

.contact-links {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0 16px;
}
.contact-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dark);
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.contact-links a:hover { border-color: var(--brand-magenta); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--text-dark); }
.contact-links small { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.contact-links__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-magenta);
  color: #fff;
}
.contact-response-note { font-size: 0.9rem; color: var(--text-muted); }

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.panel .contact-form { box-shadow: none; padding: 0; }

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--bg-alt);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%235a5c66' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--brand-magenta);
  box-shadow: 0 0 0 4px rgba(198, 0, 126, 0.12);
}

.form-row--checkbox { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.form-row--checkbox input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand-magenta); flex-shrink: 0; }
.form-row--checkbox label { flex: 1; margin-bottom: 0; font-size: 0.9rem; font-weight: 400; }
.form-row--checkbox .field-error { flex-basis: 100%; }

.form-row--hidden { display: none; }

.field-error { color: var(--brand-red); font-size: 0.82rem; margin-top: 4px; }
.form-errors {
  background: #fdecee;
  border: 1px solid #f3b7bf;
  color: #9b0a1d;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.alert {
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.alert--success { background: var(--green-soft); border: 1px solid #9fdcbd; color: #1c6b3d; }
.alert--error { background: #fdecee; border: 1px solid #f3b7bf; color: #9b0a1d; }
.alert p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: #b9b5ac;
  font-size: 0.92rem;
}
.site-footer a { color: #e6e3dc; }
.site-footer a:hover { color: #fff; }

.site-footer__grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-6) clamp(16px, 4vw, 32px) var(--space-5);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer__brand img {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
}
.site-footer__brand p { max-width: 340px; }
.site-footer__title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; overflow-wrap: anywhere; }
.site-footer__list .icon { color: var(--brand-blue); }

.site-footer__bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.site-footer__bottom p { margin: 0; }

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Mobiilin kiinteä varauspalkki (vain etusivulla) */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .page--home .mobile-cta {
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 90;
    display: flex;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    transform: translateY(150%);
    transition: transform 0.35s var(--ease);
  }
  .page--home .mobile-cta.is-visible { transform: none; }
  .page--home .site-footer { padding-bottom: 80px; }
  .mobile-cta__call {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
  }
  .mobile-cta__book { flex: 1; }
}

/* ==========================================================================
   Alasivut (varausehdot, tietosuoja, yhteys, varausprosessi, 404)
   ========================================================================== */

.page-banner {
  position: relative;
  padding: calc(var(--space-6) + 8px) 0 var(--space-6);
  color: #fff;
  background:
    radial-gradient(900px 300px at 85% 0%, rgba(110, 193, 228, 0.35), transparent 70%),
    radial-gradient(700px 300px at 0% 100%, rgba(198, 0, 126, 0.3), transparent 70%),
    #221d18;
}
.page-banner .container { max-width: 880px; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); margin: 0; max-width: 880px; }

.page-content {
  max-width: 880px;
  margin: calc(var(--space-5) * -1) auto var(--space-6);
  padding: clamp(24px, 4vw, 48px);
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.page-content h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-top: 1.6em; }
.page-content ul { margin-bottom: 1.4em; }
.page:not(.page--home) main { background: var(--bg-alt); }

@media (max-width: 900px) {
  .page-content { margin-left: 12px; margin-right: 12px; }
}

.section--page { padding: 0 0 var(--space-6); }
.panel {
  position: relative;
  margin-top: calc(var(--space-5) * -1);
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .container.panel { width: auto; margin-left: 12px; margin-right: 12px; }
}
.panel h1:first-child { font-size: 2rem; }
.panel form + .pay-methods { margin-top: 18px; }

.error-404 {
  text-align: center;
  padding: 120px 20px;
}
.error-404 h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); }

/* Varauslomake, yhteenveto, kuittaussivut */

.quote-table {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.quote-table h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.quote-table ul { list-style: none; padding: 0; margin: 0 0 10px; }
.quote-table li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.quote-table p:last-child { margin-bottom: 0; }

.hold-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff6e0;
  border: 1px solid #f0d78c;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
}

/* ==========================================================================
   Scroll-animaatiot (JS lisää .reveal-ready bodyyn; ilman JS:ää kaikki näkyy)
   ========================================================================== */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .hero__slide { transform: none; }
}

/* ==========================================================================
   Tarjoukset (hallinta → Tarjoukset; sama rakenne kuin Kauneushoitola Eloisassa)
   ========================================================================== */

.section--offers { background: var(--brand-magenta-soft); padding: var(--space-5) 0; }
.section--offers .section-head { margin-bottom: var(--space-3); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 370px));
  justify-content: center;
  /* Kortti on sisältönsä korkuinen: kuvaton tarjous ei veny kuvallisen mittaiseksi. */
  align-items: start;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.offer-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
/* Absoluuttinen sijainti: pystykuva ei venytä aluetta 4:3-muotoa korkeammaksi. */
.offer-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.offer-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--brand-magenta-dark);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(31, 32, 36, 0.2);
}

.offer-card__badge--inline { position: static; align-self: flex-start; margin-bottom: 12px; background: var(--brand-magenta); color: #fff; }
/* Ilman kuvaa kortti on pelkkä teksti: magentareuna erottaa sen taustasta. */
.offer-card:not(:has(.offer-card__media)) { border-top: 5px solid var(--brand-magenta); }

.offer-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 26px 28px;
}
.offer-card__title { font-size: 1.3rem; margin-bottom: 0.4em; }
.offer-card__text { font-size: 0.95rem; }
.offer-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 0.3em; }
.offer-card__price s { color: var(--text-muted); font-size: 1rem; }
.offer-card__price strong { color: var(--brand-magenta-dark); font-size: 1.6rem; font-weight: 600; }
.offer-card__valid { font-size: 0.85rem; color: var(--text-muted); }
.offer-card__cta { margin-top: 12px; }

/* Kuvaton tarjous on matala vaakakortti: teksti vasemmalla, hinta ja painike oikealla. */
.offer-grid:not(:has(.offer-card__media)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 720px)); }
.offer-card:not(:has(.offer-card__media)) .offer-card__body { padding: 18px 24px 20px; }
.offer-card:not(:has(.offer-card__media)) .offer-card__badge--inline { margin-bottom: 8px; }
@media (min-width: 640px) {
  .offer-card:not(:has(.offer-card__media)) .offer-card__body {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-auto-flow: dense;
    column-gap: 28px;
    align-items: center;
  }
  .offer-card:not(:has(.offer-card__media)) .offer-card__body > * { grid-column: 1; justify-self: start; }
  .offer-card:not(:has(.offer-card__media)) .offer-card__body > .offer-card__price,
  .offer-card:not(:has(.offer-card__media)) .offer-card__body > .offer-card__cta { grid-column: 2; justify-self: end; }
  .offer-card:not(:has(.offer-card__media)) .offer-card__price { justify-content: flex-end; margin: 0; }
  .offer-card:not(:has(.offer-card__media)) .offer-card__cta { margin-top: 6px; }
}
