/**
 * Tourism Core Media — structural front-end layout.
 * Colors, fonts and link styles inherit from the host WordPress theme.
 * Prefer WP preset tokens / currentColor; avoid branded skins.
 */
.tcm-explorer,
.tcm-booking,
.tcm-page-shell,
.tcm-detail,
.tcm-detail-wrap,
.tcm-detail-page,
.tcm-list-page,
.tcm-today,
.tcm-advise,
.tcm-reise,
.tcm-instagram,
.tcm-shop,
.cms-podcast-player,
.cms-podcast-embed {
  --tcm-accent: var(--wp--preset--color--primary, var(--wp--preset--color--contrast, currentColor));
  --tcm-accent-strong: var(--wp--preset--color--secondary, var(--tcm-accent));
  --tcm-accent-contrast: var(--wp--preset--color--base, #fff);
  --tcm-muted: color-mix(in srgb, currentColor 55%, transparent);
  --tcm-border: color-mix(in srgb, currentColor 18%, transparent);
  --tcm-surface: color-mix(in srgb, currentColor 5%, transparent);
  --tcm-surface-strong: color-mix(in srgb, currentColor 9%, transparent);
  --tcm-blue: var(--tcm-accent);
  --tcm-blue-dark: var(--tcm-accent-strong);
  --tcm-brand: var(--tcm-accent);
  --tcm-gap: 1.25rem;
  --tcm-rauten-green: var(--tcm-accent);
  color: inherit;
  font-family: inherit;
}

.tcm-explorer {
  margin: 1.5rem 0;
}

.tcm-loading,
.tcm-empty,
.tcm-error {
  color: var(--tcm-muted);
}

.tcm-error {
  color: #b32d2e;
}

/* —— Tomas Buchungsleiste (wie Achental Unterkunftssuche) —— */
.tcm-booking {
  margin: 0 0 1.5rem;
}

.tcm-booking--standalone {
  margin: 1.5rem 0;
}

.tcm-booking-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 4fr);
  gap: 1rem 1.25rem;
  align-items: end;
}

.tcm-booking-heading {
  display: flex;
  align-items: flex-end;
}

.tcm-booking-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.2;
  color: var(--tcm-blue);
}

.tcm-booking-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.tcm-booking-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.tcm-booking-field span {
  color: var(--tcm-muted);
  font-weight: 600;
}

.tcm-booking-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--tcm-border);
  border-radius: 4px;
  background: var(--tcm-surface);
  color: inherit;
  font: inherit;
}

.tcm-booking-submit-wrap {
  display: flex;
  align-items: flex-end;
}

.tcm-booking-submit {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  background: var(--tcm-blue);
  color: var(--tcm-accent-contrast);
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
}

.tcm-booking-submit:hover {
  background: var(--tcm-blue-dark);
  color: var(--tcm-accent-contrast);
}

.tcm-btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  font: inherit;
}

.tcm-btn-primary {
  background: var(--tcm-accent);
  color: var(--tcm-accent-contrast);
}

.tcm-btn-primary:hover {
  background: var(--tcm-blue-dark, var(--tcm-accent-strong));
  color: var(--tcm-accent-contrast);
}

.tcm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.tcm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tcm-filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.tcm-filter span {
  color: var(--tcm-muted);
}

.tcm-filter--attrs {
  min-width: min(100%, 22rem);
  flex: 1 1 18rem;
}

.tcm-filter-label {
  color: var(--tcm-muted);
  font-size: 0.85rem;
}

.tcm-attr-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.2rem;
}

.tcm-attr-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: currentColor;
  cursor: pointer;
}

.tcm-attr-check input {
  min-width: 0;
  margin: 0;
}

.tcm-attr-check em {
  font-style: normal;
  color: var(--tcm-muted);
  font-size: 0.78rem;
}

.tcm-filter input,
.tcm-filter select {
  min-width: 10rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--tcm-border);
  border-radius: 4px;
  background: transparent;
}

.tcm-header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.tcm-title {
  margin: 0;
  font-size: 1.35rem;
}

.tcm-count,
.tcm-season {
  margin: 0;
  color: var(--tcm-muted);
  font-size: 0.9rem;
}

/* —— Karte links + Trefferliste rechts (Achental MapPress layout=left) —— */
.tcm-explorer.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.tcm-split {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  gap: var(--tcm-gap);
  align-items: stretch;
  margin-bottom: 2rem;
}

.tcm-map-panel {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.tcm-map-panel--overview {
  position: relative;
  top: auto;
  margin-bottom: var(--tcm-gap);
}

.tcm-map-panel--overview .tcm-map {
  height: clamp(280px, 42vh, 480px);
}

.tcm-masonry-card.is-active {
  outline: 2px solid var(--tcm-blue);
  outline-offset: 2px;
}

.tcm-map {
  height: 500px;
  width: 100%;
  background: var(--tcm-surface-strong);
  border-radius: 6px;
  border: 1px solid var(--tcm-border);
  overflow: hidden;
}

.tcm-list-panel {
  min-height: 0;
}

.tcm-list-panel--solo .tcm-list {
  max-height: none;
}

.tcm-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 500px;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--tcm-border);
  border-radius: 6px;
  background: transparent;
}

.tcm-list-item {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #eee;
  background: transparent;
}

.tcm-list-item:last-child {
  border-bottom: 0;
}

.tcm-list-item.is-active,
.tcm-list-item:hover {
  background: var(--tcm-surface);
}

.tcm-list-item-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.tcm-list-item-title a {
  color: inherit;
  text-decoration: none;
}

.tcm-list-item-title a:hover {
  color: var(--tcm-blue);
  text-decoration: underline;
}

.tcm-list-item-meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--tcm-muted);
  line-height: 1.3;
}

/* Legacy card styles (unused in map list; kept for safety) */
.tcm-card,
.tcm-card--split {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--tcm-border);
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 1px 8px color-mix(in srgb, var(--tcm-accent) 6%, transparent);
}

.tcm-card.is-active {
  border-color: var(--tcm-blue);
  box-shadow: 0 0 0 1px var(--tcm-blue);
}

