/* =========================
   Packages Page Styles
   ========================= */

.packages-hero {
    background: linear-gradient(to right, rgba(11, 63, 38, 0.85), rgba(11, 63, 38, 0.6)), url('https://images.unsplash.com/photo-1506012787146-f92b2d7d6d96?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    padding: 100px 40px;
    color: white;
    text-align: center;
    border-radius: 28px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.packages-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.packages-hero .eyebrow {
    color: var(--accent);
    font-size: 15px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 800;
}

.packages-hero h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    margin: 0 0 24px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.packages-hero .sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Bar */
.packages-filter {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.filter-bar {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group select {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(11, 106, 60, 0.2);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background-color: var(--soft);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: var(--primary);
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(11, 106, 60, 0.1);
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.package-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(11, 106, 60, 0.08);
    position: relative;
    /* Avoid overflow hidden on the whole card if it breaks hover scale */
    /* Wait, the card has glass-card class which adds box-shadow and blur */
}

/* Wrapper to round the top corners of the image without clipping the whole card */
.image-wrapper {
    overflow: hidden;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    /* If the card is a glass card, we can just clip the whole thing but let's do this */
    transform: translateZ(0);
    /* Safari fix */
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(12, 38, 24, 0.12);
}

.package-card:hover .package-img {
    transform: scale(1.05);
}

.package-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
}

.package-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.package-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.package-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.package-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 0 0 12px;
    color: var(--ink);
    line-height: 1.3;
}

.package-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}

.package-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(11, 106, 60, 0.1);
}

.package-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.package-meta svg {
    color: var(--primary);
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-price {
    display: flex;
    flex-direction: column;
}

.price-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}

.price-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: rgba(11, 106, 60, 0.05);
    color: var(--primary);
}

.page-number.active {
    background: var(--primary);
    color: white;
}

/* Nav Active State matching */
.nav-packages .site-nav a[href="packages.html"] {
    background: rgba(11, 106, 60, 0.14);
    color: #0b3f26;
    box-shadow: inset 0 0 0 1px rgba(11, 106, 60, 0.16);
}

/* Animations */
.animate-enter {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Media Queries */
@media (max-width: 980px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: 16px;
    }

    .filter-group {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 600px) {
    .packages-hero {
        padding: 80px 20px;
        min-height: auto;
    }

    .packages-hero h1 {
        font-size: 38px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .packages-filter {
        padding: 20px;
    }
}