/* ============================================================
   TripCabinet — Tour Itinerary (v3 — Clean Thrillophilia-style)
   File: tc-itinerary.css
   ============================================================ */

/* --- Container --- */
.tc-itn {
    margin: 40px 0 48px;
}

/* --- Header --- */
.tc-itn__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.tc-itn__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--header, #151415);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-itn__title-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--theme-color, #4D40CA) 0%, #7B6FE8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
}

.tc-itn__header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-itn__count {
    padding: 5px 14px;
    border-radius: 50px;
    background: rgba(77, 64, 202, 0.06);
    color: var(--theme-color, #4D40CA);
    font-size: 13px;
    font-weight: 600;
}

.tc-itn__expand-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border: 1px solid #e0dff0;
    border-radius: 50px;
    background: #fff;
    color: var(--theme-color, #4D40CA);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tc-itn__expand-all:hover {
    background: rgba(77, 64, 202, 0.04);
    border-color: var(--theme-color, #4D40CA);
}

/* --- Inclusion Badges --- */
.tc-itn__inclusions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tc-itn__incl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 12.5px;
    font-weight: 600;
}

.tc-itn__incl i {
    font-size: 12px;
}

/* ============================================================
   DAY CARDS (Accordion)
   ============================================================ */
.tc-itn__days {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tc-itn__day {
    border: 1px solid #e8e6f0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(8px);
    animation: tcItnUp 0.4s ease forwards;
}

.tc-itn__day.is-open {
    border-color: rgba(77, 64, 202, 0.25);
    box-shadow: 0 4px 20px rgba(77, 64, 202, 0.06);
}

@keyframes tcItnUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Day Header (clickable) --- */
.tc-itn__day-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.tc-itn__day-head:hover {
    background: #faf9fe;
}

/* Day number marker */
.tc-itn__day-marker {
    flex-shrink: 0;
}

.tc-itn__day-num {
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--theme-color, #4D40CA);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    line-height: 44px;
    text-align: center;
}

.tc-itn__day-num small {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.7;
}

/* Day thumbnail image */
.tc-itn__day-img {
    width: 72px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Day info */
.tc-itn__day-info {
    flex: 1;
    min-width: 0;
}

.tc-itn__day-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--theme-color, #4D40CA);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-itn__dur-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 50px;
    background: rgba(77, 64, 202, 0.08);
    color: var(--theme-color, #4D40CA);
    text-transform: none;
    letter-spacing: 0;
}

.tc-itn__day-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--header, #151415);
    line-height: 1.4;
    margin: 0;
}

/* Compact inclusion icons in header */
.tc-itn__day-icons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.tc-itn__day-icons span {
    font-size: 11px;
    color: #8a949e;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tc-itn__day-icons i {
    font-size: 10px;
    color: #aab4be;
}

/* Chevron */
.tc-itn__chevron {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f4f3fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-itn__chevron i {
    font-size: 12px;
    color: var(--theme-color, #4D40CA);
    transition: color 0.3s;
}

.tc-itn__day.is-open .tc-itn__chevron {
    background: var(--theme-color, #4D40CA);
    transform: rotate(180deg);
}

.tc-itn__day.is-open .tc-itn__chevron i {
    color: #fff;
}

/* --- Day Body (collapse animation) --- */
.tc-itn__day-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-itn__day.is-open .tc-itn__day-body {
    grid-template-rows: 1fr;
}

.tc-itn__day-body-inner {
    overflow: hidden;
}

.tc-itn__desc {
    padding: 0 20px 16px;
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text, #455151);
    border-top: 1px solid #f0eff5;
    padding-top: 16px;
}

/* ============================================================
   CONTENT SECTIONS (inside day body)
   ============================================================ */
.tc-itn__section {
    padding: 14px 20px;
    border-top: 1px solid #f0eff5;
}

.tc-itn__section-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8a949e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.tc-itn__section-label i {
    font-size: 11px;
    color: var(--theme-color, #4D40CA);
}

/* --- Activities --- */
.tc-itn__activity {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    align-items: flex-start;
}

.tc-itn__activity + .tc-itn__activity {
    border-top: 1px dashed #f0eff5;
}

.tc-itn__act-img {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.tc-itn__act-info {
    flex: 1;
    min-width: 0;
}

.tc-itn__act-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.tc-itn__act-top strong {
    font-size: 14px;
    color: var(--header, #151415);
}

.tc-itn__meta-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f4f5f7;
    color: #677788;
    font-weight: 500;
}

.tc-itn__act-desc {
    margin: 3px 0 0;
    font-size: 13px;
    color: #677788;
    line-height: 1.5;
}

.tc-itn__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.tc-itn__highlights span {
    padding: 2px 10px;
    border-radius: 50px;
    background: rgba(40, 167, 69, 0.06);
    color: #28a745;
    font-size: 11px;
    font-weight: 500;
}

/* --- Hotel --- */
.tc-itn__hotel {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    align-items: flex-start;
}

.tc-itn__hotel + .tc-itn__hotel {
    border-top: 1px dashed #f0eff5;
}

.tc-itn__hotel-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.tc-itn__hotel-detail {
    flex: 1;
    min-width: 0;
}

.tc-itn__hotel-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tc-itn__hotel-top strong {
    font-size: 14px;
    color: var(--header, #151415);
}

.tc-itn__stars {
    color: #f5c518;
    font-size: 10px;
}

.tc-itn__stars i {
    margin-right: 1px;
}

.tc-itn__hotel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.tc-itn__hotel-tags span {
    font-size: 12px;
    color: #8a949e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tc-itn__hotel-tags i {
    font-size: 10px;
}

/* --- Transfers --- */
.tc-itn__transfer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text, #455151);
}

.tc-itn__transfer + .tc-itn__transfer {
    border-top: 1px dashed #f0eff5;
}

.tc-itn__transfer-type {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tc-itn__transfer-type--arrival { background: rgba(40, 167, 69, 0.08); color: #28a745; }
.tc-itn__transfer-type--departure { background: rgba(220, 53, 69, 0.08); color: #dc3545; }
.tc-itn__transfer-type--sightseeing { background: rgba(0, 123, 255, 0.08); color: #007bff; }
.tc-itn__transfer-type--intercity { background: rgba(255, 165, 0, 0.08); color: #e08600; }

.tc-itn__route {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #677788;
}

.tc-itn__route i {
    font-size: 9px;
    color: #bbb;
}

/* --- Meals --- */
.tc-itn__meals {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tc-itn__meal {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
}

.tc-itn__meal + .tc-itn__meal {
    border-top: 1px dashed #f0eff5;
}

.tc-itn__meal-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--header, #151415);
    min-width: 100px;
}

.tc-itn__meal-type i {
    font-size: 12px;
    color: var(--theme-color, #4D40CA);
}

.tc-itn__meal-name {
    color: var(--text, #455151);
}

.tc-itn__meal-cuisine {
    font-size: 12px;
    color: #8a949e;
    padding: 1px 8px;
    background: #f6f7f9;
    border-radius: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .tc-itn__header {
        margin-bottom: 18px;
    }

    .tc-itn__title {
        font-size: 20px;
    }

    .tc-itn__title-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
        border-radius: 9px;
    }

    .tc-itn__header-right {
        width: 100%;
        justify-content: space-between;
    }

    .tc-itn__inclusions {
        gap: 6px;
        margin-bottom: 18px;
    }

    .tc-itn__incl {
        padding: 5px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .tc-itn__day-head {
        padding: 12px 14px;
        gap: 10px;
    }

    .tc-itn__day-num {
        width: 38px;
        height: 38px;
        font-size: 13px;
        line-height: 38px;
        border-radius: 10px;
    }

    .tc-itn__day-num small {
        font-size: 9px;
    }

    .tc-itn__day-img {
        width: 56px;
        height: 42px;
        border-radius: 8px;
    }

    .tc-itn__day-title {
        font-size: 14px;
    }

    .tc-itn__chevron {
        width: 28px;
        height: 28px;
    }

    .tc-itn__chevron i {
        font-size: 11px;
    }

    .tc-itn__desc {
        padding: 12px 14px;
        font-size: 13.5px;
    }

    .tc-itn__section {
        padding: 12px 14px;
    }

    .tc-itn__act-img {
        width: 52px;
        height: 40px;
    }

    .tc-itn__hotel-img {
        width: 64px;
        height: 48px;
    }

    .tc-itn__route {
        display: flex;
        margin-top: 4px;
        width: 100%;
    }

    .tc-itn__meal {
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .tc-itn__meal-type {
        min-width: unset;
    }

    .tc-itn__highlights span {
        font-size: 10px;
        padding: 2px 8px;
    }
}

@media (max-width: 480px) {
    .tc-itn__day-img {
        display: none;
    }

    .tc-itn__activity {
        flex-direction: column;
        gap: 8px;
    }

    .tc-itn__act-img {
        width: 100%;
        height: 120px;
        border-radius: 8px;
    }

    .tc-itn__hotel {
        flex-direction: column;
        gap: 8px;
    }

    .tc-itn__hotel-img {
        width: 100%;
        height: 120px;
        border-radius: 8px;
    }
}
