/*!
 * Touryteller — /tours/ design system (v0.3.0)
 * Encolado solo en pages: tours (719), tours-template-city (756), tours-template-detail (758)
 *
 * Convención :where() — TODA propiedad tipográfica/color va envuelta en :where()
 *   para mantener especificidad 0,0,0 y permitir override desde el panel Bricks
 *   (que genera #brxe-XX{...} con especificidad 1,0,0).
 *   Reglas estructurales (display, grid, padding) usan especificidad normal.
 *
 * Paleta corporativa Touryteller:
 *   #1863DC royal blue · #7703e8 lila vivid · #ff4fd8 rosa fluo
 *   #f6c545 oro · #6E4BB7 lila brand · Nunito self-hosted
 */

/* ==========================================================================
   Tokens locales (heredan de paleta global Touryteller)
   ========================================================================== */

.tt-tours-section,
.tt-tours-section + .tt-tours-section,
.tt-tours-hero,
.tt-place-hero,
.tt-tour-hero {
  --ttp-primary: #1863DC;
  --ttp-accent:  #7703e8;
  --ttp-pink:    #ff4fd8;
  --ttp-gold:    #f6c545;
  --ttp-lila:    #6E4BB7;
  --ttp-lila-soft: #b66bff;
  --ttp-deep:    #0a0a14;
  --ttp-ink:     #1a1a2e;
  --ttp-text:    #2a2a3e;
  --ttp-muted:   #6b6b85;
  --ttp-paper:   #ffffff;
  --ttp-bg-soft: #f8f7fd;
  --ttp-border:  #e5e3f0;
  --ttp-radius:    16px;
  --ttp-radius-lg: 24px;
  --ttp-shadow-sm: 0 4px 14px -6px rgba(110, 75, 183, .15);
  --ttp-shadow:    0 10px 30px -10px rgba(110, 75, 183, .22);
  --ttp-shadow-lg: 0 30px 80px -20px rgba(119, 3, 232, .28), 0 10px 30px -10px rgba(255, 79, 216, .14);
  --ttp-grad: linear-gradient(135deg, #1863DC 0%, #7703e8 55%, #ff4fd8 100%);
  --ttp-grad-soft: linear-gradient(135deg, #1863DC10 0%, #7703e818 50%, #ff4fd810 100%);
}

/* ==========================================================================
   Section wrapper (cada shortcode vive dentro de un section Bricks)
   ========================================================================== */

.tt-tours-section {
  padding-block: clamp(48px, 6vw, 96px);
  padding-inline: 0;
  width: 100%;
}

/* Hero (full bleed, sin padding superior cuando es la primera section) */
.tt-tours-section--hero,
.tt-tours-section--place-hero,
.tt-tours-section--tour-hero {
  padding-block: 0;
}

.tt-tours-section--filters {
  padding-block: clamp(24px, 3vw, 40px);
}

.tt-tours-section--grid {
  padding-block: clamp(32px, 4vw, 64px);
}

/* ==========================================================================
   HERO HUB · /tours/
   ========================================================================== */

.tt-tours-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--ttp-bg-soft) 100%);
  padding-block: clamp(80px, 10vw, 140px);
}

.tt-tours-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.tt-tours-hero__halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  will-change: transform;
}

.tt-tours-hero__halo--a {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #7703e8 0%, transparent 65%);
  animation: ttHeroHaloA 18s ease-in-out infinite alternate;
}

.tt-tours-hero__halo--b {
  width: 460px;
  height: 460px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, #ff4fd8 0%, transparent 65%);
  animation: ttHeroHaloB 22s ease-in-out infinite alternate;
}

.tt-tours-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(110, 75, 183, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 75, 183, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}

@keyframes ttHeroHaloA {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(40px, 60px, 0) scale(1.1); }
}

@keyframes ttHeroHaloB {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-50px, -40px, 0) scale(1.15); }
}

.tt-tours-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
  text-align: center;
}

:where(.tt-tours-hero__eyebrow) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ttp-lila);
  margin-bottom: 20px;
  padding: 8px 16px;
  background: rgba(110, 75, 183, .08);
  border-radius: 999px;
  border: 1px solid rgba(110, 75, 183, .15);
}

.tt-tours-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ttp-pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 216, .2);
  animation: ttDotPulse 1.6s ease-in-out infinite;
}

@keyframes ttDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 79, 216, .2); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 79, 216, .05); }
}