.tcm-card-media {
  display: block;
  min-height: 96px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--tcm-surface-strong);
  text-decoration: none;
}

.tcm-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.tcm-card-media--empty {
  background: linear-gradient(135deg, var(--tcm-surface-strong), var(--tcm-surface-strong));
  min-height: 96px;
}

.tcm-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.1rem 0.15rem 0.1rem 0;
}

.tcm-card-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--tcm-muted);
}

.tcm-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.tcm-card-title a {
  color: var(--tcm-blue);
  text-decoration: none;
}

.tcm-card-title a:hover {
  text-decoration: underline;
}

.tcm-card-teaser {
  margin: 0;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tcm-card-actions {
  margin: 0.55rem 0 0;
}

.tcm-btn {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  font: inherit;
}

.tcm-btn-primary {
  background: var(--tcm-blue);
  color: var(--tcm-accent-contrast);
}

.tcm-btn-primary:hover {
  background: var(--tcm-blue-dark);
  color: var(--tcm-accent-contrast);
}

.tcm-btn-secondary {
  background: var(--tcm-surface);
  color: inherit;
  border: 1px solid var(--tcm-border);
}

.tcm-btn-secondary:hover {
  background: #e8e8e8;
  color: currentColor;
}

.tcm-btn-book {
  display: inline-block;
}

/* —— Portfolio-Grid darunter (wie Achental av_one_third) —— */
.tcm-portfolio {
  display: grid !important;
  grid-template-columns: repeat(var(--tcm-masonry-cols, 3), minmax(0, 1fr)) !important;
  gap: 1.25rem;
  margin-top: 0.5rem;
  width: 100% !important;
  float: none !important;
}

.tcm-portfolio-card {
  margin: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
}

.tcm-portfolio-media {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--tcm-surface-strong);
  text-decoration: none;
}

.tcm-portfolio-media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.tcm-portfolio-card:hover .tcm-portfolio-media img {
  transform: scale(1.03);
}

.tcm-portfolio-title {
  margin: 0.65rem 0 0.15rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.tcm-portfolio-title a {
  color: inherit;
  text-decoration: none;
}

.tcm-portfolio-title a:hover {
  color: var(--tcm-blue);
  text-decoration: underline;
}

.tcm-portfolio-city {
  margin: 0;
  font-size: 0.85rem;
  color: var(--tcm-muted);
}

@media (max-width: 960px) {
  .tcm-booking-form {
    grid-template-columns: 1fr;
  }

  .tcm-booking-fields {
    grid-template-columns: 1fr 1fr;
  }

  .tcm-booking-submit-wrap {
    grid-column: 1 / -1;
  }

  .tcm-booking-submit {
    width: 100%;
  }

  .tcm-split {
    grid-template-columns: 1fr;
  }

  .tcm-map-panel {
    position: static;
  }

  .tcm-map,
  .tcm-list {
    max-height: none;
    height: 320px;
  }

  .tcm-list {
    height: auto;
    max-height: 420px;
  }

  .tcm-portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tcm-booking-fields {
    grid-template-columns: 1fr;
  }

  .tcm-card--split {
    grid-template-columns: 1fr;
  }

  .tcm-portfolio {
    grid-template-columns: 1fr;
  }
}

/* —— Detail (Unterkunft) —— */
.tcm-page-shell.container_wrap.main_color {
  background-color: transparent;
  border-top: none;
  padding: 2rem 0 3.5rem;
}

.tcm-page-shell--tour.container_wrap.main_color {
  padding: 0 0 3rem;
  overflow-x: clip;
}

.tcm-page-shell--tour > .tcm-container--tour {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.tcm-detail-page--tour,
.tcm-detail-wrap--tour,
.tcm-detail--tour {
  width: 100%;
  max-width: none;
}

.tcm-page-shell > .container {
  max-width: min(1310px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 50px);
  padding-right: clamp(1rem, 4vw, 50px);
  box-sizing: border-box;
}

@media (max-width: 990px) {
  .tcm-page-shell > .container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 767px) {
  .tcm-page-shell > .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.tcm-list-page .tcm-explorer {
  margin-top: 0;
  background: transparent;
}

.tcm-detail-page,
.tcm-detail-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.tcm-detail-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--tcm-muted);
}

.tcm-detail-crumb a {
  color: inherit;
}

.tcm-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tcm-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  border: 1px solid var(--tcm-border);
  border-radius: 999px;
  background: var(--tcm-surface);
}

.tcm-event-primary {
  margin: 0 0 1rem;
}

.tcm-event-primary-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tcm-muted);
}

.tcm-event-primary-date {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tcm-event-series-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tcm-event-series-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--tcm-border);
}

.tcm-event-meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--tcm-muted);
}

.tcm-product-meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--tcm-muted);
  font-weight: 600;
}

.tcm-filter-hint {
  margin: 0;
  align-self: end;
  padding-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--tcm-muted);
}

.tcm-detail-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.tcm-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.tcm-detail-block {
  margin: 1.5rem 0 0;
}

.tcm-detail-block h2,
.tcm-detail-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.tcm-detail-prose {
  line-height: 1.6;
  color: #333;
}

.tcm-detail-prose p {
  margin: 0 0 0.9rem;
}

.cms-podcast-player,
.cms-podcast-embed {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--tcm-surface) 0%, #e8eee6 100%);
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, currentColor 6%, transparent);
}

.cms-podcast-label {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #667;
  text-transform: uppercase;
}

.cms-podcast-audio,
.cms-podcast-player audio {
  display: block;
  width: 100%;
  height: 2.75rem;
}

.cms-podcast-iframe {
  display: block;
  width: 100%;
  min-height: 152px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.tcm-gallery-main {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
}

.tcm-gallery-main img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tcm-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tcm-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
}

.tcm-gallery-thumb.is-active {
  border-color: #222;
}

