/*
  Fixed-departure group tour pages
  Loaded after main.css. Each page sets --gt-accent on <body> to match the trip:
  lagoon teal for Thailand, maple red for Japan autumn.
*/

.gt-page {
    --gt-accent: #0f7c80;
    --gt-accent-soft: #e3f3f2;
    --gt-ink: #0d1b3d;
    --gt-line: #dfe3ea;
    --gt-paper: #ffffff;
    background: var(--bg-light);
}

.gt-page :focus-visible {
    outline: 3px solid var(--gt-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Hero ---------- */
.gt-hero {
    position: relative;
    padding: 170px 0 70px;
    color: #fff;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
}

.gt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 20, 66, 0.92) 0%, rgba(0, 28, 84, 0.78) 45%, rgba(0, 35, 102, 0.25) 100%);
}

.gt-hero .container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    gap: 48px;
    align-items: end;
}

.gt-crumbs {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 22px;
}

.gt-crumbs a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.gt-crumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.gt-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gt-ink);
    background: var(--secondary);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 18px;
}

.gt-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.gt-hero h1 span {
    display: block;
    color: var(--secondary);
}

.gt-hero-lede {
    font-size: 1.12rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
}

/* Departure card: the booking facts in one place */
.gt-ticket {
    background: var(--gt-paper);
    color: var(--gt-ink);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 10, 40, 0.35);
    overflow: hidden;
}

.gt-ticket-top {
    padding: 22px 24px 18px;
    border-bottom: 2px dashed var(--gt-line);
    position: relative;
}

.gt-ticket-top::before,
.gt-ticket-top::after {
    content: "";
    position: absolute;
    bottom: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 28, 84, 0.9);
}

.gt-ticket-top::before { left: -10px; }
.gt-ticket-top::after { right: -10px; }

.gt-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7385;
    margin-bottom: 6px;
}

.gt-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gt-date {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    padding: 6px 12px;
    line-height: 1.2;
    text-align: center;
}

.gt-date small {
    display: block;
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7385;
}

.gt-ticket-note {
    font-size: 0.85rem;
    color: #4a5163;
    margin-top: 10px;
    line-height: 1.5;
}

.gt-ticket-bottom {
    padding: 18px 24px 24px;
}

.gt-price {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    line-height: 1;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.gt-price-sub {
    font-size: 0.85rem;
    color: #4a5163;
    margin: 6px 0 16px;
    line-height: 1.5;
}

.gt-deadline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff8d6;
    border-left: 4px solid var(--secondary);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--gt-ink);
    margin-bottom: 16px;
    line-height: 1.45;
}

.gt-deadline .sicon {
    margin-top: 2px;
    color: #9a7b00;
}

.gt-btn-row {
    display: grid;
    gap: 10px;
}

.gt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 35, 102, 0.18);
}

.gt-btn-wa {
    background: #25D366;
    color: #fff;
}

.gt-btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

/* ---------- Journey rail (signature) ---------- */
.gt-rail-wrap {
    background: var(--gt-paper);
    border-bottom: 1px solid var(--gt-line);
    padding: 28px 0 30px;
}

.gt-rail-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 24px;
    margin-bottom: 16px;
}

.gt-rail-head h2 {
    font-size: 1.15rem;
    color: var(--primary);
    margin: 0;
}

.gt-rail-head p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.gt-rail {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gt-rail li {
    flex: var(--n) 1 0;
    min-width: 0;
}

.gt-rail a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: var(--gt-ink);
    border-top: 6px solid var(--gt-accent);
    background: var(--gt-accent-soft);
    padding: 12px 12px 14px;
    transition: background 0.2s ease;
}

.gt-rail li:first-child a { border-radius: 8px 0 0 8px; }
.gt-rail li:last-child a { border-radius: 0 8px 8px 0; }

.gt-rail li:nth-child(even) a {
    border-top-color: var(--primary);
}

.gt-rail a:hover {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--gt-line);
}

.gt-rail strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-rail span {
    display: block;
    font-size: 0.8rem;
    color: #4a5163;
    margin-top: 3px;
}

.gt-rail-ends {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7385;
    margin-top: 10px;
    gap: 16px;
}

.gt-rail-ends span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Layout ---------- */
.gt-body {
    padding: 56px 0 80px;
}

.gt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
}

.gt-main > section + section {
    margin-top: 56px;
}

.gt-main h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1.25;
}

.gt-main p {
    color: var(--text-muted);
    line-height: 1.8;
}

.gt-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Highlights */
.gt-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.gt-highlights li {
    background: var(--gt-paper);
    border: 1px solid var(--gt-line);
    border-radius: 10px;
    padding: 16px 18px;
}

