/* ==========================================================================
   Página individual de tour (tour.php) — Tortutravel
   ========================================================================== */

:root {
  --tt-green: #2d5a27;
  --tt-green-light: #4a7c40;
  --tt-bg-soft: #f4f7f2;
  --tt-border: #e3e8de;
}

.tour-detail-page { background: #fff; }

/* --- Hero de la ficha de tour ---
   El navbar vuelve a su comportamiento nativo: transparente sobre el hero
   y sólido ('.scrolled') al hacer scroll (lo gestiona script.js). */
#tour-hero {
  position: relative;
  min-height: 62vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
#tour-hero .tour-hero-filter {
  position: absolute; inset: 0;
  /* Filtro uniforme sobre TODA la imagen (clase propia para no heredar la
     global .hero-overlay, que la desplazaba con translateY y dejaba hueco). */
  background: rgba(0, 0, 0, 0.45);
}
#tour-hero .hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 6rem 1rem 2.6rem; color: #fff;
}
#tour-hero h1 {
  color: #fff; margin: 0 0 1rem; border: none;
  font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
#tour-hero .tour-meta { margin: 0 0 1.3rem; }
#tour-hero .tour-meta li { color: #f2f2f2; }
#tour-hero .tour-meta li i { color: #ffd23b; }
#tour-hero .tour-meta li strong { color: #fff; }
#tour-hero .tour-price, #tour-hero .tour-price span { color: #fff; }
#tour-hero .tour-seasonal { margin-bottom: 1.2rem; }
#tour-hero .hero-book { display: inline-flex; align-items: center; gap: 0.5rem; }

@media (max-width: 860px) {
  #tour-hero { min-height: 54vh; }
  #tour-hero .hero-content { padding: 5rem 1rem 2rem; }
}

/* Migas de pan */
.breadcrumb {
  background: var(--tt-bg-soft);
  border-bottom: 1px solid var(--tt-border);
  font-size: 0.9rem;
}
.breadcrumb .container { padding: 0.85rem 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--tt-green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #8a958a; }
.breadcrumb .current { color: #333; font-weight: 600; }

/* Contenedor principal */
.tour-detail { padding: 2rem 1rem 3rem; max-width: 1100px; margin: 0 auto; }

/* Cabecera */
.tour-head h1 {
  color: var(--tt-green);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.tour-meta {
  list-style: none; padding: 0; margin: 0 0 0.5rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
}
.tour-meta li { color: #444; font-size: 0.95rem; display: flex; align-items: center; gap: 0.4rem; }
.tour-meta li i { color: var(--tt-green-light); }
.tour-meta .tour-price { color: var(--tt-green); font-weight: 700; }
.tour-meta .tour-price span { font-weight: 400; color: #666; }
.tour-seasonal {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff6e5; color: #8a6d1a; border: 1px solid #f0e0b0;
  padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.9rem; margin-top: 0.4rem;
}

/* Galería — imagen COMPLETA (sin recortar) sobre fondo oscuro tipo visor */
.tour-gallery { margin: 1.5rem 0 2rem; }
.tour-gallery .tour-carousel {
  border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  background: #14210f;
}
.tour-gallery .carousel-slide {
  position: relative;
  overflow: hidden;
  height: 600px;               /* = altura del carrusel (tours.css), evita la banda inferior */
  background-color: #14210f;
  background-size: cover;      /* usa el background-image inline de cada slide */
  background-position: center;
}
/* Relleno desenfocado con la propia foto (evita las barras vacías en fotos verticales) */
.tour-gallery .carousel-slide::before {
  content: '';
  position: absolute; inset: -8%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.6);
  z-index: 0;
}
/* Foto completa y nítida por encima del relleno */
.tour-gallery .carousel-slide img {
  position: relative; z-index: 1;
  display: block; margin: 0 auto;
  width: 100%; height: 600px; object-fit: contain;
}

/* Cuerpo: contenido + barra lateral */
.tour-body {
  display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start;
}
.tour-content { min-width: 0; }
.tour-content p { line-height: 1.7; color: #333; margin: 0 0 1rem; }
.tour-content h2 {
  color: var(--tt-green); font-size: 1.35rem; margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--tt-bg-soft);
}
.tour-content strong { color: #1f3d1b; }

/* Iconos de los títulos de sección */
.tour-content h2 i,
.tour-related h2 i { color: var(--tt-green-light); margin-right: 0.45rem; }
.tour-card-book h3 i { color: var(--tt-green-light); margin-right: 0.35rem; }
.breadcrumb a i { color: var(--tt-green-light); }
.btn-book-lg i { margin-right: 0.4rem; }

.tour-highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.tour-highlights li { display: flex; align-items: flex-start; gap: 0.6rem; color: #333; line-height: 1.5; }
.tour-highlights li i { color: var(--tt-green-light); margin-top: 0.25rem; }

/* FAQ */
.tour-faq details {
  border: 1px solid var(--tt-border); border-radius: 8px;
  padding: 0 1rem; margin-bottom: 0.6rem; background: #fff;
  overflow: hidden;   /* la altura la anima script.js (Web Animations API) */
}
.tour-faq summary {
  cursor: pointer; font-weight: 600; color: var(--tt-green);
  padding: 0.6rem 0; list-style: none;
}
.tour-faq summary::-webkit-details-marker { display: none; }
.tour-faq summary::after {
  content: '+'; float: right; font-size: 1.5rem; line-height: 1;
  color: var(--tt-green-light);
  transition: transform 0.3s ease;   /* gira suave al abrir/cerrar */
}
.tour-faq details[open] summary::after { transform: rotate(45deg); } /* + -> x */
.tour-faq details p {
  margin: 0; padding: 0.2rem 0 0.9rem; color: #444; line-height: 1.6;
}

/* Barra lateral / tarjeta de reserva */
/* top = alto del navbar fijo (~82px) + un pequeño margen, para que la
   tarjeta sticky se quede DEBAJO del navbar y no la tape. */
.tour-aside { position: sticky; top: 96px; }
.tour-card-book {
  background: var(--tt-bg-soft); border: 1px solid var(--tt-border);
  border-radius: 14px; padding: 1.5rem;
}
.tour-card-price { color: var(--tt-green); font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.tour-card-price span { font-size: 0.9rem; color: #666; font-weight: 500; }
.tour-card-price small { display: block; font-size: 0.85rem; color: #777; font-weight: 400; }
.btn-book-lg { display: block; text-align: center; width: 100%; margin-bottom: 1.3rem; }
.tour-card-book h3 { font-size: 1rem; color: var(--tt-green); margin: 1.2rem 0 0.6rem; }
.tour-card-book ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.tour-card-book ul li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.92rem; color: #444; line-height: 1.45; }
.tour-includes li i { color: var(--tt-green-light); margin-top: 0.15rem; }
.tour-bring li i { color: #b98a3e; margin-top: 0.15rem; }

/* Otros tours */
.tour-related { margin-top: 3rem; }
.tour-related h2 { color: var(--tt-green); font-size: 1.4rem; margin-bottom: 1.2rem; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.related-card {
  position: relative; border-radius: 12px; overflow: hidden; text-decoration: none;
  aspect-ratio: 4 / 3; box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.related-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.related-card:hover img { transform: scale(1.07); }
.related-card span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff; padding: 1.4rem 0.8rem 0.7rem; font-weight: 600; font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 860px) {
  .tour-body { grid-template-columns: 1fr; }
  .tour-aside { position: static; }
  .tour-gallery .tour-carousel, .tour-gallery .carousel-slide img { max-height: 320px; height: 320px; }
}
