/* Hero section: green gradient background */
#homepage-section-hero {
    color: #ffffff;
}

#homepage-section-hero::before {
    overflow: hidden;
    border-bottom-left-radius: 34px;
    padding-top: 28px;
    padding-bottom: 32px;
}

@media (min-width: 768px) {
    #homepage-section-hero::before {
        border-bottom-left-radius: 55px;
        padding-top: 68px;
        padding-bottom: 55px;
    }
}

@media (min-width: 1024px) {
    #homepage-section-hero::before {
        border-bottom-left-radius: 100px;
        padding-bottom: 75px;
    }
}

#homepage-section-hero::before {

    content: '\A0';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1AAA69 0%, #0C5C38 100%);
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#homepage-section-hero .floating-text-wrapper {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.8);
    color: #0C5C38;
}

#homepage-section-hero .hero-search-wrapper > * {
    height: 55px;
}


#homepage-section-hero .homepage-hero-carousel-wrapper::before {
    content: '\A0';
    position: absolute;
    width: 124px;
    height: 124px;
    background: rgba(255, 255, 255, 0.15);
    top: 100%;
    right: 15%;
    border-radius: 50%;
    transform: translateY(-75%);
}

@media (min-width: 767px) and (max-width: 1399px) {
    #homepage-section-hero .homepage-hero-carousel-wrapper::before {
        bottom: 100%;
        right: 15%;
        transform: translateY(-75%);
    }
}

@media (min-width: 1400px) {
    #homepage-section-hero .homepage-hero-carousel-wrapper::before {
        bottom: unset;
        right: unset;
        top: 50%;
        left: 100%;
        transform: translateX(-50%) translateY(-50%);
    }
}


#homepage-section-hero .hero-search-button::before {
    content: '\A0';
    display: flex;
    background: url('/build/assets/icon-search-DA1_IyeL.svg') no-repeat center center / contain;
    width: 28px;
    height: 28px;
}

/* @media (min-width: 1024px) {
    #homepage-section-hero {
        background: linear-gradient(180deg, #1AAA69 0%, #0A442A 100%);
    }
} */

/* Categories section */
#homepage-categories .dei-banner {
    background: linear-gradient(to right, #f87215, #dd2924);
}

#homepage-categories .dei-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/homepage/dei-banner-bg.png') no-repeat center center / cover;
    opacity: 0.2;
    border-radius: 28px;
    z-index: 0;
}

#homepage-categories .dei-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: white;
    border-radius: 50%;
    z-index: 0;
}

/* Featured parks carousel */
#homepage-categories .park-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#homepage-categories .park-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

#homepage-categories .featured-parks-prev.swiper-button-disabled,
#homepage-categories .featured-parks-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Category cards: no card background; overlay layers via ::before / ::after, hover crossfade */
.card-category-item {
    background: none;
}

.card-category-item::before,
.card-category-item::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 28px;
    transition: opacity 300ms ease-out;
}

.card-category-item::before {
    background: rgba(0, 0, 0, 0.75);
    opacity: 1;
}

.card-category-item::after {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, #1AAA69 100%);
    opacity: 0;
}

.card-category-item:hover::after {
    opacity: 1;
}

#homepage-section-how-it-works {
    background: linear-gradient(180deg, #fafafa 0%, #FAFAFA 25%, #F4F4F4 100%);
}

#homepage-section-how-it-works .progress-line .progress-item::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    border-right: 4px solid #F1F1F1;
}

#homepage-section-links {
    position: relative;
}

#homepage-section-links::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 0%;
    width: 100%;
    min-height: 550px;
    height: 1000px;
    background: #fafafa var(--section-bg-links-url) no-repeat bottom center / cover;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 1250px) {
    #homepage-section-links + section {
        margin-top: -225px;
    }
}