/* ACTIVITY_LIFE_SINGLE_V2
 * Scope: body.alt-single-v2 (st_activity layout 5, st_tours layout 9).
 * Loaded only on in-scope pages by inc/activity-life-single-v2.php.
 */

/* ---------- gallery: no reserved top offset (banner is no longer rendered) ---------- */
body.alt-single-v2 #st-content-wrapper > .container-fluid > .st-gallery {
  margin-top: 0 !important;
}

body.alt-single-v2 #st-content-wrapper > .container.st-single-service-content {
  margin-top: 18px !important;
}

body.alt-single-v2 #st-content-wrapper.st-style-elementor {
  padding-bottom: 50px !important;
}

/* ---------- gallery overlay controls: one baseline, equal inset ---------- */
body.alt-single-v2 #st-content-wrapper .st-gallery {
  --alt-inset: 10px;
}

@media (min-width: 768px) {
  body.alt-single-v2 #st-content-wrapper .st-gallery {
    --alt-inset: 20px;
  }
}

body.alt-single-v2 #st-content-wrapper .st-gallery > .shares {
  bottom: var(--alt-inset) !important;
  right: var(--alt-inset) !important;
}

body.alt-single-v2 #st-content-wrapper .st-gallery > .count {
  bottom: var(--alt-inset) !important;
  height: 42px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center;
  line-height: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 40px !important;
}

@media (max-width: 767.98px) {
  body.alt-single-v2 #st-content-wrapper .st-gallery > .count {
    left: auto !important;
    transform: none !important;
    right: calc(var(--alt-inset) + 139px) !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }
}

/* rating pill on the photo: phones only (portrait, and landscape with low height) */
body.alt-single-v2 #st-content-wrapper .st-gallery .alt-gal-score {
  display: none;
}

@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) {
  body.alt-single-v2 #st-content-wrapper .st-gallery .alt-gal-score {
    position: absolute;
    left: var(--alt-inset);
    bottom: var(--alt-inset);
    z-index: 6;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 15px;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
  }

  body.alt-single-v2 #st-content-wrapper .st-gallery .alt-gal-score i {
    color: #ffb21d;
    font-size: 15px;
  }

  body.alt-single-v2 #st-content-wrapper .st-gallery .alt-gal-score b {
    font-weight: 700;
  }

  body.alt-single-v2 #st-content-wrapper .st-gallery .alt-gal-score span {
    opacity: 0.85;
  }
}

@media (max-width: 767.98px) {
  body.alt-single-v2 #st-content-wrapper .st-gallery .alt-gal-score {
    padding: 0 12px;
    font-size: 14px;
    gap: 5px;
  }
}

/* slider arrows: transparent, brand orange (mobile <768 stays swipe-only via child style.css) */
body.alt-single-v2 #st-content-wrapper .st-gallery.style-slider .owl-nav,
body.alt-single-v2 #st-content-wrapper .st-gallery.style-slider .owl-nav.disabled {
  display: block !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  margin: 0;
}

body.alt-single-v2 #st-content-wrapper .st-gallery.style-slider .owl-nav button.owl-prev,
body.alt-single-v2 #st-content-wrapper .st-gallery.style-slider .owl-nav button.owl-next {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px !important;
  height: 64px !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 0 !important;
}

body.alt-single-v2 #st-content-wrapper .st-gallery.style-slider .owl-nav .owl-prev { left: 24px; }
body.alt-single-v2 #st-content-wrapper .st-gallery.style-slider .owl-nav .owl-next { right: 24px; }

body.alt-single-v2 #st-content-wrapper .st-gallery.style-slider .owl-nav .owl-prev span::before,
body.alt-single-v2 #st-content-wrapper .st-gallery.style-slider .owl-nav .owl-next span::before {
  display: block !important;
  color: #ef7a00 !important;
  font-size: 34px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.45) !important;
}

body.alt-single-v2 #st-content-wrapper .st-gallery.style-slider .owl-nav button:hover span::before {
  color: #ff9a2e !important;
}

/* ---------- breadcrumbs: own full-width row above the H1 ---------- */
body.alt-single-v2 #st-content-wrapper .alt-crumbs .st-breadcrumb {
  display: block !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  background: none !important;
}