:where(.tt-tours-hero__title) {
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ttp-ink);
  margin: 0 0 24px;
}

:where(.tt-tours-hero__hl) {
  background: var(--ttp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% auto;
  animation: ttGradShift 8s ease-in-out infinite;
}

@keyframes ttGradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

:where(.tt-tours-hero__sub) {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--ttp-muted);
  margin: 0 auto 40px;
  max-width: 640px;
}

.tt-tours-hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tt-tours-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.tt-tours-hero__btn--primary {
  background: #7703e8;
  color: #fff;
  box-shadow: var(--ttp-shadow);
}

.tt-tours-hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--ttp-shadow-lg);
}

.tt-tours-hero__btn--ghost {
  background: rgba(255, 255, 255, .9);
  color: var(--ttp-ink);
  border: 1.5px solid var(--ttp-border);
}

.tt-tours-hero__btn--ghost:hover {
  background: #fff;
  border-color: var(--ttp-lila);
  color: var(--ttp-lila);
}

.tt-tours-hero__btn:focus-visible {
  outline: 3px solid var(--ttp-lila-soft);
  outline-offset: 3px;
}

:where(.tt-tours-hero__trust) {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--ttp-muted);
}

:where(.tt-tours-hero__trust li) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   DESTINATIONS MOSAIC
   ========================================================================== */

.tt-destinations {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.tt-destinations__head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

:where(.tt-destinations__h2) {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ttp-ink);
  margin: 0 0 12px;
}

:where(.tt-destinations__lede) {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ttp-muted);
  max-width: 580px;
  margin: 0 auto;
}

.tt-destinations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tt-destinations__card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--ttp-radius-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--ttp-bg-soft);
  box-shadow: var(--ttp-shadow-sm);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), box-shadow 280ms ease;
}

.tt-destinations__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ttp-shadow-lg);
}

.tt-destinations__card:focus-visible {
  outline: 3px solid var(--ttp-lila);
  outline-offset: 3px;
}

.tt-destinations__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
}

.tt-destinations__card:hover .tt-destinations__img {
  transform: scale(1.08);
}

.tt-destinations__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 20, 0) 30%, rgba(10, 10, 20, .82) 100%);
}

:where(.tt-destinations__type) {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
}

:where(.tt-destinations__name) {
  position: absolute;
  bottom: 44px;
  left: 18px;
  right: 18px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

:where(.tt-destinations__count) {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

/* ==========================================================================
   FILTROS (chips deep-linkeables)
   ========================================================================== */

.tt-tours-filters {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ttp-border);
}

.tt-tours-filters__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 40px);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.tt-tours-filters__group {
  position: relative;
  border: 1.5px solid var(--ttp-border);
  border-radius: 999px;
  background: #fff;
  transition: border-color 200ms ease;
}

.tt-tours-filters__group:hover {
  border-color: var(--ttp-lila-soft);
}

.tt-tours-filters__group[open] {
  border-color: var(--ttp-lila);
  box-shadow: var(--ttp-shadow-sm);
}

.tt-tours-filters__summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ttp-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  min-height: 44px;
}

.tt-tours-filters__summary::-webkit-details-marker {
  display: none;
}

.tt-tours-filters__summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-top: -3px;
  transition: transform 200ms ease;
}

.tt-tours-filters__group[open] .tt-tours-filters__summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.tt-tours-filters__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ttp-pink);
}

.tt-tours-filters__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--ttp-border);
  border-radius: var(--ttp-radius);
  box-shadow: var(--ttp-shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  z-index: 10;
}

.tt-tours-filters__chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--ttp-radius);
  font-size: 14px;
  color: var(--ttp-text);
  text-decoration: none;
  min-height: 44px;
  transition: background 150ms ease, color 150ms ease;
}

.tt-tours-filters__chip:hover {
  background: var(--ttp-bg-soft);
  color: var(--ttp-lila);
}

.tt-tours-filters__chip.is-active {
  background: var(--ttp-grad-soft);
  color: var(--ttp-lila);
  font-weight: 700;
}

.tt-tours-filters__count {
  font-size: 12px;
  color: var(--ttp-muted);
}

.tt-tours-filters__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ttp-muted);
  text-decoration: none;
  border-radius: 999px;
  min-height: 44px;
  margin-left: auto;
  transition: color 150ms ease, background 150ms ease;
}

.tt-tours-filters__reset:hover {
  color: var(--ttp-pink);
  background: rgba(255, 79, 216, .08);
}

