/* ============================================================
   TOUR DETAIL PAGE (Cebu City to Maya Port Transfer)
   Built on top of the existing :root tokens in style_daytrip.css
   ============================================================ */

.tour-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 24px 120px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 992px) {
    .tour-page {
        grid-template-columns: 1fr;
        padding: 90px 20px 80px;
    }
}

/* --- Header --- */
.tour-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.tour-subtitle {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 28px;
}

/* --- Gallery --- */
.tour-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    height: 360px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 12px;
    padding: 0px;
}

.tour-gallery-main {
    grid-row: 1 / span 2;
}

.tour-gallery figure {
    margin: 0;
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--navy);
}

.tour-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.tour-gallery figure:hover img {
    transform: scale(1.05);
}

.tour-gallery figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(1, 37, 61, 0.65);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-radius: 30px;
}

/* --- Meta line (availability / departure / duration) --- */
.tour-meta-line {
    font-size: 0.88rem;
    color: var(--slate-700);
    margin: 12px 0 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.tour-meta-line b {
    color: var(--navy);
    font-weight: 700;
}

/* --- Section headings --- */
.tour-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.tour-section-divider {
    border: none;
    border-top: 1px solid var(--slate-200);
    margin: 26px 0;
}

.tour-inline-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .tour-inline-facts {
        grid-template-columns: 1fr;
    }
}

.tour-fact-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--light);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.tour-fact-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(248, 146, 52, 0.12);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.tour-fact-text h3 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 4px;
}

.tour-fact-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* --- Lists (inclusions / highlights) --- */
.tour-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
}

.tour-list.checklist {
    padding-left: 0;
    list-style: none;
}

.tour-list.checklist li {
    position: relative;
    padding-left: 28px;
}

.tour-list.checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 700;
}

/* --- Itinerary (interactive timeline / accordion) --- */
.tour-itinerary-intro {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    margin: -6px 0 20px;
}

.tour-itinerary-timeline {
    position: relative;
    padding-left: 34px;
}

/* dotted connector line running through all stops */
.tour-itinerary-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 9px;
    border-left: 2px dotted #b9c6e6;
}

.itin-step {
    position: relative;
    margin-bottom: 14px;
}

.itin-step:last-child {
    margin-bottom: 0;
}

/* timeline dot marker */
.itin-step::before {
    content: '';
    position: absolute;
    top: 22px;
    left: -34px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 2.5px solid #b9c6e6;
    z-index: 1;
    transition: var(--transition);
}

.itin-step.is-open::before {
    background: #2f5fe0;
    border-color: #2f5fe0;
    box-shadow: 0 0 0 4px rgba(47, 95, 224, 0.18);
}

.itin-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.itin-step.is-open .itin-card {
    border-color: #2f5fe0;
    box-shadow: 0 4px 16px rgba(47, 95, 224, 0.14);
}

.itin-card:hover {
    box-shadow: var(--shadow-md);
}

.itin-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: none;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.itin-time {
    flex-shrink: 0;
    background: #2f5fe0;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.itin-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
}

.itin-chevron {
    flex-shrink: 0;
    color: var(--slate-700);
    font-size: 0.95rem;
    transition: transform 0.25s ease;
}

.itin-step.is-open .itin-chevron {
    color: #2f5fe0;
    transform: rotate(180deg);
}

.itin-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.itin-step.is-open .itin-panel {
    padding: 0 20px 18px;
}

.itin-panel ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--slate-700);
    border-top: 1px dashed var(--slate-200);
    padding-top: 12px;
}

.itin-panel ul li strong {
    color: var(--navy);
}

