/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.home .destinacions-list,
.home .experiencies-list,
.single .destinacions-list,
.single .experiencies-list,
.single .entrades-list,
.posts-list.busqueda,
.destinacions-list.relacionats-tax,
.experiencies-list.relacionats-tax,
.entrades-list.relacionats-tax {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    justify-content: space-between;
}

.home .destinacions-list,
.home .experiencies-list {
    gap: 30px;
}

.home .entrades-list {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px 30px;
}

.home .entrades-list div.entrades-item:first-child {
    grid-row: span 2;
    padding: 30px;
    background-color: var(--e-global-color-accent);
    height: 100%;
    display: flex;
    align-items: center;
    border-radius: 5px;

    h3 {
        color: white;
    }
}

.destinacions-list,
.experiencies-list,
.entrades-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    grid-column-start: 2;
}

.destinacio-item,
.experiencies-item,
.entrades-item {
    /* box-shadow: 0 0 10px 5px #f5f5f5;
    border-radius: 5px; */

    .destinacio-img,
    .experiencies-img,
    .entrades-img {
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }

    img {
        /* border-top-left-radius: 5px;
        border-top-right-radius: 5px; */
        border-radius: 5px;
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .destinacio-cos,
    .experiencies-cos,
    .entrades-cos {
        /* padding: 20px; */
        padding-top: 20px;
        text-align: center;

        p {
            color: #666;
        }
    }

    h3,
    h3 a,
    h3 a:hover {
        font-weight: bold;
        margin: 0;
        color: var(--e-global-color-text);
        /* margin: 0 0 10px;
        text-transform: uppercase; */
    }

    .destinacio-taxonomies,
    .experiencies-taxonomies,
    .entrades-taxonomies {
        display: flex;
        /* gap: 10px; */
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        margin-top: 8px;

        span {
            /* padding: 2px 10px;
            border-radius: 5px;
            color: white; */
            color: black;
        }

        /* .regio {
            background-color: var(--e-global-color-e1d5954);
        }

        .tipus,
        .categoria,
        .category {
            background-color: var(--e-global-color-21deff1);
        } */

        span:not(:first-child)::before {
            content: "-";
            margin: 0 8px;
        }
    }

    .btns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        gap: 10px;
        margin-top: 12px;

        .reservar {
            background-color: var(--e-global-color-accent);
            color: white;
            border-radius: 5px;
            padding: 5px;
        }

        .info {
            background-color: var(--e-global-color-143d521);
            color: black;
            border-radius: 5px;
            padding: 5px;
        }
    }

    .preu {
        color: black;
        display: block;
    }
}

.yith-infs-loader {
    grid-column: span 2;
    margin: 0;
}

.paginacio {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    grid-column: span 2;
    justify-content: center;

    span,
    a {
        background-color: var(--e-global-color-accent);
        border-radius: 5px;
        padding: 10px 20px;
        color: white;
        line-height: 1;
    }

    a:hover {
        color: white;
        background-color: var(--e-global-color-secondary);
    }

    span.current {
        background-color: var(--e-global-color-secondary);
    }
}

.filtres-wrapper {
    display: grid;
    gap: 20px;
    height: fit-content;
    box-shadow: 0 0 10px 5px #f5f5f5;
    border-radius: 5px;
    padding: 20px;
    position: sticky;
    top: 110px;
    background-color: white;
}

.filtres-wrapper>div {
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    display: none;

    button {
        padding: 5px 10px;
    }
}

.destinacions-filter,
.experiencies-filter,
.entrades-filter {
    display: grid;
    gap: 20px;
}

.reiniciar-filtres {
    background-color: var(--e-global-color-secondary);
    border-radius: 5px;
    padding: 10px 20px;
    color: white !important;
    text-align: center;
}

.entrades-data {
    margin-bottom: 10px;
    display: block;
    color: black;
}

.post-tax-terms {
    /* display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end; */

    span:not(:first-child)::before {
        content: "-";
        margin: 0 8px;
    }

    /* span {
        padding: 2px 10px;
        border-radius: 5px;
        color: white;
    } */

    /* .regio {
        background-color: var(--e-global-color-e1d5954);
    }

    .tipus,
    .categoria,
    .category {
        background-color: var(--e-global-color-21deff1);
    } */
}

.single .recomanat {
    img {
        border-radius: 5px;
        max-width: 800px;
        margin: 0 auto !important;
        display: block;
    }
}

