/* =============================================================================
   package-details.css — Tour Detail Page Styles
   Eliteluxe Journeys| Uses ONLY variables from main.css
   No hardcoded colours, fonts or spacing.
   =============================================================================

   SECTIONS
   1.  Loading Overlay
   2.  Hero Slideshow
   3.  Hero Content & Typography
   4.  Hero Buttons
   5.  Slide Info Overlay
   6.  Quick Facts
   7.  Tour Overview
   8.  Experience Highlights
   9.  Itinerary / Day Cards
   10. Pagination
   11. Responsive
   ============================================================================= */

/* ─── 1. LOADING OVERLAY ──────────────────────────────────────────────────── */

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: opacity 0.5s ease;
}

.loading-overlay:not(.active) {
    pointer-events: none;
    opacity: 0;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-loading {
    opacity: 0.5;
    animation: pulse 1.4s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.4; }
    to   { opacity: 0.8; }
}


/* ─── 2. HERO SLIDESHOW ───────────────────────────────────────────────────── */

.tour-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

.lazzora-hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.lazzora-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

.lazzora-hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        var(--color-dark-80) 0%,
        var(--color-dark-50) 55%,
        var(--color-dark-70) 100%
    );
    z-index: 2;
}


/* ─── 3. HERO CONTENT & TYPOGRAPHY ───────────────────────────────────────── */

.hero-content {
    position: relative;
    z-index: 3;
    padding: 72px 0 80px;
}

.tour-code-display {
    display: inline-block;
    background: var(--color-white-20);
    color: var(--color-white);
    padding: 5px 14px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-white-30);
}

.tour-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--color-white);
    text-shadow: 0 2px 8px var(--color-dark-50);
    margin-bottom: 14px;
}

.tour-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--color-white-80);
    text-shadow: 0 1px 4px var(--color-dark-30);
    margin-bottom: 20px;
}

.tour-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-white-70);
    margin-bottom: 32px;
}

.tour-duration i {
    color: var(--color-gold-light);
}


/* ─── 4. HERO BUTTONS ─────────────────────────────────────────────────────── */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-buttons .btn {
    padding: 11px 26px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-buttons .btn-primary {
    background: var(--gradient-gold);
    border: none;
    color: var(--color-white);
    box-shadow: var(--shadow-gold);
}

.hero-buttons .btn-primary:hover {
    background: var(--gradient-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-lg);
    color: var(--color-white);
}

.hero-buttons .btn-outline-light {
    background: var(--color-white-12);
    color: var(--color-white);
    border: 1px solid var(--color-white-35);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--color-white-20);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ─── 5. SLIDE INFO OVERLAY ───────────────────────────────────────────────── */

.slide-info-overlay {
    position: absolute;
    bottom: 22px;
    right: 22px;
    background: var(--color-dark-80);
    color: var(--color-white);
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 4;
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-white-12);
    pointer-events: none;
}

.slide-day {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold-light);
    margin-bottom: 2px;
}

.slide-location {
    color: var(--color-white-80);
    font-size: 0.82rem;
}


/* ─── 6. QUICK FACTS ──────────────────────────────────────────────────────── */

.quick-facts-section {
    background: var(--bg-secondary);
    padding: 60px 0;
}

.fact-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.fact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}

.fact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--color-gold);
    font-size: 1.25rem;
    transition: background 0.25s ease;
}

.fact-card:hover .fact-icon {
    background: var(--color-gold-glow);
}

.fact-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.fact-value {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}


/* ─── 7. TOUR OVERVIEW ────────────────────────────────────────────────────── */

.overview-section {
    background: var(--bg-primary);
    padding: 72px 0;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.overview-lead {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 18px;
}

.overview-content p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

.overview-image-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.overview-image-wrap img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}


/* ─── 8. EXPERIENCE HIGHLIGHTS ───────────────────────────────────────────── */

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.highlight-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-sm);
}

.highlight-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 1rem;
}

.highlight-card:nth-child(even) .highlight-icon {
    background: var(--bg-green-light);
    color: var(--color-green);
}

.highlight-title {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.highlight-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}


/* ─── 9. ITINERARY / DAY CARDS ────────────────────────────────────────────── */

