/* Packages Page Styles */

/* Lazy Loading Images */
.card-image.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image {
    opacity: 1;
}

/* Hero Section */
.packages-hero {
    position: relative;
    width: 100%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-background.active {
    opacity: 1;
}

.packages-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.45)
    );
    z-index: 1;
}

.packages-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
    animation: heroContentFadeIn 0.8s ease-out 0s both;
}

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.packages-hero .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.hero-underline {
    width: 80px;
    height: 3px;
    background: #C6A75E;
    margin: 0 auto 1.5rem;
    animation: underlineExpand 0.8s ease-out 0.1s backwards;
}

@keyframes underlineExpand {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

.packages-hero .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    animation: heroContentFadeIn 0.8s ease-out 0.2s both;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroContentFadeIn 0.8s ease-out 0.3s both;
}

.hero-cta-button {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    background: #C6A75E;
    color: #1a1a1a;
    border: 2px solid #C6A75E;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.hero-cta-button:hover {
    background: rgba(198, 167, 94, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(198, 167, 94, 0.3);
}

.hero-cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-cta-button.secondary:hover {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 3;
    animation: heroContentFadeIn 0.8s ease-out 0.4s both;
}

.hero-scroll-indicator span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border-top: none;
    border-left: none;
    transform: rotate(-45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20% {
        opacity: 1;
        transform: rotate(-45deg) translateY(0);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.2;
        transform: rotate(-45deg) translateY(10px);
    }
}

/* Packages Container */
.packages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-tab {
    background: none;
    border: none;
    color: #333333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.filter-tab::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: #C6A75E;
    transition: width 0.3s ease;
}

.filter-tab:hover {
    color: #C6A75E;
}

.filter-tab.active {
    color: #C6A75E;
}

.filter-tab.active::after {
    width: 100%;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-dropdown {
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1.5px solid #dddddd;
    color: #333333;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-dropdown:hover {
    border-color: #C6A75E;
    color: #C6A75E;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #C6A75E;
}

/* Package Grid */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Package Card */
.package-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.package-card:hover .card-image {
    transform: scale(1.1);
}

.package-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #C6A75E;
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-destination {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card-duration {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-highlights {
    margin-bottom: 1.5rem;
    flex: 1;
}

.highlight-item {
    font-size: 0.85rem;
    color: #666666;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.highlight-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #C6A75E;
    font-weight: 700;
}

.card-button {
    align-self: flex-start;
    padding: 0.75rem 1.75rem;
    background: transparent;
    border: 1.5px solid #1a1a1a;
    color: #1a1a1a;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.card-button:hover {
    background: #C6A75E;
    border-color: #C6A75E;
    color: #ffffff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 0;
}

.pagination-btn {
    padding: 0.6rem 1.25rem;
    min-width: 44px;
    min-height: 44px;
    border: 1.5px solid #dddddd;
    background: transparent;
    color: #333333;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pagination-btn:hover:not(.disabled) {
    border-color: #C6A75E;
    color: #C6A75E;
}

.pagination-btn.active {
    background: #C6A75E;
    border-color: #C6A75E;
    color: #ffffff;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CTA Section */
.packages-cta {
    background: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #888888;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #C6A75E;
    color: #1a1a1a;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background: #b39650;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 167, 94, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .packages-hero {
        height: 65vh;
    }

    .package-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .packages-hero .hero-title {
        font-size: 2.8rem;
    }

    .filter-section {
        flex-direction: column;
        gap: 1.5rem;
    }

    .filter-tabs {
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }

    .sort-section {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* ===== HERO SECTION MOBILE ===== */
    .packages-hero {
        height: 55vh;
        margin-top: 60px;
    }

    .packages-hero .hero-content {
        padding: 0 16px;
    }

    .packages-hero .hero-title {
        font-size: 32px;
        margin-bottom: 0.75rem;
        letter-spacing: 1px;
    }

    .packages-hero .hero-subtitle {
        font-size: 15px;
        margin-bottom: 0;
    }

    .hero-description {
        display: none;
    }

    .hero-underline {
        width: 50px;
        margin: 0.75rem auto 0;
    }

    .hero-cta-group {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* ===== PACKAGES CONTAINER ===== */
    .packages-container {
        padding: 24px 16px;
    }

    /* ===== FILTER SECTION MOBILE ===== */
    .filter-section {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
        padding: 0;
    }

    .filter-tabs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        white-space: nowrap;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        padding: 10px 16px;
    }

    .filter-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .filter-tabs::-webkit-scrollbar-thumb {
        background: #C6A75E;
        border-radius: 2px;
    }

    .filter-tab {
        flex: 0 0 auto;
        padding: 8px 14px;
        background: #f5f5f5;
        color: #333333;
        border: none;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .filter-tab::after {
        display: none;
    }

    .filter-tab:hover {
        background: #e8e8e8;
        color: #333333;
    }

    .filter-tab.active {
        background: #C6A75E;
        color: #ffffff;
    }

    .sort-section {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .sort-dropdown {
        padding: 8px 12px;
        font-size: 12px;
        border: 1px solid #dddddd;
        border-radius: 6px;
        background: #ffffff;
        min-width: 120px;
    }

    /* ===== PACKAGE GRID MOBILE ===== */
    .package-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }

    /* ===== PACKAGE CARD MOBILE ===== */
    .package-card {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .package-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .card-image-wrapper {
        position: relative;
        width: 100%;
        height: 220px;
        overflow: hidden;
    }

    .card-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .package-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .card-content {
        padding: 16px;
    }

    .card-destination {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .card-duration {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .card-price {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .card-highlights {
        margin-bottom: 14px;
    }

    .highlight-item {
        font-size: 13px;
        padding-left: 16px;
        margin-bottom: 4px;
    }

    .highlight-item:nth-child(n+3) {
        display: none;
    }

    .card-button {
        width: 100%;
        padding: 12px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        border: 1.5px solid #1a1a1a;
        border-radius: 8px;
        background: transparent;
        color: #1a1a1a;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .card-button:active {
        background: #C6A75E;
        border-color: #C6A75E;
        color: #ffffff;
    }

    /* ===== PAGINATION MOBILE ===== */
    .pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 20px 0 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pagination-btn {
        min-width: auto;
        padding: 8px 10px;
        min-height: 36px;
        font-size: 13px;
    }

    /* ===== CTA SECTION MOBILE ===== */
    .packages-cta {
        padding: 32px 16px;
    }

    .cta-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .cta-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }

    /* ===== FLOATING SOCIAL ICONS ===== */
    .floating-social-icons {
        display: none;
    }

    /* ===== REDUCED ANIMATIONS FOR MOBILE ===== */
    @media (prefers-reduced-motion: reduce) {
        .packages-hero .hero-background {
            transition: none;
        }

        .packages-hero .hero-content {
            animation: none;
            opacity: 1;
            transform: none;
        }

        .hero-underline {
            animation: none;
            width: 50px;
        }

        .hero-background.active {
            opacity: 1;
        }

        .package-card {
            transition: none;
        }

        .card-image {
            transition: none;
        }

        .pagination-btn {
            transition: none;
        }

        .filter-tab {
            transition: none;
        }
    }
}

@media (max-width: 480px) {
    /* === SMALL MOBILE REFINEMENTS === */
    
    .packages-container {
        padding: 20px 14px;
    }

    .packages-hero {
        height: 50vh;
    }

    .packages-hero .hero-title {
        font-size: 28px;
    }

    .packages-hero .hero-subtitle {
        font-size: 14px;
    }

    .filter-tabs {
        padding: 8px 12px;
        gap: 8px;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .sort-dropdown {
        min-width: 100px;
        font-size: 11px;
    }

    .card-content {
        padding: 14px;
    }

    .card-destination {
        font-size: 16px;
    }

    .card-duration {
        font-size: 12px;
    }

    .card-price {
        font-size: 15px;
    }

    .highlight-item {
        font-size: 12px;
    }

    .card-button {
        height: 40px;
        font-size: 13px;
    }

    .pagination {
        gap: 6px;
    }

    .pagination-btn {
        padding: 6px 8px;
        min-height: 32px;
        font-size: 11px;
    }

    .packages-cta {
        padding: 24px 14px;
    }

    .cta-title {
        font-size: 22px;
    }

    .cta-button {
        padding: 10px 20px;
    }
}

