/* Next.js parity tweaks — keep legacy selectors, fix layout edge cases */
body.ino-main .header {
  min-height: 650px;
}

.tours a.col-md-3 {
  display: block;
  color: inherit;
}

.tours a.col-md-3 img {
  width: 100%;
  height: auto;
}

/* Legacy tour gallery — scope to left column only */
.saturs .tour-gallery .slider img,
.saturs .slider img {
  width: 100%;
  height: auto;
}

.saturs .tour-gallery.bx-wrapper {
  position: relative;
  margin-bottom: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

.saturs .tour-gallery .tour-gallery-viewport {
  overflow: hidden;
  width: 100%;
}

.saturs .tour-gallery .tour-gallery-track {
  display: flex;
  width: 100%;
  will-change: transform;
}

.saturs .tour-gallery .tour-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
}

.saturs .tour-gallery .bx-controls-direction a {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  text-indent: -9999px;
  overflow: hidden;
}

.saturs .tour-gallery .bx-prev {
  left: 10px;
  background: url(/img/controls.png) no-repeat 0 -32px;
}

.saturs .tour-gallery .bx-prev:hover,
.saturs .tour-gallery .bx-prev:focus {
  background-position: 0 0;
}

.saturs .tour-gallery .bx-next {
  right: 10px;
  background: url(/img/controls.png) no-repeat -43px -32px;
}

.saturs .tour-gallery .bx-next:hover,
.saturs .tour-gallery .bx-next:focus {
  background-position: -43px 0;
}

/* Right sidebar icons must stay small (legacy .col-md-3.include img) */
.saturs .col-md-3.include img {
  width: 18px;
  height: 16px;
  margin-right: 10px;
  margin-bottom: 3px;
}

.map-embed-wrap,
.map-canvas {
  width: 100%;
  min-height: 420px;
}

.map-fallback {
  min-height: 200px;
  padding: 24px;
  text-align: center;
  background: #f5f5f5;
}

/* Tour reservation modal — legacy modal is 300px; reCAPTCHA needs ~304px */
#pop_tour .modal-content.paldies.balts {
  width: min(380px, calc(100vw - 32px));
  max-width: 380px;
}

#pop_tour .modal-content.paldies.balts input[type="text"],
#pop_tour .modal-content.paldies.balts input[type="email"],
#pop_tour .modal-content.paldies.balts input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #29aae3;
  margin-bottom: 10px;
  border-radius: 20px;
  padding: 0 15px;
  height: 44px;
  line-height: 44px;
  font-size: 15px;
}

#pop_tour .modal-content.paldies.balts .recaptcha-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 12px 0 4px;
}
