/* TravelAddon — premium Gutenberg tour / hub inner pages (Elementor OFF)
   SR-167: shared premium teal surface tokens (--sr-surface-teal*). */

/* Shared brand teal surface — convert / highlights / sticky / keyfacts / layout-cta */
:root {
  --sr-brand-teal: #1a5a64;
  --sr-brand-teal-deep: #0c7a7b;
  --sr-brand-cyan: #36d2d3;
  --sr-surface-teal-fg: #f7fffe;
  --sr-surface-teal-fg-soft: rgba(247, 255, 254, 0.92);
  --sr-surface-teal-border: rgba(54, 210, 211, 0.28);
  /* SR-167/SR-181 exact vertical teal surface (convert / highlights / sticky / keyfacts / layout-cta) */
  --sr-surface-teal-grad: linear-gradient(
    179deg,
    rgb(39 167 187 / 97%) 0%,
    rgb(13 174 175 / 96%) 58%,
    rgb(8 99 101 / 97%) 100%
  );
  --sr-surface-teal: var(--sr-surface-teal-grad);
  --sr-surface-teal-shadow: 0 12px 28px -14px rgba(8, 99, 101, 0.36);
}

body.sr-is-tour {
  --sr-ink: #1a1c20;
  --sr-muted: #5c5e66;
  --sr-paper: #ffffff;
  --sr-soft: #f6f4f1;
  --sr-line: rgba(26, 28, 32, 0.1);
  --sr-orange: #e77600;
  --sr-orange-deep: #b85a00;
  --sr-radius: 16px;
  --sr-sticky-h: 4.75rem;
  background: linear-gradient(180deg, #f7f5f2 0%, #faf9f7 42%, #ffffff 100%);
}

body.sr-is-tour .ast-article-single > .entry-header,
body.sr-is-tour article > .entry-header {
  margin-bottom: 1rem;
}
body.sr-is-tour .entry-header .entry-title,
body.sr-is-tour h1.entry-title {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.035em;
  color: #1a5a64 !important;
  font-weight: 800 !important;
  max-width: none; /* SR-force — no 40/42rem wrap cap */
}

body.sr-is-tour .site-content > .ast-container,
body.sr-is-tour #content .ast-container {
  max-width: 1120px;
}

body.sr-is-tour .entry-content {
  color: var(--sr-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
@media (max-width: 781px) {
  body.sr-is-tour .entry-content {
    font-size: 1.08rem;
    line-height: 1.72;
  }
  body.sr-is-tour .entry-content > p,
  body.sr-is-tour .entry-content li {
    font-size: 1.08rem;
  }
}

body.sr-is-tour .entry-content > p {
  max-width: 68ch;
}

body.sr-is-tour .entry-content > h2,
body.sr-is-tour .entry-content > h3:not([data-sr-fact-label]):not(.sr-fact-legacy-title):not(.sr-tour-facts__title) {
  color: var(--sr-ink) !important;
  letter-spacing: -0.02em;
  margin: 2.1rem 0 0.75rem;
  line-height: 1.25;
}
body.sr-is-tour .entry-content > h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
body.sr-is-tour .entry-content > h3:not([data-sr-fact-label]):not(.sr-fact-legacy-title):not(.sr-tour-facts__title) {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}
body.sr-is-tour .entry-content > h4 {
  color: var(--sr-ink);
  font-size: 1.02rem;
  margin: 1.15rem 0 0.4rem;
}

/* SR-101 — featured hero at article start (before H1) */
body.sr-is-tour .sr-tour-featured {
  margin: 0.35rem auto 0.85rem;
  max-width: 1120px;
  width: 100%;
  border-radius: var(--sr-radius);
  overflow: hidden;
  background: #e8e6e2;
  aspect-ratio: 16 / 9;
}
body.sr-is-tour .sr-tour-featured__img,
body.sr-is-tour .sr-tour-featured img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* SR-129b — landmark bias (was right top; watermark still visible at 35%) */
  object-position: center 35%;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: zoom-in;
}
/* Hide Astra/theme duplicate featured once _thumbnail_id is backfilled */
body.sr-is-tour .ast-single-post-featured-section,
body.sr-is-tour .post-thumbnail:not(.sr-tour-featured):not(.sr-article-featured),
body.sr-is-tour .ast-article-image,
body.sr-is-tour .site-content > .ast-single-post-featured-section,
body.sr-is-tour #content > .ast-single-post-featured-section,
body.sr-is-tour article > .post-thumb:not(.sr-tour-carousel__slide) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Hero gallery — mosaic above H1 */
body.sr-is-tour .sr-tour-gallery {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(150px, 20vw));
  gap: 0.55rem;
  margin: 0 0 1.35rem;
  border-radius: var(--sr-radius);
  overflow: hidden;
  max-width: 1120px;
  width: 100%;
}
body.sr-is-tour article > .sr-tour-gallery {
  margin-top: 0.35rem;
  margin-left: auto;
  margin-right: auto;
}
body.sr-is-tour article > .sr-tour-featured + .sr-tour-gallery {
  margin-top: 0.55rem;
}
body.sr-is-tour .sr-tour-gallery figure {
  margin: 0 !important;
  height: 100%;
  overflow: hidden;
  background: #e8e6e2;
}
body.sr-is-tour .sr-tour-gallery figure:first-child {
  grid-row: 1 / span 2;
}
body.sr-is-tour .sr-tour-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* SR-129b — landmark bias (was right top) */
  object-position: center 35%;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: zoom-in;
}
body.sr-is-tour .entry-content > figure:not(.sr-tour-gallery figure) {
  margin: 1.25rem 0;
  border-radius: 14px;
  overflow: hidden;
}
body.sr-is-tour .entry-content > figure:not(.sr-tour-gallery figure) img,
body.sr-is-tour .entry-content img {
  border-radius: 14px;
  width: 100%;
  height: auto;
  display: block;
}

/* Tour details / price meta panel */
body.sr-is-tour .sr-tour-meta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  margin: 0 0 2rem;
  padding: 1.35rem 1.4rem;
  background: var(--sr-paper);
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  box-shadow: 0 16px 36px -28px rgba(26, 28, 32, 0.4);
}
body.sr-is-tour .sr-tour-meta h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--sr-ink) !important;
}
body.sr-is-tour .sr-tour-meta__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin: 0;
}
body.sr-is-tour .sr-tour-meta__facts dt {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7d86;
  font-weight: 700;
}
body.sr-is-tour .sr-tour-meta__facts dd {
  margin: 0.15rem 0 0;
  color: var(--sr-ink);
  font-weight: 600;
  font-size: 0.98rem;
}
body.sr-is-tour .sr-tour-meta__price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff7ed 0%, #ffffff 70%);
  border: 1px solid rgba(184, 90, 0, 0.18);
}
body.sr-is-tour .sr-tour-meta__price-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7d86;
}
body.sr-is-tour .sr-tour-meta__price-value {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--sr-orange-deep);
  letter-spacing: -0.02em;
}
body.sr-is-tour .sr-tour-meta__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  background: var(--sr-orange-deep);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}
body.sr-is-tour .sr-tour-meta__cta:hover {
  background: #9a4c00;
  color: #fff !important;
}

