/* ==========================================================================
   TURISMO THEME - ARCHIVE PRODUCT / CATEGORY PAGE CSS (ISOLATED SCOPE)
   ========================================================================== */

/* Scope de seguridad para fondo blanco puro en el catálogo y las categorías */
body.tpl-archive-product,
body.tax-product_cat,
body.post-type-archive-product {
    background-color: var(--color-bg-dark) !important;
}

@media (max-width: 768px) {
    .catalog-container {
        padding-bottom: 25px !important;
    }
}

/* NOTA: Los estilos base de .tour-card-item se encuentran centralizados globalmente en core.css */

/* Interacción Táctil en Móviles */
@media (hover: none), (max-width: 768px) {
    .tour-card-item {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #e2e8f0 !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }

    .tour-card-item:active {
        transform: scale(0.98) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    }

    .tour-flip-card .flip-front-image,
    .tour-flip-card .flip-front,
    .tour-flip-card .place-image-wrapper,
    .place-card .place-image-wrapper,
    .tour-card,
    .place-card {
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    .tour-flip-card a.place-card-overlay-link,
    .tour-flip-card a.tour-card-overlay-link,
    .tour-flip-card a.woocommerce-LoopProduct-link,
    .tour-flip-card a.flip-back-link,
    .tour-flip-card a,
    .place-card a.place-card-overlay-link,
    .place-card a {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 99 !important;
        display: block !important;
        pointer-events: auto !important;
    }
}

/* ==========================================================================
   /tours/: duración en tarjetas, precios, qué incluye y preguntas frecuentes
   ========================================================================== */
.tc-section {
    padding: 72px 0;
}
.tc-section-alt {
    background-color: hsl(38, 25%, 93.5%);
}
.tc-block {
    max-width: 880px;
    margin: 0 auto;
}
/* Varios bloques en una misma sección (precios + qué incluye) */
.tc-block + .tc-block {
    margin-top: 56px;
}
.tc-block h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #0b291b;
    margin: 0 0 8px;
    line-height: 1.25;
}
.tc-lead {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 18px;
}
.tc-tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.tc-table-wrap h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0b291b;
    margin: 0 0 8px;
}
.tc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid rgba(11, 41, 27, 0.1);
    border-radius: 14px;
    overflow: hidden;
    font-size: 0.92rem;
}
.tc-table th {
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: #556274;
    padding: 10px 14px;
    background: rgba(11, 41, 27, 0.03);
}
.tc-table td {
    padding: 10px 14px;
    border-top: 1px solid rgba(11, 41, 27, 0.07);
    color: #0f172a;
}
.tc-table td:last-child,
.tc-table th:last-child {
    text-align: right;
    white-space: nowrap;
}
.tc-table td:last-child {
    font-weight: 700;
    color: #0b291b;
}
.tc-table a {
    color: inherit;
    text-decoration: none;
}
.tc-table a:hover,
.tc-table a:focus-visible {
    text-decoration: underline;
}
.tc-note {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: #556274;
}
.tc-includes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
}
.tc-includes li {
    position: relative;
    padding-left: 26px;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.5;
}
.tc-includes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    /* Check verde de la marca sobre círculo verde claro: marca cada punto sin dominar el texto */
    background: #e3efe6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314532d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.tc-faq details {
    background: #fff;
    border: 1px solid rgba(11, 41, 27, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 0 16px;
}
.tc-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 24px 14px 0;
    font-weight: 600;
    color: #0b291b;
    position: relative;
}
.tc-faq summary::-webkit-details-marker {
    display: none;
}
.tc-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #556274;
}
.tc-faq details[open] summary::after {
    content: '−';
}
.tc-faq details p {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .tc-section {
        padding: 48px 0;
    }
    .tc-tables,
    .tc-includes {
        grid-template-columns: 1fr;
    }
    .tc-block h2 {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   /tours/: camino a los tours de varios días (paquetes)
   ========================================================================== */
.page-header-box .tc-hero-more {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #556274 !important;
    margin-top: 12px !important;
}
.tc-hero-more a {
    color: #14532d;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(20, 83, 45, 0.35);
    text-underline-offset: 3px;
}
.tc-hero-more a:hover { text-decoration-color: currentColor; }

.tc-pause {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #f2b84b; /* borde oro: misma familia que el botón */
    border-radius: 22px;
    padding: 26px 22px;
    box-shadow: 0 6px 24px rgba(230, 126, 34, 0.12);
}
.tc-pause-kicker {
    font-family: var(--font-heading) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0b291b !important;
    margin: 0 0 6px !important;
}
.tc-pause-text {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    color: #334155 !important;
    margin: 0 0 14px !important;
}
.tc-pause-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: linear-gradient(135deg, hsl(38, 95%, 52%) 0%, hsl(38, 100%, 45%) 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.25);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.tc-pause-link svg { transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); }
.tc-pause-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(230, 126, 34, 0.4);
    background: linear-gradient(135deg, hsl(38, 100%, 55%) 0%, hsl(38, 100%, 48%) 100%);
}
.tc-pause-link:hover svg { transform: translateX(4px); }
.tc-pause-link:focus-visible { outline: 2px solid #0b291b; outline-offset: 3px; }
/* En móvil la pausa es más baja para que asome la tarjeta siguiente */
@media (max-width: 767px) {
    .tc-pause { padding: 18px 20px; }
    .tc-pause-kicker { font-size: 1.05rem !important; margin-bottom: 4px !important; }
    .tc-pause-text { font-size: 0.86rem !important; line-height: 1.5 !important; margin-bottom: 12px !important; }
    .tc-pause-link { padding: 9px 18px; font-size: 0.85rem; }
}

.tc-banner {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    background: #fff;
    border: 1px solid rgba(11, 41, 27, 0.1);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(11, 41, 27, 0.05);
}
.tc-banner-title {
    font-family: var(--font-heading) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0b291b !important;
    margin: 0 0 4px !important;
}
.tc-banner-desc {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    color: #475569 !important;
    margin: 0 !important;
}
/* Botón oro: mismo diseño que «Explorar Tours Full Day» de la portada */
.tc-banner-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, hsl(38, 95%, 52%) 0%, hsl(38, 100%, 45%) 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.25);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.tc-banner-btn svg {
    opacity: 0.85;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
}
.tc-banner-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.45);
    background: linear-gradient(135deg, hsl(38, 100%, 55%) 0%, hsl(38, 100%, 48%) 100%);
}
.tc-banner-btn:hover svg { transform: translateX(5px); opacity: 1; }
.tc-banner-btn:focus-visible { outline: 2px solid #0b291b; outline-offset: 3px; }
@media (max-width: 640px) {
    .tc-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }
    .tc-banner-btn {
        align-self: flex-start;
        white-space: nowrap;
        padding: 11px 22px;
        font-size: 0.92rem;
        letter-spacing: 0;
    }
}

