/* ==========================================================================
   TGIT — Trek Itinerary Accordion
   Enqueue via wp_enqueue_style( 'tgit-itinerary', ... )
   Color scheme updated to match TGIT gold/amber departure widget theme
   ========================================================================== */

/* ── Section wrapper ───────────────────────────────────────────────────── */

.tgit-itin-section {
    margin: 2.5rem 0;
}

.tgit-itin-section__title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text-2);
    margin: 0 0 1.5rem;
}

/* ── Day list ──────────────────────────────────────────────────────────── */

.tgit-itin-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* ── Connector line between cards ──────────────────────────────────────── */

.tgit-itin-connector {
    width: 2px;
    height: 14px;
    background: #8B6914;
    margin-left: 26px;
}

.tgit-itin-connector:first-child,
.tgit-itin-connector--last {
    height: 8px;
}

/* ── Day card ──────────────────────────────────────────────────────────── */

.tgit-itin-day {
    border: 1px solid #E8D9B0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s;
}

.tgit-itin-day.is-open {
    background: #FFF8EB;
}

/* ── Header button ─────────────────────────────────────────────────────── */

.tgit-itin-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .15s;
}

.tgit-itin-header:hover {
    background: #FEF9EE;
    border-color: none;
    box-shadow: none;
}

/* ── Day badge (circle) ────────────────────────────────────────────────── */

.tgit-day-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FAEEDA;
    /* amber-50 — warm fill at rest */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: background .2s;
}

.tgit-itin-day.is-open .tgit-day-badge {
    background: var(--gold, #D4961E);
    /* same gold used in departure widget */
}

.tgit-day-badge__num {
    font-size: 13px;
    font-weight: 600;
    color: #854F0B;
    /* amber-800 on amber-50 bg */
    line-height: 1;
    transition: color .2s;
}

.tgit-itin-day.is-open .tgit-day-badge__num {
    color: #ffffff;
}

.tgit-day-badge__lbl {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #BA7517;
    /* amber-600 on amber-50 bg */
    line-height: 1;
    transition: color .2s;
}

.tgit-itin-day.is-open .tgit-day-badge__lbl {
    color: #FAC775;
    /* amber-100 on solid gold bg */
}

/* ── Header text area ──────────────────────────────────────────────────── */

.tgit-itin-header__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tgit-itin-header__title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.tgit-itin-header__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tgit-itin-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b5a3e;
    /* warm brown-gray replacing cool gray */
    line-height: 1;
}

.tgit-itin-stat .ti {
    font-size: 13px;
    color: #BA7517;
    /* amber-600 icon accent */
}

/* ── Chevron ───────────────────────────────────────────────────────────── */

.tgit-itin-chevron {
    flex-shrink: 0;
    font-size: 20px;
    color: #C49A2A;
    /* gold chevron matching departure widget */
    transition: transform .25s ease;
}

.tgit-itin-day.is-open .tgit-itin-chevron {
    transform: rotate(180deg);
}

/* ── Body ──────────────────────────────────────────────────────────────── */

.tgit-itin-body {
    padding: 0 18px 20px 18px;
    border-top: 1px solid #E8D9B0;
    /* warm amber border replacing cool blue */
}

.tgit-itin-body[hidden] {
    display: none;
}

.tgit-itin-desc {
    font-size: 14px;
    line-height: 1.75;
    color: #4a3e2e;
    /* warm dark brown replacing cool slate */
    margin: 16px 0 0;
}

/* ── Highlights list ───────────────────────────────────────────────────── */

.tgit-itin-highlights {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tgit-itin-hl {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #3d3020;
    /* warm dark for readability */
    line-height: 1.55;
}

.tgit-itin-hl__dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C49A2A;
    /* gold dot matching departure widget accent */
    margin-top: 6px;
}

/* ── Tag pills ─────────────────────────────────────────────────────────── */

.tgit-itin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E8D9B0;
}

.tgit-itin-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    background: #FAEEDA;
    /* amber-50 tag background */
    border: 1px solid #E8D9B0;
    /* warm amber border */
    font-size: 11px;
    font-weight: 500;
    color: #854F0B;
    /* amber-800 for legibility */
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.2;
}

.tgit-itin-tag__emoji {
    font-size: 14px;
    line-height: 1;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .tgit-itin-header {
        padding: 14px 14px;
        gap: 10px;
    }

    .tgit-itin-body {
        padding: 0 14px 18px;
    }

    .tgit-itin-header__title {
        white-space: normal;
        font-size: 14px;
    }

    .tgit-itin-connector {
        margin-left: 21px;
    }
}


#tab-itinerary .tgit-itin-list {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}