.gt-highlights strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.gt-highlights strong .sicon {
    color: var(--gt-accent);
}

.gt-highlights p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Itinerary ---------- */
.gt-itin-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.gt-toggle-all {
    background: none;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 7px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
}

.gt-toggle-all:hover {
    background: var(--primary);
    color: #fff;
}

.gt-legend {
    font-size: 0.82rem;
    color: #6b7385;
}

.gt-city {
    margin-top: 26px;
    scroll-margin-top: 110px;
}

.gt-city-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    background: var(--gt-accent-soft);
}

.gt-city-img + .gt-city-head {
    background: var(--primary);
    border-bottom: 0;
    border-radius: 0 0 12px 12px;
    padding: 12px 18px;
    margin-bottom: 12px;
}

.gt-city-img + .gt-city-head h3 {
    color: #fff;
}

.gt-city-img + .gt-city-head span {
    color: rgba(255, 255, 255, 0.78);
}

.gt-city-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--gt-accent);
}

.gt-city-head h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
}

.gt-city-head span {
    font-size: 0.85rem;
    color: #6b7385;
}

.gt-day {
    background: var(--gt-paper);
    border: 1px solid var(--gt-line);
    border-radius: 10px;
    margin-bottom: 10px;
}

.gt-day summary {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.gt-day summary::-webkit-details-marker { display: none; }

.gt-daynum {
    font-family: var(--font-heading);
    color: var(--gt-accent);
    font-size: 1.6rem;
    line-height: 1;
    text-align: center;
}

.gt-daynum small {
    display: block;
    font-family: var(--font-main);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7385;
    margin-bottom: 3px;
}

.gt-daynum.is-eve {
    font-size: 0.95rem;
}

.gt-daytitle {
    font-weight: 600;
    color: var(--gt-ink);
    font-size: 1.02rem;
    line-height: 1.35;
}

.gt-daytitle small {
    display: block;
    font-weight: 400;
    color: #6b7385;
    font-size: 0.82rem;
    margin-top: 2px;
}

.gt-meals {
    display: flex;
    gap: 4px;
    align-items: center;
}

.gt-meal {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--gt-accent-soft);
    color: var(--gt-accent);
}

.gt-chev {
    width: 18px;
    height: 18px;
    margin-left: 6px;
    color: #8a91a3;
    transition: transform 0.2s ease;
}

.gt-day[open] .gt-chev {
    transform: rotate(180deg);
}

.gt-day-body {
    padding: 0 18px 18px 94px;
}

.gt-day-body p {
    font-size: 0.97rem;
    line-height: 1.75;
}

.gt-day-body ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.gt-day-body li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
}

.gt-day-body li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gt-accent);
}

.gt-day-body li strong {
    color: var(--gt-ink);
}

.gt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.gt-chip {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 4px;
    background: #eef1f6;
    color: var(--primary);
}

.gt-chip.is-optional {
    background: #fff4d1;
    color: #7a5d00;
}

.gt-stay {
    font-size: 0.85rem;
    color: #6b7385;
    margin-top: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ---------- Tables ---------- */
.gt-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gt-line);
    border-radius: 10px;
    background: var(--gt-paper);
}

.gt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.gt-table th {
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7385;
    padding: 12px 16px;
    border-bottom: 2px solid var(--primary);
    white-space: nowrap;
}

.gt-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gt-line);
    color: var(--text-muted);
    vertical-align: top;
}

.gt-table tr:last-child td {
    border-bottom: 0;
}