.tcm-gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.tcm-gallery-empty {
  min-height: 200px;
  border-radius: 6px;
  background: linear-gradient(135deg, #eee, #ddd);
}

.tcm-detail-map {
  height: 280px;
  border-radius: 6px;
  background: #e8e8e8;
}

.tcm-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tcm-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--tcm-border);
  border-radius: 6px;
  background: var(--tcm-surface);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.tcm-feature-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--tcm-accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.tcm-feature-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.tcm-feature-label {
  min-width: 0;
}

.tcm-feature-block + .tcm-feature-block {
  margin-top: 0.25rem;
}

.tcm-booking-banner {
  margin: 1.25rem 0 1.5rem;
  padding: 1.15rem 1.35rem;
  background: var(--tcm-accent);
  color: var(--tcm-accent-contrast);
  border-radius: 0;
  text-align: center;
}

.tcm-booking-banner--hero {
  margin: 1.5rem 0 1.75rem;
  padding: 1.35rem 1.5rem;
}

.tcm-booking-banner a,
.tcm-booking-banner-link {
  display: block;
  color: inherit;
  background: transparent;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
}

.tcm-booking-banner a:hover,
.tcm-booking-banner-link:hover {
  color: inherit;
  text-decoration: underline;
}

.tcm-booking-banner strong {
  font-weight: 700;
  color: inherit;
}

.tcm-detail-address {
  text-align: center;
}

.tcm-detail-address h2 {
  text-align: center;
}

.tcm-address {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
}

.tcm-btn-book-lg {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  background: var(--tcm-accent);
  color: var(--tcm-accent-contrast);
}

.tcm-similar {
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tcm-border);
}

.tcm-similar-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--tcm-blue, var(--tcm-accent));
  text-align: center;
}

.tcm-similar-grid {
  margin-top: 0;
}

.tcm-detail-actions .tcm-btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  background: var(--tcm-accent);
}

.tcm-detail-actions .tcm-btn-primary:hover {
  background: var(--tcm-accent-strong);
}

.tcm-detail-aside {
  position: sticky;
  top: 1rem;
}

.tcm-detail-card {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--tcm-border);
  border-radius: 8px;
  background: transparent;
}

.tcm-facts {
  margin: 0;
}

.tcm-fact {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee;
}

.tcm-fact:last-of-type {
  border-bottom: 0;
}

.tcm-fact dt {
  font-size: 0.75rem;
  color: var(--tcm-muted);
}

.tcm-fact dd {
  margin: 0;
  font-size: 0.95rem;
}

.tcm-detail-actions {
  margin: 1rem 0 0;
}

@media (max-width: 860px) {
  .tcm-detail-layout {
    grid-template-columns: 1fr;
  }

  .tcm-detail-aside {
    position: static;
  }
}

/* Masonry layout (Enfold av_masonry_entries style) — gegen Theme-Overrides abgesichert */
.tcm-list-page .tcm-list-wrap,
.tcm-explorer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tcm-explorer .tcm-masonry,
.tcm-explorer.tcm-explorer--masonry .tcm-masonry,
#top .tcm-explorer .tcm-masonry,
.entry-content .tcm-explorer .tcm-masonry {
  display: grid !important;
  grid-template-columns: repeat(var(--tcm-masonry-cols, 3), minmax(0, 1fr)) !important;
  gap: 0.85rem;
  margin-top: 1.25rem;
  width: 100% !important;
  float: none !important;
  clear: both;
}

.tcm-explorer--masonry-cols-2 {
  --tcm-masonry-cols: 2;
}

.tcm-explorer--masonry-cols-3 {
  --tcm-masonry-cols: 3;
}

.tcm-explorer--masonry-cols-4 {
  --tcm-masonry-cols: 4;
}

.tcm-explorer--masonry-cols-5 {
  --tcm-masonry-cols: 5;
}

.tcm-explorer--masonry-cols-6 {
  --tcm-masonry-cols: 6;
}

.tcm-explorer .tcm-masonry-card,
#top .tcm-explorer .tcm-masonry-card,
.entry-content .tcm-explorer .tcm-masonry-card {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
  border-radius: 0;
  overflow: hidden;
  background: #eee;
  box-shadow: none;
  display: block;
  position: relative;
}

.tcm-masonry-card:hover {
  transform: none;
  box-shadow: none;
}

.tcm-masonry-card--wide {
  grid-column: span 2;
}

.tcm-explorer .tcm-masonry-media,
.tcm-explorer .tcm-masonry-media img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  float: none !important;
  margin: 0 !important;
}

.tcm-masonry-media {
  position: relative;
  color: #fff;
  text-decoration: none;
}

.tcm-masonry-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 900px) {
  .tcm-explorer .tcm-masonry {
    --tcm-masonry-cols: 2;
  }
}

@media (max-width: 560px) {
  .tcm-explorer .tcm-masonry {
    --tcm-masonry-cols: 1;
  }
}

/* Overlay — Titel mittig auf dem Bild (Berge, Museen …) */
.tcm-explorer--masonry-style-overlay .tcm-masonry-media--overlay img {
  aspect-ratio: 1 / 1;
}

.tcm-explorer--masonry-style-overlay .tcm-masonry-overlay {
  position: absolute;
  inset: 0;
  padding: 1rem;
  background: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
}

.tcm-explorer--masonry-style-overlay .tcm-masonry-title {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tcm-explorer--masonry-style-overlay .tcm-masonry-meta {
  font-size: 0.75rem;
  opacity: 0.9;
  text-transform: none;
  letter-spacing: 0;
}

/* Below — Bild oben, Titel darunter (Erlebnisparks, Slider-Kacheln) */
.tcm-masonry-card--below {
  background: transparent;
  box-shadow: none;
}

.tcm-masonry-media--below img {
  aspect-ratio: 4 / 3;
}

.tcm-masonry-caption {
  padding: 0.85rem 0.25rem 0.35rem;
  color: currentColor;
  text-align: center;
}

.tcm-masonry-caption-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
  text-decoration: none;
}

a.tcm-masonry-caption-title:hover {
  color: var(--tcm-blue);
  text-decoration: underline;
}

