/* ===== MOBILE STICKY BAR ===== */
.kj-mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
    z-index: 999;
    border-top: 1px solid rgba(241,245,249,0.8);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.kj-mobile-sticky-bar .kj-msb-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.kj-mobile-sticky-bar .kj-msb-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}
.kj-mobile-sticky-bar .kj-msb-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.kj-mobile-sticky-bar .kj-msb-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.kj-mobile-sticky-bar .kj-msb-wa-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,211,102,0.25);
    transition: transform 0.2s;
    text-decoration: none;
}
.kj-mobile-sticky-bar .kj-msb-btn {
    background: linear-gradient(135deg, var(--primary), #219EBC);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(15,76,129,0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MODAL ===== */
.kj-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}
.kj-modal-overlay.show { display: flex; opacity: 1; }
.kj-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.kj-modal-overlay.show .kj-modal-content { transform: translateY(0); }
.kj-modal-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kj-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.kj-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ===== GALLERY & LIGHTBOX ===== */
.kj-gallery-grid {
    margin-top: 15px;
}
.kj-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.kj-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.kj-gallery-item:hover img {
    transform: scale(1.08);
}
.kj-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.kj-gallery-item:hover .kj-gallery-overlay {
    opacity: 1;
}
.kj-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* Premium Lightbox Styles */
.kj-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}
.kj-lightbox.show {
    display: flex;
    opacity: 1;
}
.kj-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kj-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.kj-lightbox.show .kj-lightbox-img {
    transform: scale(1);
}
.kj-lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    z-index: 100002;
}
.kj-lightbox-btn:hover {
    background: #ffffff;
    color: #0f172a;
    transform: scale(1.05);
}
.kj-lightbox-btn.close {
    top: -50px;
    right: 0;
}
.kj-lightbox-btn.prev {
    left: -70px;
}
.kj-lightbox-btn.next {
    right: -70px;
}
.kj-lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
}