/* Content bands */
body.sr-is-tour .entry-content > ul,
body.sr-is-tour .entry-content > ol {
  background: var(--sr-paper);
  border: 1px solid var(--sr-line);
  border-radius: 14px;
  padding: 1rem 1.15rem 1rem 2rem;
  box-shadow: 0 12px 28px -24px rgba(26, 28, 32, 0.35);
}
body.sr-is-tour .entry-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sr-line);
}
body.sr-is-tour .entry-content table th,
body.sr-is-tour .entry-content table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--sr-line);
  text-align: left;
}
body.sr-is-tour .entry-content table th {
  background: #f7f5f2;
  color: var(--sr-ink);
}

/* Hide redundant in-content booking shortcut headings */
body.sr-is-tour .entry-content h4 a[href*="/buchen/"],
body.sr-is-tour .entry-content h4 a[href*="anfrage-senden"],
body.sr-is-tour .entry-content h4 a[href*="/personalisieren/"],
body.sr-is-tour .sr-tour-hide-booking {
  display: none !important;
}

/* Related tours polish */
body.sr-is-tour .sr-related,
body.sr-is-tour .sr-cards {
  margin-top: 2rem;
}
body.sr-is-tour .entry-content > h3 + p > a > img,
body.sr-is-tour .entry-content p > a > img {
  border-radius: 14px;
  display: block;
  width: 100%;
  height: auto;
}

/* Sticky booking chrome */
body.sr-is-tour {
  --sr-sticky-h: 4.5rem;
  --sr-orange-deep: #b85a00;
}
body.sr-has-tour-sticky {
  padding-bottom: calc(var(--sr-sticky-h, 4.5rem) + 1.5rem) !important;
}
body.sr-is-tour .site-footer,
body.sr-is-tour .sr-footer {
  padding-bottom: calc(var(--sr-sticky-h) + 1.25rem) !important;
}

