/* ==========================================================================
   SINGLE TOUR - VIA INCA TRAVEL (IDENTIDAD EDITORIAL UNIFICADA)
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Jerarquía tipográfica y contenido */
.single-tour-article .content-single {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.single-tour-article .content-single p {
    margin-bottom: 1.25rem;
}

.single-tour-article h1 {
    font-size: clamp(1.65rem, 4.5vw, 2.25rem);
    font-weight: 800;
    color: var(--via-green-dark, #1B3022);
    line-height: 1.2;
}

.single-tour-article h2 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    color: var(--via-green-dark, #1B3022);
    line-height: 1.25;
}

.single-tour-article h3 {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 700;
    color: var(--via-green-dark, #1B3022);
}

.tab-pane {
    scroll-margin-top: 140px;
}

.tab-pane h2 {
    margin-bottom: 1.2rem;
}

/* Galería Desktop y Slider Móvil */
.img-main-container {
    height: 418px;
}

.img-side-container {
    height: 205px;
}

.img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.mobile-slider-container {
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
}

.mobile-slider-container img {
    object-fit: cover;
    width: 100%;
    height: 300px;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Etiquetas y atributos clave */
.tour-places-label {
    letter-spacing: 1px;
    font-size: 0.78rem;
}

.via-attr-card {
    background-color: var(--via-cream, #F9F7F2);
    border-color: rgba(27, 48, 34, 0.12) !important;
}

.attr-label {
    font-size: 0.65rem;
    letter-spacing: 0.6px;
}

.attr-value {
    font-size: 0.88rem;
}

/* Inclusiones con checks verdes y X rojas */
#inclui ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

#inclui ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #374151;
    font-size: 0.95rem;
}

#inclui h3:first-of-type + ul li::before,
#inclui .wp-block-heading:first-of-type + ul li::before {
    content: "\F272";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 2px;
    color: #198754;
    font-size: 1.2rem;
    font-weight: 900;
}

#inclui h3:last-of-type + ul li::before,
#inclui .wp-block-heading:last-of-type + ul li::before {
    content: "\F62A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 2px;
    color: #dc3545;
    font-size: 1.2rem;
    font-weight: 900;
}

.summary-list {
    list-style-type: disc;
    padding-left: 20px;
}

.summary-list li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #374151;
}

/* Navegación sticky escritorio (crema editorial en lugar de amarillo pálido) */
.nav-tabs-sticky {
    position: sticky;
    top: 70px;
    z-index: 1040;
    background-color: var(--via-cream, #F9F7F2);
    border-top: 1px solid rgba(27, 48, 34, 0.08);
    border-bottom: 1px solid rgba(27, 48, 34, 0.14);
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0;
    margin-bottom: 2rem;
    scrollbar-width: none;
    list-style: none;
}

.nav-tabs-sticky::-webkit-scrollbar {
    display: none;
}

.nav-tabs-sticky .nav-link {
    white-space: nowrap;
    border: none;
    font-weight: 700;
    color: #556058;
    padding: 15px 22px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.25s ease;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.nav-tabs-sticky .nav-link:hover {
    color: var(--via-green-dark, #1B3022);
}

.nav-tabs-sticky .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--via-gold, #f4a523);
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.nav-tabs-sticky .nav-link.active {
    color: var(--via-green-dark, #1B3022);
}

.nav-tabs-sticky .nav-link.active::after {
    width: 100%;
}

/* Acordeones del itinerario */
.content-single .via-clean-card br,
.content-single .via-clean-card h3 br,
.content-single [id*="vInca"] br,
.content-single [id*="vInca"] + p:empty,
.content-single .via-clean-card + p:empty {
    display: none;
}

.content-single .via-clean-card {
    background-color: var(--via-cream, #F9F7F2);
    border: 1px solid rgba(27, 48, 34, 0.12);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: none;
    display: block;
    width: 100%;
    scroll-margin-top: 130px;
}

.content-single .via-clean-card h3 {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.content-single .via-clean-btn {
    width: 100%;
    background-color: var(--via-cream, #F9F7F2);
    border: none;
    padding: 13px 16px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: var(--via-green-dark, #1B3022);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    line-height: 1.35;
    transition: background-color 0.2s ease;
}

@media (min-width: 768px) {
    .content-single .via-clean-btn {
        padding: 15px 18px;
        font-size: 1rem;
    }
}

.content-single .via-clean-btn span {
    text-align: left;
    flex-grow: 1;
    display: block;
}

.content-single .via-clean-btn:hover {
    background-color: #f1ede4;
}

.content-single .via-clean-body {
    padding: 15px 18px;
    border-top: 1px solid rgba(27, 48, 34, 0.1);
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: left;
    background-color: #ffffff;
}

@media (min-width: 768px) {
    .content-single .via-clean-body {
        padding: 18px 20px;
    }
}

.content-single .via-clean-body p {
    color: #374151;
    text-align: left;
    margin-bottom: 0.85rem;
}

.content-single .via-clean-body p:last-child {
    margin-bottom: 0;
}

/* Sidebar de reserva y selector */
.booking-sidebar {
    top: 90px;
    z-index: 10;
}

.via-booking-header {
    background-color: var(--via-green-dark, #1B3022);
    border-bottom: 2px solid var(--via-gold, #f4a523);
}

.booking-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 1px;
}

.selected-service-label {
    color: var(--via-green-dark, #1B3022);
    font-size: 0.85rem;
    min-height: 18px;
}

.min-travelers-badge {
    font-size: 0.75rem;
}

.service-select-brand {
    border-color: var(--via-gold, #f4a523);
    font-weight: 600;
    color: var(--via-green-dark, #1B3022);
}

.btn-checkout {
    padding: 12px 20px;
    font-size: 1rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.btn-brand-gold {
    background-color: var(--via-gold, #f4a523);
}

.btn-brand-gold:hover {
    background-color: #e09416;
}

.solo-traveler-note {
    font-size: 0.76rem;
    background-color: var(--via-cream, #F9F7F2);
    border: 1px dashed var(--via-gold, #f4a523);
    color: #4a3f28;
}

.highlight-booking {
    box-shadow: 0 0 0 3px var(--via-gold, #f4a523), 0 1rem 3rem rgba(27, 48, 34, 0.18);
    transition: box-shadow 0.3s ease;
}

/* Barra móvil fija */
.mobile-booking-bar {
    z-index: 1050;
}

.mobile-booking-bar .subtext {
    font-size: 0.68rem;
}

.accordion-header {
    scroll-margin-top: 90px;
}

/* Ajustes responsivos */
@media (max-width: 767px) {
    .nav-tabs-sticky {
        display: none;
    }

    .booking-sidebar {
        top: 10px;
        margin-bottom: 20px;
    }

    .tab-content {
        padding-top: 10px;
    }

    .tab-content > .tab-pane,
    .accordion-collapse.tab-pane {
        margin-bottom: 0;
        padding-bottom: 15px;
        border-top: none;
    }

    .tab-pane h2 {
        margin-top: 15px;
        padding-top: 0;
        border-top: none;
    }

    .single-tour-article {
        padding-bottom: 100px;
    }
}

@media (min-width: 768px) {
    .tab-content > .tab-pane {
        display: block;
        opacity: 1;
        visibility: visible;
        height: auto;
        margin-bottom: 40px;
        padding-top: 10px;
    }

    .accordion-item:nth-of-type(n+2) .tab-pane h2:first-of-type {
        border-top: 1px solid rgba(27, 48, 34, 0.12);
        padding-top: 2rem;
        margin-top: 3rem;
    }
}

/* Línea editorial sutil (Single Tour) */
.via-boutique-line {
    border-color: rgba(27, 48, 34, 0.12) !important;
    letter-spacing: 0.2px;
}