body.alt-single-v2 #st-content-wrapper .alt-crumbs .st-breadcrumb .container {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.alt-single-v2 #st-content-wrapper .alt-crumbs ul {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
}

body.alt-single-v2 #st-content-wrapper .alt-crumbs ul::-webkit-scrollbar {
  display: none;
}

body.alt-single-v2 #st-content-wrapper .alt-crumbs li {
  display: flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  color: #6b7280 !important;
  font-size: 13px !important;
}

body.alt-single-v2 #st-content-wrapper .alt-crumbs li.active {
  display: none !important;
}

body.alt-single-v2 #st-content-wrapper .alt-crumbs li::after,
body.alt-single-v2 #st-content-wrapper .alt-crumbs li::before {
  content: none !important;
  display: none !important;
}

body.alt-single-v2 #st-content-wrapper .alt-crumbs li + li:not(.active)::before {
  content: "\203A" !important;
  display: inline !important;
  margin: 0 7px;
  color: #9ca3af;
}

body.alt-single-v2 #st-content-wrapper .alt-crumbs a {
  color: #6b7280 !important;
  text-decoration: none;
}

body.alt-single-v2 #st-content-wrapper .alt-crumbs a:hover {
  color: #1a2b48 !important;
  text-decoration: underline;
}

/* ---------- header row: H1 left, share + wishlist right ---------- */
body.alt-single-v2 #st-content-wrapper .st-service-header2 {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  gap: 12px !important;
  margin: 0 !important;
}

body.alt-single-v2 #st-content-wrapper .st-service-header2 > .left {
  flex: 1 1 auto !important;
  min-width: 0;
  align-self: flex-start !important;
}

body.alt-single-v2 #st-content-wrapper .st-service-header2 > .right {
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  align-self: flex-end !important;
  margin-left: 0 !important;
}

body.alt-single-v2 #st-content-wrapper .st-service-header2 .st-heading {
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 700;
  color: #1a2b48;
  margin: 0 !important;
}

@media (max-width: 767.98px) {
  body.alt-single-v2 #st-content-wrapper .st-service-header2 {
    gap: 14px !important;
    align-items: center !important;
  }

  body.alt-single-v2 #st-content-wrapper .st-service-header2 .st-heading {
    font-size: 22px !important;
  }

  body.alt-single-v2 #st-content-wrapper > .container.st-single-service-content {
    margin-top: 14px !important;
  }
}

/* ---------- facts (duration, cancellation, group, languages) ---------- */
body.alt-single-v2 #st-content-wrapper .st-service-feature {
  margin-bottom: 0 !important;
}

body.alt-single-v2 #st-content-wrapper .st-service-feature .item {
  margin-bottom: 0 !important;
}

@media (max-width: 767.98px) {
  body.alt-single-v2 #st-content-wrapper .st-service-feature .row > div:nth-child(-n+2) .item {
    margin-bottom: 10px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  body.alt-single-v2 #st-content-wrapper .st-service-feature .row > div {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  body.alt-single-v2 #st-content-wrapper .st-service-feature .row > div:nth-child(-n+2) .item {
    margin-bottom: 12px !important;
  }
}

/* ---------- section dividers: compact rhythm ---------- */
body.alt-single-v2 #st-content-wrapper .st-single-service-content .st-hr,
body.alt-single-v2 #st-content-wrapper .st-single-service-content .st-hr.large {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

body.alt-single-v2 #st-content-wrapper .st-single-service-content .st-service-feature + .st-hr {
  margin-top: 14px !important;
  margin-bottom: 14px !important;
}

/* empty attributes block renders only a divider -> double line */
body.alt-single-v2 #st-content-wrapper #st-attributes:not(:has(> :not(.st-hr))) {
  display: none !important;
}

/* ---------- inclusive / exclusive ---------- */
body.alt-single-v2 #st-content-wrapper .st-inexclude .row > div:has(> ul.include) {
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  body.alt-single-v2 #st-content-wrapper .st-inexclude .row > div:has(> ul.include),
  body.alt-single-v2 #st-content-wrapper .st-inexclude .row > div:has(> ul.exclude) {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    margin-bottom: 0 !important;
  }
}