.tcm-masonry-caption-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--tcm-muted);
}

/* Carousel / Cover-Slider */
.tcm-carousel {
  position: relative;
  margin-top: 1.25rem;
}

.tcm-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 2.75rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tcm-carousel-track::-webkit-scrollbar {
  display: none;
}

.tcm-carousel-track .tcm-masonry-card {
  flex: 0 0 min(100%, 320px);
  scroll-snap-align: center;
}

.tcm-carousel--cover .tcm-carousel-track .tcm-masonry-card {
  flex-basis: min(78vw, 520px);
  opacity: 0.72;
  transform: scale(0.88);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tcm-carousel--cover .tcm-carousel-track .tcm-masonry-card.is-center {
  opacity: 1;
  transform: scale(1);
}

.tcm-carousel--slide .tcm-carousel-track .tcm-masonry-card {
  flex-basis: min(88vw, 340px);
  opacity: 1;
  transform: none;
}

.tcm-carousel-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.tcm-carousel-prev {
  left: 0.25rem;
}

.tcm-carousel-next {
  right: 0.25rem;
}

/* Listen-Ansicht mit Teaser */
.tcm-explorer--list-teaser .tcm-list-panel--solo .tcm-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 0;
}

.tcm-list-rich-item {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--tcm-border);
}

.tcm-list-rich-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tcm-list-rich-media {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--tcm-surface-strong);
  text-decoration: none;
}

.tcm-list-rich-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tcm-list-rich-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.tcm-list-rich-title a {
  color: var(--tcm-blue);
  text-decoration: none;
}

.tcm-list-rich-title a:hover {
  text-decoration: underline;
}

.tcm-list-rich-meta {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--tcm-muted);
}

.tcm-list-rich-teaser {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}

.tcm-masonry-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tcm-masonry-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.tcm-masonry-meta {
  font-size: 0.82rem;
  opacity: 0.92;
}

.tcm-explorer--masonry .tcm-portfolio,
.tcm-explorer--list .tcm-portfolio {
  display: none;
}

.tcm-explorer--masonry .tcm-split,
.tcm-explorer--grid .tcm-split,
.tcm-explorer--list .tcm-split {
  display: none;
}

.tcm-explorer--no-filters .tcm-header-row {
  margin: 0 0 1rem;
}

.tcm-explorer--no-filters .tcm-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

/* Tour meta in list / masonry */
.tcm-tour-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--tcm-muted);
}

.tcm-tour-meta--leicht {
  color: #0a4;
}

.tcm-tour-meta--mittel {
  color: #c60;
}

.tcm-tour-meta--schwer {
  color: #b00;
}

.tcm-masonry-caption .tcm-tour-meta {
  margin-top: 0.25rem;
  text-align: center;
}

/* Detail: Tour stats bar */
.tcm-detail .tcm-tour-stats,
.tcm-tour-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.tcm-detail .tcm-tour-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--tcm-border);
  border-radius: 6px;
  background: var(--tcm-surface);
  text-align: center;
}

.tcm-detail .tcm-tour-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: currentColor;
}

.tcm-detail .tcm-tour-stat-label {
  font-size: 0.72rem;
  color: var(--tcm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tcm-detail .tcm-tour-stat--leicht {
  background: #e8f8ef;
  border-color: #b7e4c7;
}

.tcm-detail .tcm-tour-stat--mittel {
  background: #fff4e5;
  border-color: #f0d0a0;
}

.tcm-detail .tcm-tour-stat--schwer {
  background: #fdecea;
  border-color: #f0b4ae;
}

/* —— Tour-Teaser (Core EntityListTeaserCard) —— */
.tcm-tour-card-wrap {
  margin: 0;
}

.tcm-tour-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--tcm-border);
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 1px 10px color-mix(in srgb, var(--tcm-accent) 7%, transparent);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tcm-tour-card:hover {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--tcm-accent) 12%, transparent);
  transform: translateY(-1px);
  color: inherit;
}

.tcm-tour-card-media {
  display: block;
  overflow: hidden;
  background: var(--tcm-surface-strong);
}

.tcm-tour-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.tcm-tour-card:hover .tcm-tour-card-media img {
  transform: scale(1.03);
}

.tcm-tour-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem 1rem;
  min-width: 0;
}

.tcm-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tcm-badge-type {
  background: var(--tcm-blue);
  color: var(--tcm-accent-contrast);
}

.tcm-badge-category {
  background: color-mix(in srgb, var(--tcm-accent) 10%, transparent);
  color: var(--tcm-blue-dark, currentColor);
}

.tcm-card-location {
  margin: 0;
  font-size: 0.78rem;
  color: var(--tcm-muted);
  font-weight: 600;
}

.tcm-tour-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--tcm-blue-dark, currentColor);
}

.tcm-card-route {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tcm-muted);
}

.tcm-tour-stats--teaser {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin: 0.15rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid color-mix(in srgb, var(--tcm-accent) 10%, transparent);
}

.tcm-tour-stats--teaser .tcm-tour-stat {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.tcm-tour-stat-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--tcm-blue);
}

.tcm-tour-stat-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.tcm-tour-stats--teaser .tcm-tour-stat-value {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--tcm-blue-dark, currentColor);
  text-transform: none;
  letter-spacing: 0;
}

.tcm-tour-stats--teaser .tcm-tour-stat-label {
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--tcm-muted);
  text-transform: none;
  letter-spacing: 0;
}

.tcm-tour-stats--teaser .tcm-tour-stat--highlight .tcm-tour-stat-value {
  color: var(--tcm-blue);
}

.tcm-tour-stats--teaser .tcm-tour-stat--leicht.tcm-tour-stat--highlight .tcm-tour-stat-value {
  color: #2f7a45;
}

.tcm-tour-stats--teaser .tcm-tour-stat--mittel.tcm-tour-stat--highlight .tcm-tour-stat-value {
  color: #c45a2a;
}

.tcm-tour-stats--teaser .tcm-tour-stat--schwer.tcm-tour-stat--highlight .tcm-tour-stat-value {
  color: #9b3d2f;
}

