/* Hild House Carousel Styles */

.hildhouse-carousel-wrapper {
    background-color: #EBE4D4;
    padding: 40px 0px;
    position: relative;
    overflow: hidden;
    padding-left: calc((100vw - 1340px) / 2);
}

.hildhouse-carousel {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 40px;
    padding-top: 100px;
}

/* Carousel on house page - no top padding */
.hildhouse-carousel.hildhouse-house {
    padding-top: 0px;
}

.hildhouse-carousel .splide__track {
    border-radius: 0px;
    overflow: hidden;
    position: relative;
}

/* Fade overlay on the right side */
.hildhouse-carousel .splide__track::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: linear-gradient(to right, transparent, #EBE4D4);
    pointer-events: none;
    z-index: 5;
}

.hildhouse-carousel .splide__slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

/* Triangle on each slide - top left */
.hildhouse-carousel .splide__slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 40px solid #D9D0BD;
    border-right: 40px solid transparent;
    z-index: 3;
    pointer-events: none;
    opacity: 0.6;
    transition: border-width 0.3s ease;
}

.hildhouse-carousel .splide__slide:hover::before {
    border-top-width: 70px;
    border-right-width: 70px;
}

.hildhouse-carousel .splide__slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hildhouse-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
    z-index: 2;
}

.hildhouse-carousel-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.hildhouse-carousel-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Navigation Arrows - top */
.hildhouse-carousel .splide__arrows {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 10;
    display: flex;
    gap: 10px;
}
/* Navigation arrows on house page - bottom */

.hildhouse-house .splide__arrows {
    bottom: 0px;
    top: auto;
    left: 0px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

/* House carousel without front page style: hide pagination dots */
.hildhouse-carousel.hildhouse-house:not(.hildhouse-frontpage-style) .splide__pagination {
    display: none !important;
}

/* Front page style: arrows above the slides (like esilehe slider) */
.hildhouse-carousel.hildhouse-house.hildhouse-frontpage-style {
    padding-top: 80px; /* space above track for arrows */
}
.hildhouse-carousel.hildhouse-house.hildhouse-frontpage-style .splide__arrows {
    top: 0;
    bottom: auto;
    left: 0;
}

.hildhouse-carousel .splide__arrow {
    width: 50px;
    height: 50px;
    background-color: #EBE4D4;
    border: 1px solid #777b61ba;
    opacity: .7;
    border-radius: 0px;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
}

.hildhouse-carousel .splide__arrow:hover {
    background-color: #D9D0BD;
    border-color: #777B61;
}

.hildhouse-carousel .splide__arrow--prev {
    left: 0;
}

.hildhouse-carousel .splide__arrow--next {
    right: 0;
}

.hildhouse-carousel .splide__arrow svg {
    display: none;
}

/* Custom arrow SVG - Right arrow */
.hildhouse-carousel .splide__arrow--next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 14px;
    background-image: url('https://hildhouse.ee/wp-content/uploads/2025/12/Vector-84-1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Custom arrow SVG - Left arrow (flipped) */
.hildhouse-carousel .splide__arrow--prev::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(-1);
    width: 20px;
    height: 14px;
    background-image: url('https://hildhouse.ee/wp-content/uploads/2025/12/Vector-84-1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Pagination Dots - Bottom Right */
.hildhouse-carousel .splide__pagination {
    position: absolute;
    bottom: 10px;
    right: 30px;
    left: auto;
    width: auto;
    z-index: 10;
    padding-right: calc((100vw - 1400px) / 2);
}

.hildhouse-carousel .splide__pagination__page {
    width: 10px;
    height: 10px;
    background-color: #D9D0BD;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 1;
    transition: all 0.3s ease;
}

.hildhouse-carousel .splide__pagination__page.is-active {
    background-color: #8B9A6B;
    transform: scale(1.2);
}

.hildhouse-carousel .splide__pagination__page:hover {
    background-color: #A8B88A;
    transform: scale(1.1);
}


/* Responsive Design */
@media (max-width: 768px) {
    .hildhouse-carousel-wrapper {
        padding: 20px 10px;
    }
    
    .hildhouse-carousel .splide__track::after {
        width: 100px;
    }
    
    .hildhouse-carousel .splide__arrow {
        width: 40px;
        height: 40px;
    }
    
    .hildhouse-carousel .splide__arrow--next::before,
    .hildhouse-carousel .splide__arrow--prev::before {
        width: 20px;
        height: 12px;
    }
    
    .hildhouse-carousel .splide__arrows {
        bottom: 20px;
        left: 0;
    }
    
    .hildhouse-carousel .splide__pagination {
        bottom: 20px;
        right: 20px;
    }
    
    .hildhouse-carousel-content {
        padding: 20px;
    }
    
    .hildhouse-carousel-content h3 {
        font-size: 20px;
    }
    
    .hildhouse-carousel-content p {
        font-size: 14px;
    }

    .hildhouse-carousel .splide__slide {
        min-height: 250px;
    }
}

