/* =========================================================
   TQP FILTERS ACF - TOUR CARDS
   Componente visual de tarjetas de tours.

   IMPORTANTE SOBRE TAGS:
   - El plugin solo conserva aquí el contenedor estructural.
   - Colores, solid/outline, tipografía y tokens de las etiquetas
     deben definirse desde los estilos globales del sitio.
   ========================================================= */

:root {
    --tqp-card-border: #D8E2E8;
    --tqp-featured-ink: #102A3A;
    --tqp-featured-bronze: #8C6A36;
    --tqp-featured-champagne: #F7F4EE;
}

/* =========================================================
   TARJETA
   ========================================================= */

.tqp-tour-card {
    position: relative;
    width: 265px;
    height: 410px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--tqp-card-border);
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease;
}

.tqp-tour-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgb(0 0 0 / 8%);
}

/* =========================================================
   FEATURED / DESTACADO
   Featured modifica la jerarquía de la card; no es un tag.
   ========================================================= */

.tqp-tour-card--featured {
    border-color: #CCD9E0;
    box-shadow: 0 8px 24px rgb(16 42 58 / 10%);
}

.tqp-tour-card--featured::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 6;
    height: 3px;
    background: var(--tqp-featured-ink);
    pointer-events: none;
}

.tqp-tour-card--featured:hover {
    border-color: var(--tqp-featured-bronze);
    box-shadow: 0 10px 26px rgb(16 42 58 / 14%);
}

.tqp-tour-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--tqp-featured-ink);
    color: #fff;
    box-shadow: 0 3px 10px rgb(16 42 58 / 18%);
    font-family: "Roboto", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.tqp-tour-featured-badge__icon {
    color: var(--tqp-featured-bronze);
    font-size: 12px;
    line-height: 1;
}

.tqp-tour-featured-badge__text {
    color: inherit;
    line-height: 1;
}

/* =========================================================
   IMAGEN
   ========================================================= */

.tour-thumbnail {
    display: block;
    width: 265px;
    height: 200px;
    flex: 0 0 200px;
    overflow: hidden;
    background: #f4f4f4;
}

.tour-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   CONTENIDO DE LA TARJETA
   ========================================================= */

.tour-card-content {
    position: relative;
    width: 100%;
    height: 210px;
    padding: 15px;
    padding-bottom: 68px;
    box-sizing: border-box;
    overflow: hidden;
}

/* =========================================================
   DESTINOS
   ========================================================= */

.tour-destinos-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 10px;
    min-height: 24px;
}

.tour-destinos-icon {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    color: #808080;
    margin-top: 2px;
}

.tour-destinos-icon svg,
.tour-destinos-icon i {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.tour-destinos-line .fa-solid,
.tour-destinos-line .fa {
    font-size: 11px;
    color: #808080;
}

.tour-destinos-text {
    color: #808080;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
}

/* =========================================================
   TÍTULO
   ========================================================= */

.tour-title {
    margin: 0 0 12px;
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    color: #1f1f1f;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.01em;
}

.tour-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* =========================================================
   CONTENEDOR ESTRUCTURAL DE TAGS

   No definir aquí background, color, border, padding,
   border-radius ni la apariencia primary/secondary.
   Esas reglas pertenecen a los estilos globales.
   ========================================================= */

.tour-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
    margin: 0;
    min-height: 24px;
    max-height: 52px;
    overflow: hidden;
}

/* =========================================================
   LÍNEA DIVISORA
   ========================================================= */

.tour-card-divider {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 49px;
    height: 1px;
    margin: 0;
    background: #dcdcdc;
}

/* =========================================================
   BLOQUE INFERIOR
   ========================================================= */

.tour-meta {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 15px;
    min-height: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 12px;
    margin: 0;
    padding: 0;
}

.tour-duration-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.tour-duration-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 4px;
    color: #808080;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 10.67px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: lowercase;
}

.tour-duration-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    color: #808080;
}

.tour-duration-icon svg {
    display: block;
    width: 12px;
    height: 12px;
}

.tour-duration-value {
    margin: 0;
    color: #808080;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.01em;
}

.tour-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    min-width: max-content;
    margin: 0;
    padding: 0;
}

.tour-price-value {
    margin: 0;
    color: #1f1f1f;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.tour-price-note {
    margin: 2px 0 0;
    color: #808080;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

/* =========================================================
   RESPONSIVE DE LA CARD
   ========================================================= */

@media (max-width: 480px) {
    .tqp-tour-card {
        width: 100%;
        max-width: 265px;
        height: 410px;
    }

    .tour-thumbnail {
        width: 100%;
        max-width: 265px;
        height: 200px;
    }

    .tour-meta {
        gap: 10px;
    }

    .tour-price-value {
        font-size: 13px;
    }

    .tqp-tour-featured-badge {
        top: 10px;
        right: 10px;
        min-height: 24px;
        padding-inline: 9px;
        font-size: 9.5px;
    }
}