.tcm-tour-card .tcm-card-teaser {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tcm-portfolio--tours {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .tcm-explorer--tour .tcm-portfolio--tours {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tcm-portfolio .tcm-tour-card-wrap {
  display: flex;
  flex-direction: column;
}

/* Detail: Tour stats bar (legacy class kept for older markup) */
.tcm-tour-stats:not(.tcm-tour-stats--teaser) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.tcm-tour-stats:not(.tcm-tour-stats--teaser) .tcm-tour-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--tcm-border);
  border-radius: 6px;
  background: var(--tcm-surface);
  text-align: center;
}

.tcm-tour-stats:not(.tcm-tour-stats--teaser) .tcm-tour-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: currentColor;
}

.tcm-tour-stats:not(.tcm-tour-stats--teaser) .tcm-tour-stat-label {
  font-size: 0.72rem;
  color: var(--tcm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tcm-tour-stats:not(.tcm-tour-stats--teaser) .tcm-tour-stat--leicht {
  background: #e8f8ef;
  border-color: #b7e4c7;
}

.tcm-tour-stats:not(.tcm-tour-stats--teaser) .tcm-tour-stat--mittel {
  background: #fff4e5;
  border-color: #f0d0a0;
}

.tcm-tour-stats:not(.tcm-tour-stats--teaser) .tcm-tour-stat--schwer {
  background: #fdecea;
  border-color: #f0b4ae;
}

.tcm-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
}

.tcm-tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--tcm-surface);
  color: var(--tcm-accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.tcm-elevation-chart img,
.tcm-elevation-svg-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.tcm-elevation-svg {
  width: 100%;
  height: 160px;
  background: var(--tcm-surface);
  border-radius: 6px;
}

.tcm-detail-actions--gpx {
  margin: 0.75rem 0 1rem;
}

/* —— Tour-Detail (achental.com/tour/…) —— */
.tcm-detail-wrap--tour {
  width: 100%;
  max-width: none;
  padding: 0;
  overflow-x: clip;
}

.tcm-detail--tour .tcm-tour-crumb,
.tcm-detail--tour .tcm-tour-intro,
.tcm-detail--tour .tcm-tour-sections,
.tcm-detail--tour .tcm-tour-pois,
.tcm-detail--tour .tcm-tour-similar {
  width: min(1310px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 50px);
  padding-right: clamp(1rem, 4vw, 50px);
  box-sizing: border-box;
}

.tcm-detail--tour .tcm-tour-crumb {
  padding-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.tcm-tour-bleed {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.tcm-tour-hero {
  margin-bottom: 0;
}

.tcm-tour-hero-main {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--tcm-surface-strong);
  border-radius: 0;
  /* Live: featured 1500×430 → data-default-height ≈ 28.67% der Breite */
  aspect-ratio: 1500 / 430;
  width: 100%;
}

.tcm-tour-hero-main img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.tcm-tour-hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.28) 100%);
}

.tcm-tour-hero-category {
  color: #fff;
  font-size: clamp(1.65rem, 4.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  line-height: 1.15;
}

.tcm-tour-hero-empty {
  aspect-ratio: 1500 / 430;
  min-height: 0;
  background: linear-gradient(135deg, var(--tcm-surface-strong), var(--tcm-surface-strong));
}

/* Rauten unter Hero (überlappen untere Hero-Kante) */
.tcm-rauten {
  --tcm-rauten-green: var(--tcm-accent);
  --tcm-rauten-hw: 2.65rem;
  --tcm-rauten-hh: 3.65rem;
  position: relative;
  z-index: 12;
  width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem 1.25rem;
  box-sizing: border-box;
}

.tcm-rauten--overlap {
  margin-top: calc(-1 * var(--tcm-rauten-hh));
}

.tcm-rauten-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem 1.5rem;
}

.tcm-rauten-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(var(--tcm-rauten-hw) * 2 + 1rem);
  text-align: center;
  text-decoration: none;
  color: currentColor;
  transition: transform 0.15s ease;
}

.tcm-rauten-item:hover {
  transform: translateY(-2px);
  color: currentColor;
}

.tcm-rauten-item:hover .tcm-rauten-shape {
  background: var(--tcm-accent-strong);
}

.tcm-rauten-gem {
  position: relative;
  width: calc(var(--tcm-rauten-hw) * 2);
  height: calc(var(--tcm-rauten-hh) * 2);
  margin-inline: auto;
}

.tcm-rauten-shape {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--tcm-rauten-green);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.tcm-rauten-icon-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tcm-rauten-icon-wrap img {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.tcm-rauten-label {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .tcm-rauten {
    --tcm-rauten-hw: 2.15rem;
    --tcm-rauten-hh: 3rem;
  }

  .tcm-rauten-item {
    width: calc(var(--tcm-rauten-hw) * 2 + 0.5rem);
  }

  .tcm-rauten-label {
    font-size: 0.72rem;
  }

  .tcm-rauten-icon-wrap img {
    width: 1.75rem;
    height: 1.75rem;
  }
}

.tcm-tour-intro {
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.tcm-tour-subtitle {
  margin: 0 0 0.35rem;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--tcm-blue);
  letter-spacing: 0.02em;
}

.tcm-tour-title {
  margin: 0 0 0.75rem;
  text-align: center;
}

.tcm-tour-teaser {
  margin: 0 auto 1.35rem;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: var(--tcm-muted);
  text-align: center;
}

.tcm-tour-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 1.25rem 1.5rem;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
}

.tcm-tour-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
}

.tcm-tour-stat-cell .tcm-tour-stat-icon {
  width: 2.15rem;
  height: 2.15rem;
  color: var(--tcm-blue, var(--tcm-accent));
}

.tcm-tour-stat-cell-value {
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  color: currentColor;
}

.tcm-tour-stat-cell-label {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--tcm-muted);
  text-transform: none;
}

.tcm-tour-stat-cell--leicht .tcm-tour-stat-cell-value {
  color: #2f7a45;
}

