/* ============================================================
   TOUR DETAIL PAGE / DETALLE DEL TOUR
   Page-specific styles only. Shared header/footer stay in style.css.
============================================================ */
.tour-detail-page { background: #f7f9fc; color: #253449; }
.tour-page { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 76px; }

/* Wide photographic gallery banner / Galería panorámica */
.tour-gallery-hero { height: clamp(300px, 42vw, 510px); position: relative; overflow: hidden; border-radius: 8px; background: #dbe5ec; isolation: isolate; }
.tour-hero-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; transition: opacity .2s ease; }
.tour-gallery-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4,20,35,.04), transparent 45%, rgba(4,20,35,.22)); }
.tour-gallery-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: rgba(8,28,48,.42); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.tour-gallery-arrow:hover { background: #0b2545; transform: translateY(-50%) scale(1.05); }
.tour-gallery-arrow.prev { left: 20px; } .tour-gallery-arrow.next { right: 20px; }
.tour-gallery-label { position: absolute; right: 22px; bottom: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border: 1px solid rgba(255,255,255,.8); border-radius: 6px; background: rgba(255,255,255,.96); color: #0b2545; font-weight: 750; cursor: pointer; box-shadow: 0 5px 18px rgba(0,0,0,.14); }
.gallery-count { margin-left: 3px; color: #64748b; font-size: .78rem; font-weight: 600; }

/* Tour name and duration / Nombre y duración */
.tour-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 30px 0 25px; border-bottom: 1px solid #e2e8f0; margin-bottom: 30px; }
.tour-title-area { min-width: 0; }
.tour-category-label { display: inline-block; margin-bottom: 7px; color: #00897b; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.tour-heading h1 { color: #0b2545; font-size: clamp(1.75rem, 3.2vw, 2.55rem); font-weight: 800; line-height: 1.16; letter-spacing: -.035em; margin: 0; }
.tour-location-line { margin-top: 11px; color: #64748b; font-size: .94rem; }
.tour-duration-box { flex: 0 0 auto; min-width: 160px; padding: 17px 22px; display: grid; grid-template-columns: 35px auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; border: 1px solid #e3eaf0; border-radius: 8px; background: #fff; }
.duration-symbol { grid-row: 1 / 3; color: #00897b; font-size: 30px; line-height: 1; }
.duration-caption { color: #718096; font-size: .75rem; }
.tour-duration-box strong { color: #0b2545; font-size: 1.02rem; }

/* Main column and booking sidebar / Contenido y reserva */
.tour-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.tour-content-card { min-width: 0; padding: 0 0 30px; background: transparent; }
.tour-tabs { display: flex; flex-wrap: wrap; align-items: stretch; gap: 26px; margin: 0 0 28px; border-bottom: 1px solid #dce4eb; }
.tour-tab { position: relative; padding: 0 0 15px; border: 0; background: transparent; color: #64748b; font: inherit; font-size: .97rem; font-weight: 700; cursor: pointer; transition: color .2s; }
.tour-tab:hover, .tour-tab.active { color: #0b2545; }
.tour-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; border-radius: 3px 3px 0 0; background: #00897b; }
.tour-tab-content { display: none; animation: tourFade .22s ease; }
.tour-tab-content.active { display: block; }
.tour-tab-content h2, .tour-practical-details h2 { margin: 0 0 16px; color: #0b2545; font-size: 1.35rem; line-height: 1.3; }
.tour-rich-text { color: #526174; font-size: .99rem; line-height: 1.9; overflow-wrap: anywhere; }
.tour-rich-text p { margin-bottom: 14px; }
.tour-rich-text ul, .tour-rich-text ol { padding-left: 23px; margin: 10px 0 18px; }
.tour-rich-text li { margin: 0 0 8px; }
.cost-intro, .cost-note { color: #64748b; line-height: 1.7; }
.cost-price-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0; padding: 20px; border: 1px solid #e1e9ef; border-radius: 8px; background: #fff; }
.cost-price-row span { color: #475569; font-weight: 650; }
.cost-price-row strong { color: #00897b; font-size: 1.65rem; white-space: nowrap; }
.cost-price-row small { color: #64748b; font-size: .78rem; }
.tour-practical-details { margin-top: 38px; padding-top: 25px; border-top: 1px solid #e2e8f0; }
.practical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.practical-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid #e3eaf0; border-radius: 7px; background: #fff; }
.practical-item > span { color: #00897b; font-size: 21px; }
.practical-item div { min-width: 0; }
.practical-item small { display: block; margin-bottom: 4px; color: #718096; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.practical-item strong { display: block; color: #26384d; font-size: .9rem; overflow-wrap: anywhere; }

/* Booking panel / Panel de reserva */
.tour-sidebar { min-width: 0; }
.tour-booking-card { position: sticky; top: 24px; padding: 25px 24px 22px; border: 1px solid #e1e8ee; border-radius: 9px; background: #fff; box-shadow: 0 7px 26px rgba(11,37,69,.07); }
.booking-eyebrow { color: #64748b; font-size: .87rem; }
.booking-price { margin-top: 4px; color: #0b2545; font-size: 2.45rem; font-weight: 850; line-height: 1.15; letter-spacing: -.04em; }
.booking-price span { margin-left: 6px; color: #64748b; font-size: .82rem; font-weight: 650; letter-spacing: 0; }
.booking-price-subtitle { margin-top: 2px; color: #64748b; font-size: .85rem; }
.tour-book-button { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; margin-top: 22px; padding: 15px 14px; border-radius: 5px; background: #00897b; color: #fff; text-align: center; text-decoration: none; font-size: .85rem; font-weight: 800; letter-spacing: .035em; transition: background .2s, transform .2s; }
.tour-book-button:hover { background: #00695c; color: #fff; transform: translateY(-1px); }
.tour-book-button span { font-size: 1.2rem; }
.booking-help { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; padding-top: 19px; border-top: 1px solid #e8edf2; }
.help-icon { flex: 0 0 29px; height: 29px; display: grid; place-items: center; border: 1px solid #b9d9d5; border-radius: 50%; color: #00897b; font-weight: 800; }
.booking-help strong { display: block; color: #0b2545; font-size: .9rem; }
.booking-help p { margin: 3px 0 5px; color: #64748b; font-size: .82rem; }
.booking-help a { color: #00897b; font-size: .83rem; font-weight: 750; text-decoration: none; }
.booking-help a:hover { text-decoration: underline; }
.tour-destination-card { display: flex; gap: 13px; align-items: flex-start; margin-top: 17px; padding: 19px; border: 1px solid #e1e8ee; border-radius: 8px; background: #fff; }
.destination-icon { color: #00897b; font-size: 25px; }
.tour-destination-card strong { color: #0b2545; font-size: .92rem; }
.tour-destination-card p { margin-top: 4px; color: #64748b; font-size: .86rem; line-height: 1.5; }

/* Lightbox / Visor de imágenes */
.tour-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 35px; background: rgba(2,8,20,.95); }
.tour-lightbox.active { display: flex; }
.lightbox-content { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 1300px; max-height: 90vh; }
.lightbox-image { display: block; max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 5px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: fixed; z-index: 100000; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 29px; cursor: pointer; }
.lightbox-close { top: 18px; right: 20px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
@keyframes tourFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive / Adaptación móvil */
@media (max-width: 980px) {
    .tour-content-layout { grid-template-columns: minmax(0, 1fr) 305px; gap: 24px; }
    .tour-gallery-hero { height: 390px; }
    .tour-booking-card { padding: 22px 19px; }
}
@media (max-width: 760px) {
    .tour-page { width: min(100% - 28px, 620px); padding-top: 18px; }
    .tour-gallery-hero { height: 330px; border-radius: 6px; }
    .tour-gallery-arrow { width: 39px; height: 39px; }
    .tour-gallery-arrow.prev { left: 11px; } .tour-gallery-arrow.next { right: 11px; }
    .tour-gallery-label { right: 12px; bottom: 12px; padding: 9px 12px; }
    .tour-heading { align-items: flex-start; padding: 23px 0 21px; margin-bottom: 24px; }
    .tour-duration-box { min-width: 125px; padding: 13px 12px; grid-template-columns: 26px auto; column-gap: 7px; }
    .duration-symbol { font-size: 24px; }
    .tour-content-layout { grid-template-columns: 1fr; gap: 25px; }
    .tour-booking-card { position: static; }
    .tour-sidebar { order: -1; }
    .tour-content-card { padding-bottom: 0; }
    .tour-tabs { gap: 20px; overflow-x: auto; flex-wrap: nowrap; }
    .tour-tab { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 520px) {
    .tour-page { width: calc(100% - 24px); padding-bottom: 45px; }
    .tour-gallery-hero { height: 260px; }
    .tour-heading { display: block; }
    .tour-heading h1 { font-size: 1.7rem; }
    .tour-duration-box { display: inline-grid; margin-top: 17px; }
    .tour-tabs { gap: 17px; margin-bottom: 22px; }
    .tour-tab { padding-bottom: 12px; font-size: .9rem; }
    .tour-tab-content h2, .tour-practical-details h2 { font-size: 1.2rem; }
    .practical-grid { grid-template-columns: 1fr; }
    .cost-price-row { align-items: flex-start; flex-direction: column; gap: 8px; }
    .booking-price { font-size: 2.2rem; }
    .tour-lightbox { padding: 15px; }
    .lightbox-prev { left: 7px; } .lightbox-next { right: 7px; }
    .lightbox-close { top: 9px; right: 9px; }
}



/* ============================================================
   TOURS RELACIONADOS / RELATED TOURS
============================================================ */

.tour-related-section {
    margin-top: 58px;
    padding-top: 42px;
    border-top: 1px solid #e2e8f0;
}

.tour-related-heading {
    margin-bottom: 26px;
}

.tour-related-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--secondary-color, #00897b);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.tour-related-heading h2 {
    margin: 0 0 10px;
    color: var(--primary-color, #0b2545);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.tour-related-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.tour-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tour-related-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tour-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.11);
}

.tour-related-image {
    display: block;
    height: 210px;
    overflow: hidden;
    background: #e2e8f0;
}

.tour-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tour-related-card:hover .tour-related-image img {
    transform: scale(1.04);
}

.tour-related-body {
    display: flex;
    flex-direction: column;
    min-height: 235px;
    padding: 20px;
}

.tour-related-category {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 20px;
    background: #edf7f5;
    color: #08786e;
    font-size: 0.72rem;
    font-weight: 700;
}

.tour-related-body h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    line-height: 1.4;
}

.tour-related-body h3 a {
    color: var(--primary-color, #0b2545);
    text-decoration: none;
}

.tour-related-body h3 a:hover {
    color: var(--secondary-color, #00897b);
}

.tour-related-body > p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
}

.tour-related-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.tour-related-price small {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.76rem;
}

.tour-related-price strong {
    display: block;
    color: var(--secondary-color, #00897b);
    font-size: 1.25rem;
    white-space: nowrap;
}

.tour-related-price strong span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
}

.tour-related-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary-color, #0b2545);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.tour-related-link:hover {
    color: var(--secondary-color, #00897b);
}

@media (max-width: 900px) {
    .tour-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .tour-related-image {
        height: 190px;
    }
}

@media (max-width: 600px) {
    .tour-related-section {
        margin-top: 38px;
        padding-top: 30px;
    }

    .tour-related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tour-related-image {
        height: 220px;
    }

    .tour-related-body {
        min-height: 0;
        padding: 18px;
    }
}


/* Botón de reserva con PayPal */
.paypal-book-button {
    background-color: #ffc439;
    color: #003087;
    border: 1px solid #ffc439;
}

.paypal-book-button:hover {
    background-color: #f2b829;
    border-color: #f2b829;
    color: #003087;
}