/* ==========================================================================
   PLACEHOLDER (tours sin imagen real desde la app)
   SVG es un skyline urbano abstracto, no identificable, en tonos lila corporativo.
   Cover full bleed para que llene todo el bg en cualquier ratio (cards 3:2, hero 16:9).
   ========================================================================== */

.tt-tours-card__img--placeholder,
.tt-tour-hero__media--placeholder {
  background: #2a1450;
}

.tt-tours-card__img--placeholder img,
.tt-tour-hero__img--placeholder {
  object-fit: cover !important;
  object-position: center;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

/* ==========================================================================
   GRID + CARDS
   ========================================================================== */

.tt-tours-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.tt-tours-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--ttp-radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--ttp-shadow-sm);
  border: 1px solid transparent;
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), box-shadow 280ms ease, border-color 200ms ease;
  isolation: isolate;
}

.tt-tours-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ttp-shadow-lg);
  border-color: rgba(110, 75, 183, .25);
}

.tt-tours-card:focus-visible {
  outline: 3px solid var(--ttp-lila);
  outline-offset: 3px;
}

.tt-tours-card__img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ttp-bg-soft);
}

.tt-tours-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
}

.tt-tours-card:hover .tt-tours-card__img img {
  transform: scale(1.06);
}

:where(.tt-tours-card__chip) {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ttp-lila);
}

.tt-tours-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

:where(.tt-tours-card__place) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ttp-lila);
  margin: 0;
}

.tt-tours-card__place-icon {
  flex-shrink: 0;
}

:where(.tt-tours-card__title) {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ttp-ink);
  margin: 0;
  /* line-clamp graceful: pierde fallback en ancient browsers, OK */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:where(.tt-tours-card__meta) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ttp-muted);
  margin: 0;
}

.tt-tours-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tt-tours-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--ttp-border);
}

:where(.tt-tours-card__rating) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ttp-ink);
  margin: 0;
}

.tt-tours-card__star {
  color: var(--ttp-gold);
}

:where(.tt-tours-card__rating-count) {
  font-size: 12px;
  font-weight: 500;
  color: var(--ttp-muted);
}

:where(.tt-tours-card__price) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ttp-ink);
  margin: 0;
}

:where(.tt-tours-card__price.is-free) {
  color: #0a8a4f;
}

/* ==========================================================================
   PLACE HERO · /tours/{city}/
   ========================================================================== */

.tt-place-hero {
  position: relative;
  min-height: clamp(420px, 55vh, 540px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  isolation: isolate;
}

.tt-place-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tt-place-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-place-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 20, .25) 0%, rgba(10, 10, 20, .82) 90%),
    linear-gradient(135deg, rgba(24, 99, 220, .35), rgba(119, 3, 232, .35));
  mix-blend-mode: multiply;
}

.tt-place-hero__crumbs {
  position: relative;
  z-index: 1;
  padding: 24px clamp(20px, 4vw, 40px) 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
}

.tt-place-hero__crumbs a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.tt-place-hero__crumbs a:hover {
  color: #fff;
}

.tt-place-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: auto;
  padding: 32px clamp(20px, 4vw, 40px) clamp(40px, 6vw, 64px);
  width: 100%;
}

:where(.tt-place-hero__eyebrow) {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ttp-gold);
  margin: 0 0 16px;
}

:where(.tt-place-hero__title) {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 16px;
}

:where(.tt-place-hero__sub) {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  max-width: 560px;
  margin: 0 0 28px;
}

.tt-place-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tt-place-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.tt-place-hero__btn--primary {
  background: #7703e8;
  color: #fff;
  box-shadow: var(--ttp-shadow);
}

.tt-place-hero__btn--ghost {
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tt-place-hero__btn:hover {
  transform: translateY(-2px);
}

.tt-place-hero__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ==========================================================================
   PLACE INTRO
   ========================================================================== */

.tt-place-intro__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
  text-align: center;
}

:where(.tt-place-intro__h2) {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ttp-ink);
  margin: 0 0 20px;
}

:where(.tt-place-intro__lead) {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ttp-text);
  margin: 0;
}

/* ==========================================================================
   TOUR HERO · /tours/{city}/{slug}/
   ========================================================================== */

.tt-tour-hero {
  position: relative;
  min-height: clamp(520px, 70vh, 680px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  isolation: isolate;
}

.tt-tour-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tt-tour-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-tour-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 20, .15) 0%, rgba(10, 10, 20, .9) 95%);
}

