/* ------------------------------------------------------------------
   Tour landing pages (/tours/{slug}/) and the /tours/ hub.
   Deliberately scoped to .tour-* so nothing here can reach the
   homepage or the booking flow.
   ------------------------------------------------------------------ */

.tour-breadcrumb {
    max-width: 1200px;
    margin: 1.25rem auto 0;
    padding: 0 1.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.tour-breadcrumb a { color: #6b7280; text-decoration: none; }
.tour-breadcrumb a:hover { color: #111; text-decoration: underline; }
.tour-breadcrumb [aria-current="page"] { color: #111; font-weight: 600; }

/* ---------------- Hero ---------------- */

.tour-hero {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.tour-hero-media { position: relative; }

.tour-hero-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.tour-hero-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #d92d20;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
}

.tour-hero-body h1 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin: 0.4rem 0 0.9rem;
}

.tour-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 1.5rem;
}

/* Facts strip — each item is a value with its label underneath */
.tour-facts {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.tour-facts li {
    background: #f7f7f8;
    border: 1px solid #ececee;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.tour-facts i { color: #d92d20; font-size: 0.95rem; margin-bottom: 0.25rem; }
.tour-facts strong { font-size: 1rem; line-height: 1.2; }
.tour-facts span { font-size: 0.78rem; color: #6b7280; }

.tour-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.tour-microcopy {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

/* ---------------- Sections ---------------- */

.tour-page-section {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 1.25rem;
}

/* ---------------- Route ---------------- */

.tour-stops {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.tour-stop {
    border: 1px solid #ececee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.tour-stop img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.tour-stop-body {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

/* The number matters here: stops happen in this order on the day. */
.tour-stop-index {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: #d92d20;
    background: #fdecea;
    border-radius: 999px;
    min-width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tour-stop-body h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
}

/* ---------------- Gallery ---------------- */

.tour-gallery {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.tour-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* ---------------- Related / hub grid ---------------- */

.tour-related-grid,
.tours-hub-grid {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tours-hub-grid .trending-card,
.tour-related-grid .trending-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ececee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tours-hub-grid .trending-card:hover,
.tour-related-grid .trending-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.tours-hub-grid .trending-card-img,
.tour-related-grid .trending-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.tours-hub-grid .trending-card-content,
.tour-related-grid .trending-card-content { padding: 1rem 1.1rem 1.2rem; }

.tours-hub-grid .trending-card-title,
.tour-related-grid .trending-card-title { margin: 0 0 0.4rem; font-size: 1.05rem; }

.tours-hub-grid .trending-card-desc,
.tour-related-grid .trending-card-desc {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.tours-hub-grid .trending-card-details,
.tour-related-grid .trending-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
    .tour-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .tour-page-section { margin-top: 3rem; }
}

@media (max-width: 520px) {
    .tour-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tour-cta-row .cta-button { flex: 1 1 100%; text-align: center; }
    .tour-gallery img { height: 150px; }
}

/* ---------------- Quality floor ---------------- */

.tour-breadcrumb a:focus-visible,
.tour-cta-row a:focus-visible,
.tours-hub-grid .trending-card:focus-visible,
.tour-related-grid .trending-card:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .tours-hub-grid .trending-card,
    .tour-related-grid .trending-card { transition: none; }
    .tours-hub-grid .trending-card:hover,
    .tour-related-grid .trending-card:hover { transform: none; }
}
