/* ================================================
   SERENDIB PACKAGES 3D - PAGE SPECIFIC STYLES
   ================================================ */
/* ================================================
   HERO SECTION (SAFARI STYLE)
   ================================================ */
.vehicles-hero-3d {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
    padding: 80px 0;
}

.hero-bg-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #0D9488 100%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

.hero-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-main-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,

        );
    z-index: 1;
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-header-3d {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* ================================================
   3D CANVAS BACKGROUND
   ================================================ */
.three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

/* ================================================
   PACKAGES HERO 3D
   ================================================ */
.packages-hero-3d {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
    padding: 80px 0;
}

.hero-bg-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #0D9488 100%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

.packages-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.packages-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: 20px;
}

.packages-hero-title .title-line {
    display: block;
    animation: slide-up 0.8s var(--ease-bounce) backwards;
}

.packages-hero-title .title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.packages-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fade-in 1s ease 0.6s backwards;
}

/* ================================================
   FILTER SECTION 3D
   ================================================ */
.filter-section-3d {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(92, 80, 17, 0.2) 0%, rgba(133, 177, 174, 0.2) 100%);
}

.filter-card-3d {
    padding: 40px;
    background: rgba(157, 236, 227, 0.3);
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-base);
}

.filter-card-3d:hover {
    transform: translateY(-5px);
}

.filter-main {
    margin-bottom: 30px;
}

.search-field-3d {
    position: relative;
    margin-bottom: 30px;
}

.search-icon-3d {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--slate-medium);
    pointer-events: none;
}

.search-input-3d {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-family: var(--font-primary);
    color: var(--slate-dark);
    transition: var(--transition-base);
}

.search-input-3d:focus {
    outline: none;
    border-color: var(--ocean-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.filter-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-item-3d {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label-3d {
    font-weight: var(--font-weight-medium);
    color: var(--slate-dark);
    font-size: 14px;
}

.filter-select-3d {
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(13, 148, 136, 0.4);
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--slate-dark);
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-select-3d:hover {
    background: var(--white);
    border-color: var(--ocean-teal);
}

.filter-select-3d:focus {
    outline: none;
    border-color: var(--ocean-teal);
    box-shadow: var(--shadow-md);
}

.theme-pills-3d {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.theme-pill-3d {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--slate-dark);
    cursor: pointer;
    transition: var(--transition-base);
    transform-style: preserve-3d;
}

.theme-pill-3d:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-pill-3d.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.filter-actions-3d {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ================================================
   PACKAGES GRID 3D
   ================================================ */
.packages-grid-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.results-header-3d {
    margin-bottom: 50px;
    text-align: center;
}

.results-info-3d {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.section-title-3d {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--slate-dark);
}

.results-count-3d {
    color: var(--slate-medium);
    font-size: 16px;
}

.packages-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.packages-grid-3d.loading {
    opacity: 0.5;
    pointer-events: none;
}



/* ================================================
   LOADING & NO RESULTS
   ================================================ */
.loading-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.skeleton-card-3d {
    height: 450px;
    background: linear-gradient(90deg,
            var(--sand) 0%,
            #e0e0e0 50%,
            var(--sand) 100%);
    background-size: 200% 100%;
    border-radius: var(--radius-xl);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.no-results-3d {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results-3d h3 {
    font-size: 28px;
    color: var(--slate-dark);
    margin-bottom: 12px;
}

.no-results-3d p {
    color: var(--slate-medium);
    margin-bottom: 30px;
}

/* ================================================
   CTA SECTION 3D (from homepage)
   ================================================ */
.cta-3d {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #0D9488 100%);
    z-index: 0;
}

.cta-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

.cta-content-3d {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title-3d {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
}

.word-3d {
    display: inline-block;
    animation: word-float 3s ease-in-out infinite;
}

.word-3d:nth-child(2) {
    animation-delay: 0.2s;
}

.word-3d:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes word-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.word-3d.gradient {
    background: linear-gradient(45deg, var(--white), var(--cinnamon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons-3d {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-3d-hero {
    position: relative;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--jungle-green);
    background: var(--white);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-3d-hero.secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-3d-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--ocean-teal);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 0;
}

.btn-3d-hero:hover .btn-bg {
    width: 300px;
    height: 300px;
}

.btn-3d-hero .btn-text {
    position: relative;
    z-index: 2;
}

.cta-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-features .feature {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fade-in-up 0.6s ease backwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
/* Stagger animation delays */
.listing-card-3d:nth-child(1) {
    animation-delay: 0s;
}

.listing-card-3d:nth-child(2) {
    animation-delay: 0.1s;
}

.listing-card-3d:nth-child(3) {
    animation-delay: 0.2s;
}

.listing-card-3d:nth-child(4) {
    animation-delay: 0.3s;
}

.listing-card-3d:nth-child(5) {
    animation-delay: 0.4s;
}

.listing-card-3d:nth-child(6) {
    animation-delay: 0.5s;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {

    .packages-grid-3d,
    .loading-grid-3d {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }

    .filter-grid-3d {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .packages-hero-3d {
        min-height: 40vh;
        padding: 60px 0;
    }

    .filter-card-3d {
        padding: 24px;
    }

    .filter-actions-3d {
        flex-direction: column;
    }

    .filter-actions-3d button {
        width: 100%;
    }

    .packages-grid-3d,
    .loading-grid-3d {
        grid-template-columns: 1fr;
        gap: 24px;
    }



    .cta-buttons-3d {
        flex-direction: column;
        align-items: center;
    }

    .cta-features {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .packages-hero-title {
        font-size: 2rem;
    }

    .theme-pills-3d {
        justify-content: flex-start;
    }

    .theme-pill-3d {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* ================================================
   ACCESSIBILITY - REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}