.tt-tour-hero__crumbs {
  position: relative;
  z-index: 1;
  padding: 24px clamp(20px, 4vw, 40px) 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  flex-wrap: wrap;
}

.tt-tour-hero__crumbs a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.tt-tour-hero__crumbs a:hover {
  color: #fff;
}

.tt-tour-hero__crumb-current {
  color: #fff;
}

.tt-tour-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: auto;
  padding: 32px clamp(20px, 4vw, 40px) clamp(40px, 6vw, 72px);
  width: 100%;
}

:where(.tt-tour-hero__eyebrow) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ttp-gold);
  margin: 0 0 16px;
}

:where(.tt-tour-hero__title) {
  font-size: clamp(32px, 5.8vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 24px;
  max-width: 880px;
}

.tt-tour-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.tt-tour-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.tt-tour-hero__pill--free {
  background: rgba(10, 138, 79, .35);
  border-color: rgba(10, 138, 79, .6);
}

:where(.tt-tour-hero__rating-count) {
  font-weight: 500;
  opacity: .85;
}

.tt-tour-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tt-tour-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.tt-tour-hero__btn--primary {
  background: #7703e8;
  color: #fff;
  box-shadow: var(--ttp-shadow);
}

.tt-tour-hero__btn--ghost {
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tt-tour-hero__btn:hover {
  transform: translateY(-2px);
}

.tt-tour-hero__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ==========================================================================
   TOUR DESCRIPTION
   ========================================================================== */

.tt-tour-desc__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

:where(.tt-tour-desc__h2) {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--ttp-ink);
  margin: 0 0 24px;
}

:where(.tt-tour-desc__body) {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ttp-text);
}

:where(.tt-tour-desc__body p) {
  margin: 0 0 16px;
}

.tt-tour-desc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

:where(.tt-tour-desc__tag) {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ttp-grad-soft);
  border: 1px solid rgba(110, 75, 183, .15);
  font-size: 13px;
  font-weight: 600;
  color: var(--ttp-lila);
}

/* ==========================================================================
   TOUR MAP (Leaflet override)
   ========================================================================== */

.tt-tour-map {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.tt-tour-map__canvas {
  width: 100%;
  border-radius: var(--ttp-radius-lg);
  overflow: hidden;
  box-shadow: var(--ttp-shadow);
  border: 1px solid var(--ttp-border);
}

.tt-map-marker {
  background: #7703e8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(119, 3, 232, .4);
  border: 3px solid #fff;
}

.tt-map-marker span {
  pointer-events: none;
}

/* Popup del mapa: texto del punto de partida (con enlace) al doble de tamaño.
   Leaflet base = 12px → 24px. Scoped al mapa de tours. */
.tt-tour-map .leaflet-popup-content {
  font-size: 15px;
  line-height: 1.3;
  margin: 14px 30px 14px 18px;
}
.tt-tour-map .leaflet-popup-content a,
.tt-tour-map .leaflet-popup-content strong {
  font-size: inherit;
  font-weight: 800;
  color: var(--ttp-accent, #7703e8);
}
.tt-tour-map .leaflet-popup-content a { text-decoration: none; }
.tt-tour-map .leaflet-popup-content a:hover { text-decoration: underline; }
/* la cruz de cerrar acompaña el tamaño mayor */
.tt-tour-map .leaflet-popup-close-button {
  font-size: 22px;
  width: 28px;
  height: 28px;
  padding: 4px 4px 0 0;
}

/* ==========================================================================
   TOUR CHECKPOINTS
   ========================================================================== */

.tt-tour-cps__inner {
  max-width: 880px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

:where(.tt-tour-cps__h2) {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--ttp-ink);
  margin: 0 0 32px;
  text-align: center;
}

.tt-tour-cps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tt-tour-cps__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ttp-border);
  position: relative;
}

.tt-tour-cps__item:last-child {
  border-bottom: none;
}

.tt-tour-cps__item::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 70px;
  bottom: -24px;
  width: 2px;
  background: var(--ttp-border);
}

.tt-tour-cps__item:last-child::before {
  display: none;
}

.tt-tour-cps__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ttp-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--ttp-shadow-sm);
  position: relative;
  z-index: 1;
}

:where(.tt-tour-cps__title) {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ttp-ink);
  margin: 6px 0 8px;
}