.itinerary-section {
    background: var(--bg-secondary);
    padding: 72px 0;
}

.day-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.day-card:hover {
    box-shadow: var(--shadow-md);
}

.day-card-header {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 22px 28px;
}

.day-badge {
    display: inline-block;
    background: var(--color-gold-glow);
    color: var(--color-gold-light);
    border: 1px solid rgba(var(--color-gold-rgb), 0.35);
    padding: 3px 12px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.day-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 6px;
}

.day-distance {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-white-60);
    display: flex;
    align-items: center;
    gap: 5px;
}

.day-card-body {
    padding: 28px;
}

.day-image-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.day-image-wrap img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.day-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, var(--color-dark-80));
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
}

.day-description {
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.78;
    margin-bottom: 20px;
}

.activities-box {
    background: var(--bg-secondary);
    border-left: 3px solid var(--color-gold);
    border-radius: 0 8px 8px 0;
    padding: 18px 20px;
}

.activities-title {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.activities-title i {
    color: var(--color-green);
}

.activities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activities-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 4px 0;
    line-height: 1.55;
}

.activities-list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    margin-top: 6px;
}


/* ─── 10. PAGINATION ──────────────────────────────────────────────────────── */

.pagination-wrap {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    padding: 18px 24px;
}

.pagination-info {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Override Bootstrap pagination to match brand */
.pagination .page-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    padding: 6px 12px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border-radius: 5px !important;
    margin: 0 2px;
}

.pagination .page-link:hover {
    background: var(--bg-gold-light);
    color: var(--color-gold);
    border-color: var(--border-gold);
}

.pagination .page-item.active .page-link {
    background: var(--color-gold) !important;
    border-color: var(--color-gold) !important;
    color: var(--color-white) !important;
    font-weight: 600;
    box-shadow: var(--shadow-gold);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-lighter);
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
}

.pagination-jump .form-select {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 6px 32px 6px 12px;
    background-color: var(--bg-primary);
    min-width: 160px;
}

.pagination-jump .form-select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--color-gold-glow-sm);
    outline: none;
}


/* ─── 11. RESPONSIVE ──────────────────────────────────────────────────────── */

@media (max-width: 1199.98px) {
    .tour-title { font-size: 3rem; }
}

@media (max-width: 991.98px) {
    .tour-hero { min-height: 80vh; }
    .tour-title { font-size: 2.6rem; }
    .day-card-body { padding: 20px; }
}

@media (max-width: 767.98px) {
    .hero-content {
        padding: 52px 0 60px;
        text-align: center;
    }

    .tour-duration { justify-content: center; }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .slide-info-overlay {
        bottom: 12px;
        right: 12px;
        left: 12px;
        text-align: center;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .day-image-wrap img { height: 200px; }

    .pagination-wrap {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .tour-title { font-size: 2rem; }
    .tour-subtitle { font-size: 1rem; }
    .day-card-header { padding: 16px 18px; }
    .day-card-body { padding: 16px 18px; }
    .fact-card { padding: 20px 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   OVERVIEW SLIDESHOW
═══════════════════════════════════════════════════════════════ */
.ov-slideshow {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-secondary);
    user-select: none;
}

.ov-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.ov-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
}
.ov-slide.active { opacity: 1; }

.ov-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Day/title caption at bottom of each slide */
.ov-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.62), transparent);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.ov-day {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold, #c9a84c);
    background: rgba(0,0,0,0.35);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.ov-loc {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Prev / Next arrows */
.ov-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.38);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 5;
    backdrop-filter: blur(4px);
}
.ov-arrow:hover {
    background: rgba(0,0,0,0.65);
    transform: translateY(-50%) scale(1.08);
}
.ov-prev { left: 10px; }
.ov-next { right: 10px; }

/* Dot indicators */
.ov-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}
.ov-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}
.ov-dot.active {
    background: var(--color-gold, #c9a84c);
    transform: scale(1.25);
}

@media (max-width: 767.98px) {
    .ov-slides { aspect-ratio: 3 / 2; }
    .ov-arrow  { width: 30px; height: 30px; font-size: 1.1rem; }
}