/* ===== FLATPICKR ===== */
.flatpickr-calendar {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
    border: 1px solid #f1f5f9 !important;
}
.flatpickr-day.high-season-day {
    background: #fff5f5 !important;
    border-color: #feb2b2 !important;
    color: #e53e3e !important;
    font-weight: 700;
    position: relative;
}
.flatpickr-day.high-season-day:after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e53e3e;
}
.flatpickr-day.high-season-day.selected {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* ===== BOOKING FORM ===== */
.kj-booking-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}
.kj-pickup-card {
    border: 2px solid #e5e7eb !important;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.kj-pickup-card:hover {
    border-color: var(--primary) !important;
    background: #f0f7ff !important;
    transform: translateY(-1px);
}
.kj-pickup-card.active {
    border-color: var(--primary) !important;
    background: #eff6ff !important;
    box-shadow: 0 4px 14px rgba(15,76,129,0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .kj-hero-immersive { min-height: 420px; }
    .kj-hero-immersive__content { min-height: 420px; padding: 110px 20px 30px; }
    .kj-hero__title { font-size: 28px; }
    .kj-hero__info-strip {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 12px;
    }
    .kj-hero__info-item {
        padding: 14px 16px;
    }
    .kj-hero__info-item:nth-child(2) { border-right: none; }
    .kj-hero__info-item:nth-child(1),
    .kj-hero__info-item:nth-child(2) {
        border-bottom: 1px solid #f1f5f9;
    }
    .kj-highlights-grid { grid-template-columns: 1fr; }
    .facility-split { grid-template-columns: 1fr; }
    .kj-related-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .kj-related-grid .kj-package-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex-shrink: 1 !important;
    }
    .kj-mobile-sticky-bar { display: flex; }
    body.single-paket_wisata { padding-bottom: 75px !important; }
    .single-tour-section { padding: 28px 20px; }
    .pricing-sidebar-calculator {
        border: 2px solid var(--primary) !important;
        border-radius: 16px !important;
        padding: 20px !important;
    }
    .pricing-sidebar-calculator input,
    .pricing-sidebar-calculator select {
        font-size: 16px !important;
        padding: 12px !important;
    }
}
@media (max-width: 768px) {
    .kj-reviews-summary {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .kj-reviews-summary__score {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 20px;
    }
    .kj-lightbox-btn.prev {
        left: 10px;
        background: rgba(15, 23, 42, 0.7);
    }
    .kj-lightbox-btn.next {
        right: 10px;
        background: rgba(15, 23, 42, 0.7);
    }
    .kj-lightbox-btn.close {
        top: 20px;
        right: 20px;
        background: rgba(15, 23, 42, 0.7);
    }
}
@media (max-width: 767px) {
    .kj-hero-immersive { min-height: 380px; }
    .kj-hero-immersive__content { min-height: 380px; padding: 100px 20px 30px; }
    .kj-hero__title { font-size: 24px; }
    .kj-hero__info-strip { grid-template-columns: 1fr 1fr; margin-top: -20px; }
    .kj-hero__actions { flex-direction: column; }
    .kj-hero__btn { width: 100%; justify-content: center; }
    .kj-sticky-nav__link { padding: 12px 14px; font-size: 12px; }
    .kj-modal-content {
        position: absolute;
        bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        transform: translateY(100%);
    }
    .kj-modal-overlay { align-items: flex-end; padding: 0; }

    /* Redesign guest gallery to use clean grid on mobile */
    .kj-gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .kj-gallery-grid .kj-gallery-item {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/3 !important;
        flex-shrink: 1 !important;
        border-radius: 12px !important;
    }
    .kj-gallery-grid .kj-gallery-item img {
        transition: none !important;
        transform: none !important;
    }
    .kj-gallery-grid .kj-gallery-item:hover img {
        transform: none !important;
    }
    .kj-gallery-grid .kj-gallery-item .kj-gallery-overlay {
        display: none !important;
    }

    /* Redesign mobile sticky bar layout to fit everything on a single line */
    .kj-mobile-sticky-bar {
        padding: 14px 16px !important;
        min-height: 75px !important;
        gap: 12px !important;
    }
    .kj-mobile-sticky-bar .kj-msb-price {
        font-size: 15px !important;
    }
    .kj-mobile-sticky-bar .kj-msb-label {
        font-size: 9px !important;
    }
    .kj-mobile-sticky-bar .kj-msb-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .kj-mobile-sticky-bar .kj-msb-btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
        border-radius: 30px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .kj-mobile-sticky-bar .kj-msb-wa-btn {
        width: 40px !important;
        height: 40px !important;
    }
}
@media (max-width: 480px) {
    .single-tour-section { padding: 20px 16px; }
    .kj-hero__info-strip { grid-template-columns: 1fr; margin-top: -16px; }
    .kj-hero__info-item { border-right: none; border-bottom: 1px solid #f1f5f9; }
    .kj-hero__info-item:last-child { border-bottom: none; }
}
@media (max-width: 360px) {
    .kj-mobile-sticky-bar {
        padding: 10px 10px !important;
        gap: 6px !important;
        min-height: 70px !important;
    }
    .kj-mobile-sticky-bar .kj-msb-price {
        font-size: 13px !important;
    }
    .kj-mobile-sticky-bar .kj-msb-actions {
        gap: 4px !important;
    }
    .kj-mobile-sticky-bar .kj-msb-btn {
        padding: 8px 12px !important;
        font-size: 11px !important;
        height: 34px !important;
    }
    .kj-mobile-sticky-bar .kj-msb-wa-btn {
        width: 34px !important;
        height: 34px !important;
    }
}

/* Hide standard site bottom nav and general floating WA button on single packages */
body.single-paket_wisata .mobile-bottom-nav,
body.single-paket_wisata .mobile-whatsapp-btn {
    display: none !important;
}

/* ===== WA BUTTON TRANSITIONS ===== */
.kj-sidebar-wa-btn:hover {
    background: #25d366 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.25) !important;
}
.kj-msb-wa-btn:hover { transform: scale(1.08); }
.kj-msb-wa-btn:active { transform: scale(0.92); }
.kj-msb-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15,76,129,0.3) !important;
}

/* ===== ITINERARY ACCORDION ===== */
.kj-iti-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.kj-iti-accordion-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.kj-iti-accordion-item.active {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}
.kj-iti-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: color 0.2s ease;
}
.kj-iti-accordion-header:hover {
    color: var(--primary);
}
.kj-iti-accordion-icon {
    font-size: 12px;
    color: #64748b;
}
.kj-iti-accordion-content {
    padding: 0 20px 20px 20px;
}