:where(.tt-tour-cps__fact) {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ttp-text);
  margin: 0;
}

/* Aviso anti-spoiler: el resto de paradas se descubren en la app */
.tt-tour-cps__locked {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 760px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border: 1px dashed var(--ttp-border);
  border-radius: 14px;
  background: var(--ttp-grad-soft);
}

:where(.tt-tour-cps__locked) {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ttp-muted);
  font-weight: 600;
}

.tt-tour-cps__locked svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--ttp-lila);
}

/* ==========================================================================
   TOUR CREATOR
   ========================================================================== */

.tt-tour-creator__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

:where(.tt-tour-creator__h2) {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--ttp-ink);
  margin: 0 0 20px;
}

.tt-tour-creator__card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--ttp-radius-lg);
  background: var(--ttp-grad-soft);
  border: 1px solid rgba(110, 75, 183, .15);
  align-items: center;
}

.tt-tour-creator__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #7703e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  flex-shrink: 0;
}

:where(.tt-tour-creator__name) {
  font-size: 18px;
  font-weight: 800;
  color: var(--ttp-ink);
  margin: 0 0 4px;
}

:where(.tt-tour-creator__bio) {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ttp-muted);
  margin: 0;
}

/* ==========================================================================
   TOUR RELATED
   ========================================================================== */

.tt-tour-related__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

:where(.tt-tour-related__h2) {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--ttp-ink);
  margin: 0 0 24px;
  text-align: center;
}

.tt-tour-related .tt-tours-grid {
  padding-inline: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.tt-tours-faq__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

:where(.tt-tours-faq__h2) {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--ttp-ink);
  margin: 0 0 28px;
  text-align: center;
}

.tt-tours-faq__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tt-tours-faq__item details {
  background: #fff;
  border: 1px solid var(--ttp-border);
  border-radius: var(--ttp-radius);
  padding: 4px 0;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.tt-tours-faq__item details[open] {
  border-color: rgba(110, 75, 183, .3);
  box-shadow: var(--ttp-shadow-sm);
}

:where(.tt-tours-faq__q) {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ttp-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.tt-tours-faq__q::-webkit-details-marker { display: none; }

.tt-tours-faq__q::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--ttp-lila);
  line-height: 1;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.tt-tours-faq__item details[open] .tt-tours-faq__q::after {
  transform: rotate(45deg);
}

:where(.tt-tours-faq__a) {
  padding: 0 22px 18px;
}

:where(.tt-tours-faq__a p) {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ttp-text);
  margin: 0;
}

/* ==========================================================================
   SHARE MODAL (estilo Google Maps Share)
   ========================================================================== */

.tt-share-modal {
  --ttp-primary: #1863DC;
  --ttp-accent:  #7703e8;
  --ttp-pink:    #ff4fd8;
  --ttp-ink:     #1a1a2e;
  --ttp-text:    #2a2a3e;
  --ttp-muted:   #6b6b85;
  --ttp-border:  #e5e3f0;
  --ttp-radius:    16px;
  --ttp-radius-lg: 24px;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ttShareIn 200ms ease-out;
}

.tt-share-modal[hidden] { display: none; }

@keyframes ttShareIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tt-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.tt-share-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--ttp-radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35);
  animation: ttSharePanelIn 280ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes ttSharePanelIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.tt-share-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 8px;
}

:where(.tt-share-modal__h) {
  font-size: 20px;
  font-weight: 800;
  color: var(--ttp-ink);
  margin: 0;
}

.tt-share-modal__close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ttp-muted);
  transition: background 150ms ease, color 150ms ease;
}

.tt-share-modal__close:hover {
  background: rgba(110, 75, 183, .08);
  color: var(--ttp-accent);
}

.tt-share-modal__close:focus-visible {
  outline: 3px solid var(--ttp-accent);
  outline-offset: 2px;
}

.tt-share-modal__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 24px 20px;
}

.tt-share-modal__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0eef8;
}

.tt-share-modal__thumb--placeholder {
  background: #633195;
}

.tt-share-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-share-modal__thumb--placeholder img {
  object-fit: contain;
  padding: 8px;
}

:where(.tt-share-modal__title) {
  font-size: 15px;
  font-weight: 700;
  color: var(--ttp-ink);
  margin: 0 0 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:where(.tt-share-modal__sub) {
  font-size: 13px;
  color: var(--ttp-muted);
  margin: 0;
}

:where(.tt-share-modal__label) {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ttp-muted);
  padding: 0 24px 6px;
}

