/* ============================================================
   PACKAGE CAROUSEL - Premium Design
   ============================================================ */

/* ----- Carousel Wrapper ----- */
.package-carousel-wrapper {
    padding: 50px 0 40px;
    background: linear-gradient(135deg, #f8faff 0%, #eef4fc 100%);
    border-radius: 24px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.package-carousel-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 59, 92, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.package-carousel-wrapper .section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a2639;
    margin-bottom: 2rem;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.package-carousel-wrapper .section-title i {
    color: #1e3b5c;
    font-size: 1.6rem;
    background: white;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(30, 59, 92, 0.08);
}

.package-carousel-wrapper .section-title .title-underline {
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, #1e3b5c, transparent);
    margin-left: 10px;
    border-radius: 3px;
}

/* ============================================================
   PACKAGE CARD
   ============================================================ */

.package-card-carousel {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    height: 100%;
    border: 1px solid rgba(238, 242, 246, 0.8);
    position: relative;
}

.package-card-carousel:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 20, 40, 0.12);
    border-color: rgba(30, 59, 92, 0.15);
}

.package-card-carousel a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ============================================================
   IMAGE WRAPPER
   ============================================================ */

.package-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #e3eaf3;
}

.package-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.package-card-carousel:hover .package-carousel-img {
    transform: scale(1.08);
}

/* ----- Image Overlay Gradient ----- */
.package-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   PRICE OVER IMAGE - COMPACT & BEAUTIFUL
   ============================================================ */