/* ==========================================================================
   /paquetes/: tabla por duración y enlaces a guías
   ========================================================================== */
.tc-table-pq td:first-child { white-space: nowrap; font-weight: 600; }
.tc-table-pq .tc-col-tours { color: #475569; font-size: 0.88rem; line-height: 1.45; }
.tc-table-pq td:last-child { white-space: nowrap; }
/* «Consultar» se distingue de los precios reales */
.tc-table-pq td.tc-ask { color: #556274; font-weight: 600; }
.tc-table-pq .tc-pp { display: none; } /* en escritorio ya lo dice el encabezado */
.tc-table-pq .tc-tours-short { display: none; }
@media (max-width: 640px) {
    /* En móvil: a la izquierda duración y tours; a la derecha el precio con «por persona»; toda la fila es clicable */
    .tc-table-pq, .tc-table-pq tbody { display: block; width: 100%; }
    .tc-table-pq thead { display: none; }
    .tc-table-pq tr {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 14px;
        align-items: center;
        padding: 14px 16px;
        border-top: 1px solid rgba(11, 41, 27, 0.07);
    }
    .tc-table-pq tr:first-child { border-top: none; }
    .tc-table-pq td { padding: 0; border-top: none; }
    .tc-table-pq td:first-child { grid-column: 1; grid-row: 1; }
    .tc-table-pq .tc-col-tours { grid-column: 1; grid-row: 2; margin-top: 3px; font-size: 0.82rem; line-height: 1.4; }
    .tc-table-pq .tc-tours-full { display: none; }
    .tc-table-pq .tc-tours-short { display: inline; }
    .tc-table-pq .tc-ask .tc-price { font-size: 0.88rem; }
    .tc-table-pq .tc-col-price {
        grid-column: 2; grid-row: 1 / span 2;
        display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center;
        text-align: right;
    }
    .tc-table-pq .tc-price { grid-column: 1; font-size: 1rem; line-height: 1.2; }
    .tc-table-pq .tc-pp { display: block; grid-column: 1; font-size: 0.72rem; font-weight: 500; color: #556274; line-height: 1.2; }
    .tc-table-pq .tc-col-price::after { content: '›'; grid-column: 2; grid-row: 1 / span 2; color: #94a3b8; font-weight: 400; font-size: 1.1rem; }
    .tc-table-pq td:first-child a::after { content: ''; position: absolute; inset: 0; }
}

/* Subcategorías de paquetes: el nombre del paquete puede ser largo */
.tc-table-sub td:first-child { white-space: normal; min-width: 150px; }
