/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/
ul {
    padding: 0;
    list-style: disc;
    padding-left: 1rem;
}
/* ==========================================
   LAYOUT SINGLE TOUR (single-tours.php)
   ========================================== */

.tour-single-container {
    padding-bottom: 60px;
    margin-bottom: 30px;
}

/* Header & Visuals */
.tour-header-section {
    background: #ffffff;
    padding: 20px;
}
.tour-header-inner {
    max-width: 1140px;
    margin: 0 auto;
}
.tour-title {
    font-size: 48px !important;
    margin: 15px 0 10px;
    color: #111;
}
.tour-main-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
}

/* Structural Grid */
.tour-body-section {
    max-width: 1140px;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 2rem;
}
.tour-body-inner {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.tour-content-col {
    flex: 1; /* Ocupa el ~65% */
}

/* Bloques de la Columna Izquierda */
.tour-block {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tour-block h2 {
    margin-top: 0;
    font-size: 20px;
    color: #111;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.tour-description {
    margin-top: 1rem;
}
.tour-video {
    max-width: 100%;
    border-radius: 12px;
    padding: 0;
}
.tour-highlights ul, .inc-box ul, .exc-box ul {
    list-style: disc;
    padding: 0;
    margin: 0;
    padding-left: 1rem;
}
.tour-highlights li, .inc-box li, .exc-box li {
    margin-bottom: 10px;
    font-size: 15px;
}

.inclusions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Columna Derecha & Sticky Booking Box */
.tour-sidebar-col {
    width: 380px; /* Ocupa el ~35% */
}
.booking-card-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 150px; /* Se congela al hacer scroll */
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.booking-price-header {
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.price-label { font-size: 13px; color: #666; display: block; }
.price-amount { font-size: 32px; font-weight: 800; color: #F08219; }
.price-sub { font-size: 12px; color: #888; }

.btn-book-now-main {
    display: block;
    width: 100%;
    background: #F08219;
    color: #ffffff !important;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}
.btn-book-now-main:hover { background: #EB780B; }

.booking-trust-badges {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
}
.booking-trust-badges p { margin: 5px 0; }

/* Mobile Floating Bar */
.mobile-booking-bar { display: none; }

/* RESPONSIVE MOBILE */
@media (max-width: 991px) {
    .tour-body-inner { flex-direction: column; }
    .tour-sidebar-col { width: 100%; }
    .inclusions-grid { grid-template-columns: 1fr; }
    .tour-title { font-size: 24px !important; }
}

@media (max-width: 767px) {
    .single-tours .cbxSxv {
        bottom: 100px;
    }
    
    .tour-sidebar-col { display: none; } /* Oculta la sidebar en móvil */
    .mobile-booking-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 12px 20px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
        z-index: 99999;
        justify-content: space-between;
        align-items: center;
    }
    .mobile-price span { font-size: 11px; color: #666; display: block; }
    .mobile-price strong { font-size: 20px; color: #F08219; }
    .btn-mobile-book {
        background: #F08219;
        color: #fff !important;
        padding: 12px 24px;
        border-radius: 6px;
        font-weight: 700;
        text-decoration: none;
    }
}

/* ==========================================
   SECCIONES COLAPSABLES (<details>)
   ========================================== */

/* Estructura general */
details.tour-collapsible {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Cabecera / Summary */
.tour-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Oculta el flecha por defecto */
    user-select: none;
}

/* Ocultar la flecha en Safari y Chrome */
.tour-collapsible-header::-webkit-details-marker {
    display: none;
}

/* Evitar que el h2 rompa el alineado flex */
.tour-collapsible-header h2 {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
}

/* Icono indicador (+ / -) */
.tour-collapsible-header .toggle-icon::after {
    content: '+';
    font-size: 22px;
    font-weight: 700;
    color: #F08219;
    line-height: 1;
}

/* Cambiar el icono cuando está desplegado */
details[open] .tour-collapsible-header .toggle-icon::after {
    content: '−';
}

/* Ajustes del contenido interno */
.tour-collapsible-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    cursor: default;
}

body.single-tours #btn-book-now-header,
body.post-type-archive-tours #btn-book-now-header {
    display: none;
}

/* ==========================================
   TOURS ARCHIVE GRID (archive-tours.php)
   ========================================== */

.tours-archive-container {
    background-color: #f8f9fa;
    padding-bottom: 60px;
}

/* Archive Hero */
.archive-hero-section {
    background-image: url(/wp-content/uploads/2026/08/home-hero-2026.jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    text-align: center;
}
.archive-hero-inner {
    margin: 0 auto;
    height: 100%;
    max-width: none;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.5);
}
.archive-title {
    font-size: 40px !important;
    color: #ffffff !important;
    margin-bottom: 10px;
}
.archive-subtitle {
    font-size: 18px;
    color: #cbd5e1;
    margin: 0;
}

/* Grid Layout */
.archive-grid-section {
    max-width: 1140px;
    margin: 40px auto 0;
    padding: 0 20px;
}
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tarjeta de Tour */
.tour-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Imagen y Badge */
.tour-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tour-card:hover .tour-card-image img {
    transform: scale(1.05);
}
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff6b00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Cuerpo de la tarjeta */
.tour-card-body {
    padding: 20px;
    flex-grow: 1;
}
.tour-card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.tour-card-title {
    font-size: 20px !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3;
}
.tour-card-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}
.tour-card-title a:hover {
    color: #ff6b00;
}
.tour-card-excerpt {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Footer de la tarjeta */
.tour-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}
.price-from {
    font-size: 11px;
    color: #777;
    display: block;
}
.price-value {
    font-size: 18px;
    color: #ff6b00;
    font-weight: 800;
}
.btn-card-details {
    background: #ff6b00;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-card-details:hover {
    background: #ff6b00 !important;
    color: #ffffff;
}

/* Paginación */
.tours-pagination {
    margin-top: 40px;
    text-align: center;
}
.tours-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
}
.tours-pagination .page-numbers.current {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
}

/* Elementor */
.elementor-location-header ul,
.elementor-location-footer ul {
    list-style: none !important;
    padding: 0 !important;
}

/* ==========================================
   BANNER DE CUPÓN (CPT coupons)
   ========================================== */

.tour-coupon-banner {
    background-image: url(/wp-content/uploads/2026/08/home-hero-2026.jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 12px;
}

.tour-coupon-banner .overlay {
    background-color: rgba(0,0,0,0.5);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-radius: 12px;
}

.coupon-content {
    flex: 1;
}

.coupon-tag {
    background: #ff6b00;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.coupon-discount {
    display: block;
    font-size: 22px;
    color: #fff;
    font-weight: 800;
    margin-bottom: 4px;
}

.coupon-text {
    margin: 0;
    font-size: 14px;
    color: #444;
}

.coupon-code-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ffd0b0;
    border-radius: 8px;
    padding: 6px 6px 6px 15px;
    gap: 12px;
}

.coupon-code {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: #ff6b00;
    letter-spacing: 1px;
    line-break: anywhere;
}

.btn-copy-coupon {
    background: #111827;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-copy-coupon:hover {
    background: #ff6b00;
}

@media (max-width: 767px) {
    .tour-coupon-banner .overlay {
        flex-direction: column;
        align-items: flex-start;
    }
    .coupon-code-box {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
    .archive-title {
        font-size: 28px !important;
    }
}