/* ==========================================================================
   ANR Tour & Travel - Detail Paket Stylesheet (paket-detail.css)
   ========================================================================== */

.paket-detail-hero {
    background: var(--sand-deep);
    padding: 36px 0 56px;
}
.paket-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    color: var(--sage);
    font-size: 0.88rem;
    margin-top: 10px;
}
.paket-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.paket-detail-meta i {
    color: var(--crimson);
}
.paket-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
    margin-top: 32px;
}
.paket-detail-grid > * {
    min-width: 0;
}
/* ==========================================================================
   Interactive Gallery Carousel & Lightbox
   ========================================================================== */
.paket-gallery-container {
    margin-bottom: 28px;
    width: 100%;
}

.paket-carousel-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #181514;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.paket-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    touch-action: pan-y;
}

.paket-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ambient Blurred Background (Cinematic effect for flyers & photos) */
.slide-backdrop {
    position: absolute;
    inset: -25px;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.6);
    transform: scale(1.15);
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
}

/* Foreground Centered Image Box */
.slide-img-box {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px 46px;
    cursor: zoom-in;
}

.slide-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.slide-img-box:hover .slide-img {
    transform: scale(1.015);
}

/* Top Floating Bar */
.carousel-top-bar {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    z-index: 6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.slide-badge {
    pointer-events: auto;
    background: rgba(24, 21, 20, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.16);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.slide-badge.flyer-badge {
    background: linear-gradient(135deg, #b81b2c 0%, #dc2626 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 16px rgba(184, 27, 44, 0.45);
}

.slide-badge i {
    font-size: 0.8rem;
}

.carousel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.carousel-counter {
    background: rgba(24, 21, 20, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.carousel-zoom-btn {
    background: rgba(24, 21, 20, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.carousel-zoom-btn:hover {
    background: var(--crimson);
    transform: scale(1.1);
    color: #fff;
}

/* Nav Buttons (Left / Right) */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 0.95rem;
}

.carousel-nav-btn.prev {
    left: 14px;
}

.carousel-nav-btn.next {
    right: 14px;
}

.carousel-nav-btn:hover {
    background: #ffffff;
    color: var(--crimson);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 24px rgba(184, 27, 44, 0.3);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Caption Overlay at Bottom */
.carousel-caption-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(to top, rgba(18, 15, 14, 0.92) 0%, rgba(18, 15, 14, 0.6) 65%, transparent 100%);
    padding: 30px 18px 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.carousel-caption-text {
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.92);
}

.carousel-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Thumbnail Strip */
.carousel-thumbs-strip {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 4px 2px 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-thumbs-strip::-webkit-scrollbar {
    height: 4px;
}

.carousel-thumbs-strip::-webkit-scrollbar-thumb {
    background: rgba(184, 27, 44, 0.25);
    border-radius: 4px;
}

.carousel-thumb {
    flex: 0 0 100px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
    background: #e7e5e4;
    position: relative;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.carousel-thumb .thumb-tag {
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    background: rgba(28, 25, 23, 0.82);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.carousel-thumb .thumb-tag.main-tag {
    background: linear-gradient(135deg, #b81b2c 0%, #dc2626 100%);
    box-shadow: 0 2px 6px rgba(184, 27, 44, 0.4);
}

.carousel-thumb:hover {
    border-color: rgba(184, 27, 44, 0.45);
    transform: translateY(-2px);
}

.carousel-thumb.active {
    border-color: var(--crimson);
    box-shadow: 0 6px 16px rgba(184, 27, 44, 0.32);
    transform: translateY(-3px);
}

/* Fullscreen Lightbox Modal */
.paket-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(12, 10, 9, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.paket-lightbox.show {
    opacity: 1;
}

.lightbox-dialog {
    position: relative;
    width: 92vw;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0 50px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.25s ease-out;
}

@keyframes lightboxZoomIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-footer {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    color: #fff;
}

.lightbox-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.lightbox-counter {
    font-size: 0.84rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
}

.lightbox-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    transform: rotate(90deg) scale(1.08);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.16);
    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;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.lightbox-nav-btn.prev {
    left: 10px;
}

.lightbox-nav-btn.next {
    right: 10px;
}

.lightbox-nav-btn:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    transform: translateY(-50%) scale(1.12);
}

/* Tabs */
.detail-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--line);
    margin: 32px 0 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.detail-tabs::-webkit-scrollbar { display: none; }
.detail-tab {
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--sage);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
}
.detail-tab.active, .detail-tab:hover { color: var(--crimson); border-bottom-color: var(--crimson); }

/* Sidebar */
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; position: sticky; top: 96px; box-shadow: var(--shadow-md); }
.sidebar-price { font-size: 0.78rem; color: var(--sage); margin-bottom: 4px; }
.sidebar-price-num { font-size: 1.6rem; font-weight: 800; color: var(--crimson); line-height: 1.1; }
.sidebar-price-note { font-size: 0.72rem; color: var(--sage); }
.sidebar-divider { height: 1px; background: var(--line); margin: 20px 0; }
.sidebar-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.sidebar-features li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--ink-light); }
.sidebar-features li i { color: var(--crimson); width: 16px; }

/* Fasilitas Grid */
.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.fasilitas-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--sand);
    border-radius: 12px;
    padding: 14px 16px;
}

/* Itinerary */
.itinerary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.itinerary-timeline { display: flex; flex-direction: column; gap: 0; }
.it-day { display: flex; gap: 20px; position: relative; }
.it-day-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.it-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--crimson); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.78rem; flex-shrink: 0; }
.it-line { width: 2px; flex: 1; background: var(--line); margin: 6px 0; min-height: 40px; }
.it-day:last-child .it-line { display: none; }
.it-content { padding-bottom: 32px; flex: 1; }
.it-date { font-size: 0.72rem; font-weight: 700; color: var(--crimson); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.it-title { font-weight: 700; margin-bottom: 8px; }
.it-activities { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.it-activities li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.88rem; color: var(--sage); }
.it-activities li::before { content: '•'; color: var(--amber); flex-shrink: 0; margin-top: 1px; }

/* Harga table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--line);
    margin-bottom: 16px;
    background: #fff;
}
.harga-table { width: 100%; min-width: 480px; border-collapse: collapse; border: none; }
.harga-table th { background: var(--crimson); color: #fff; padding: 14px 20px; text-align: left; font-size: 0.84rem; font-weight: 700; }
.harga-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.harga-table tr:last-child td { border: none; }
.harga-table tr:nth-child(even) td { background: var(--sand); }
.harga-price { font-weight: 700; color: var(--crimson); }
.harga-include { color: var(--sage); font-size: 0.80rem; margin-top: 2px; }

/* Syarat & Dokumen Grid */
.syarat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.dokumen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* PDF Button */
.pdf-banner {
    background: var(--crimson-dark);
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}
.pdf-banner i { font-size: 2rem; color: rgba(255,255,255,0.9); }
.pdf-banner .text { flex: 1; }
.pdf-banner .text strong { color: #fff; display: block; font-size: 0.95rem; }
.pdf-banner .text span { color: rgba(255,255,255,0.75); font-size: 0.82rem; }

@media (max-width: 1024px) {
    .paket-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .sidebar-card { position: static; }
}
@media (max-width: 640px) {
    .paket-detail-grid { gap: 24px; margin-top: 20px; }
    .sidebar-card { padding: 20px 16px; border-radius: 16px; }
    .syarat-grid { grid-template-columns: 1fr; gap: 20px; }
    .pdf-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 14px;
    }
    .pdf-banner i { font-size: 2.2rem; }
    .pdf-banner .btn {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 560px) {
    .fasilitas-grid { grid-template-columns: 1fr; gap: 10px; }
    .fasilitas-card { padding: 12px 14px; }
    .dokumen-grid { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 768px) {
    .paket-carousel {
        aspect-ratio: 4 / 3;
    }
    .carousel-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .carousel-nav-btn.prev { left: 8px; }
    .carousel-nav-btn.next { right: 8px; }
    .carousel-thumb {
        flex: 0 0 84px;
        height: 58px;
    }
    .slide-img-box {
        padding: 10px 10px 42px;
    }
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    .lightbox-nav-btn.prev { left: 5px; }
    .lightbox-nav-btn.next { right: 5px; }
}
@media (max-width: 480px) {
    .paket-detail-hero { padding: 24px 0 36px; }
    .it-day { gap: 12px; }
    .it-dot { width: 34px; height: 34px; font-size: 0.72rem; }
    .it-content { padding-bottom: 24px; }
    .itinerary-header a.btn { width: 100%; justify-content: center; }
    .paket-carousel {
        aspect-ratio: 1 / 1;
    }
    .carousel-thumb {
        flex: 0 0 74px;
        height: 52px;
    }
    .slide-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
    .carousel-counter {
        font-size: 0.72rem;
        padding: 4px 8px;
    }
}