/* ---------- reviews ---------- */
body.alt-single-v2.alt-no-reviews #st-content-wrapper .review-pagination .summary {
  display: none !important;
}

/* average score in one line: "★ 0/5  Noch nicht bewertet  (0)" */
body.alt-single-v2 #st-content-wrapper .review-box .st-review-box-top .infor-avg-wrapper {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px 12px;
}

body.alt-single-v2 #st-content-wrapper .review-box .st-review-box-top .infor-avg-wrapper > * {
  margin: 0 !important;
}

body.alt-single-v2 #st-content-wrapper .review-box .st-review-box-top .infor-avg-wrapper .review-score-text {
  font-size: 16px !important;
  line-height: 1.3 !important;
}

@media (max-width: 991.98px) {
  body.alt-single-v2 #st-content-wrapper .review-box:has(> .st-review-box-top) {
    padding-top: 16px !important;
  }

  body.alt-single-v2 #st-content-wrapper .review-box .st-review-box-top .infor-avg-wrapper {
    padding: 0 16px 14px !important;
  }
}

@media (max-width: 575.98px) {
  body.alt-single-v2 #st-content-wrapper .review-box .st-review-box-top .infor-avg-wrapper {
    gap: 6px 8px;
    padding: 0 10px 12px !important;
  }

  body.alt-single-v2 #st-content-wrapper .review-box .st-review-box-top .infor-avg-wrapper .review-score {
    font-size: 24px !important;
    line-height: 1 !important;
  }

  body.alt-single-v2 #st-content-wrapper .review-box .st-review-box-top .infor-avg-wrapper .review-avg i {
    font-size: 18px !important;
  }

  body.alt-single-v2 #st-content-wrapper .review-box .st-review-box-top .infor-avg-wrapper .review-score-text {
    font-size: 15px !important;
  }
}

/* desktop: score row on top, bars full width (labels no longer wrap) */
@media (min-width: 992px) {
  body.alt-single-v2 #st-content-wrapper .review-box:has(> .st-review-box-top) {
    flex-direction: column !important;
    padding: 16px 30px 24px !important;
  }

  body.alt-single-v2 #st-content-wrapper .review-box > .st-review-box-top {
    padding: 0 !important;
    border: 0 !important;
    width: 100% !important;
    margin: 0 0 12px !important;
  }

  body.alt-single-v2 #st-content-wrapper .review-box > .st-review-box-top::before,
  body.alt-single-v2 #st-content-wrapper .review-box > .st-review-box-top::after {
    display: none !important;
  }

  body.alt-single-v2 #st-content-wrapper .review-box .st-review-box-top .infor-avg-wrapper {
    padding: 0 !important;
  }

  body.alt-single-v2 #st-content-wrapper .review-box > .st-summany {
    padding: 0 !important;
    width: 100% !important;
    border: 0 !important;
  }

  body.alt-single-v2 #st-content-wrapper .review-box > .st-summany .item {
    width: 100% !important;
  }

  body.alt-single-v2 #st-content-wrapper .review-box > .st-summany .item .label {
    flex: 0 0 130px !important;
    width: 130px !important;
    white-space: nowrap;
  }

  body.alt-single-v2 #st-content-wrapper .review-box > .st-summany .item .progress {
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 16px !important;
  }
}

/* ---------- related ("Das könnte Sie auch interessieren") ---------- */
body.alt-single-v2 #st-content-wrapper .st-relate h2.st-heading-section {
  padding-top: 0 !important;
  margin-bottom: 20px !important;
}

body.alt-single-v2 #st-content-wrapper .st-relate .relate-rooms {
  margin-bottom: 0 !important;
}

body.alt-single-v2 #st-content-wrapper .st-relate .service-list-wrapper {
  padding-bottom: 0 !important;
}

body.alt-single-v2 #st-content-wrapper .st-relate .service-list-wrapper > .item-service,
body.alt-single-v2 #st-content-wrapper .st-relate .services-item {
  margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
  body.alt-single-v2 #st-content-wrapper .st-relate .service-list-wrapper {
    margin-bottom: -20px !important;
  }

  body.alt-single-v2 #st-content-wrapper .st-relate .service-list-wrapper > .item-service {
    margin-bottom: 20px !important;
  }
}