.tt-share-modal__copy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--ttp-border);
}

.tt-share-modal__url {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--ttp-border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ttp-text);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  min-width: 0;
  text-overflow: ellipsis;
}

.tt-share-modal__url:focus {
  outline: 2px solid var(--ttp-accent);
  outline-offset: 1px;
  border-color: var(--ttp-accent);
}

.tt-share-modal__copy-btn {
  flex-shrink: 0;
  padding: 12px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ttp-primary);
  border-radius: 8px;
  transition: background 150ms ease;
}

.tt-share-modal__copy-btn:hover {
  background: rgba(24, 99, 220, .08);
}

.tt-share-modal__copy-btn:focus-visible {
  outline: 2px solid var(--ttp-primary);
  outline-offset: 2px;
}

.tt-share-modal__channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 4px;
  padding: 20px;
  background: #fafaf8;
  border-radius: 0 0 var(--ttp-radius-lg) var(--ttp-radius-lg);
}

.tt-share-modal__ch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ttp-text);
  font-size: 12px;
  font-weight: 600;
  transition: background 150ms ease, transform 150ms ease;
  font-family: inherit;
}

.tt-share-modal__ch:hover {
  background: rgba(110, 75, 183, .06);
  transform: translateY(-2px);
}

.tt-share-modal__ch:focus-visible {
  outline: 2px solid var(--ttp-accent);
  outline-offset: 2px;
}

.tt-share-modal__ch-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-share-modal__ch-icon--wa { background: #25D366; color: #fff; }
.tt-share-modal__ch-icon--x  { background: #0a0a0a; color: #fff; }
.tt-share-modal__ch-icon--fb { background: #1877F2; color: #fff; }
.tt-share-modal__ch-icon--tg { background: #229ED9; color: #fff; }
.tt-share-modal__ch-icon--gm { background: #EA4335; color: #fff; }
.tt-share-modal__ch-icon--ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}
.tt-share-modal__ch-icon--more { background: #f0eef8; color: var(--ttp-accent); }

/* Aviso Instagram (IG no admite compartir URL vía web → copiamos enlace) */
.tt-share-modal__ig-hint {
  margin: 14px 2px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ttp-grad-soft);
  border: 1px dashed var(--ttp-border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ttp-muted);
  font-weight: 600;
}

/* ==========================================================================
   POST-CREATOR CTA · vista detalle de tour
   ========================================================================== */

.tt-tour-postcreator {
  position: relative;
  overflow: hidden;
}

.tt-tour-postcreator__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px);
  text-align: center;
  background: #7703e8;
  border-radius: var(--ttp-radius-lg);
  color: #fff;
  isolation: isolate;
}

.tt-tour-postcreator__inner::before {
  display: none;
}

:where(.tt-tour-postcreator__eyebrow) {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 14px;
}

:where(.tt-tour-postcreator__h2) {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}

:where(.tt-tour-postcreator__sub) {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
  margin: 0 auto 28px;
  max-width: 540px;
}

.tt-tour-postcreator__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tt-tour-postcreator__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 16px 36px;
  border-radius: 999px;
  background: #fff;
  color: #7703e8;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, .25);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.tt-tour-postcreator__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .35);
}

.tt-tour-postcreator__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

:where(.tt-tour-postcreator__trust) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
}

:where(.tt-tour-postcreator__trust li) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 600px) {
  .tt-share-modal__channels {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.tt-tours-empty {
  max-width: 540px;
  margin: 60px auto;
  padding: 48px 32px;
  text-align: center;
  background: var(--ttp-bg-soft);
  border-radius: var(--ttp-radius-lg);
  border: 1px dashed var(--ttp-border);
}

:where(.tt-tours-empty p) {
  font-size: 16px;
  color: var(--ttp-muted);
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .tt-tours-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tt-destinations__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tt-tour-cps__item {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }

  .tt-tour-cps__num {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .tt-tour-cps__item::before {
    left: 21px;
    top: 56px;
  }

  .tt-tours-filters {
    position: static;
  }

  .tt-tours-filters__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tt-tours-filters__inner::-webkit-scrollbar { display: none; }

  .tt-tours-filters__group {
    flex-shrink: 0;
  }

  .tt-tour-creator__card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tt-destinations__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .tt-tours-hero__halo,
  .tt-tours-hero__dot {
    animation: none !important;
  }
}
