/*
 * Tour page visual polish, matching the homepage design.
 * Content, section order and layout are untouched: this only restyles surfaces
 * (cards, radius, borders, colours, type). Shared rules apply on every screen;
 * desktop-only layout tweaks live in the (min-width: 1024px) block at the end.
 */

/* ---------- Shared: all screen sizes ---------- */

/* Page canvas: soft mint so the white section cards stand out */
.tour-detail-page { background: #f3f8f6; }
.tour-detail-page .tour-intro,
.tour-detail-page .tour-body { background: transparent !important; }

/* Title */
.tour-heading h1 { font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: -0.02em; color: #17324d; }

/* Section navigation as a pill */
.tour-detail-page #tour-article > .tour-tabs { padding: 5px !important; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid #dcebe5 !important; border-radius: 999px !important; box-shadow: 0 10px 28px -12px rgba(23, 50, 77, .22); }
.tour-tabs nav { gap: 2px; }
.tour-tabs .tab-link { border-radius: 999px; color: #4a5b6e; }
.tour-tabs .tab-link:hover { background: #e4f3ee; color: #17786c; }
.tour-tabs .tab-link[aria-current="location"] { background: #17786c; color: #fff; }

/* Every content section is a white card */
#tour-article > div:not(.tour-tabs),
#tour-article > section { background: #fff !important; border: 1px solid #e1ebe7 !important; border-radius: 24px !important; box-shadow: 0 1px 2px rgba(23, 50, 77, .05) !important; }

/* Headings and section labels */
#tour-article h2 { font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: -0.015em; color: #17324d; }
#tour-article .text-maxhanoi.uppercase { color: #17786c; letter-spacing: .18em; }
#trip-information > h3,
#tour-article .tour-highlights > h3,
#booking-card > div > h3 { font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: #17324d; }
#trip-information > h3 > span:first-child,
#booking-card > div > h3 > span:first-child,
#tour-article .bg-orange-50.text-maxhanoi { background: #e4f3ee !important; color: #17786c !important; border-radius: 12px; }

/* Trip information icons */
#trip-information .trip-info-icon { background: #e4f3ee; color: #17786c; border-radius: 12px; }

/* Highlights */
#tour-article .tour-highlight { border-color: #e1ebe7; background: #f6faf8; border-radius: 16px; }
#tour-article .tour-highlight-icon { background: #17786c; color: #fff; }

/* Itinerary timeline in brand colours */
#tour-article .tour-timeline-step::before { left: 18px; width: 3px; background: linear-gradient(#28b5a4, #bee2d6); }
#tour-article .tour-timeline-icon { background: #17324d; box-shadow: 0 0 0 4px #e4f3ee; }
#tour-article .tour-timeline-end { background: #e48e45; }
#tour-article .tour-timeline-step { padding-bottom: 22px; }
#tour-article .tour-timeline-step > .itinerary-description { padding: 14px 16px; border-radius: 16px; background: #f6faf8; }

/* FAQ accordion */
#faq-accordion-list > * { border-radius: 18px !important; border-color: #e1ebe7 !important; }
#faq-accordion-list .bg-orange-100 { background: #e4f3ee !important; color: #17786c !important; }

/* Booking card */
#booking-widget { background: #fff !important; border: 1px solid #dcebe5 !important; border-radius: 24px !important; }
#booking-widget .text-xl { font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif; font-size: 24px; letter-spacing: -0.01em; color: #17324d; }
#booking-widget > .text-xl strong { font-weight: 800; }
#booking-widget label.rounded-full { gap: 10px; padding: 11px 16px; background: #f3f8f6; box-shadow: inset 0 0 0 1px #e1ebe7; font-size: 14px; font-weight: 600; color: #17324d; }
#booking-widget label.rounded-full:focus-within { box-shadow: inset 0 0 0 2px #28b5a4; }
#booking-widget label.rounded-full > i { width: 16px; text-align: center; color: #17786c; font-size: 14px; }
#booking-widget label.rounded-full select,
#booking-widget label.rounded-full input,
#booking-widget label.rounded-full .tour-date-trigger { font-family: inherit; font-size: 14px; font-weight: 600; color: #17324d; min-height: 0; }
#booking-widget label.rounded-full > span.text-xs { min-width: 84px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a97a6; }
#booking-widget .space-y-3 > p.text-xs { padding: 0 6px; font-size: 12px; line-height: 1.55; color: #6b7a8c; }
#booking-widget #participant-quote { border-radius: 20px; background: #e4f3ee; border-color: #bee2d6; }
#booking-widget #participant-quote h3 { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #17786c; }
#booking-widget #participant-quote #widget-quote-rate { font-size: 13px; color: #4a5b6e; }
#booking-widget #participant-quote #widget-quote-total { margin-top: 4px; font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; color: #17324d; }
#booking-widget .w-4.h-4.rounded { border-radius: 999px; border-color: transparent; background: #e4f3ee; color: #17786c; }
#booking-widget button[onclick^="openBookingFromWidget"] { border-radius: 999px; background: linear-gradient(135deg, #e48e45, #d6721b); box-shadow: 0 12px 24px -12px rgba(214, 114, 27, .7); }
#booking-widget button[onclick^="openBookingFromWidget"]:hover { filter: brightness(1.05); }

/* Other featured tours */
#booking-card > div { border-radius: 24px !important; border-color: #e1ebe7 !important; box-shadow: 0 1px 2px rgba(23, 50, 77, .05) !important; }
#booking-card > div > .space-y-4 > * { border-radius: 20px; background: #fff; }
#booking-card > div > .space-y-4 .h-36 { height: auto; aspect-ratio: 38 / 25; background: #f4efe6; }

/* Tour video: heading, player, short highlights. Vertical clips (Reels) and horizontal films
   are detected from the file in tour-video.js (.is-portrait / .is-landscape). */
.tour-overview-video { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "player" "body"; gap: 18px; }
.tour-video-head { grid-area: head; text-align: center; }
.tour-video-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fbeadf; color: #c2601f; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
#tour-article .tour-video-head h2 { margin: 12px 0 6px; font-size: 22px; line-height: 1.25; }
.tour-video-head p { margin: 0; font-size: 14px; line-height: 1.6; color: #6b7a8c; }
.tour-video-player { grid-area: player; position: relative; justify-self: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #101b25; box-shadow: 0 18px 40px -22px rgba(23, 50, 77, .55); }
.tour-video-player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #101b25; }
.tour-video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; color: #fff; background: linear-gradient(180deg, rgba(16, 27, 37, 0) 45%, rgba(16, 27, 37, .55)); cursor: pointer; }
.tour-video-play[hidden] { display: none; }
.tour-video-play-icon { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; padding-left: 4px; border-radius: 50%; background: linear-gradient(135deg, #e48e45, #d6721b); box-shadow: 0 0 0 8px rgba(255, 255, 255, .25), 0 12px 30px rgba(0, 0, 0, .35); font-size: 22px; transition: transform .2s; }
.tour-video-play:hover .tour-video-play-icon { transform: scale(1.06); }
.tour-video-play-label { padding: 6px 14px; border-radius: 999px; background: rgba(16, 27, 37, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.tour-video-play:focus-visible { outline: 3px solid #28b5a4; outline-offset: -4px; }
.tour-video-badge { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(16, 27, 37, .65); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.tour-video-badge[hidden], .tour-overview-video.is-playing .tour-video-badge { display: none; }
.tour-video-body { grid-area: body; }
.tour-video-points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tour-video-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.45; color: #17324d; }
.tour-video-points i { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: -1px; border-radius: 50%; background: #e4f3ee; color: #17786c; font-size: 11px; }
.tour-video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.tour-video-cta { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; background: #17324d; color: #fff; font-size: 14px; font-weight: 700; transition: background-color .2s; }
.tour-video-cta:hover { background: #17786c; }
.tour-video-link { font-size: 14px; font-weight: 700; color: #17786c; }
.tour-video-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Phones: small adjustments only ---------- */
@media (max-width: 767px) {
    .tour-heading h1 { line-height: 1.25; }
    #tour-article h2 { font-size: 22px; }
    #tour-article > div:not(.tour-tabs),
    #tour-article > section { padding: 20px !important; }
    .tour-detail-page #tour-article > .tour-tabs { padding: 4px !important; }
    .tour-tabs .tab-link { padding: 8px 14px; }

    /* Tour video: a vertical clip fills the card like a Reel, capped so it fits on screen */
    .tour-overview-video { gap: 16px; }
    #tour-article .tour-video-head h2 { font-size: 20px; }
    .tour-video-head p { font-size: 13px; }
    .tour-overview-video.is-portrait .tour-video-player { width: min(100%, calc(74svh * 9 / 16)); border-radius: 18px; }
    .tour-video-cta { display: none; }
    .tour-video-actions { justify-content: center; margin-top: 14px; }
    .tour-video-points { gap: 8px; padding: 14px 16px; border-radius: 16px; background: #f6faf8; }
    .tour-video-points li { font-size: 13.5px; }

    /* Trip information: aligned rows with a clear label/value hierarchy */
    #trip-information .trip-info-grid { gap: 0; }
    #trip-information .trip-info-item { align-items: center !important; gap: 14px; padding: 12px 0 !important; border: 0 !important; border-bottom: 1px dashed #dfe9e5 !important; border-radius: 0 !important; background: transparent !important; }
    #trip-information .trip-info-item:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }
    #trip-information .trip-info-icon { width: 38px; height: 38px; font-size: 14px; }
    #trip-information .trip-info-label { margin-bottom: 3px !important; font-size: 10.5px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; color: #8a97a6 !important; }
    #trip-information .trip-info-value { font-size: 14px !important; font-weight: 600; line-height: 1.45 !important; color: #17324d !important; }
    #trip-information .trip-info-item:not(:has(.trip-info-value)) .trip-info-label { margin-bottom: 0 !important; font-size: 14px !important; letter-spacing: 0; text-transform: none; color: #17324d !important; }
}

/* ---------- Tablets and up: a vertical clip sits beside its text ---------- */
@media (min-width: 768px) {
    .tour-overview-video.is-portrait { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-areas: "player ." "player head" "player body" "player ."; grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr); column-gap: 36px; row-gap: 20px; align-items: start; }
    .tour-overview-video.is-portrait .tour-video-head { text-align: left; }
    .tour-overview-video.is-portrait .tour-video-player { justify-self: stretch; }
    #tour-article .tour-overview-video.is-portrait .tour-video-head h2 { font-size: 26px; }
    .tour-overview-video.is-portrait .tour-video-body { align-self: start; }
    .tour-overview-video.is-portrait .tour-video-points { padding: 18px 20px; border-radius: 18px; background: #f6faf8; box-shadow: inset 0 0 0 1px #e1ebe7; }
    .tour-overview-video.is-landscape .tour-video-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Desktop layout (>= 1024px) ---------- */
@media (min-width: 1024px) {
    .tour-heading h1 { font-size: 34px; line-height: 1.2; }

    /* Gallery: one rounded frame with tile gaps */
    .desktop-tour-top .tour-gallery { border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(23, 50, 77, .07), 0 10px 30px -18px rgba(23, 50, 77, .35); }
    .desktop-tour-gallery { gap: 8px; padding: 8px; background: #fff; }
    .desktop-tour-gallery > button { border-radius: 16px; }
    .desktop-tour-gallery > button img { transition: transform .5s ease; }
    .desktop-tour-gallery > button:hover img { transform: scale(1.04); }

    /* Short intro under the gallery */
    .desktop-tour-content .tour-short-intro { margin: 18px 0 22px; padding: 18px 22px; font-size: 15px; line-height: 1.75; color: #33465f; background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1px #e1ebe7; }

    /* Sticky pill navigation floats a little below the header */
    .tour-detail-page #tour-article > .tour-tabs { top: calc(var(--tour-header-height) + 10px); padding: 6px !important; }
    .tour-tabs .tab-link { padding: 9px 16px; font-size: 13px; }

    /* Section cards: roomier spacing on desktop */
    #tour-article > div:not(.tour-tabs),
    #tour-article > section { margin-top: 20px !important; padding: 32px !important; border-radius: 26px !important; }
    #tour-article h2 { font-size: 26px; }
    #trip-information > h3,
    #tour-article .tour-highlights > h3,
    #booking-card > div > h3 { font-size: 20px; }

    /* Trip information as tiles */
    #trip-information .trip-info-item { border-color: #e1ebe7; background: #f6faf8; border-radius: 18px; transition: border-color .2s, background-color .2s; }
    #trip-information .trip-info-item:hover { border-color: #bee2d6; background: #fff; }
    #tour-article .tour-timeline-step > .itinerary-description { padding: 14px 18px; }

    /* Booking card floats beside the gallery */
    .desktop-tour-top #booking-widget { padding: 24px !important; border-radius: 28px !important; box-shadow: 0 28px 56px -28px rgba(23, 50, 77, .35) !important; }

    /* Other featured tours: two-column grid */
    #booking-card > div { padding: 28px !important; border-radius: 26px !important; }
    #booking-card > div > .space-y-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    #booking-card > div > .space-y-4 > * { margin-top: 0 !important; }
}

/* Enquiry form: secondary Instagram option as a clear button */
.enquiry-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 4px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #e1ebe7; }
.enquiry-alt p { flex: 1 1 220px; margin: 0; font-size: 12.5px; line-height: 1.55; color: #6b7a8c; }
.enquiry-alt p strong { color: #17324d; }
.enquiry-alt-btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 999px; background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 18px -10px rgba(221, 42, 123, .8); transition: filter .2s, transform .2s; }
.enquiry-alt-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.enquiry-alt-btn i { font-size: 16px; }
@media (max-width: 767px) { .enquiry-alt-btn { width: 100%; justify-content: center; } }

/* WhatsApp number under the send button, for guests whose WhatsApp button does not open */
.enquiry-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: #6b7a8c; }
.enquiry-direct-number { font-size: 15px; font-weight: 800; letter-spacing: .01em; color: #17324d; user-select: all; -webkit-user-select: all; }
.enquiry-direct-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #e4f3ee; color: #17786c; font-size: 12px; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.enquiry-direct-copy:hover { background: #17786c; color: #fff; }
@media (max-width: 767px) { .enquiry-direct { justify-content: center; text-align: center; } .enquiry-direct > span:first-child { flex-basis: 100%; } }
