/*
 * Estilos para el plugin Tour Manager
 */

 .tour-block-wrapper {
    min-width:100%;
    display: flex;
    flex-direction: row;
    gap: .5em;
    flex-wrap: wrap;
    overflow-x: scroll;
}

.tour-card {
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background: #ffffff67;
    position: relative;
}
.tour-card>a{
    display:block;
    border: 3px solid #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width:100%;
    height:100%;
}
.tour-card>a button{
    background-color: lightgrey;
    border:0;
    pointer-events: none;
    padding: 1em 1.5em;
}
.tour-card-image {
    position: relative;
}

.tour-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.tour-card-badge {
    position: absolute;
    bottom: 0px;
    right: 1em;
    background: #ffd500;
    color: black;
    padding: .5em 1em;
    font-size: .7em;
    text-transform: uppercase;
    border-radius: .25em;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.tour-card-content {
    padding: 1em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tour-card-content h3 {
    margin: 0;
    font-size: 1.25rem;
}
.tour-card-content h3+h4 {
    margin: 0;
    margin-bottom: 1em;
    font-size: 1rem;
    font-weight: 400;
    color:var(--wp--preset--color--primary);
}

.complete_tag:before{
    display: inline-block;
    border:2px dashed darkred;
    background-color: lightpink;
    color: darkred;
    width: auto;
    padding: .05em .3em;
    font-size: .6em;
    content: ".";
    text-transform: uppercase;
    font-weight: 600;
    vertical-align: text-top;
}
html[lang=es] .complete_tag:before{
    content:"Completo" !important;
}
html[lang=en-US] .complete_tag:before{
    content:"Complete" !important;
}
.tour-card>a{
    text-decoration: none;
    color:var(--wp--preset--color--always-dark-stuff);
}
.tour-card>a:hover{
    background-color:rgb(239,239,234);
}

/* Estilo para la tarjeta GARANTIZADA */
.tour-card.garantizada>a {
    border-color: #ffd500;
}
.tour-card.garantizada>a>div.tour-card-content {
    border-top: 3px solid #ffd500;
}
.tour-card.single_tour{
    border-left: 1em solid var(--wp--preset--color--primary);
}
.tour-card.single_tour:after{
    content:"➜";
    position:absolute;
    bottom:.5em;
    right:.5em;
    font-size: 1.2em;
    color:var(--wp--preset--color--primary);
    pointer-events: none;
}
.tour-card.single_tour p{
    margin:0;
}

.tour-card:not(.single_tour):not(.featured_card) .tour-card-content{
    height:16em;
}

.tour-card:not(.single_tour):not(.featured_card) .tour-card-content button{
    border-radius: 2em;
}
.tour-card:not(.featured_card) .tour-card-content p{
    font-size: 1rem;
}
/*
FEATURED CARD
*/
.tour-card.featured_card img{
    aspect-ratio: 1/1;
}
.tour-card.featured_card>a{
    display:flex;
    flex-direction: row;
    font-size: .8em;
    height: 100%;
}
.tour-card.featured_card>a:hover{
    background-color:var(--wp--preset--color--primary);
    border-color:var(--wp--preset--color--primary);
}
.tour-card.featured_card>a>*:first-child{
    width:60%;
}
.tour-card.featured_card>a>*:last-child{
    width:40%;
}
.tour-card.featured_card>a>div.tour-card-content{
    padding-top:.5em;
}
.tour-card.featured_card>a>div.tour-card-content>*{
    margin: 0;
}
.tour-card.featured_card .tour-card-image>img{
    width: 100%;
    min-height: 100%;
}
.featured-desc{
    color:var(--wp--preset--color--primary);
    font-size: .8em;
    text-transform: uppercase;
    font-weight: 600;
}
.tour-card.featured_card>a:hover .featured-desc{
    color:white;
}
.tour-card.featured_card h3{
    font-size: 1rem;
    line-height: 1rem;
}
.tour-card.featured_card>a button{
    border-radius: 2rem;
}
.tour-card.featured_card>a:hover button{
    background-color:color-mix(in srgb, var(--wp--preset--color--primary) 90%, black 10%);
}
.tour-card.featured_card>a>div.tour-card-content strong{
    font-size: .7rem;
    display: block;
}
.tour-card {
    width: 380px;
    min-width: 350px;
    max-width: 100%;
}

.tour-card.featured_card {
    width: 450px;
    min-width: 420px;
    max-width: 100%;
}

.tour-card.single_tour {
    width: 350px;
    min-width: 330px;
    max-width: 100%;
}

/* Evitar scroll horizontal en móviles */
@media (max-width: 768px) {
    .tour-card,
    .tour-card.featured_card,
    .tour-card.single_tour {
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }
}

/* Ajuste adicional para pantallas pequeñas (móviles estrechos) */
@media (max-width: 480px) {
    .tour-card,
    .tour-card.featured_card,
    .tour-card.single_tour {
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }
}