.informacio-basica {
    display: grid;
    gap: 20px;

    div {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

.grecaptcha-badge {
    z-index: 99999 !important;
}

.flickity-viewport,
.flickity-slider,
.flickity-viewport img,
.flickity-viewport .slide {
    border-radius: 5px !important;
}

.flickity-viewport img {
    width: 100% !important;
    height: 100% !important;
}

.flickity-page-dots {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
}

.flickity-page-dots .dot {
    border-radius: 3px !important;
    width: 40px !important;
    height: 6px !important;
    background-color: #FFFFFF66 !important;
    margin: 0 6px !important;
    opacity: 1 !important;
}

.flickity-page-dots .dot.is-selected {
    background-color: white !important;
}

div.destacats {
    padding-bottom: 30px;
}

div.destacats:nth-child(3) {
    border-bottom: 3px solid var(--e-global-color-accent);
    margin-bottom: 30px;
    padding-bottom: 60px;
}

div.destacats>h2 {
    grid-column: span 3;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--e-global-color-accent);
}

div.destacats .destacat div {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

div.destacats .destacat div img {
    border-radius: 5px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

div.destacats .destacat div h3 {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 6px;
    border-radius: 5px;
    margin: 0;
    color: white;
    font-size: 24px;
    /* min-width: 200px; */
    width: calc(100% - 40px);
    text-align: center;
}

button.elm-readmore-btn {
    padding: 5px 20px;
}

.regio-destinacio {
    h2 {
        color: var(--e-global-color-accent);
        margin: 0;
        font-size: 28px;
        font-weight: 600;
    }

    img {
        border-radius: 5px;
    }

    .desc {
        font-weight: bold;
        margin: 0;
    }
}

.destinacions-ext-list {
    display: grid;
    gap: 30px;

    .destinacio-ext-item {
        padding: 30px;
        background-color: var(--e-global-color-143d521);
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 30px;
        border-radius: 5px;

        .destinacio-ext-img {
            border-radius: 5px;
            min-width: 250px;
            aspect-ratio: 4 / 3;
            overflow: hidden;

            img {
                object-fit: cover;
                width: 100%;
                height: 100%;
                border-radius: 5px;
            }
        }

        .destinacio-ext-cos {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 18px;

            h3 {
                margin: 0;
                font-size: 22px;
                font-weight: bold;
                color: var(--e-global-color-accent);
            }

            .destinacio-ext-taxonomies {
                display: flex;
                flex-wrap: wrap;
                align-items: flex-start;

                span:not(:first-child)::before {
                    content: "-";
                    margin: 0px 8px;
                }
            }

            .desc {
                font-weight: bold;
                margin: 0;
            }

            .text-50 {
                display: none;
            }

            .info {
                background-color: var(--e-global-color-accent);
                color: white;
                border-radius: 5px;
                padding: 5px 20px;
                width: fit-content;
            }
        }
    }
}

@media (max-width: 1024px) {

    .home .posts-list,
    .single .posts-list,
    .posts-list,
    .experiencies-list,
    .single .experiencies-list,
    div.destacats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .home .entrades-list div.entrades-item:first-child {
        grid-row: span 1;
        grid-column: span 2;
        padding: 20px;
    }

    div.destacats {
        padding-bottom: 20px;
    }

    div.destacats:nth-child(3) {
        margin-bottom: 20px;
        padding-bottom: 40px;
    }

    div.destacats>h2 {
        grid-column: span 2;
    }


    .text-50 {
        display: block !important;
    }

    .text-150 {
        display: none;
    }
}

figure .wp-element-caption {
    text-align: center;
    margin-top: -15px;
}

@media (max-width: 768px) {

    .home .posts-list,
    .single .posts-list,
    .posts-list,
    .home .experiencies-list,
    .posts-list.busqueda {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .experiencies-list.posts-list.relacionades {
        grid-template-columns: 1fr !important;

        .experiencies-taxonomies {
            font-size: 14px;
        }
    }

    .yith-infs-loader {
        grid-column: span 1;
    }

    form.enodata-filter {
        display: grid;
    }

    .home .destinacions-list,
    .home .experiencies-list {
        display: flex !important;
        overflow: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .destinacio-item,
    .experiencies-item,
    .entrades-item {
        flex: 0 0 56vw;

        h3 {
            font-size: 16px;
        }
    }

    .home .destinacions-list::-webkit-scrollbar,
    .home .experiencies-list::-webkit-scrollbar {
        display: none;
    }

    .destinacio-item .destinacio-taxonomies,
    .experiencies-item .experiencies-taxonomies,
    .destinacions-ext-list .destinacio-ext-item .destinacio-ext-cos .destinacio-ext-taxonomies {
        /* display: grid; */
        font-size: 11px;
        margin-top: 5px;

        span:not(:first-child)::before {
            /* display: none; */
            margin: 0 4px;
        }
    }

    .filtres-wrapper {
        position: initial;
    }

    .filtres-wrapper>div {
        display: flex;
    }

    .destinacions-filter,
    .experiencies-filter,
    .entrades-filter {
        display: none;
    }

    div.destacats .destacat div h3 {
        font-size: 16px;
        min-width: 100px;
        padding: 5px;
        width: calc(100% - 20px);
        bottom: 8px;
    }

    .experiencies-item .preu {
        font-size: 11px;
    }

    .destinacions-ext-list {
        gap: 20px;

        .destinacio-ext-item {
            gap: 20px;
            padding: 20px;
        }
    }

    .destinacions-ext-list .destinacio-ext-item .destinacio-ext-cos h3 {
        font-size: 18px;
    }
}

@media (max-width: 425px) {
    .regio-destinacio h2 {
        font-size: 20px;
    }

    /* div.destacats .destacat div {
        aspect-ratio: 4 / 3;
    } */

    .destinacions-ext-list .destinacio-ext-item {
        grid-template-columns: 1fr;
    }
}