/* ✅ Price Badge - Top Right Corner */
.price-on-image {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: linear-gradient(135deg, rgba(30, 59, 92, 0.92), rgba(20, 40, 70, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
    text-align: center;
    min-width: 65px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pricePop 0.5s ease;
}

@keyframes pricePop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.package-card-carousel:hover .price-on-image {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Price Label - "From" */
.price-on-image .price-label {
    display: block;
    font-size: 0.45rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1px;
}

/* Price Amount */
.price-on-image .price-amount {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.price-on-image .price-amount .currency {
    font-size: 0.6rem;
    font-weight: 600;
    margin-right: 1px;
    color: rgba(255, 255, 255, 0.8);
}

.price-on-image .price-amount .price-number {
    font-size: 1.15rem;
}

/* Price Note - "Per Person" */
.price-on-image .price-note-small {
    display: block;
    font-size: 0.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 1px;
}

/* ============================================================
   ALTERNATIVE: PRICE RIBBON STYLE (Optional)
   ============================================================ */

/* Uncomment this section to use ribbon style instead of badge */

/*
.price-on-image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(135deg, #1e3b5c, #0f1a2e);
    padding: 8px 16px 6px 20px;
    border-radius: 0 0 0 12px;
    box-shadow: -4px 4px 20px rgba(0,0,0,0.2);
    text-align: center;
    min-width: 70px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.price-on-image .price-label {
    display: block;
    font-size: 0.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-on-image .price-amount {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.price-on-image .price-amount .currency {
    font-size: 0.55rem;
}

.price-on-image .price-note-small {
    display: none;
}
*/

/* ============================================================
   PACKAGE CODE BADGE - TOP LEFT
   ============================================================ */

.package-code-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.package-card-carousel:hover .package-code-badge {
    background: rgba(30, 59, 92, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   PACKAGE INFO SECTION
   ============================================================ */

.package-info {
    padding: 0.9rem 1rem 1rem;
    background: white;
    position: relative;
}

.package-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2639;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.package-card-carousel:hover .package-title {
    color: #1e3b5c;
}

/* ----- Categories Container ----- */
.package-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 6px;
}

/* ----- Category Badge ----- */
.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #eef4fc, #e3ecf7);
    color: #1e3b5c;
    font-size: 0.5rem;
    font-weight: 600;
    padding: 1px 10px;
    border-radius: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid rgba(30, 59, 92, 0.06);
    transition: all 0.3s ease;
}

.package-card-carousel:hover .category-badge {
    background: linear-gradient(135deg, #1e3b5c, #2a4a6c);
    color: white;
    border-color: #1e3b5c;
}

/* ----- Description ----- */
.package-description {
    font-size: 0.75rem;
    color: #7b8ba3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2rem;
    line-height: 1.4;
}

/* ============================================================
   VIEW BUTTON
   ============================================================ */

.view-btn {
    font-size: 0.68rem;
    padding: 4px 16px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #1e3b5c;
    color: #1e3b5c;
    background: transparent;
    display: inline-block;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.package-card-carousel:hover .view-btn::before {
    left: 100%;
}

.package-card-carousel:hover .view-btn {
    background: #1e3b5c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 59, 92, 0.3);
}

/* ============================================================
   PRICE ON INFO SECTION (Alternative - Bottom)
   ============================================================ */

/* If you prefer price in the info section instead of over image */
/*
.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #f0f4f9;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-note {
    font-size: 0.5rem;
    font-weight: 500;
    color: #7b8ba3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2639;
}

.package-price .currency {
    font-size: 0.65rem;
    font-weight: 600;
    color: #7b8ba3;
}
*/

/* ============================================================
   OWL CAROUSEL CUSTOMIZATION
   ============================================================ */

/* Hide Dots */
.owl-carousel .owl-dots {
    display: none !important;
}

/* Navigation Arrows */
.owl-carousel .owl-nav button {
    background: white !important;
    border-radius: 50% !important;
    width: 42px;
    height: 42px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 1rem !important;
    color: #1e3b5c !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    border: 1px solid rgba(238, 242, 246, 0.8) !important;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.owl-carousel .owl-nav button:hover {
    background: #1e3b5c !important;
    color: white !important;
    box-shadow: 0 4px 25px rgba(30, 59, 92, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.owl-carousel .owl-nav .owl-prev {
    left: -18px;
}

.owl-carousel .owl-nav .owl-next {
    right: -18px;
}

.owl-carousel .owl-nav button.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
    transform: translateY(-50%) scale(0.9);
}

/* ============================================================
   LOADING & ERROR
   ============================================================ */

.carousel-loading {
    text-align: center;
    padding: 60px 0;
}

.carousel-loading .spinner-border {
    width: 3.5rem;
    height: 3.5rem;
    border-width: 3px;
}

.carousel-loading p {
    color: #7b8ba3;
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 500;
}

.carousel-error {
    text-align: center;
    padding: 50px 0;
}

.carousel-error i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 16px;
}

.carousel-error .retry-btn {
    margin-top: 16px;
    border-radius: 30px;
    padding: 8px 30px;
    font-weight: 600;
}

/* ============================================================
   FALLBACK GRID
   ============================================================ */

.package-grid-fallback {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding: 10px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 576px) {
    .package-carousel-wrapper {
        padding: 25px 0 20px;
        border-radius: 16px;
    }
    
    .package-carousel-wrapper .section-title {
        font-size: 1.2rem;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .package-carousel-wrapper .section-title i {
        font-size: 1.2rem;
        padding: 8px;
    }
    
    .package-carousel-wrapper .section-title .title-underline {
        display: none;
    }
    
    .owl-carousel .owl-nav button {
        width: 32px;
        height: 32px;
        font-size: 0.7rem !important;
    }
    
    .owl-carousel .owl-nav .owl-prev {
        left: -8px;
    }
    
    .owl-carousel .owl-nav .owl-next {
        right: -8px;
    }
    
    /* Compact price on mobile */
    .price-on-image {
        top: 8px;
        right: 8px;
        padding: 4px 10px 6px;
        min-width: 55px;
        border-radius: 8px;
    }
    
    .price-on-image .price-label {
        font-size: 0.35rem;
        letter-spacing: 1px;
    }
    
    .price-on-image .price-amount {
        font-size: 0.9rem;
    }
    
    .price-on-image .price-amount .currency {
        font-size: 0.5rem;
    }
    
    .price-on-image .price-amount .price-number {
        font-size: 0.9rem;
    }
    
    .price-on-image .price-note-small {
        font-size: 0.3rem;
        letter-spacing: 0.5px;
    }
    
    .package-code-badge {
        top: 8px;
        left: 8px;
        font-size: 0.4rem;
        padding: 2px 8px;
    }
    
    .package-title {
        font-size: 0.78rem;
        min-height: 2rem;
    }
    
    .package-description {
        font-size: 0.68rem;
        min-height: 1.8rem;
    }
    
    .category-badge {
        font-size: 0.45rem;
        padding: 1px 7px;
    }
    
    .view-btn {
        font-size: 0.62rem;
        padding: 4px 12px;
    }
    
    .package-card-carousel {
        border-radius: 14px;
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .owl-carousel .owl-nav .owl-prev { left: -10px; }
    .owl-carousel .owl-nav .owl-next { right: -10px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .owl-carousel .owl-nav .owl-prev { left: -14px; }
    .owl-carousel .owl-nav .owl-next { right: -14px; }
}

/* ============================================================
   DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
    .package-carousel-wrapper {
        background: linear-gradient(135deg, #1a2639, #0f1a2e);
    }
    
    .package-carousel-wrapper .section-title {
        color: #f0f4f9;
    }
    
    .package-carousel-wrapper .section-title i {
        background: #2a3a4f;
        color: #6bb8ff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .package-card-carousel {
        background: #2a3a4f;
        border-color: #3a4a5f;
    }
    
    .package-info {
        background: #2a3a4f;
    }
    
    .package-title {
        color: #f0f4f9;
    }
    
    .package-card-carousel:hover .package-title {
        color: #6bb8ff;
    }
    
    .package-description {
        color: #a0b0c5;
    }
    
    .category-badge {
        background: linear-gradient(135deg, #2a3a5f, #1e2a4a);
        color: #8bb8ff;
        border-color: #3a4a6f;
    }
    
    .package-card-carousel:hover .category-badge {
        background: linear-gradient(135deg, #4a7acc, #6bb8ff);
        color: #1a2639;
        border-color: #6bb8ff;
    }
    
    .view-btn {
        border-color: #6bb8ff;
        color: #6bb8ff;
    }
    
    .package-card-carousel:hover .view-btn {
        background: #6bb8ff;
        color: #1a2639;
    }
    
    .price-on-image {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(10, 20, 40, 0.9));
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .owl-carousel .owl-nav button {
        background: #2a3a4f !important;
        color: #6bb8ff !important;
        border-color: #3a4a5f !important;
    }
    
    .owl-carousel .owl-nav button:hover {
        background: #6bb8ff !important;
        color: #1a2639 !important;
    }
}