.tcm-tour-stat-cell--mittel .tcm-tour-stat-cell-value {
  color: #c45a2a;
}

.tcm-tour-stat-cell--schwer .tcm-tour-stat-cell-value {
  color: #9b3d2f;
}

.tcm-tour-map-wrap {
  position: relative;
  width: 100%;
  height: clamp(360px, 60vh, 620px);
  min-height: 360px;
  overflow: hidden;
  background: var(--tcm-surface-strong);
}

.tcm-tour-map-wrap.tourData__map {
  box-sizing: content-box !important;
  min-height: 60vh;
}

.tcm-tour-map-wrap.tourData__map.is-map-active::after {
  content: none;
}

.tcm-tour-map-wrap.tourData__map > .mapContainer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tcm-tour-map-wrap.tourData__map .mapContainer > div {
  width: 100% !important;
  height: 100% !important;
}

.mapContainer__map__marker {
  display: block;
  line-height: 28px;
  text-align: center;
  position: absolute;
  width: 28px;
  height: 28px;
}

.mapContainer__map__marker > span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: 28px 28px;
}

.imx-poi {
  background: transparent !important;
  border: 0 !important;
}

#tourDataProfile .mtk-elevation-container {
  border-radius: 0;
  width: 100%;
}

#tourDataProfile .mtk-elevation-container canvas,
#tourDataProfile .mtk-elevation-container svg {
  max-width: 100%;
}

#tourDataProfile .tcm-loading {
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--tcm-muted);
}

.tourData__heightMap {
  min-height: 200px;
  background: var(--tcm-surface);
}

.tcm-tour-map {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  border-radius: 0;
  border: 0;
}

.tcm-tour-map-wrap .leaflet-container,
.tcm-tour-map.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  font: inherit;
}

.tcm-tour-map-wrap .leaflet-pane,
.tcm-tour-map-wrap .leaflet-tile-pane,
.tcm-tour-map-wrap .leaflet-overlay-pane {
  z-index: 1;
}

.tcm-marker-poi {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--tcm-accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.tcm-marker-poi-wrap {
  background: transparent !important;
  border: 0 !important;
}

.tcm-tour-difficulty {
  background: #e67e22;
  color: #fff;
  text-align: center;
  padding: 1.35rem 1rem 1.1rem;
}

.tcm-tour-difficulty--leicht {
  background: #3d9b5f;
}

.tcm-tour-difficulty--mittel {
  background: #e67e22;
}

.tcm-tour-difficulty--schwer {
  background: #c0392b;
}

.tcm-tour-difficulty-inner {
  margin: 0;
}

.tcm-tour-difficulty-inner small {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  opacity: 0.92;
}

.tcm-tour-difficulty-inner strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.tcm-tour-elevation {
  background: transparent;
  padding: 0;
}

.tcm-tour-elevation .tcm-elevation-chart img {
  display: block;
  width: 100%;
  height: auto;
}

.tcm-tour-elevation .tcm-elevation-svg-wrap {
  padding: 0;
}

.tcm-tour-elevation .tcm-elevation-svg {
  height: clamp(140px, 22vh, 220px);
  border-radius: 0;
  background: transparent;
}

.tcm-tour-gallery-scroll {
  position: relative;
  margin: 0;
  padding: 1rem 0 1.5rem;
  background: transparent;
  overflow: hidden;
}

.tcm-tour-gallery-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0 clamp(2.75rem, 6vw, 4.5rem) 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tcm-tour-gallery-track::-webkit-scrollbar {
  display: none;
}

.tcm-tour-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-55%);
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 42, 56, 0.72);
  color: var(--tcm-accent-contrast);
  font-size: 1.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.tcm-tour-gallery-arrow:hover {
  background: rgba(29, 42, 56, 0.92);
}

.tcm-tour-gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.tcm-tour-gallery-arrow--prev {
  left: clamp(0.4rem, 1.5vw, 1rem);
}

.tcm-tour-gallery-arrow--next {
  right: clamp(0.4rem, 1.5vw, 1rem);
}

.tcm-tour-gallery-item {
  flex: 0 0 min(78vw, 320px);
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tcm-tour-gallery-item.is-active {
  opacity: 1;
}

.tcm-tour-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.tcm-tour-sections {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.tcm-tour-section + .tcm-tour-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--tcm-border);
}

.tcm-tour-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: currentColor;
}

.tcm-tour-season {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.55rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.tcm-tour-season-month {
  min-width: 2.4rem;
  padding: 0.35rem 0.45rem;
  text-align: center;
  color: #b0b7c0;
  font-weight: 600;
  border-radius: 4px;
}

.tcm-tour-season-month.is-active {
  color: currentColor;
  background: color-mix(in srgb, var(--tcm-accent) 10%, transparent);
}

.tcm-tour-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tcm-tour-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--tcm-accent) 35%, transparent);
  border-radius: 4px;
  font-size: 0.92rem;
  color: currentColor;
  background: var(--tcm-surface);
}

.tcm-tour-section-body p {
  margin: 0 0 0.75rem;
}

.tcm-tour-section-body a {
  color: var(--tcm-blue);
}

.tcm-tour-poi-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.45;
}

.tcm-tour-pois {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--tcm-border);
}

.tcm-tour-pois .tcm-tour-section-title {
  text-align: center;
  margin-bottom: 0.35rem;
}

.tcm-tour-pois .tcm-carousel {
  margin-top: 0.75rem;
}

.tcm-tour-poi-list li {
  position: relative;
  padding-left: 0.95rem;
}

.tcm-tour-poi-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--tcm-muted);
}

.tcm-tour-poi-list li + li {
  margin-top: 0.3rem;
}

.tcm-tour-poi-list a {
  color: var(--tcm-blue);
  text-decoration: none;
}

.tcm-tour-poi-list a:hover {
  text-decoration: underline;
}

.tcm-tour-similar {
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--tcm-border);
}

.tcm-tour-similar .tcm-similar-title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.tcm-tour-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.tcm-tour-similar-grid .tcm-tour-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tcm-tour-similar-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.tcm-tour-similar-media {
  display: block;
  overflow: hidden;
  background: #eee;
}

