/* =========================================================
   ITINERARY PAGE — itinerary.css
   Jacada-inspired layout in Lawrence Travels theme
   ========================================================= */

/* ---- 1. HERO ---- */
.itin-hero {
    position: relative;
    height: 80vh;
    min-height: 520px;
    overflow: hidden;
}

.itin-hero__slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.itin-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.itin-hero__slide.active {
    opacity: 1;
}

.itin-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 26, 20, 0.3) 0%, rgba(15, 26, 20, 0.75) 100%);
}

.itin-hero__content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 clamp(24px, 5vw, 80px) 60px;
    max-width: 1280px;
    margin: 0 auto;
    color: #fff;
}

.itin-breadcrumb {
    font-family: var(--font-ui);
    font-size: 13px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.itin-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.itin-breadcrumb a:hover {
    color: var(--color-crest-gold);
}

.itin-hero__content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.1;
}

.itin-hero__meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.itin-hero__meta-item {
    display: flex;
    flex-direction: column;
}

.itin-hero__label {
    font-family: var(--font-ui);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.itin-hero__value {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

/* Hero nav buttons */
.itin-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.itin-hero__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.itin-hero__nav--prev {
    left: 24px;
}

.itin-hero__nav--next {
    right: 24px;
}

.itin-hero__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
}

.itin-hero__dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.itin-hero__dots .dot.active {
    background: var(--color-crest-gold);
    transform: scale(1.3);
}

/* ---- 2. DESTINATIONS CARDS ---- */
.itin-destinations {
    padding: 60px 0 40px;
}

.itin-destinations h2 {
    font-family: var(--font-display);
    margin-bottom: 32px;
    font-size: 1.8rem;
}

.itin-destinations__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.itin-destinations__grid::-webkit-scrollbar {
    height: 4px;
}

.itin-destinations__grid::-webkit-scrollbar-thumb {
    background: var(--color-crest-gold);
    border-radius: 4px;
}

.itin-dest-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-parchment);
    text-decoration: none;
    color: var(--color-green-ink);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.itin-dest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(31, 49, 41, 0.18);
}

.itin-dest-card__meta {
    padding: 16px 16px 8px;
}

.itin-dest-card__days {
    font-family: var(--font-ui);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-crest-gold);
    font-weight: 500;
}

.itin-dest-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-top: 4px;
    color: var(--color-bottle);
}

.itin-dest-card__img {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.itin-dest-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.itin-dest-card:hover .itin-dest-card__img img {
    transform: scale(1.08);
}

/* ---- 3. INTRO TEXT ---- */
.itin-intro {
    padding: 50px 0 60px;
    text-align: center;
}

.itin-intro__text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.7;
    max-width: 820px;
    margin: 0 auto;
    color: var(--color-moss);
}

/* ---- 4. TRIP HIGHLIGHTS ---- */
.itin-highlights {
    padding: 60px 0;
    background: var(--color-parchment);
}

.itin-highlights__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.itin-highlights h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.itin-highlights__list {
    list-style: none;
    padding: 0;
}

.itin-highlights__list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--color-moss);
    line-height: 1.6;
}

.itin-highlights__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-crest-gold);
}

.itin-highlights__includes {
    background: var(--color-linen);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--color-crest-gold);
}

.itin-highlights__includes h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--color-bottle);
}

.itin-highlights__includes ul {
    list-style: none;
    padding: 0;
}

.itin-highlights__includes li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-moss);
}

.itin-highlights__includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-crest-gold);
    font-weight: 700;
}

/* ---- 5a. PLACES SLIDER ---- */
.itin-places-slider {
    position: relative;
    padding: 80px 0 60px;
    background: var(--color-parchment);
    overflow: hidden;
}

.itin-places-slider__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 clamp(24px, 5vw, 80px) 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.itin-places-slider__track::-webkit-scrollbar {
    height: 0;
    display: none;
}

