/******************/
/*******CARD*******/
/******************/

.card-wrapper {
    /* margin: 20px; */
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
     gap: 40px;
}

.card-wrapper:is(.tns-slider) {
    gap: 0;
}

.card-wrapper:has(.tns-slider) {
    gap: 0;
}

.template .card-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: unset;
    justify-content: center;
}

.template .card-wrapper .card-container {
    display: flex;
    /* flex: 1; */
}

.journeys .listing .card-wrapper,
.accomodation .card-wrapper {
    gap: 30px;
    margin-left: unset;
}

.accomodation .card-wrapper {
    width: 100%;
}

.journeys .filters.fixed+div>.card-wrapper,
.accomodation .filters.fixed+div>.card-wrapper {
    margin-top: 106px;
}

.template .featured .card .card-content {
    flex: 1;
}

/* .template .featured .card-wrapper {
    justify-content: center;
    } */

.card {
    background-color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    box-shadow: 0px 17px 29px 0 rgba(0, 0, 0, 0.07);
    width: 100%;
    height: auto;
    min-width: 300px;
    max-width: 380px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {

    box-shadow: 0px 17px 29px 0 rgba(0, 0, 0, 0.15);

}

.hp-featured .card-wrapper {
    display: flex;
    width: 100%;
}

.hp-featured .card-wrapper .card-container {
    display: flex;
    width: 100%;
    max-width: calc(33.33% - 27px);
}

.card-wrapper .card {
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: var(--transition);
    height: auto;
    /* height: 100%; */
}

.card .image {
    overflow: hidden;
    aspect-ratio: 16/11.45;
    position: relative;
}

.journeys .listing .card .image,
.accomodation .card .image {
    aspect-ratio: 429 / 316;
}

.place .card .image {
    aspect-ratio: 380 / 280;
}


.card img {
    position: absolute;
    display: block;
    margin: auto;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.template .featured .card .image {
    aspect-ratio: unset;
}

.template .featured .card img {
    height: auto;
}

.card .image img:hover {
    transform: scale(1.05);
}

.card-content {
    padding: 20px 20px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content .desc-bot-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card .card-content>a,
.card .card-content>h3 {
    font-size: 1.375rem;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: normal;
    text-align: left;
    color: var(--black);
}

/* .accomodation .card .card-content>a,
.place .card .card-content>a {
    margin-top: 8px;
    display: block;
    font-size: 0.813rem;
    font-weight: bold;
    line-height: 1.38;
    letter-spacing: 0.65px;
    text-align: left;
    color: var(--primary);
    text-transform: uppercase;
} */

.place .card .card-content>a.subtitle,
.accomodation .card .card-content a.subtitle {
    margin-top: 8px;
    display: block;
    font-size: 0.813rem;
    font-weight: bold;
    line-height: 1.38;
    letter-spacing: 0.65px;
    text-align: left;
    color: var(--primary);
    text-transform: uppercase;
}


.featured .card .card-content>.categories+a,
.card .card-content>.categories+a {
    margin-top: 25px;
    display: block;
    font-size: 0.813rem;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.38;
    letter-spacing: 0.65px;
    text-align: left;
    color: var(--primary);
    text-transform: uppercase;
}

.card .card-content>.categories+a+h5 {
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: normal;
    letter-spacing: -0.24px;
    margin: 0;
    margin-top: 0px;
    margin-top: 15px;
}

.place .card .card-content>a+h5,
.accomodation .card .card-content>a+h5 {
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: normal;
    letter-spacing: -0.24px;
    margin: 0;
    margin-top: 16px;
}

.card .card-content>.categories+a:hover {
    color: var(--green-mo);
}

.card .card-content .card-title {
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.25;
    letter-spacing: -0.24px;
    text-align: left;
    color: var(--secondary);
    margin: 15px 15px 0 0;
}

.card .card-content .card-title:hover {
    opacity: 0.8;
}

.card .desc-bot-wrapper .description{
    margin-bottom: auto;
}

.card .desc-bot-wrapper .description p {
    font-size: 1rem;
    font-weight: 300;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.25;
    letter-spacing: normal;
    text-align: left;
    color: var(--lightblack);
    margin-bottom: 0;
}

.place .related-section .description .card p {
    margin-bottom: 20px;
}


.template .card-wrapper .card {
    height: 100%;
}

.card-wrapper .card>a:first-of-type {
    overflow: hidden;
    display: block;
}

.card-content .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-self: flex-start;
}

.card-content .categories .button,
.selected-filters span {
    position: relative;
    width: auto;
    text-transform: uppercase;
    margin-top: auto;
    color: #373d35;
    font-family: var(--font-family);
    font-size: .656rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.53px;
    padding: 9px 8px 8px;
    width: auto;
}

.selected-filters span {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.selected-filters span {
    color: var(--white);
}

.card-content .categories .button:after {
    content: "";
    display: none;
}

.card-content .categories .button:before {
    background-color: #e5f0d1;
}

.selected-filters span::before {
    background-color: #373e37;
}

.card-content .categories .button:hover:before {
    background-color: #d0deb8;
}


.card-content .bot-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-top: 34px;
}

.accomodation .card-content .bot-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-top: 17px;
}

/* .template .featured .card-content .bot-wrapper {
    padding-top: 35px;
} */

.card-content .bot-wrapper .price {
    display: flex;
    flex-direction: column;
    place-items: baseline;
    justify-content: center;
}

.card-content .bot-wrapper .price .from-div,
.card-content .bot-wrapper .price .flex-price .perpax {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 300;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.15;
    letter-spacing: normal;
    text-align: left;
    color: #8c8c8c;
    margin: 0;
}

.card-content .bot-wrapper .price .flex-price {
    display: flex;
    margin: 0;
    gap: 8px;
    align-items: end;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.card-content .bot-wrapper .price .flex-price .val-price {
    font-size: 18px;
    color: #1d1714;
    font-family: var(--font-family);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    /* width:50px; */
    margin-top: 5px;
}

.card-content .bot-wrapper .price .flex-price .perpax {
    height: inherit;
}

.card-content .bot-wrapper .button {
    padding: 12px 15px;
    font-size: 12px;
    align-items: center;
    width: auto;
}

@media(max-width: 1024px) {

    .hp-featured .card-wrapper .card {
        max-width: unset;
        min-width: unset;
    }
}

@media(max-width: 992px) {

    .card-content {
            padding: 15px;
        }

    .card img:hover {
        transform: scale(1);
    }

    .card:hover {
        box-shadow: 0px 10px 20px 0 rgba(0, 0, 0, 0.07);
    }

    .hp-featured .card-wrapper {
        gap: 20px;
    }

    .hp-featured .card-wrapper .card-container {
        max-width: calc(33.3% - 14px);
    }

    .card-content .bot-wrapper .button {
        font-size: 10px;
    }

    .card .card-content>.categories+a {
        margin-top: 18px;
    }

    .card .card-content .card-title {
        margin-top: 8px;
    }

    .card-content .bot-wrapper {
        margin-top: 16px;
        align-items: flex-end;
    }
}

@media(max-width: 768px) {
    .card {
        min-width: 230px;
        max-width: 230px;
        box-shadow: 0px 10px 20px 0 rgba(0, 0, 0, 0.05);
        border-radius: 20px;
    }

    .place .related-section .card {
        min-width: unset;
    }

    .place .related-section .card-wrapper {
        margin-left: unset;
    }

    .place .featured .card {
        min-width: unset;
        max-width: unset;
    }

    .template .featured .tns-horizontal.tns-subpixel>.tns-item {
        display: inline-flex;
    }

    .card-wrapper {
        margin-inline: 0;
        margin-left: 20px;
        gap: 0;
        justify-content: flex-start;
        padding-bottom: 13px;
    }

    .journeys .listing .card .imagem,
    .accomodation .card .image {
        aspect-ratio: 280 / 206;
    }

    .card-content .categories .button {
        font-size: 0.615rem;
        padding: 6px 10px 6px;
    }

    .card .card-content>.categories+a {
        font-size: 0.769rem;
    }

    .template .featured .card-wrapper {
        justify-content: flex-start;
    }

    .template .featured .card-wrapper .card{
        min-width: 100%;
        max-width: 100%;
    }

    .card .card-content>a {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.22;
    }

    .card .card-content .card-title {
        font-size: 1.269rem;
        line-height: 1.21;
    }

    .card p {
        font-size: 13px;
        font-weight: 300;
        line-height: 1.5;
    }

    .card-content .bot-wrapper .price .flex-price {
        gap: 5px;
        margin-top: 3px;
    }

    .card-content .bot-wrapper .price .flex-price .val-price {
        font-size: 16px;
        line-height: 1;
        margin-top: 0;
    }


    .card-content .bot-wrapper .price .from-div,
    .card-content .bot-wrapper .price .flex-price .perpax {
        font-size: 11px;
        line-height: 1;
    }

    .card-content .bot-wrapper .button {
        font-size: 10px;
        padding: 9px 11px;
        line-height: 1.2;
        letter-spacing: 0.5px;
        gap: 5px;
        width: unset;
    }

    .card-content .bot-wrapper .button:after {
        width: 12px;
        height: 9px;
    }
}

.place .card-wrapper .card-container    {
    display: flex;
}

@media(max-width: 650px) {

    .place .slider-wrapper {
        max-width: 380px;
    }
}

@media(max-width: 500px) {
    .place .related-section .card {
        min-width: 300px;
    }

    .related-section .card-wrapper {
        justify-content: center;
    }

    .place .related-section .card-wrapper {
        justify-content: flex-start;
        margin-left: 20px;
    }
    .place .related-section .card-container {
        max-width: calc(33.3% - 14px);
    }
}

.template .card-wrapper .tns-slide-active{
    transition: var(--transition);
}