@media (max-width: 560px) {
    .tour-itinerary-timeline {
        padding-left: 26px;
    }

    .itin-step::before {
        left: -26px;
    }

    .itin-toggle {
        gap: 10px;
        padding: 14px 16px;
    }

    .itin-time {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .itin-title {
        font-size: 0.88rem;
    }
}

/* --- Reservation panel --- */
.tour-reserve {
    top: 90px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
}

.tour-reserve-title {
    color: var(--orange);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 22px;
    letter-spacing: -0.01em;
}

.tour-field {
    margin-bottom: 18px;
}

.tour-field label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.tour-field input,
.tour-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 1px solid var(--slate-200);
    background: var(--light);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}

.tour-field input::placeholder,
.tour-field textarea::placeholder {
    color: var(--text-muted);
}

.tour-field input:focus,
.tour-field textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(248, 146, 52, 0.18);
}

.tour-field textarea {
    min-height: 120px;
    resize: vertical;
}

.tour-fee-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin: 0 0 20px;
}

.tour-fee-box span:first-child {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--slate-700);
}

.tour-fee-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
}

.tour-fee-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: -12px 0 20px;
}

.tour-payment-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy);
    margin: 0 0 12px;
}

/* --- GCash / BPI method toggle --- */
.payment-method-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method-btn {
    flex: 1;
    padding: 14px 12px;
    background: var(--white);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-sm);
    color: var(--slate-700);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.payment-method-btn:hover {
    border-color: #b9c6e6;
}

.payment-method-btn[data-method="gcash"].active {
    border-color: #2f6fed;
    color: #2f6fed;
    background: rgba(47, 111, 237, 0.06);
}

.payment-method-btn[data-method="bpi"].active {
    border-color: #d81f26;
    color: #d81f26;
    background: rgba(216, 31, 38, 0.06);
}

/* --- QR display box --- */
.payment-qr-box {
    border: 2px dashed var(--slate-200);
    border-radius: var(--radius-md);
    padding: 28px 20px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.payment-qr-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 16px;
}

.payment-qr-box img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: var(--transition);
}

.payment-qr-box img:hover,
.payment-qr-box img:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.payment-qr-box img:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.tour-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1c2b3a, #0c1720);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(12, 23, 32, 0.35);
    transition: var(--transition);
}

.tour-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(12, 23, 32, 0.45);
}

.tour-submit-btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

@media (max-width: 992px) {
    .tour-reserve {
        position: static;
    }
}

/* --- Payment QR zoom modal --- */
.payment-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(1, 20, 33, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: lightbox-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-modal-overlay.active {
    display: flex;
}

.payment-modal {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    text-align: center;
    animation: lightbox-img-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-modal img {
    width: 300px;
    height: 300px;
    max-width: 70vw;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    margin: 0 auto 14px;
}

.payment-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.payment-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--slate-100);
    border: none;
    color: var(--navy);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.payment-modal-close:hover {
    background: var(--orange);
    color: var(--white);
}

/* ---------------------------------------------------
   HEADER – Only "Back" link (tour page)
   --------------------------------------------------- */
.header-back-only {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* PLAIN WHITE BACKGROUND */
    background: #FFFFFF;
    /* optionally add a subtle shadow to separate from content */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);

    padding: 14px 32px;
    /* ← adjust top/bottom padding to change header height */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);

    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

/* Scrolled state – keep it white, maybe slightly thicker shadow */
.header-back-only.scrolled {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    padding: 8px 32px;
    /* ← smaller padding on scroll */
}

/* ---- The "Back" link itself ---- */
.header-back-only .back-link-header {
    display: inline-block;
    color: #666666;
    /* ← GREY initial colour */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;

    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    /* smooth transition to orange */
}

/* Underline – starts grey, turns orange on hover */
.header-back-only .back-link-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #666666;
    /* grey underline initially */
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.3s ease;
    /* also transition background colour */
}

/* Hover effects: text becomes orange, underline becomes orange and expands */
.header-back-only .back-link-header:hover {
    color: var(--orange);
    /* ← ORANGE on hover (or #F65F2A) */
}

.header-back-only .back-link-header:hover::after {
    width: 100%;
    background: var(--orange);
    /* underline turns orange too */
}