.sr-tour-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  pointer-events: none;
  padding: 0 0.75rem calc(0.45rem + env(safe-area-inset-bottom));
  opacity: 0 !important;
  visibility: hidden;
  transform: translateY(110%);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.sr-tour-sticky.is-visible {
  opacity: 1 !important;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.sr-tour-sticky__inner {
  pointer-events: auto;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  /* SR-167 shared premium teal surface */
  background: var(--sr-surface-teal);
  color: var(--sr-surface-teal-fg);
  border: 1px solid var(--sr-surface-teal-border);
  border-radius: 14px;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  box-shadow: var(--sr-surface-teal-shadow);
  backdrop-filter: blur(10px) saturate(1.08);
}
.sr-tour-sticky__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--sr-surface-teal-fg);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: min(36ch, 42vw);
}
.sr-tour-sticky__copy { min-width: 0; flex: 1 1 auto; }
.sr-tour-sticky__meta {
  margin: 0.15rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  font-size: 0.8rem;
  color: var(--sr-surface-teal-fg-soft);
}
.sr-tour-sticky__price { color: #ffe0b8; font-weight: 700; }
.sr-tour-sticky__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* SR-116/117 CTA hierarchy: lively brand orange → cyan WA → cream phone (no black fills) */
.sr-tour-sticky__cta {
  order: 1;
  min-width: 9.5rem;
  flex: 1.35 1 auto;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 196, 120, 0.45), 0 10px 22px -8px rgba(231, 118, 0, 0.75);
}
.sr-tour-sticky__wa { order: 2; min-width: 0; flex: 0 0 auto; }
.sr-tour-sticky__phone { order: 3; min-width: 0; flex: 0 0 auto; }
.sr-tour-sticky__cta,
.sr-tour-sticky__wa,
.sr-tour-sticky__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 1rem;
  border-radius: 11px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sr-tour-sticky__cta {
  background: var(--sr-orange, #e77600) !important;
  color: #fff !important;
  border: 0;
}
.sr-tour-sticky__cta:hover,
.sr-tour-sticky__cta:focus-visible {
  background: #cf6800 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
/* Brand teal #36d2d3 + white fails AA (~1.86:1) → dark ink #0f1114 (~10.2:1) */
.sr-tour-sticky__wa {
  background: #36d2d3 !important;
  color: #0f1114 !important;
  border: 0;
  box-shadow: 0 8px 18px -10px rgba(12, 122, 123, 0.55);
}
.sr-tour-sticky__wa:hover,
.sr-tour-sticky__wa:focus-visible {
  background: #4adbdc !important;
  color: #0f1114 !important;
  transform: translateY(-1px);
}
.sr-tour-sticky__wa svg,
.sr-tour-sticky__wa .sr-icon { fill: currentColor; color: inherit; }
.sr-tour-sticky__phone {
  background: #f3fbfb !important;
  color: #1a5a64 !important;
  border: 1.5px solid rgba(54, 210, 211, 0.55);
  box-shadow: none;
  font-weight: 700;
}
.sr-tour-sticky__phone:hover,
.sr-tour-sticky__phone:focus-visible {
  background: #ffffff !important;
  color: #0c7a7b !important;
  border-color: #36d2d3;
  transform: translateY(-1px);
}

/* Tour sticky owns bottom CTAs — always hide site FAB/mobile bar (ignore sr-fab-on-tours) */
body.sr-has-tour-sticky .sr-fab,
body.sr-is-tour:has([data-sr-tour-sticky]) .sr-fab,
html body.sr-is-tour.sr-has-tour-sticky .sr-fab,
html body.sr-is-tour.sr-fab-on-tours.sr-has-tour-sticky .sr-fab,
html body.sr-fab-on-tours.sr-has-tour-sticky .sr-fab {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
/* Sticky above any residual FAB stacking context */
.sr-tour-sticky,
body.sr-is-tour .sr-tour-sticky,
html body.sr-has-tour-sticky .sr-tour-sticky {
  z-index: 100050 !important;
}

/* SR-143 — tour header: no drop shadow */
body.sr-is-tour .site-header,
body.sr-is-tour .main-header-bar,
body.sr-is-tour .ast-primary-header-bar,
body.sr-is-tour .ast-main-header-wrap,
body.sr-is-tour #masthead,
body.sr-is-tour #ast-desktop-header,
body.sr-is-tour #ast-mobile-header {
  box-shadow: none !important;
}

/* Legacy Elementor hooks kept lightweight if residual markup exists */
body.sr-is-tour a.elementor-button,
body.sr-is-tour .elementor-button {
  background: var(--sr-orange-deep) !important;
  color: #fff !important;
  border-radius: 12px !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  body.sr-is-tour .sr-tour-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  body.sr-is-tour .sr-tour-gallery figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
  }
  body.sr-is-tour .sr-tour-meta {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  /* SR-117: roomier mobile sticky — ≥44px taps, clearer Anfragen > WA > phone */
  body.sr-is-tour { --sr-sticky-h: 6.75rem; }
  .sr-tour-sticky { padding: 0 0.55rem calc(0.4rem + env(safe-area-inset-bottom)); }
  .sr-tour-sticky__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
  }
  .sr-tour-sticky__copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.55rem;
  }
  .sr-tour-sticky__title {
    max-width: none;
    flex: 1 1 auto;
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  }
  .sr-tour-sticky__meta {
    margin: 0;
    flex: 0 0 auto;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .sr-tour-sticky__duration { display: none; } /* price is enough on small screens */
  .sr-tour-sticky__actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }
  .sr-tour-sticky__cta {
    order: 1;
    flex: 1.4 1 auto;
    min-width: 0;
    min-height: 48px;
    height: 48px;
    max-height: 48px;
    padding: 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1;
    white-space: nowrap !important;
    overflow: hidden;
  }
  .sr-tour-sticky__wa,
  .sr-tour-sticky__phone {
    flex: 0 0 auto;
    min-width: 5.25rem;
    min-height: 48px;
    height: 48px;
    max-height: 48px;
    padding: 0 0.7rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .sr-tour-sticky__wa { order: 2; }
  .sr-tour-sticky__phone { order: 3; opacity: 0.96; }
  /* CSF both: Anfragen full width, then WA + phone — no squeeze/overlap */
  .sr-tour-sticky[data-sr-sticky-secondary="both"] .sr-tour-sticky__actions {
    flex-wrap: wrap;
  }
  .sr-tour-sticky[data-sr-sticky-secondary="both"] .sr-tour-sticky__cta {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .sr-tour-sticky[data-sr-sticky-secondary="both"] .sr-tour-sticky__wa,
  .sr-tour-sticky[data-sr-sticky-secondary="both"] .sr-tour-sticky__phone {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sr-tour-sticky__cta,
  .sr-tour-sticky__wa,
  .sr-tour-sticky__phone { transition: none; }
}


/* —— SR-58 premium notice (replaces broken dismiss alert) —— */
.sr-tour-notice {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.15rem 2.5rem 1.15rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
  border: 1px solid rgba(184, 90, 0, 0.22);
  box-shadow: 0 12px 28px -24px rgba(26,28,32,0.35);
}
.sr-tour-notice[hidden] { display: none !important; }
.sr-tour-notice__title {
  margin: 0 0 0.4rem;
  font-weight: 750;
  color: #1a1c20;
  font-size: 1.02rem;
}
.sr-tour-notice__body {
  margin: 0;
  color: #5c5e66;
  line-height: 1.6;
  font-size: 0.98rem;
}
.sr-tour-notice__body a { color: #b85a00; font-weight: 600; }
.sr-tour-notice__dismiss {
  position: absolute !important;
  top: 0.55rem !important;
  right: 0.55rem !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #5c5e66 !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}
.sr-tour-notice__dismiss:hover { background: rgba(26,28,32,0.06) !important; color: #1a1c20 !important; }
/* Hard-kill leftover giant dismiss buttons in tour content */
body.sr-is-tour button[aria-label="Dismiss this alert."],
body.sr-is-tour button[aria-label="Dismiss this alert"] {
  display: none !important;
}

/* Related carousel inside tour: match home card premium */
body.sr-is-tour .sr-related {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
}
body.sr-is-tour .sr-related .sr-card__title a {
  color: #1a1c20 !important;
  text-decoration: none !important;
}
body.sr-is-tour .sr-related .sr-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

/* —— SR-112b premium tour facts (metabox + legacy) —— */
.sr-tour-facts,
.sr-tour-facts--legacy,
aside[data-sr-tour-facts],
aside[data-sr-tour-facts-legacy] {
  --sr-facts-ink: #152028;
  --sr-facts-muted: #3d4650;
  --sr-facts-teal: #0c7a7b;
  --sr-facts-cyan: #36d2d3;
  --sr-facts-orange: #b85a00;
  --sr-facts-bg: #f3fbfb;
  --sr-facts-card: #ffffff;
  --sr-facts-line: rgba(12, 122, 123, 0.18);
  margin: 2.5rem 0 2.25rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--sr-facts-ink);
}

.sr-tour-facts__grid,
.sr-tour-facts--legacy .sr-tour-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem 1.15rem;
}

.sr-tour-facts__block {
  position: relative;
  background: var(--sr-facts-card);
  border: 1px solid var(--sr-facts-line);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1.05rem 1.2rem;
  box-shadow: 0 10px 28px rgba(21, 32, 40, 0.06);
  overflow: hidden;
  isolation: isolate;
}

.sr-tour-facts__block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--sr-facts-teal), var(--sr-facts-cyan));
  border-radius: 14px 0 0 14px;
}

.sr-tour-facts__block--highlights {
  grid-column: 1 / -1;
  /* SR-167 shared premium teal surface */
  background: var(--sr-surface-teal);
  border-color: var(--sr-surface-teal-border);
  color: var(--sr-surface-teal-fg);
  box-shadow: var(--sr-surface-teal-shadow);
}
.sr-tour-facts__block--highlights::before {
  width: 0;
}
.sr-tour-facts__block--highlights .sr-tour-facts__title {
  color: var(--sr-surface-teal-fg) !important;
}
.sr-tour-facts__block--highlights .sr-tour-facts__list li {
  color: var(--sr-surface-teal-fg-soft);
}
.sr-tour-facts__block--highlights .sr-tour-facts__list li::before {
  background: var(--sr-brand-cyan, #36d2d3);
  color: #0f1114;
  box-shadow: none;
}

.sr-tour-facts__block--included::before { background: linear-gradient(180deg, #0c7a7b, #109b2c); }
.sr-tour-facts__block--excluded::before { background: linear-gradient(180deg, #b85a00, #c62828); }
.sr-tour-facts__block--bring::before { background: linear-gradient(180deg, #0c7a7b, #36d2d3); }
.sr-tour-facts__block--kids::before { background: linear-gradient(180deg, #b85a00, #e77600); }

.sr-tour-facts__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(54, 210, 211, 0.35);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--sr-facts-teal);
  line-height: 1.25;
}
.sr-tour-facts__block--excluded .sr-tour-facts__title { color: #9b2c16; border-bottom-color: rgba(198, 40, 40, 0.28); }
.sr-tour-facts__block--kids .sr-tour-facts__title { color: var(--sr-facts-orange); border-bottom-color: rgba(184, 90, 0, 0.3); }
.sr-tour-facts__block--included .sr-tour-facts__title { color: #0c7a7b; }
.sr-tour-facts__block--bring .sr-tour-facts__title { color: #0c7a7b; }
.sr-tour-facts__block--highlights .sr-tour-facts__title {
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.sr-tour-facts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 50%;
  background: rgba(54, 210, 211, 0.18);
  color: var(--sr-facts-teal);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.sr-tour-facts__block--highlights .sr-tour-facts__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.sr-tour-facts__block--included .sr-tour-facts__icon { background: rgba(16, 155, 44, 0.14); color: #0c7a7b; }
.sr-tour-facts__block--excluded .sr-tour-facts__icon { background: rgba(198, 40, 40, 0.12); color: #9b2c16; }
.sr-tour-facts__block--bring .sr-tour-facts__icon { background: rgba(54, 210, 211, 0.2); color: #0c7a7b; }
.sr-tour-facts__block--kids .sr-tour-facts__icon { background: rgba(184, 90, 0, 0.14); color: #b85a00; }

/* Icon glyphs via data-mod / block modifier */
.sr-tour-facts__block--highlights .sr-tour-facts__icon::before { content: "★"; }
.sr-tour-facts__block--included .sr-tour-facts__icon::before { content: "✓"; }
.sr-tour-facts__block--excluded .sr-tour-facts__icon::before { content: "✕"; }
.sr-tour-facts__block--bring .sr-tour-facts__icon::before { content: "◎"; }
.sr-tour-facts__block--kids .sr-tour-facts__icon::before { content: "K"; font-size: 0.85rem; }

.sr-tour-facts__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sr-tour-facts__list li {
  position: relative;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.42rem 0 0.42rem 0;
  color: var(--sr-facts-muted);
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 500;
}
.sr-tour-facts__list li::before {
  content: "✓";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: rgba(54, 210, 211, 0.22);
  color: var(--sr-facts-teal);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(12, 122, 123, 0.2);
}
.sr-tour-facts__block--excluded .sr-tour-facts__list li::before {
  content: "✕";
  background: rgba(198, 40, 40, 0.12);
  color: #9b2c16;
  box-shadow: inset 0 0 0 1px rgba(155, 44, 22, 0.22);
}
.sr-tour-facts__block--kids .sr-tour-facts__list li::before {
  content: "%";
  background: rgba(184, 90, 0, 0.14);
  color: #b85a00;
  box-shadow: inset 0 0 0 1px rgba(184, 90, 0, 0.25);
}
.sr-tour-facts__block--bring .sr-tour-facts__list li::before {
  content: "•";
  background: rgba(12, 122, 123, 0.12);
  color: #0c7a7b;
}

.sr-tour-facts__cta-row {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
}
.sr-tour-facts__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.55rem;
  border-radius: 10px;
  background: #b85a00 !important;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(184, 90, 0, 0.3);
}
.sr-tour-facts__cta:hover,
.sr-tour-facts__cta:focus-visible {
  background: #9a4c00 !important;
  color: #fff !important;
}

/* Legacy plain h3+ul still in content (before/without wrap) — progressive enhancement */
.entry-content h3.sr-tour-facts__title,
body.sr-is-tour .entry-content > h3.sr-fact-legacy-title {
  /* handled when wrapped */
}

/* Unwrapped legacy: style h3 that match labels + following ul via :has */
body.sr-is-tour .entry-content > h3:not(.sr-tour-facts__title):is(
  :lang(de)
) {
  /* no-op placeholder — real targeting via data attributes after PHP wrap */
}

/* Direct legacy selectors when PHP adds data-sr-fact-label on h3.
   !important beats earlier entry-content > h3 ink rule + Astra heading vars.
   Exclude highlights (teal wash) from the white-card base. */
body.sr-is-tour .entry-content h3[data-sr-fact-label]:not([data-sr-fact-label="highlights"]),
body.sr-is-tour .entry-content .sr-fact-legacy-card h3[data-sr-fact-label]:not([data-sr-fact-label="highlights"]),
body.sr-is-tour .entry-content .sr-tour-facts--legacy .sr-tour-facts__block:not(.sr-tour-facts__block--highlights) .sr-tour-facts__title {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  margin: 0 !important;
  padding: 0.85rem 1rem 0.85rem 1.05rem !important;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(12, 122, 123, 0.18) !important;
  border-bottom: 0 !important;
  background: #fff !important;
  color: #0c7a7b !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 28px rgba(21, 32, 40, 0.05);
}
body.sr-is-tour .entry-content h3[data-sr-fact-label]::before {
  content: "";
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(54, 210, 211, 0.18);
  color: #0c7a7b;
  font-weight: 800;
  text-align: center;
  line-height: 2rem;
}
body.sr-is-tour .entry-content h3[data-sr-fact-label="highlights"]::before { content: "★"; background: rgba(12,122,123,0.9); color:#fff; }
body.sr-is-tour .entry-content h3[data-sr-fact-label="included"]::before { content: "✓"; }
body.sr-is-tour .entry-content h3[data-sr-fact-label="excluded"]::before { content: "✕"; color:#9b2c16; background: rgba(198,40,40,0.12); }
body.sr-is-tour .entry-content h3[data-sr-fact-label="bring"]::before { content: "◎"; }
body.sr-is-tour .entry-content h3[data-sr-fact-label="kids"]::before { content: "K"; font-size: 0.85rem; color:#b85a00; background: rgba(184,90,0,0.14); }
body.sr-is-tour .entry-content h3[data-sr-fact-label="excluded"] { color:#9b2c16 !important; border-color: rgba(198,40,40,0.22) !important; }
body.sr-is-tour .entry-content h3[data-sr-fact-label="kids"] { color:#b85a00 !important; border-color: rgba(184,90,0,0.25) !important; }

body.sr-is-tour .entry-content h3[data-sr-fact-label] + ul {
  margin: 0 0 1.35rem;
  padding: 0.35rem 1.05rem 1rem 1.05rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(12, 122, 123, 0.18);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 28px rgba(21, 32, 40, 0.05);
}
body.sr-is-tour .entry-content h3[data-sr-fact-label] + ul > li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.85rem;
  color: #3d4650;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.45;
}
body.sr-is-tour .entry-content h3[data-sr-fact-label] + ul > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(54, 210, 211, 0.22);
  color: #0c7a7b;
  font-size: 0.72rem;
  font-weight: 800;
}
body.sr-is-tour .entry-content h3[data-sr-fact-label="excluded"] + ul > li::before {
  content: "✕";
  background: rgba(198, 40, 40, 0.12);
  color: #9b2c16;
}
body.sr-is-tour .entry-content h3[data-sr-fact-label="kids"] + ul > li::before {
  content: "%";
  background: rgba(184, 90, 0, 0.14);
  color: #b85a00;
}
body.sr-is-tour .entry-content h3[data-sr-fact-label="highlights"],
body.sr-is-tour .entry-content .sr-fact-legacy-card h3[data-sr-fact-label="highlights"],
body.sr-is-tour .entry-content .sr-tour-facts--legacy .sr-tour-facts__block--highlights > .sr-tour-facts__title,
body.sr-is-tour .entry-content .sr-tour-facts__block--highlights > .sr-tour-facts__title {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  margin: 0 !important;
  padding: 0.85rem 1rem 0.85rem 1.05rem !important;
  border-radius: 12px 12px 0 0;
  background: var(--sr-surface-teal) !important;
  color: var(--sr-surface-teal-fg) !important;
  border: 1px solid var(--sr-surface-teal-border) !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  box-shadow: var(--sr-surface-teal-shadow);
}
body.sr-is-tour .entry-content h3[data-sr-fact-label="highlights"] + ul,
body.sr-is-tour .entry-content .sr-tour-facts__block--highlights .sr-tour-facts__list {
  background: #f3fbfb;
  border-color: rgba(12, 122, 123, 0.22);
}

@media (max-width: 640px) {
  .sr-tour-facts__grid { grid-template-columns: 1fr; }
  .sr-tour-facts__block--highlights { grid-column: auto; }
}

/* —— SR-115 — premium DE itinerary timeline (1. Tag / 2. Tag + ul) —— */
body.sr-is-tour .entry-content .sr-itinerary-day,
body.sr-is-tour .entry-content p.sr-itinerary-day,
body.sr-is-tour .entry-content h2.sr-itinerary-day,
body.sr-is-tour .entry-content h3.sr-itinerary-day,
body.sr-is-tour .entry-content h4.sr-itinerary-day {
  --sr-itin-teal: #0c7a7b;
  --sr-itin-ink: #152028;
  --sr-itin-muted: #3d4650;
  position: relative;
  margin: 1.85rem 0 0.55rem;
  padding: 0.2rem 0 0.2rem 3rem;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sr-itin-teal) !important;
  font-size: clamp(1.05rem, 2.1vw, 1.22rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

body.sr-is-tour .entry-content .sr-itinerary-day::before {
  content: attr(data-sr-itinerary-day);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #0c7a7b 0%, #084849 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 2.1rem;
  text-align: center;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 6px rgba(12, 122, 123, 0.28);
  z-index: 2;
}

/* Connecting rail through day → list */
body.sr-is-tour .entry-content .sr-itinerary-day::after {
  content: "";
  position: absolute;
  left: 0.97rem;
  top: 2.25rem;
  bottom: -0.55rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(12, 122, 123, 0.45), rgba(54, 210, 211, 0.35));
  z-index: 1;
}

body.sr-is-tour .entry-content .sr-itinerary-day__label,
body.sr-is-tour .entry-content .sr-itinerary-day a.sr-itinerary-day__label,
body.sr-is-tour .entry-content .sr-itinerary-day a {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: inherit !important;
  cursor: default;
  pointer-events: none; /* was Elementor accordion stub <a tabindex=0> */
}

body.sr-is-tour .entry-content ul.sr-itinerary-day__list {
  position: relative;
  list-style: none !important;
  margin: 0 0 0.35rem;
  padding: 0.15rem 0 1.35rem 0.15rem;
  padding-left: 0.15rem !important; /* cards under day number / along timeline */
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.sr-is-tour .entry-content ul.sr-itinerary-day__list::before {
  content: "";
  position: absolute;
  left: 0.97rem;
  top: 0;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(54, 210, 211, 0.35), rgba(12, 122, 123, 0.12));
  z-index: 1;
}

body.sr-is-tour .entry-content ul.sr-itinerary-day__list > li {
  position: relative;
  z-index: 9;
  margin: 0 0 0.55rem;
  padding: 0.65rem 0.9rem 0.65rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(12, 122, 123, 0.16);
  border-left: 3px solid #0c7a7b;
  color: #3d4650; /* ~9.6:1 on white */
  font-size: 1.02rem; /* modest bump from 0.96 for readable day lists */
  font-weight: 500;
  line-height: 1.55;
  box-shadow: 0 10px 24px rgba(21, 32, 40, 0.045);
}

body.sr-is-tour .entry-content ul.sr-itinerary-day__list > li:last-child {
  margin-bottom: 0;
}

body.sr-is-tour .entry-content ul.sr-itinerary-day__list > li::before {
  content: none !important; /* kill theme/list bullets */
}

body.sr-is-tour .entry-content ul.sr-itinerary-day__list > li b,
body.sr-is-tour .entry-content ul.sr-itinerary-day__list > li strong {
  color: #152028;
  font-weight: 750;
}

/* Last day: soften trailing rail */
body.sr-is-tour .entry-content .sr-itinerary-day[data-sr-itinerary-day]:last-of-type::after,
body.sr-is-tour .entry-content ul.sr-itinerary-day__list:last-of-type::before {
  background: linear-gradient(180deg, rgba(12, 122, 123, 0.35), transparent);
}

@media (max-width: 640px) {
  /* Day label clears the badge; cards hug the rail (under day number / along line) */
  body.sr-is-tour .entry-content .sr-itinerary-day,
  body.sr-is-tour .entry-content p.sr-itinerary-day,
  body.sr-is-tour .entry-content h2.sr-itinerary-day,
  body.sr-is-tour .entry-content h3.sr-itinerary-day,
  body.sr-is-tour .entry-content h4.sr-itinerary-day {
    padding-left: 2.15rem; /* badge 1.75 + gap — was 2.65 */
  }
  body.sr-is-tour .entry-content ul.sr-itinerary-day__list {
    padding-left: 0.15rem !important; /* cards under day number / along timeline */
  }
  body.sr-is-tour .entry-content ul.sr-itinerary-day__list > li {
    font-size: 1.08rem;
    line-height: 1.58;
    padding: 0.72rem 0.85rem 0.72rem 0.9rem;
    z-index: 2; /* paint above timeline rail */
    margin-left: 0;
  }
  body.sr-is-tour .entry-content .sr-itinerary-day::before {
    width: 1.75rem;
    height: 1.75rem;
    line-height: 1.75rem;
    font-size: 0.75rem;
  }
  body.sr-is-tour .entry-content .sr-itinerary-day::after,
  body.sr-is-tour .entry-content ul.sr-itinerary-day__list::before {
    left: 0.78rem; /* center under smaller badge */
    z-index: 1;
  }
  body.sr-is-tour .sr-tour-itin {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* —— SR-119 — brand conversion layout (DE funnel) —— */
body.sr-is-tour.sr-tour-layout {
  --sr-brand-teal: #1a5a64;
  --sr-brand-teal-deep: #0c7a7b;
  --sr-brand-cyan: #36d2d3;
  --sr-brand-orange: #b85a00;
  --sr-brand-accent: #f6b888;
  --sr-brand-ink: #152028;
  --sr-brand-muted: #3d4650;
  --sr-brand-paper: #ffffff;
  --sr-brand-wash: #f3fbfb;
  background:
    radial-gradient(1200px 420px at 12% -8%, rgba(54, 210, 211, 0.14), transparent 60%),
    radial-gradient(900px 380px at 92% 4%, rgba(246, 184, 136, 0.18), transparent 55%),
    linear-gradient(180deg, #f4fafb 0%, #faf9f7 40%, #ffffff 100%);
}

/* SR-120 — balanced classic hero (not ~740px, not tiny ~320px). Tourism heads exempt. */
body.sr-is-tour.sr-tour-layout .sr-tour-featured:not(.sr-tour-featured-thumbs__main):not(.sr-tour-hero-slider__slide):not(.sr-tour-carousel__slide),
body.sr-is-tour.sr-tour-layout [data-sr-tour-featured]:not([data-sr-tour-featured-thumbs]):not(.sr-tour-featured-thumbs):not([data-sr-tour-carousel]):not(.sr-tour-carousel):not([data-sr-tour-hero-slider]):not(.sr-tour-hero-slider):not(.sr-tour-hero-mosaic) {
  aspect-ratio: auto;
  max-height: min(48vh, 420px);
}
body.sr-is-tour.sr-tour-layout .sr-tour-featured:not(.sr-tour-featured-thumbs__main):not(.sr-tour-carousel__slide) > .sr-tour-featured__img,
body.sr-is-tour.sr-tour-layout .sr-tour-featured:not(.sr-tour-featured-thumbs__main):not(.sr-tour-carousel__slide) > img {
  max-height: min(48vh, 420px);
  width: 100%;
  object-fit: cover;
  /* Landmark bias — Egypt subjects, not sky-only crop */
  object-position: center 35%;
  filter: none !important;
}
body.sr-is-tour.sr-tour-layout .sr-tourism-head,
body.sr-is-tour.sr-tour-layout [data-sr-tourism-head] {
  max-height: none;
  overflow: visible;
}

/* SR-135e — H1 ABOVE gallery: forced column order (beats Astra/theme flex/grid races) */
body.sr-is-tour .sr-tour-hero-stack[data-sr-tour-hero-stack],
body.sr-is-tour .sr-tour-top > .sr-tour-hero-stack {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 1rem;
}
body.sr-is-tour .sr-tour-hero-stack > .entry-header,
body.sr-is-tour.sr-has-hero .sr-tour-hero-stack > .entry-header,
html body.sr-is-tour .sr-tour-hero-stack > .entry-header,
body.sr-is-tour .sr-tour-hero-stack > .sr-tour-page-title,
body.sr-is-tour .sr-tour-hero-stack > h1.sr-tour-page-title,
html body.sr-is-tour .sr-tour-hero-stack > [data-sr-tour-title] {
  order: -20 !important;
  position: relative !important;
  z-index: 5 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 0 0.75rem !important;
  padding: 0.15rem 0 0 !important;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
body.sr-is-tour .sr-tour-hero-stack > .sr-tour-hero-unit,
body.sr-is-tour .sr-tour-hero-stack > [data-sr-tour-hero-unit] {
  order: 0 !important;
  width: 100%;
}

/* HARD — bare tour title above gallery: brand teal + shaped wash (not plain black) */
body.sr-is-tour .sr-tour-hero-stack > h1.sr-tour-page-title,
html body.sr-is-tour h1.sr-tour-page-title[data-sr-tour-title] {
  color: #1a5a64 !important;
  -webkit-text-fill-color: #1a5a64 !important;
  background:
    linear-gradient(135deg, rgba(54, 210, 211, 0.16) 0%, rgba(243, 251, 251, 0.95) 42%, rgba(255, 255, 255, 0.88) 100%) !important;
  background-image:
    linear-gradient(135deg, rgba(54, 210, 211, 0.16) 0%, rgba(243, 251, 251, 0.95) 42%, rgba(255, 255, 255, 0.88) 100%) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-size: clamp(1.7rem, 6.2vw, 2.55rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 0.95rem !important;
  padding: 0.7rem 1rem 0.85rem 1.05rem !important;
  border: 1px solid rgba(26, 90, 100, 0.16) !important;
  border-left: 5px solid #36d2d3 !important;
  border-radius: 16px 16px 16px 6px !important;
  box-shadow:
    0 12px 28px rgba(26, 90, 100, 0.08),
    inset 0 -1px 0 rgba(54, 210, 211, 0.22) !important;
  text-shadow: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-indent: 0 !important;
  clip: auto !important;
  clip-path: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 1.4em !important;
}
body.sr-is-tour .sr-tour-hero-stack > h1.sr-tour-page-title::after,
html body.sr-is-tour h1.sr-tour-page-title[data-sr-tour-title]::after {
  content: "" !important;
  display: block !important;
  width: 6.25rem !important;
  height: 4px !important;
  margin: 0.65rem 0 0 !important;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a5a64 0%, #0c7a7b 38%, #36d2d3 68%, #e77600 100%) !important;
  box-shadow: 0 4px 12px rgba(54, 210, 211, 0.28);
}
@media (min-width: 1024px) {
  body.sr-is-tour .sr-tour-hero-stack > h1.sr-tour-page-title,
  html body.sr-is-tour h1.sr-tour-page-title[data-sr-tour-title] {
    font-size: clamp(2.05rem, 2.6vw, 2.85rem) !important;
    padding: 0.95rem 1.35rem 1.05rem 1.25rem !important;
    border-radius: 20px 20px 20px 8px !important;
    max-width: min(52rem, 100%);
  }
}
/* Never leave a lonely accent bar without title text */
body.sr-is-tour .sr-tour-hero-stack > .entry-header:empty,
body.sr-is-tour .sr-tour-hero-stack > .entry-header:not(:has(h1)) {
  display: none !important;
}
body.sr-is-tour .sr-tour-hero-stack > .entry-header:not(:has(h1))::after {
  content: none !important;
  display: none !important;
}
body.sr-is-tour .sr-tour-hero-unit[data-sr-tour-hero-unit] {
  display: grid;
  gap: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(243, 251, 251, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(26, 90, 100, 0.14);
  box-shadow: 0 10px 28px rgba(26, 90, 100, 0.07);
}
body.sr-is-tour .sr-tour-hero-unit .sr-tour-carousel,
body.sr-is-tour .sr-tour-hero-unit .sr-tour-featured-thumbs,
body.sr-is-tour .sr-tour-hero-unit .sr-tour-hero-slider,
body.sr-is-tour .sr-tour-hero-unit .sr-tour-hero-mosaic,
body.sr-is-tour .sr-tour-hero-unit > .sr-tour-featured,
body.sr-is-tour .sr-tour-hero-unit > .sr-tour-count-gallery {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  position: relative;
  z-index: 0;
  overflow: hidden;
}
body.sr-is-tour .sr-tour-hero-unit > .entry-header {
  display: none; /* H1 lives above the card in .sr-tour-hero-stack */
}
body.sr-is-tour .sr-tour-hero-unit > .sr-tour-count-gallery,
body.sr-is-tour .sr-tour-hero-unit > [data-sr-tour-count-gallery] {
  order: 0;
}
/* Tour H1 — brand teal above gallery (legacy .entry-title path kept in sync) */
body.sr-is-tour .sr-tour-hero-stack h1.entry-title,
body.sr-is-tour .sr-tour-hero-stack .entry-title,
body.sr-is-tour h1.entry-title {
  position: relative;
  z-index: 2;
  color: #1a5a64 !important;
  -webkit-text-fill-color: #1a5a64 !important;
  font-size: clamp(1.85rem, 4.6vw, 3.05rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
  line-height: 1.08 !important;
  max-width: 100% !important;
  width: 100%;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-wrap: pretty;
}
@media (max-width: 781px) {
  body.sr-is-tour .sr-tour-hero-unit[data-sr-tour-hero-unit] {
    padding: 0;
    border-radius: 14px;
  }
  body.sr-is-tour .sr-tour-hero-stack h1.entry-title,
  body.sr-is-tour h1.entry-title {
    font-size: clamp(1.55rem, 6.6vw, 2.15rem) !important;
    padding-left: 0.7rem !important;
  }
}

/* Legacy empty-metabox fact cards — unmistakable brand chrome */
body.sr-is-tour.sr-tour-layout .sr-fact-legacy-card,
body.sr-is-tour.sr-tour-layout .sr-tour-facts--legacy {
  margin: 1.35rem 0 1.5rem !important;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(26, 90, 100, 0.16);
  box-shadow: 0 14px 32px rgba(26, 90, 100, 0.1);
  background: #fff;
}
body.sr-is-tour.sr-tour-layout .sr-fact-legacy-card .sr-tour-facts__grid {
  display: block;
}
body.sr-is-tour.sr-tour-layout .sr-fact-legacy-card .sr-tour-facts__block {
  margin: 0;
}
body.sr-is-tour.sr-tour-layout .sr-tour-itin--legacy {
  margin: 1.75rem 0 1.5rem;
  padding: 1.15rem 1.05rem 0.85rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(54, 210, 211, 0.1), rgba(255, 255, 255, 0.95));
  border: 2px solid rgba(12, 122, 123, 0.28);
  box-shadow: 0 14px 32px rgba(21, 32, 40, 0.06);
}

/* Key facts strip — Dauer / Preis / Trust */
.sr-tour-keyfacts {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem 1rem;
  margin: 0.85rem 0 1.35rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: var(--sr-surface-teal);
  border: 1px solid var(--sr-surface-teal-border);
  box-shadow: var(--sr-surface-teal-shadow);
  color: var(--sr-surface-teal-fg);
}
.sr-tour-keyfacts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  flex: 1 1 18rem;
}
.sr-tour-keyfacts__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  min-height: 4.25rem;
}
.sr-tour-keyfacts__card--price {
  background: rgba(246, 184, 136, 0.18);
  border-color: rgba(246, 184, 136, 0.45);
}
.sr-tour-keyfacts__label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sr-surface-teal-fg-soft);
}
.sr-tour-keyfacts__value {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--sr-surface-teal-fg);
  letter-spacing: -0.015em;
}
.sr-tour-keyfacts__card--price .sr-tour-keyfacts__value {
  color: #ffe7cf;
}
.sr-tour-keyfacts__cta {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  background: #e77600 !important;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(231, 118, 0, 0.28);
  white-space: nowrap;
}
.sr-tour-keyfacts__cta:hover,
.sr-tour-keyfacts__cta:focus-visible {
  background: #cf6800 !important;
  color: #fff !important;
}
@media (max-width: 720px) {
  .sr-tour-keyfacts {
    flex-direction: column;
  }
  .sr-tour-keyfacts__grid {
    grid-template-columns: 1fr;
  }
  .sr-tour-keyfacts__cta {
    width: 100%;
  }
}

/* Highlights early in funnel — full-bleed teal card emphasis */
body.sr-tour-layout .sr-tour-facts[data-sr-tour-facts-slot="highlights"] {
  margin: 0.5rem 0 1.5rem;
}
body.sr-tour-layout .sr-tour-facts[data-sr-tour-facts-slot="highlights"] .sr-tour-facts__grid {
  grid-template-columns: 1fr;
}
body.sr-tour-layout .sr-tour-facts[data-sr-tour-facts-slot="details"] {
  margin: 1.75rem 0 1.25rem;
}

/* Metabox itinerary section */
.sr-tour-itin {
  margin: 1.75rem 0 1.5rem;
  padding: 1.15rem 1.05rem 0.85rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(54, 210, 211, 0.08), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(26, 90, 100, 0.14);
  box-shadow: 0 14px 32px rgba(21, 32, 40, 0.05);
}
.sr-tour-itin__heading {
  margin: 0 0 1rem !important;
  color: #1a5a64 !important;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
.sr-tour-itin__day {
  margin: 0 0 0.35rem;
}
.sr-tour-itin__title {
  display: inline-block;
  margin-left: 0.35rem;
  color: #3d4650;
  font-weight: 650;
  font-size: 0.92em;
}
.sr-tour-itin__title::before {
  content: "·";
  margin-right: 0.35rem;
  color: #36d2d3;
  font-weight: 800;
}

/* Late-funnel convert CTA — keep Anfragen visible before related */
.sr-tour-layout-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.1rem;
  margin: 1.5rem 0 1.75rem;
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  background: var(--sr-surface-teal);
  border: 1px solid var(--sr-surface-teal-border);
  color: var(--sr-surface-teal-fg);
  box-shadow: var(--sr-surface-teal-shadow);
}
.sr-tour-layout-cta__text {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--sr-surface-teal-fg);
}
.sr-tour-layout-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.sr-tour-layout-cta__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  background: #e77600 !important;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}
.sr-tour-layout-cta__book:hover,
.sr-tour-layout-cta__book:focus-visible {
  background: #cf6800 !important;
}
.sr-tour-layout-cta__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0.65rem 1.05rem;
  border-radius: 10px;
  background: #36d2d3 !important;
  color: #0f1114 !important;
  font-weight: 800;
  text-decoration: none !important;
}
.sr-tour-layout-cta__wa:hover,
.sr-tour-layout-cta__wa:focus-visible {
  filter: brightness(0.96);
}
@media (max-width: 640px) {
  .sr-tour-layout-cta__actions {
    width: 100%;
  }
  .sr-tour-layout-cta__book,
  .sr-tour-layout-cta__wa {
    flex: 1 1 auto;
  }
}


/* ——— SR-123 sticky booking sidebar (desktop) ——— */
body.sr-is-tour.sr-has-book-sidebar #primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.sr-tour-book-sidebar {
  display: none;
}
.sr-tour-book-sidebar__card {
  background: linear-gradient(165deg, #ffffff 0%, #f3f7f8 100%);
  border: 1px solid rgba(26, 90, 100, 0.14);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 10px 28px rgba(15, 28, 34, 0.08);
}
.sr-tour-book-sidebar__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c7a7b;
}
.sr-tour-book-sidebar__price {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  color: #152028;
  line-height: 1.15;
}
.sr-tour-book-sidebar__price.is-empty {
  font-size: 1.05rem;
  color: #3d4650;
}
.sr-tour-book-sidebar__duration {
  margin: 0 0 0.85rem;
  color: #3d4650;
  font-size: 0.9rem;
}
.sr-tour-book-sidebar__field {
  margin: 0 0 0.65rem;
}
.sr-tour-book-sidebar__label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a5a64;
}
.sr-tour-book-sidebar__input {
  width: 100%;
  border: 1px solid rgba(26, 90, 100, 0.22);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: #152028;
  background: #fff;
}
.sr-tour-book-sidebar__muted {
  margin: 0;
  font-size: 0.88rem;
  color: #5a6570;
}
.sr-tour-book-sidebar__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.85rem 0 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(26, 90, 100, 0.12);
  font-size: 0.92rem;
  color: #3d4650;
}
.sr-tour-book-sidebar__total strong {
  color: #152028;
  font-size: 1.05rem;
}
.sr-tour-book-sidebar__actions {
  display: grid;
  gap: 0.55rem;
}
.sr-tour-book-sidebar__cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #e77600;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}
.sr-tour-book-sidebar__cta:hover,
.sr-tour-book-sidebar__cta:focus-visible {
  background: #cf6800;
  color: #fff !important;
}
.sr-tour-book-sidebar__cta:focus-visible,
.sr-tour-book-sidebar__wa:focus-visible {
  outline: 2px solid #0c7a7b;
  outline-offset: 2px;
}
.sr-tour-book-sidebar__wa {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #36d2d3;
  color: #0f1114 !important;
  font-weight: 700;
  text-decoration: none !important;
}
.sr-tour-book-sidebar__wa:hover,
.sr-tour-book-sidebar__wa:focus-visible {
  filter: brightness(0.95);
  color: #0f1114 !important;
}
.sr-tour-book-sidebar__trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.sr-tour-book-sidebar__trust li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #3d4650;
}
.sr-tour-book-sidebar__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #0c7a7b;
}

/* SR-126b — hero full width; 2-col only below hero; related full width after cols */
body.sr-is-tour.sr-has-book-sidebar .sr-tour-top[data-sr-tour-top] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 1rem;
}
body.sr-is-tour.sr-has-book-sidebar .sr-tour-top .sr-tour-hero-stack,
body.sr-is-tour.sr-has-book-sidebar .sr-tour-top .sr-tour-hero-unit {
  max-width: none;
  width: 100%;
}
body.sr-is-tour.sr-has-book-sidebar .sr-tour-cols[data-sr-tour-cols] {
  display: block;
  width: 100%;
  min-width: 0;
  position: relative; /* sticky containment for sidebar */
}

@media (min-width: 1024px) {
  body.sr-is-tour.sr-has-book-sidebar #primary {
    display: block; /* stack: full-width hero → 2-col entry-content|sidebar → related */
  }
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-top[data-sr-tour-top] {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-cols[data-sr-tour-cols] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.25rem;
    align-items: start;
  }
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-cols > main,
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-cols > #main,
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-cols > article {
    grid-column: 1;
    min-width: 0;
  }
  /* Never park the booking card in the hero band. */
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-top .sr-tour-book-sidebar,
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-hero-stack .sr-tour-book-sidebar,
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-hero-unit .sr-tour-book-sidebar {
    display: none !important;
  }
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-cols > .sr-tour-book-sidebar {
    display: block !important;
    grid-column: 2;
    position: sticky;
    top: 5.5rem;
    align-self: start;
    z-index: 5;
    min-width: 0;
    will-change: transform;
  }
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-cols > .sr-tour-book-sidebar.is-stopped {
    /* hard-stop before related — JS translateY keeps rect clear of related */
    z-index: 4;
  }
  body.sr-is-tour.sr-has-book-sidebar #primary > .sr-related,
  body.sr-is-tour.sr-has-book-sidebar #primary > [data-sr-related] {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 1.75rem;
    clear: both;
  }
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-sticky,
  body.sr-is-tour.sr-has-book-sidebar [data-sr-tour-sticky] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  body.sr-is-tour.sr-has-book-sidebar {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 1023px) {
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-book-sidebar,
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-cols > .sr-tour-book-sidebar {
    display: none !important;
  }
}

/* Never show a booking sidebar that landed inside related cards */
.sr-related .sr-tour-book-sidebar,
.sr-related__slide .sr-tour-book-sidebar,
.sr-related__track .sr-tour-book-sidebar {
  display: none !important;
}


/* SR-126 — related full-bleed safety (even if still nested) */
body.sr-is-tour.sr-has-book-sidebar #primary > .sr-related {
  clear: both;
}
body.sr-is-tour .sr-tour-book-sidebar.is-bound {
  /* SR-142 — do not yank the card out of sticky flow */
  position: sticky !important;
}


/* SR-force-deploy — hub/tour header padding wins over stale caches */
body.sr-is-tour .sr-tour-hero-unit[data-sr-tour-hero-unit] {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0.75rem !important;
}
body.sr-is-tour .sr-tour-hero-unit > .entry-header {
  padding: 0.85rem 1rem 0.55rem !important;
}


/* Kill Astra hub ::after only on legacy .entry-title inside .entry-header.
   .sr-tour-page-title owns its own accent underline under the visible text. */
body.sr-is-tour .entry-header h1.entry-title::after,
body.sr-is-tour .sr-tour-hero-unit h1.entry-title::after {
  content: none !important;
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* No orphan accent on empty Astra entry-header (title is .sr-tour-page-title now) */
body.sr-is-tour .sr-tour-hero-stack > .entry-header::after {
  content: none !important;
  display: none !important;
}

/* SR-135c — collapse duplicate booking chrome.
   Mobile: one in-flow convert strip + sticky bar.
   Desktop + sidebar: keyfacts as facts only; sidebar is the book path. */
@media (max-width: 1023px) {
  body.sr-is-tour.sr-has-tour-sticky .sr-tour-keyfacts,
  body.sr-is-tour.sr-has-tour-sticky .sr-tour-layout-cta,
  body.sr-is-tour.sr-has-tour-sticky .sr-tour-meta__cta {
    display: none !important;
  }
  body.sr-is-tour.sr-has-tour-sticky .sr-convert-strip--tour {
    margin: 0.55rem 0 0.85rem;
  }
}
@media (min-width: 1024px) {
  body.sr-is-tour.sr-has-book-sidebar .sr-convert-strip--tour,
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-layout-cta,
  body.sr-is-tour.sr-has-book-sidebar .sr-tour-keyfacts__cta {
    display: none !important;
  }
}


/* SR-174 itinerary z-index */
ul.sr-itinerary-day__list li {
    z-index: 9;
}

/* SR-179 — center tour H1s (title + accent bar) */
body.sr-is-tour .entry-header .entry-title,
body.sr-is-tour h1.entry-title,
body.sr-is-tour .sr-tour-hero-stack h1.entry-title,
body.sr-is-tour .sr-tour-hero-stack .entry-title,
body.sr-is-tour .sr-tour-hero-stack > h1.sr-tour-page-title,
html body.sr-is-tour h1.sr-tour-page-title[data-sr-tour-title] {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.sr-is-tour .sr-tour-hero-stack > h1.sr-tour-page-title::after,
html body.sr-is-tour h1.sr-tour-page-title[data-sr-tour-title]::after,
body.sr-is-tour .entry-header h1.entry-title::after,
body.sr-is-tour h1.entry-title::after {
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 781px) {
  body.sr-is-tour .sr-tour-hero-stack h1.entry-title,
  body.sr-is-tour h1.entry-title {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}


/* ——— SR-189 — mobile tour singles: title / hero / CTA spacing (Astra + TravelAddon) ——— */
@media (max-width: 781px) {
  body.sr-is-tour .sr-tour-hero-stack[data-sr-tour-hero-stack],
  body.sr-is-tour .sr-tour-top > .sr-tour-hero-stack {
    margin: 0 0 0.75rem !important;
    gap: 0 !important;
  }
  body.sr-is-tour .sr-tour-hero-stack > h1.sr-tour-page-title,
  html body.sr-is-tour h1.sr-tour-page-title[data-sr-tour-title] {
    font-size: clamp(1.35rem, 5.8vw, 1.75rem) !important;
    line-height: 1.2 !important;
    margin: 0 0 0.65rem !important;
    padding: 0.55rem 0.75rem 0.65rem 0.8rem !important;
    border-radius: 12px 12px 12px 6px !important;
  }
  body.sr-is-tour .sr-tour-hero-stack > h1.sr-tour-page-title::after,
  html body.sr-is-tour h1.sr-tour-page-title[data-sr-tour-title]::after {
    width: 4.5rem !important;
    margin-top: 0.45rem !important;
  }
  body.sr-is-tour .sr-tour-hero-unit[data-sr-tour-hero-unit] {
    padding: 0 !important;
    margin: 0 0 0.85rem !important;
    border-radius: 12px !important;
  }
  body.sr-is-tour .sr-tour-meta {
    margin: 0.35rem 0 1rem !important;
    padding: 0.85rem 0.9rem !important;
    gap: 0.75rem !important;
    border-radius: 14px !important;
  }
  body.sr-is-tour .sr-tour-meta__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.35rem !important;
    padding: 0.7rem 1rem !important;
    min-height: 44px;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
  }
  body.sr-is-tour.sr-has-tour-sticky .sr-tour-meta__cta {
    display: none !important;
  }
  body.sr-is-tour .sr-tour-keyfacts {
    margin: 0.5rem 0 1rem !important;
    padding: 0.75rem 0.85rem !important;
  }
  body.sr-is-tour #primary.content-area,
  body.sr-is-tour.ast-plain-container.ast-no-sidebar #primary {
    margin-top: clamp(1.25rem, 4.5vw, 1.85rem) !important;
  }
}