.tcm-tour-similar-media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.tcm-tour-similar-media:hover img {
  transform: scale(1.03);
}

.tcm-tour-similar-caption {
  padding: 0.8rem 0.15rem 0.35rem;
  text-align: center;
}

.tcm-tour-similar-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
  text-decoration: none;
}

a.tcm-tour-similar-title:hover {
  color: var(--tcm-blue);
  text-decoration: underline;
}

.tcm-tour-similar-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--tcm-muted);
}

@media (max-width: 900px) {
  .tcm-tour-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tcm-masonry-card--wide {
    grid-column: span 1;
  }

  .tcm-list-rich-item {
    grid-template-columns: 1fr;
  }

  .tcm-tour-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tcm-tour-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Heute im Achental — Events | Touren Split */
.tcm-today {
  position: relative;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 0 0.5rem;
}

.tcm-rauten-motif {
  position: absolute;
  top: 0;
  right: 0;
  width: 4.5rem;
  height: 4.5rem;
  pointer-events: none;
  background:
    linear-gradient(45deg, transparent 42%, #7a9b3c 42%, #7a9b3c 58%, transparent 58%) center top / 1.4rem 1.4rem no-repeat,
    linear-gradient(45deg, transparent 42%, var(--tcm-accent) 42%, var(--tcm-accent) 58%, transparent 58%) left center / 1.4rem 1.4rem no-repeat,
    linear-gradient(45deg, transparent 42%, #7eb6c9 42%, #7eb6c9 58%, transparent 58%) right center / 1.4rem 1.4rem no-repeat,
    linear-gradient(45deg, transparent 42%, #9aa3a0 42%, #9aa3a0 58%, transparent 58%) center bottom / 1.4rem 1.4rem no-repeat;
  opacity: 0.85;
}

.tcm-today-date {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tcm-muted, #667);
}

.tcm-today-title {
  margin: 0.2rem 0 1rem;
  font-size: 1.75rem;
  color: var(--tcm-brand, var(--tcm-accent));
}

.tcm-today-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: stretch;
}

.tcm-today-events {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--tcm-accent) 12%, transparent);
  border-radius: 1.15rem;
}

.tcm-today-kicker {
  margin: 0;
  color: var(--tcm-muted, #667);
  font-size: 0.95rem;
}

.tcm-today-panel-title {
  margin: 0;
  font-size: 1.4rem;
  color: currentColor;
}

.tcm-today-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.45rem;
}

.tcm-today-tab {
  border: 0;
  background: transparent;
  padding: 0.15rem 0;
  font: inherit;
  color: var(--tcm-muted, #667);
  cursor: pointer;
}

.tcm-today-tab.is-active {
  color: var(--tcm-brand, var(--tcm-accent));
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--tcm-accent);
}

.tcm-today-events-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tcm-muted, #667);
}

.tcm-today-tabpanel[hidden] {
  display: none !important;
}

.tcm-today-event-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tcm-today-event-row {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
}

.tcm-today-event-date {
  font-weight: 700;
  color: var(--tcm-brand, var(--tcm-accent));
}

.tcm-today-event-arrow {
  color: #889;
}

.tcm-today-events-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--tcm-surface-strong);
  color: currentColor;
  font-weight: 700;
  text-decoration: none;
}

.tcm-today-tours {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 20rem;
  border-radius: 1.15rem;
  overflow: hidden;
  background: var(--tcm-accent);
  color: var(--tcm-accent-contrast);
}

.tcm-today-tours-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
}

.tcm-today-tours-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.tcm-today-tours-title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
}

.tcm-today-tours-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.tcm-today-tour-row {
  display: grid;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
}

.tcm-today-tour-row span {
  opacity: 0.88;
  font-size: 0.88rem;
}

.tcm-today-tours-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}

.tcm-today-tours-cta {
  display: inline-flex;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--tcm-accent);
  color: currentColor;
  font-weight: 700;
  text-decoration: none;
}

.tcm-today-tours-rain {
  color: inherit;
  font-size: 0.88rem;
}

.tcm-today-tours-media {
  position: relative;
  min-height: 100%;
  background: var(--tcm-accent-strong);
}

.tcm-today-tours-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcm-today-empty,
.tcm-today--error {
  color: var(--tcm-muted, #667);
  font-size: 0.9rem;
}

.tcm-today-empty--on-dark {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .tcm-today-split,
  .tcm-today-tours {
    grid-template-columns: 1fr;
  }

  .tcm-today-tours-media {
    min-height: 12rem;
    order: -1;
  }
}

/* Frag das Achental */
.tcm-advise {
  margin: 1.25rem 0 1.75rem;
  padding: 1.2rem 1.25rem 1.3rem;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--tcm-accent) 12%, transparent);
  border-radius: 1.15rem;
}

.tcm-advise-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tcm-muted, #667);
}

.tcm-advise-title {
  margin: 0.2rem 0 0.85rem;
  font-size: 1.55rem;
  color: var(--tcm-brand, var(--tcm-accent));
}

.tcm-advise-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.tcm-advise-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
}

.tcm-advise-submit,
.tcm-advise-chip {
  font: inherit;
  cursor: pointer;
}

.tcm-advise-submit {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  background: var(--tcm-accent);
  font-weight: 700;
}

.tcm-advise-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.tcm-advise-chip {
  border: 1px solid color-mix(in srgb, var(--tcm-accent) 25%, transparent);
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  color: var(--tcm-brand, var(--tcm-accent));
  font-size: 0.85rem;
}

.tcm-advise-out {
  margin-top: 1rem;
}

.tcm-advise-answer {
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.tcm-advise-topics {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--tcm-muted, #667);
}

.tcm-advise-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.tcm-advise-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.4rem;
  border-radius: 0.75rem;
  background: var(--tcm-surface);
  color: inherit;
  text-decoration: none;
}

.tcm-advise-card img,
.tcm-advise-card-ph {
  width: 72px;
  height: 72px;
  border-radius: 0.55rem;
  object-fit: cover;
}

