/* Juhlamenot – Divi-sovitus ja alasivujen komponentit luonnoksen v1 visuaalisella kielellä. Ladataan luonnos.css:n jälkeen. */
/* Divin perustyylien nollaus luonnoksen arvoihin */
body.jm{font-family:var(--sans);color:var(--ink);background:var(--cream);line-height:1.65;font-size:17px;font-weight:400}
body.jm #page-container{padding-top:0!important;background:var(--cream);overflow-x:clip}
body.jm #main-content{background:transparent}
/* Divin elementtityylit neutraaleiksi ilman että ne ohittavat luonnoksen omia sääntöjä (:where = spesifisyys 0) */
:where(body.jm) :is(h1,h2,h3,h4,h5,h6){padding-bottom:0;color:inherit}
:where(body.jm) h4{font-weight:700;font-size:1em;line-height:inherit}
:where(body.jm) p{padding-bottom:0}
:where(body.jm) :is(.et_pb_code,.et_pb_text,footer) ul{padding:0;list-style:none;line-height:inherit}
/* Luonnoksen hyväksytyt kuvat on renderöity paikallisilla variable-fonteilla ilman optista kokoa; sama tässä */
body.jm,body.jm *{font-optical-sizing:none}
body.jm .et_pb_section{padding:0;background:transparent;position:relative}
body.jm .et_pb_row{width:100%;max-width:none;margin:0;padding:0}
body.jm .et_pb_row>.et_pb_column_4_4{float:none;width:100%;margin-right:0}
body.jm .et_pb_module{margin-bottom:0}
body.jm .et_pb_code_inner>section{display:block}
body.admin-bar header.site{top:32px}
.jm-skip{position:absolute;left:-9999px;top:0;z-index:100;background:#fff;padding:8px 14px}
.jm-skip:focus{left:8px}
.lang:empty{display:none}
mark.jm-odottaa{display:inline-block;background:#fff3b0;color:#5a4300;border:2px dashed #c99400;border-radius:8px;padding:.35em .7em;font-weight:600;font-size:.88rem;line-height:1.4;font-family:var(--sans);white-space:normal}
/* Alasivujen osiot: luonnoksen section-välit ja wrap-leveys */
body.jm .et_pb_section.jm-sec{padding:96px 0}
body.jm .jm-sec .et_pb_row{width:min(1200px,100% - 48px);margin-inline:auto}
body.jm .jm-sec .et_pb_row+.et_pb_row{margin-top:44px}
.jm-alt{background:#fff!important;border-block:1px solid var(--line)}
.jm-moss{background:var(--moss)!important}
body.jm .jm-sec h2{font-size:clamp(1.9rem,3.2vw,2.8rem);color:var(--green)}
body.jm .jm-sec h3{font-size:1.6rem;color:var(--green)}
body.jm .jm-sec .et_pb_text{color:#38423c}
body.jm .jm-sec .et_pb_text p{margin:0 0 1.1em}
body.jm .jm-sec .et_pb_text p:last-child{margin-bottom:0}
body.jm .jm-sec .et_pb_text ul{margin:0 0 1.1em;line-height:1.55}
body.jm .jm-sec .et_pb_text ul li{position:relative;padding-left:1.4em;margin-bottom:.45em}
body.jm .jm-sec .et_pb_text ul li::before{content:"";position:absolute;left:.15em;top:.62em;width:.5em;height:.5em;border-radius:50%;background:var(--sand)}
body.jm .jm-sec .et_pb_text a:not(.btn):not(.more){color:var(--green);font-weight:600;text-decoration:underline;text-decoration-color:var(--sand);text-underline-offset:3px}
.btns{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.btns:first-child{margin-top:0}
body.jm .jm-sec .card p{margin:0 0 1.4em}
/* Alasivun hero = luonnoksen .hero, matalampi ja yksi kuva */
body.jm .hero.sub{height:min(62vh,520px);min-height:420px;padding:0}
body.jm .hero.sub.no-img{height:auto;min-height:0}
body.jm .hero.sub.no-img .wrap{padding:88px 0 72px}
body.jm .hero.sub.no-img::after{display:none}
.hero.sub>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero.sub h1{max-width:20ch;font-size:clamp(2.2rem,4.6vw,3.8rem)}
.hero.sub p.lead{max-width:52ch}
.crumbs{font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:#e7cf9f;margin:0 0 .8em}
.crumbs a{text-decoration:none}.crumbs a:hover{text-decoration:underline}
.crumbs span{opacity:.7;margin:0 .5em}
/* Alasivun kaksijakoinen osio = luonnoksen intro-grid */
.split{display:grid;grid-template-columns:1.15fr .85fr;gap:72px;align-items:center}
.split.rev{grid-template-columns:.85fr 1.15fr}
.split.rev>:first-child{order:2}
.narrow{max-width:760px}
.ph{margin:0;border-radius:var(--r);overflow:hidden;aspect-ratio:4/3;background:var(--moss)}
.ph img{width:100%;height:100%;object-fit:cover}
.duo{display:grid;grid-template-columns:1.35fr 1fr;gap:4px;border-radius:22px;overflow:hidden;aspect-ratio:4/3}
.duo .ph,.trio .ph{border-radius:0;aspect-ratio:auto;height:100%}
.trio{display:grid;grid-template-columns:1.2fr 1fr;grid-template-rows:1fr 1fr;gap:16px;aspect-ratio:4/3}
.trio .ph{border-radius:var(--r)}
.trio .ph:first-child{grid-row:span 2}
.mapbox{border-radius:var(--r);overflow:hidden;border:1px solid var(--line);background:var(--moss)}
.mapbox iframe{display:block;width:100%;height:380px;border:0}
/* Hinta = luonnoksen vihreä strip-laatikko */
.pricebox{background:var(--green);color:#fff;border-radius:var(--r);padding:34px 36px;display:grid;grid-template-columns:1fr auto;gap:28px 40px;align-items:center}
body.jm .jm-sec .pricebox h2{color:#fff;font-size:clamp(1.6rem,2.6vw,2.2rem);margin-bottom:.35em}
body.jm .jm-sec .pricebox .et_pb_text,body.jm .jm-sec .pricebox p{color:#fff;opacity:.92}
.pricebox .btns{margin-top:0;flex-direction:column;align-items:stretch}
/* UKK (Divi toggle) luonnoksen faktakorttien tyylillä */
body.jm .et_pb_row.jm-cols{display:flex;gap:72px;align-items:flex-start}
body.jm .et_pb_row.jm-cols>.et_pb_column{margin:0!important;float:none}
body.jm .et_pb_row.jm-cols>.et_pb_column_1_3{width:34%;flex:none}
body.jm .et_pb_row.jm-cols>.et_pb_column_2_3{flex:1;width:auto}
body.jm .et_pb_row.jm-cols>.et_pb_column_1_2{flex:1;width:auto}
body.jm .jm-faq .et_pb_toggle{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:0;margin:0 0 14px!important}
body.jm .jm-faq.jm-alt .et_pb_toggle{background:var(--cream)}
body.jm .jm-faq .et_pb_toggle .et_pb_toggle_title{font-family:var(--serif);font-size:1.25rem;font-weight:500;color:var(--green);line-height:1.3;padding:20px 56px 18px 20px;margin:0;cursor:pointer}
body.jm .jm-faq .et_pb_toggle .et_pb_toggle_title:before{content:"+"!important;font-family:var(--sans)!important;font-size:1.6rem!important;font-weight:300;color:var(--sand-d);right:20px;top:50%;margin-top:0;transform:translateY(-50%);line-height:1}
body.jm .jm-faq .et_pb_toggle_open .et_pb_toggle_title:before{content:"–"!important}
body.jm .jm-faq .et_pb_toggle_content{padding:0 20px 18px;color:var(--muted);font-size:.98rem;line-height:1.55}
body.jm .jm-faq .et_pb_toggle_content a{color:var(--green);font-weight:600}
/* Galleria (Divi) luonnoksen kuvanauhan tyylillä */
body.jm .jm-gal .et_pb_gallery_items{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
body.jm .jm-gal .et_pb_gallery_item{width:auto!important;margin:0!important;float:none!important;clear:none!important;display:block!important;border-radius:var(--r);overflow:hidden;background:var(--moss)}
body.jm .jm-gal .et_pb_gallery_image{aspect-ratio:4/3}
body.jm .jm-gal .et_pb_gallery_image img{width:100%;height:100%!important;object-fit:cover;transition:transform .6s}
body.jm .jm-gal .et_pb_gallery_item:hover img{transform:scale(1.04)}
body.jm .jm-gal .et_overlay,body.jm .jm-gal .et_pb_gallery_pagination{display:none}
/* Yhteystietosivu: luonnoksen contact-box + lomake */
body.jm .et_pb_row.contact-row{background:#fff;border:1px solid var(--line);border-radius:28px;padding:56px;gap:56px}
body.jm .jm-form .et_pb_contact_main_title{font-family:var(--serif);color:var(--green);font-size:1.6rem;padding:0;margin:0 0 .6em}
body.jm .jm-form .et_pb_contact p input,body.jm .jm-form .et_pb_contact p textarea{background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:14px 16px;color:var(--ink);font-family:var(--sans);font-size:1rem}
body.jm .jm-form .et_pb_contact p input:focus,body.jm .jm-form .et_pb_contact p textarea:focus{border-color:var(--sand);outline:2px solid rgba(201,166,107,.35)}
body.jm .jm-form label.et_pb_contact_form_label{display:block;font-weight:600;font-size:.9rem;color:var(--green);margin-bottom:6px}
body.jm .jm-form .et_contact_bottom_container{float:none;text-align:left;margin-top:8px}
body.jm .jm-form .et_pb_contact_submit{background:var(--green);color:#fff;border:0;border-radius:999px;padding:.85em 1.5em;font-size:.95rem;font-weight:600;font-family:var(--sans);margin-left:0;line-height:1.3}
body.jm .jm-form .et_pb_contact_submit:hover{background:var(--green-2);padding:.85em 1.5em}
body.jm .jm-form .et_pb_contact_submit:after{display:none}
body.jm .jm-form .et-pb-contact-message{color:var(--green);font-weight:600}
.form-note{margin:0 0 14px!important}
@media (max-width:1000px){
  .split,.split.rev{grid-template-columns:1fr;gap:40px}
  .split.rev>:first-child{order:0}
  body.jm .et_pb_row.jm-cols{flex-direction:column;gap:28px}
  body.jm .et_pb_row.jm-cols>.et_pb_column{width:100%!important}
  .pricebox{grid-template-columns:1fr}
  .pricebox .btns{flex-direction:row}
  body.jm .jm-gal .et_pb_gallery_items{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  body.jm{font-size:16px}
  body.jm .et_pb_section.jm-sec{padding:64px 0}
  body.jm .jm-sec .et_pb_row{width:calc(100% - 36px)}
  body.jm .hero.sub{height:auto;min-height:520px}
  body.jm .hero.sub .wrap{min-height:520px}
  body.jm .hero.sub.no-img,body.jm .hero.sub.no-img .wrap{min-height:0}
  .hero.sub h1{font-size:2.1rem}
  .trio{grid-template-columns:1fr 1fr;grid-template-rows:auto;aspect-ratio:auto}
  .trio .ph:first-child{grid-column:1/3;grid-row:auto;height:240px}
  .trio .ph{height:160px}
  .pricebox{padding:28px 24px}
  .pricebox .btns{flex-direction:column}
  .btns .btn{flex:1 1 auto;justify-content:center}
  .jm-sec .btn{white-space:normal;text-align:center}
  body.jm .et_pb_row.contact-row{padding:32px 22px;border-radius:22px;gap:24px}
  body.jm .jm-gal .et_pb_gallery_items{grid-template-columns:1fr 1fr;gap:10px}
  .mapbox iframe{height:300px}
  body.jm .jm-faq .et_pb_toggle .et_pb_toggle_title{font-size:1.08rem;padding:16px 48px 16px 16px}
  body.jm .jm-faq .et_pb_toggle_content{padding:0 16px 16px}
}

/* Booking + Tähtikohde: sama 2-palstainen nosto-rivi kuin 30 min / Lemmikit */
.facts li.trust-mark{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 12px;
  text-align:center;
}
.facts li.trust-tahtikohde img{
  width:64px;
  height:64px;
  object-fit:contain;
  flex:none;
}
.facts li.trust-tahtikohde b{font-size:1.05rem;margin-bottom:0}
.facts li.trust-tahtikohde span{font-size:.8rem}
.facts li.trust-booking{padding:10px}
.facts li.trust-booking img,
.trust-booking-band img{
  width:100%;
  height:auto;
  max-width:100%;
  border-radius:10px;
  display:block;
  object-fit:contain;
}
.trust-booking-band{
  margin:0 0 28px;
  max-width:232px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:10px;
  box-sizing:border-box;
}
@media (max-width:640px){
  .facts li.trust-mark{padding:10px 8px;gap:6px}
  .facts li.trust-tahtikohde img{width:52px;height:52px}
  .facts li.trust-tahtikohde b{font-size:.95rem}
  .facts li.trust-booking{padding:8px}
  .trust-booking-band{max-width:162px;padding:8px}
}

/* 23.11.2026: mobiilin valikko pysyy ruudun ylälaidassa (Mikko 23.11. klo 15.41).
   position:sticky ei tartu viewporttiin, koska body { overflow-x:hidden } ja
   #page-container { overflow-x:clip } luovat vierityssäiliön. Työpöytä ennallaan. */
@media (max-width: 820px) {
  header.site{
    position:fixed;
    top:0;
    left:0;
    right:0;
    width:100%;
    max-width:100%;
    z-index:10000;
    background:var(--cream);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  body.jm #page-container{
    padding-top:67px!important; /* 66px .wrap + 1px border-bottom */
    overflow-x:visible;
  }
  html{scroll-padding-top:83px} /* 67px header + 16px ilma */
  :target{scroll-margin-top:83px}
  html:has(body.admin-bar){scroll-padding-top:115px} /* 67+32+16, 783–820 px */
  html:has(body.admin-bar) :target{scroll-margin-top:115px}
  nav.main{
    max-height:calc(100vh - 67px);
    max-height:calc(100dvh - 67px);
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    background:var(--cream);
  }
  /* Ylläpitopalkki: 32 px välillä 783–820 px, 46 px alle 783 px. Pidä se paikallaan alle 600 px. */
  /* WP lisää html { margin-top: 32px / 46px !important }. Padding-top pysyy 67px (vain header), muuten cream-raita palkin ja topbarin väliin. */
  body.admin-bar header.site{top:32px}
  body.admin-bar.jm #page-container{padding-top:67px!important}
  html:has(body.admin-bar){scroll-padding-top:115px}
  html:has(body.admin-bar) :target{scroll-margin-top:115px}
  body.admin-bar{scroll-padding-top:115px}
  body.admin-bar :target{scroll-margin-top:115px}
  body.admin-bar nav.main{
    max-height:calc(100vh - 99px);
    max-height:calc(100dvh - 99px);
  }
  body.admin-bar #wpadminbar{position:fixed!important}
}
@media (max-width: 782px) {
  body.admin-bar header.site{top:46px}
  body.admin-bar.jm #page-container{padding-top:67px!important}
  html:has(body.admin-bar){scroll-padding-top:129px} /* 67+46+16 */
  html:has(body.admin-bar) :target{scroll-margin-top:129px}
  body.admin-bar{scroll-padding-top:129px}
  body.admin-bar :target{scroll-margin-top:129px}
  body.admin-bar nav.main{
    max-height:calc(100vh - 113px);
    max-height:calc(100dvh - 113px);
  }
}

/* === Hinnasto yhteystietojen vieressä (etusivun korjaukset 26.11.2026) === */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
.contact-grid .contact-box{grid-template-columns:1fr;gap:32px;align-items:start;padding:48px}
.price-box{background:#fff;border-radius:28px;padding:48px;border:1px solid var(--line);display:flex;flex-direction:column;min-width:0}
.price-box h2{font-size:clamp(1.9rem,3.2vw,2.6rem);color:var(--green)}
.price-box h3{font-size:1.25rem;color:var(--green);margin:26px 0 8px}
.price-list{list-style:none;padding:0;margin:0}
.price-list li{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0;border-bottom:1px solid var(--line);font-size:1.02rem}
.price-list li:last-child{border-bottom:0}
.price-list .nimi{min-width:0;overflow-wrap:anywhere}
.price-list .nimi a{color:inherit;text-decoration:none}
.price-list .nimi a:hover{text-decoration:underline;text-decoration-color:var(--sand)}
.price-list .hinta{white-space:nowrap;font-weight:600;color:var(--green)}
.price-note{font-size:.9rem;color:var(--muted);margin:14px 0 0}
.price-box .actions{margin-top:26px;display:flex}
.jm-kapasiteetti{display:inline-block;margin-top:.6em;color:var(--green)}
@media (max-width:1000px){.contact-grid{grid-template-columns:1fr}}
@media (max-width:640px){.contact-grid .contact-box,.price-box{padding:32px 22px;border-radius:22px}.price-list li{font-size:.98rem;gap:10px}.price-box .actions .btn{flex:1;justify-content:center}}
/* === /Hinnasto === */
/* Palvelut: henkilömäärät (26.11.2026) */
.jm-kapasiteetti-lista strong{color:var(--green)}
.contact-grid .contact-box{align-content:start} /* korjauskierros 1: ei tyhjää väliä yhteystietolaatikkoon */