.itin-places-slide {
    flex: 0 0 320px;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: var(--color-linen);
    box-shadow: 0 4px 20px rgba(31, 49, 41, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.itin-places-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(31, 49, 41, 0.18);
}

.itin-places-slide__img {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.itin-places-slide__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.itin-places-slide:hover .itin-places-slide__img img {
    transform: scale(1.06);
}

.itin-places-slide__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px;
    background: linear-gradient(0deg, rgba(15, 26, 20, 0.85) 0%, rgba(15, 26, 20, 0) 100%);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 2;
}

.itin-places-slide__pin {
    margin-right: 4px;
    font-size: 14px;
}

/* Slider nav arrows */
.itin-places-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-linen);
    border: 1px solid var(--color-gilt-hairline);
    color: var(--color-bottle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(31, 49, 41, 0.15);
    transition: all 0.3s ease;
}

.itin-places-nav:hover {
    background: var(--color-crest-gold);
    color: #fff;
    border-color: var(--color-crest-gold);
}

.itin-places-nav--prev {
    left: clamp(8px, 2vw, 32px);
}

.itin-places-nav--next {
    right: clamp(8px, 2vw, 32px);
}

.itin-places-nav:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ---- 5. CTA BAR ---- */
.itin-cta-bar {
    background: var(--color-bottle);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}

.itin-cta-bar h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 12px;
}

.itin-cta-bar p {
    color: rgba(244, 240, 230, 0.75);
    max-width: 520px;
    margin: 0 auto 24px;
}

.itin-cta-bar--bottom {
    background: linear-gradient(135deg, var(--color-green-ink) 0%, var(--color-bottle) 100%);
}

/* ---- 6. ITINERARY IN DETAIL ---- */
.itin-detail {
    padding: 80px 0;
}

.itin-detail__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.itin-detail__header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 16px;
}

.itin-detail__header p {
    color: var(--color-moss);
    font-size: 15px;
}

/* Timeline */
.itin-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Vertical line */
.itin-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-crest-gold), var(--color-gilt-hairline), transparent);
}

/* Section blocks */
.itin-section {
    position: relative;
    padding-left: 56px;
    margin-bottom: 60px;
}

/* Circle on timeline */
.itin-section::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-linen);
    border: 3px solid var(--color-crest-gold);
    z-index: 1;
}

.itin-section__header {
    margin-bottom: 20px;
}

.itin-section__days {
    font-family: var(--font-ui);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-crest-gold);
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.itin-section__header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-bottle);
}

.itin-section__hero-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;
}

.itin-section__hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.itin-section:hover .itin-section__hero-img img {
    transform: scale(1.03);
}

.itin-section__desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-moss);
    margin-bottom: 24px;
}

/* Day Accordion */
.itin-day {
    border-top: 1px solid rgba(168, 144, 84, 0.25);
}

.itin-day:last-child {
    border-bottom: 1px solid rgba(168, 144, 84, 0.25);
}

.itin-day__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    color: var(--color-green-ink);
    text-align: left;
    transition: color 0.3s ease;
}

.itin-day__toggle:hover {
    color: var(--color-crest-gold);
}

.itin-day__number {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-crest-gold);
    min-width: 50px;
}

.itin-day__title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.itin-day__icon {
    font-size: 22px;
    font-weight: 300;
    color: var(--color-crest-gold);
    transition: transform 0.3s ease;
    line-height: 1;
}

.itin-day.open .itin-day__icon {
    transform: rotate(45deg);
}

.itin-day__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.45s ease;
    padding: 0 0 0 66px;
}

.itin-day.open .itin-day__content {
    max-height: 1200px;
    padding: 0 0 28px 66px;
}

.itin-day__content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-moss);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .itin-highlights__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .itin-hero {
        height: 70vh;
        min-height: 420px;
    }

    .itin-hero__nav {
        display: none;
    }

    .itin-hero__meta {
        gap: 20px;
    }

    .itin-dest-card {
        flex: 0 0 180px;
    }

    .itin-places-slide {
        flex: 0 0 260px;
    }

    .itin-places-slide__img {
        height: 320px;
    }

    .itin-timeline::before {
        left: 12px;
    }

    .itin-section {
        padding-left: 40px;
    }

    .itin-section::before {
        left: 4px;
        width: 16px;
        height: 16px;
    }

    .itin-day__content {
        padding-left: 0 !important;
    }

    .itin-day.open .itin-day__content {
        padding-left: 0 !important;
    }
}

/* ---- SCROLL ANIMATIONS ---- */
.itin-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.itin-animate.itin-visible {
    opacity: 1;
    transform: translateY(0);
}