/* ================================================
   PACKAGES PAGE STYLES
   ================================================ */

:root {
    --primary: #2596be;
    --secondary: #fd9909;
    --dark: #333;
    --light: #f4f4f4;
    --white: #fff;
    --gray: #888;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero-packages {
    min-height: 500px;
    background: url('../images/packages.jpg') center/cover no-repeat; /* change filename as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-packages .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="%23000" /><rect width="1200" height="600" fill="url(%23grid)" /></svg>');
    opacity: 0.8;
}

.hero-packages .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-packages .hero-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
}

.hero-packages .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* ================================================
   PACKAGES SECTION
   ================================================ */

.packages-section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-top: 1.5rem;
}

/* ================================================
   PACKAGES GRID
   ================================================ */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* ================================================
   PACKAGE CARD
   ================================================ */

.package-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(37, 150, 190, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFadeIn 0.6s ease forwards;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.package-card:nth-child(1) { animation-delay: 0s; }
.package-card:nth-child(2) { animation-delay: 0.1s; }
.package-card:nth-child(3) { animation-delay: 0.2s; }
.package-card:nth-child(4) { animation-delay: 0.3s; }
.package-card:nth-child(5) { animation-delay: 0.4s; }
.package-card:nth-child(6) { animation-delay: 0.5s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.package-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(37, 150, 190, 0.2);
    border-color: var(--primary);
}

/* CARD IMAGE WRAPPER */
.card-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.slider-image[data-slide="0"] {
    opacity: 1;
}

/* CARD OVERLAY */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.2), rgba(253, 153, 9, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.package-card:hover .card-overlay {
    opacity: 1;
}

/* SLIDER NAVIGATION */
.slider-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image-wrapper:hover .slider-nav {
    opacity: 1;
}

.slider-prev,
.slider-next {
    background: rgba(37, 150, 190, 0.85);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-weight: bold;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--secondary);
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(253, 153, 9, 0.4);
}

/* BADGE */
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--secondary), #ff7f00);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(253, 153, 9, 0.35);
    animation: badgePulse 2.5s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* CARD CONTENT */
.card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.4;
}

.card-location {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
}

.card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* CARD META */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(37, 150, 190, 0.1);
    border-bottom: 1px solid rgba(37, 150, 190, 0.1);
    margin-top: 0.5rem;
    gap: 1rem;
}

.price-tag {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), #ff7f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.duration-tag {
    background: rgba(37, 150, 190, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* EXPLORE BUTTON */
.btn-details {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #1e7a9e);
    color: var(--white);
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-details:hover {
    background: linear-gradient(135deg, var(--secondary), #ff7f00);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 153, 9, 0.35);
}

.btn-details:hover::before {
    left: 100%;
}

/* ================================================
   CTA SECTION
   ================================================ */

.cta-section {
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.08), rgba(253, 153, 9, 0.08));
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 15px;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: fit-content;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #ff7f00);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(253, 153, 9, 0.3);
    background: linear-gradient(135deg, #ff7f00, var(--secondary));
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .hero-packages {
        min-height: 350px;
    }

    .hero-packages .hero-heading {
        font-size: 2.2rem;
    }

    .hero-packages .hero-subtitle {
        font-size: 1rem;
    }

    .packages-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .card-content {
        padding: 1.2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-packages {
        min-height: 280px;
    }

    .hero-packages .hero-heading {
        font-size: 1.6rem;
    }

    .hero-packages .hero-subtitle {
        font-size: 0.9rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .card-image-wrapper {
        height: 180px;
    }

    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        top: 8px;
        right: 8px;
    }

    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .duration-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .btn-details {
        padding: 0.8rem 1.4rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-title::after {
        width: 50px;
    }

    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

.no-packages {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: #999;
    padding: 2rem;
}