.tcm-advise-card-ph {
  display: block;
  background: var(--tcm-surface-strong);
}

.tcm-advise-card span span {
  display: block;
  font-size: 0.85rem;
  color: var(--tcm-muted, #667);
}

.tcm-advise-error {
  color: #a33;
}

.tcm-advise-badge {
  display: inline-block;
  margin-bottom: 0.2rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--tcm-accent);
  color: currentColor;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tcm-advise-chip--surprise {
  background: var(--tcm-accent);
  border-color: var(--tcm-accent);
  color: var(--tcm-accent-contrast);
}

.tcm-advise-chip--day {
  background: var(--tcm-surface-strong);
  border-color: var(--tcm-accent);
}

.tcm-advise-day-cta {
  margin-top: 0.75rem;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: var(--tcm-accent);
  color: var(--tcm-accent-contrast);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tcm-day-plan {
  margin-top: 0.25rem;
}

.tcm-day-date {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tcm-muted, #667);
}

.tcm-day-title {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.3rem;
}

.tcm-day-summary {
  margin: 0 0 0.75rem;
  color: var(--tcm-muted, #667);
}

.tcm-day-slots {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.tcm-day-slot {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.65rem;
}

.tcm-day-slot time {
  font-weight: 700;
  color: var(--tcm-brand, var(--tcm-accent));
}

.tcm-day-note {
  display: block;
  font-size: 0.88rem;
  color: var(--tcm-muted, #667);
}

@media (max-width: 640px) {
  .tcm-advise-form {
    grid-template-columns: 1fr;
  }
}

.tcm-reise {
  margin: 1.5rem 0;
  padding: 1.2rem 1.25rem;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--tcm-accent) 12%, transparent);
  border-radius: 1.15rem;
}

.tcm-reise-lead {
  margin: 0 0 1rem;
  color: var(--tcm-muted, #667);
}

.tcm-reise-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.tcm-reise-favs,
.tcm-reise-form {
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: var(--tcm-surface);
}

.tcm-reise-favs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tcm-reise-favs-head h3 {
  margin: 0;
}

.tcm-reise-clear {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #667;
}

.tcm-reise-fav-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.tcm-reise-fav-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.tcm-reise-form {
  display: grid;
  gap: 0.6rem;
}

.tcm-reise-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.tcm-reise-form input {
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  font: inherit;
}

.tcm-reise-dates,
.tcm-reise-party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.tcm-reise-submit {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: var(--tcm-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tcm-reise-day {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--tcm-surface);
}

.tcm-reise-day ol {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tcm-reise-day li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tcm-reise-stay {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: var(--tcm-accent);
  color: var(--tcm-accent-contrast);
}

.tcm-reise-stay-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.tcm-reise-stay h3 {
  margin: 0;
  color: inherit;
}

.tcm-reise-booking-cta {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--tcm-accent);
  color: currentColor;
  font-weight: 700;
  text-decoration: none;
}

.tcm-reise-stay-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.tcm-reise-stay-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
}

.tcm-reise-stay-list a {
  color: #e8f0c8;
}

.tcm-reise-stay-list p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.tcm-reise-stay-actions {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .tcm-reise-grid {
    grid-template-columns: 1fr;
  }
}

.tcm-badge-series {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--tcm-accent);
  color: var(--tcm-accent-contrast);
  font-size: 0.72rem;
  font-weight: 700;
}

.tcm-event-series-dates {
  margin: 0.35rem 0 0.6rem;
  font-size: 0.85rem;
}

.tcm-event-series-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.tcm-event-series-dates ul {
  margin: 0;
  padding-left: 1.1rem;
}

.tcm-event-series {
  margin-top: 1.5rem;
}

.tcm-event-series-list {
  margin: 0;
  padding-left: 1.1rem;
}

/* Instagram / Social strip — inherits host theme colors */
.tcm-instagram {
  --tcm-ig-bg: var(--tcm-surface);
  --tcm-ig-forest: currentColor;
  --tcm-ig-lime: var(--tcm-accent);
  --tcm-ig-lime-deep: var(--tcm-accent-strong);
  background: var(--tcm-ig-bg);
  padding: 2.75rem 0 3rem;
  margin: 1.5rem 0;
}

.tcm-instagram-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.tcm-instagram-title {
  margin: 0 0 1.35rem;
  font-weight: 800;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  color: var(--tcm-ig-forest);
  line-height: 1.2;
}

.tcm-instagram-track-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0 1.25rem;
}

.tcm-instagram-track {
  display: flex;
  align-items: stretch;
  gap: clamp(0.65rem, 1.5vw, 0.85rem);
  max-width: 72rem;
  margin: 0 auto;
  min-width: min(100%, 72rem);
}

.tcm-instagram-strip {
  display: flex;
  flex: 1 1 auto;
  gap: clamp(0.65rem, 1.5vw, 0.85rem);
  min-width: 0;
}

.tcm-instagram-tile {
  position: relative;
  flex: 1 1 0;
  min-width: clamp(120px, 16vw, 180px);
  aspect-ratio: 1;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 8px 24px color-mix(in srgb, currentColor 10%, transparent);
  display: block;
  text-decoration: none;
}

.tcm-instagram-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tcm-instagram-cta {
  flex: 0 0 clamp(140px, 18vw, 200px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, var(--tcm-ig-lime) 0%, var(--tcm-ig-lime-deep) 100%);
  color: currentColor;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 28px color-mix(in srgb, currentColor 14%, transparent);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.tcm-instagram-cta:hover,
.tcm-instagram-cta:focus-visible {
  filter: brightness(1.03);
  transform: translateY(-2px);
  color: currentColor;
}

.tcm-instagram-cta-icon {
  line-height: 0;
  opacity: 0.92;
}

.tcm-instagram-cta-handle {
  font-size: 0.82rem;
  font-weight: 700;
}

.tcm-instagram-cta-hashtags {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .tcm-instagram {
    padding: 2rem 0 2.25rem;
  }

  .tcm-instagram-track {
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
}