.gt-table td.num {
    text-align: right;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gt-table tr.is-lead td {
    background: var(--gt-accent-soft);
}

.gt-code {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.gt-fine {
    font-size: 0.86rem;
    color: #6b7385;
    margin-top: 10px;
    line-height: 1.6;
}

/* Hotels */
.gt-hotels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gt-hotel {
    background: var(--gt-paper);
    border: 1px solid var(--gt-line);
    border-top: 4px solid var(--gt-accent);
    border-radius: 10px;
    padding: 16px 18px;
}

.gt-hotel .gt-label {
    color: var(--gt-accent);
}

.gt-hotel strong {
    display: block;
    color: var(--gt-ink);
    font-size: 1rem;
    line-height: 1.35;
}

.gt-hotel span {
    display: block;
    font-size: 0.85rem;
    color: #6b7385;
    margin-top: 6px;
}

/* Inclusions */
.gt-incl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gt-incl > div {
    background: var(--gt-paper);
    border: 1px solid var(--gt-line);
    border-radius: 10px;
    padding: 20px 22px;
}

.gt-incl h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gt-incl ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.gt-incl li {
    display: flex;
    gap: 10px;
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.gt-incl li .sicon {
    margin-top: 3px;
}

.gt-yes .sicon { color: #16a34a; }
.gt-no .sicon { color: #dc2626; }

/* Notes and terms */
.gt-notes {
    background: var(--gt-paper);
    border: 1px solid var(--gt-line);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 18px 22px;
    margin-top: 18px;
}

.gt-notes h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.gt-notes ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.gt-notes li {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.gt-terms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.gt-terms h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.gt-kv {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--gt-paper);
    border: 1px solid var(--gt-line);
    border-radius: 10px;
}

.gt-kv li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    border-bottom: 1px dashed var(--gt-line);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.gt-kv li:last-child {
    border-bottom: 0;
}

.gt-kv li strong {
    color: var(--gt-ink);
    text-align: right;
}

/* FAQ */
.gt-faq details {
    background: var(--gt-paper);
    border: 1px solid var(--gt-line);
    border-radius: 10px;
    margin-bottom: 10px;
}

.gt-faq summary {
    padding: 15px 18px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

.gt-faq details p {
    padding: 0 18px 16px;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ---------- Sidebar ---------- */
.gt-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 16px;
}

.gt-side-card {
    background: var(--gt-paper);
    border: 2px solid var(--primary);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.gt-side-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.gt-side-card .gt-price {
    font-size: 1.9rem;
    margin-top: 10px;
}

.gt-side-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.gt-side-list li {
    display: flex;
    gap: 8px;
}

.gt-side-list .sicon {
    color: var(--gt-accent);
    margin-top: 2px;
}

.gt-side-contact {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--gt-line);
    margin-top: 16px;
    padding-top: 14px;
    line-height: 1.7;
}

.gt-side-contact a {
    color: var(--primary);
    font-weight: 600;
}

.gt-side-links {
    background: var(--gt-paper);
    border: 1px solid var(--gt-line);
    border-radius: 12px;
    padding: 16px 18px;
}

.gt-side-links h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.gt-side-links a {
    display: block;
    color: var(--primary);
    text-decoration: none;
    padding: 7px 0;
    border-bottom: 1px solid var(--gt-line);
    font-size: 0.9rem;
}

.gt-side-links a:last-child {
    border-bottom: 0;
}

.gt-side-links a:hover {
    text-decoration: underline;
}

/* Mobile booking bar */
.gt-mobilebar {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .gt-hero .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gt-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gt-side {
        position: static;
    }

    .gt-hotels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .gt-hero {
        padding: 130px 0 48px;
    }

    .gt-hero::before {
        background: linear-gradient(180deg, rgba(0, 20, 66, 0.9) 0%, rgba(0, 28, 84, 0.82) 100%);
    }

    /* Rail turns vertical: bar length still follows nights */
    .gt-rail {
        flex-direction: column;
        gap: 6px;
    }

    .gt-rail li {
        flex: none;
    }

    .gt-rail a,
    .gt-rail li:first-child a,
    .gt-rail li:last-child a {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        border-top: 0;
        border-left: 6px solid var(--gt-accent);
        border-radius: 6px;
        width: calc(46% + var(--n) * 6%);
        min-width: 180px;
        max-width: 100%;
        padding: 10px 12px;
    }

    .gt-rail li:nth-child(even) a {
        border-left-color: var(--primary);
    }

    .gt-rail span {
        margin-top: 0;
    }

    .gt-highlights,
    .gt-incl,
    .gt-terms,
    .gt-hotels {
        grid-template-columns: 1fr;
    }

    .gt-table {
        font-size: 0.86rem;
    }

    .gt-table th,
    .gt-table td {
        padding: 10px 9px;
    }

    .gt-day summary {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
    }

    .gt-meals {
        grid-column: 2;
    }

    .gt-daynum {
        font-size: 1.35rem;
    }

    .gt-day-body {
        padding: 0 16px 16px;
    }

    .gt-main h2 {
        font-size: 1.45rem;
    }

    .gt-body {
        padding-bottom: 110px;
    }

    /* The booking bar carries WhatsApp, so the site-wide floating button would only cover it */
    .gt-page .whatsapp-fab {
        display: none !important;
    }

    .gt-mobilebar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        border-top: 1px solid var(--gt-line);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
        padding: 10px 16px;
    }

    .gt-mobilebar strong {
        display: block;
        font-family: var(--font-heading);
        color: var(--primary);
        font-size: 1.1rem;
        line-height: 1.1;
    }

    .gt-mobilebar small {
        font-size: 0.72rem;
        color: #6b7385;
    }

    .gt-mobilebar .gt-btn {
        padding: 11px 16px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gt-btn,
    .gt-chev,
    .gt-rail a {
        transition: none;
    }

    .gt-btn:hover {
        transform: none;
    }
}
