/* Staattisen version lisätyylit */
.mobile_menu.tm-open { display: block; }
.mobile_menu .sub-menu.tm-open { display: block; }
.elementor-accordion .elementor-tab-title { cursor: pointer; }
.elementor-accordion .elementor-accordion-icon::before { content: "+"; font-weight: 600; margin-right: 8px; }
.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon::before { content: "\2212"; }
.elementor-accordion .elementor-accordion-icon-right { float: right; }

/* Kuvakaruselli */
.tm-carousel { position: relative; }
.tm-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
.tm-slide { flex: 0 0 auto; margin: 0; scroll-snap-align: start; height: var(--tm-h, 380px); }
.tm-slide img { height: 100%; width: auto; max-width: none; object-fit: cover; display: block; }
.tm-slide figcaption { font-size: 14px; padding: 6px 0; max-width: 420px; }
.tm-prev, .tm-next-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 28px; line-height: 38px; cursor: pointer; }
.tm-prev { left: 8px; } .tm-next-btn { right: 8px; }
@media (max-width: 767px) { .tm-slide { height: calc(var(--tm-h, 380px) * .6); } }

/* Kuvan suurennos */
.tm-lb { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 10000; align-items: center; justify-content: center; cursor: zoom-out; }
.tm-lb.tm-open { display: flex; }
.tm-lb img { max-width: 94vw; max-height: 92vh; }

/* Lomakkeet */
.tm-form select, .tm-form input[type=text], .tm-form input[type=email], .tm-form input[type=tel], .tm-form textarea { max-width: 100%; }
.tm-form input[type=checkbox] { width: auto; margin-right: 8px; }

/* Kiitos- ja 404-sivu */
.tm-thanks { padding: 120px 0 140px; text-align: center; }
.tm-thanks h1 { font-family: 'Work Sans', sans-serif; font-weight: 500; margin-bottom: 20px; }
.tm-thanks .calltoaction { display: inline-block; margin-top: 20px; }
img { height: auto; }
