/* Contenedor principal del listado */
.listado-viajes-container {
    margin: 2rem 0;
    font-family: var(--font-family, 'Poppins', sans-serif);
    width: 100%;
}

/* Mobile vs Desktop content control */
.mobile-slider-container {
    display: none; /* Hidden by default, shown only on mobile */
}

.desktop-content {
    display: block; /* Shown by default on desktop */
}

/* Contenedor específico para modo grid - igual que page-viajes */
.listado-viajes-container.modo-grid {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Header del continente */
.continente-header {
    margin-bottom: 3rem;
    text-align: left;
}

/* Header específico para modo grid */
.listado-viajes-container.modo-grid .continente-header {
    margin-bottom: 2rem;
    padding: 0;
}

.continente-titulo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-titulo, #bdd8eb);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.continente-titulo, .continente-titulo * {
    color: #bdd6ea;;
}

.continente-imagen {
    width: 60px;
    height: 60px;
     
    flex-shrink: 0;
}

.continente-descripcion {
    font-size: 1.2rem;
    color: var(--color-texto, #fff);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de viajes */
.listado-viajes-container .viajes-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
    justify-items: center;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

/* Grid específico para modo grid - como page-viajes */
.listado-viajes-container.modo-grid .viajes-grid {
    display: grid;
    gap: 5rem;
    width: 100%;
    justify-items: stretch;
    align-items: stretch;
    grid-auto-rows: 1fr;
    margin: 0;
    padding: 0;
}

.listado-viajes-container .viajes-grid[data-columnas="1"] {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

.listado-viajes-container .viajes-grid[data-columnas="2"] {
    grid-template-columns: 1fr 1fr;
}

.listado-viajes-container .viajes-grid[data-columnas="3"] {
    grid-template-columns: 1fr 1fr 1fr;
}

.listado-viajes-container .viajes-grid[data-columnas="4"] {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Asegurar que en modo grid las columnas se distribuyan correctamente */
.listado-viajes-container.modo-grid .viajes-grid[data-columnas="3"] {
    grid-template-columns: 1fr 1fr 1fr;
}

.listado-viajes-container.modo-grid .viajes-grid[data-columnas="2"] {
    grid-template-columns: 1fr 1fr;
}

.listado-viajes-container.modo-grid .viajes-grid[data-columnas="4"] {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Tarjeta de viaje */
.listado-viajes-container .viaje-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: stretch;
    box-sizing: border-box;
}

/* Tarjetas específicas para modo grid - como page-viajes */
.listado-viajes-container.modo-grid .viaje-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: stretch;
    box-sizing: border-box;
    padding: 0;
}

.viaje-card:hover {
    transform: none;
}

/* Contenedor de imagen */
.listado-viajes-container .viaje-imagen-container {
    position: relative;
    width: 100%; 
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 auto 1.5rem auto;
    transition: transform 0.3s ease;
    max-width: 500px;
    box-sizing: border-box;
}

/* Imágenes específicas para modo grid - como page-viajes */
.listado-viajes-container.modo-grid .viaje-imagen-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 auto 1.5rem auto;
    transition: transform 0.3s ease;
    max-width: none;
    box-sizing: border-box;
}

.viaje-imagen-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.viaje-imagen, .viaje-imagen-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.viaje-imagen-placeholder {
    background: linear-gradient(135deg, #bdd8eb 0%, #759eb7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.viaje-card:hover .viaje-imagen {
    transform: scale(1.05);
}

.viaje-enlace {
    display: block;
    height: 100%;
    width: 100%;
}

/* Badge de lugar */
.lugar-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 180px;
    z-index: 10;
}

.lugar-icono {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.lugar-nombre {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge de completo - posicionado a la derecha del lugar-badge */
.listado-viajes-container .completo-badge,
.completo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 59, 48, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
}

/* Cuando hay lugar-badge, mantener completo-badge en la misma línea a la derecha */
.listado-viajes-container .lugar-badge + .completo-badge,
.lugar-badge + .completo-badge {
    top: 15px;
    right: 15px;
    left: auto;
}

/* Badge de precio */
.precio-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.precio-desde {
    font-size: 0.6rem;
color: var(--color-texto);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2px;
}

.precio-valor {
font-size: 1em;
    color: var(--color-texto);
    font-weight: 700;
    line-height: 1;
}

/* Información del viaje */
.viaje-info {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Burbujas */
.viaje-burbujas {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.burbuja {
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-titulo, #bdd8eb);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    min-width: fit-content;
    box-sizing: border-box;
}

.burbuja-icono {
    width: 14px;
    height: 14px;
    min-width: 14px; /* Prevent icon from shrinking */
    opacity: 1;
    color: #fff;
    stroke: #fff;
    flex-shrink: 0; /* Prevent icon from being compressed */
}

/* Los colores se aplicarán inline desde PHP */

/* Título del viaje */
.viaje-titulo {
    margin: 12px 0 11px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.viaje-titulo a {
    color: var(--color-titulo, #bdd8eb);
    text-decoration: none;
    transition: color 0.3s ease;
}

.viaje-titulo a:hover {
    color: var(--color-titulo, #bdd8eb);
    opacity: 0.8;
}

/* Descripción */
.viaje-descripcion {
    color: var(--color-texto, #fff);
    opacity: 0.8;
    line-height: 1.6;
       margin-bottom: 15px;
   
}

.viaje-descripcion p {
    margin: 0;
    font-size: 0.9rem;
}

/* Botón de acción */
.viaje-accion {
    margin-top: auto;
  
    display: flex;
    justify-content: flex-start;
}

.boton-viaje {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-family, 'Poppins', sans-serif);
}

.boton-descubre {
    background: var(--color-titulo, #bdd8eb);
    color: #474747 !important;
    border: 2px solid transparent;
}

.boton-descubre:hover {
    background: transparent;
    color: var(--color-titulo, #bdd8eb) !important;
    border: 2px solid var(--color-titulo, #bdd8eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(189, 216, 235, 0.3);
}

.boton-pronto {
    background: rgba(189, 216, 235, 0.2);
    color: #89c4ff !important;
    cursor: not-allowed;
}

.boton-pronto span {
color: #a3a3a3 !important;
}

.boton-icono {
    width: 12px;
    height: 12px;
}

/* Modo Slider */
.modo-slider .splide {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.modo-slider .splide__track {
    padding: 0 80px;
    cursor: grab;
}

.modo-slider .splide__track:active {
    cursor: grabbing;
}

.modo-slider .splide__slide {
    display: flex;
    justify-content: center;
    padding: 0 2.5rem;
    margin-right: 3rem;
 
}

/* Asegurar que las tarjetas ocupen el ancho completo - Reglas más específicas */
.listado-viajes-container.modo-slider .viaje-card,
.modo-slider .splide .viaje-card,
.modo-slider .splide__slide .viaje-card {
    width: 100%;
    max-width: none;
    flex: 1;
    margin: 0;
 padding: 0px 16px !important;
    box-sizing: border-box;
}

/* Eliminar márgenes de splide activo - Reglas más específicas */
.listado-viajes-container.modo-slider .splide.is-active,
.listado-viajes-container.modo-slider .splide.is-active .splide__slide,
.modo-slider .splide.is-active,
.modo-slider .splide.is-active .splide__slide {
    margin: 0;
    margin-right: 0;
    margin-left: 0;
    padding: 0;
}

/* Imagen al 100% del ancho en slider - Reglas más específicas */
.listado-viajes-container.modo-slider .viaje-imagen-container,
.modo-slider .splide .viaje-imagen-container,
.modo-slider .splide__slide .viaje-imagen-container {
    width: 100%;
    max-width: none;
    aspect-ratio: 1.2;
    margin: 0;
    margin-bottom: 1rem;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.listado-viajes-container.modo-slider .viaje-imagen,
.modo-slider .splide .viaje-imagen,
.modo-slider .splide__slide .viaje-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.listado-viajes-container.modo-slider .viaje-imagen-placeholder,
.modo-slider .splide .viaje-imagen-placeholder,
.modo-slider .splide__slide .viaje-imagen-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Gradientes laterales para slider */
.modo-slider .splide::before,
.modo-slider .splide::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 5;
    pointer-events: none;
}

.modo-slider .splide::before {
    left: -24px;
    background: linear-gradient(to right, var(--color-fondo, #474747) 0%, transparent 100%);
}

.modo-slider .splide::after {
    right: -24px;
    background: linear-gradient(to left, var(--color-fondo, #474747) 0%, transparent 100%);
}

/* Flechas del slider */
.modo-slider .splide__arrows {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 50;
}


@media screen and (max-width: 680px) {




    
    .modo-slider .splide__arrows {
        top: 24%;
    }
}

.modo-slider .splide__arrow {
    position: absolute;
    top: 0;
    width: 45px;
    height: 45px;
    background: var(--color-titulo, #bdd8eb);
    border: none;
    border-radius: 50%;
    color: #474747;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
   
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modo-slider .splide__arrow:hover {
    background: var(--color-texto, #fff);
  
    
}

.modo-slider .splide__arrow--prev {
    left: 20px;
}

.modo-slider .splide__arrow--next {
    right: 20px;
}

.modo-slider .splide__arrow:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Viajes no disponibles (muy pronto) */
.viaje-no-disponible {
    pointer-events: none;
    cursor: default !important;
}

.viaje-no-disponible .viaje-imagen-container:hover {
    transform: none !important;
    box-shadow: none !important;
}

.viaje-no-disponible .viaje-imagen:hover {
    transform: none !important;
}

.viaje-enlace-disabled {
    display: block;
    height: 100%;
    width: 100%;
    cursor: default;
    pointer-events: none;
}

.titulo-no-disponible {
    color: var(--color-titulo, #bdd8eb);
    cursor: default;
}

/* Estados de error */
.error, .no-viajes {
    padding: 1.5rem;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 12px;
    color: var(--color-texto, #fff);
    text-align: center;
    font-weight: 500;
    margin: 2rem 0;
}

.no-viajes {
    background: rgba(189, 216, 235, 0.1);
    border-color: rgba(189, 216, 235, 0.3);
    color: var(--color-titulo, #bdd8eb);
}

/* Desktop - Mejor espaciado para slider */
@media (min-width: 1025px) {
    .modo-slider .splide__slide {
        padding: 0 3rem;
        margin-right: 4rem;
        max-width: calc(100% - 6rem);
    }
    
    .modo-slider .splide__track {
        padding: 0 100px;
    }
    
    .listado-viajes-container.modo-slider .viaje-imagen-container,
    .modo-slider .splide .viaje-imagen-container,
    .modo-slider .splide__slide .viaje-imagen-container {
        aspect-ratio: 1.1;
    }
    
    .modo-slider .splide__arrow--prev {
        left: 30px;
    }
    
    .modo-slider .splide__arrow--next {
        right: 30px;
    }
}

/* Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablet: hacer slides más anchos */
    .modo-slider .viaje-imagen-container {
        width: 360px;
        height: 360px;
        max-width: none;
        aspect-ratio: auto;
        min-width: auto;
    }
    
    /* Grid en tablet: ajustar columnas */
    .viajes-grid[data-columnas="3"] {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .viajes-grid[data-columnas="4"] {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .viaje-imagen-container {
        max-width: 400px;
    }
    
    .modo-slider .splide__slide {
        padding: 0 0.75rem;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    /* Header styles */
    .continente-header {
        margin-bottom: 1.5rem;
    }
    
    .continente-titulo {
        font-size: 1.5rem;
        flex-direction: row;
        gap: 0.8rem;
        justify-content: flex-start;
    }
    
    .continente-imagen {
        width: 40px;
        height: 40px;
    }
    
    /* Force mobile slider display for ALL listados */
    .mobile-slider-container,
    .viajes-slider {
        display: block !important; /* Show mobile slider */
        position: relative;
        overflow: hidden;
        padding: 0;
        margin: 0 -0.5rem;
    }
    
    .desktop-content {
        display: none !important; /* Hide desktop content (both grid and slider) */
    }
    
    /* Hide original grid styles since we're forcing slider */
    .listado-viajes-container .viajes-grid {
        display: none !important;
    }
    
    /* Hide gradientes laterales en mobile */
    .modo-slider .splide::before,
    .modo-slider .splide::after,
    .splide::before,
    .splide::after {
        display: none;
    }
    
    /* Unified slider styles for mobile */
    .mobile-slider-container .splide__track,
    .viajes-slider .splide__track {
        padding: 0 45px;
    }
    
    .mobile-slider-container .splide__slide,
    .viajes-slider .splide__slide,
    .mobile-slider-container .splide__slide.is-active.is-visible,
    .viajes-slider .splide__slide.is-active.is-visible {
        display: flex;
        justify-content: center;
        padding: 0px 16px;
    }
    
    /* Unified card styles */
    .mobile-slider-container .viaje-card,
    .viajes-slider .viaje-card,
    .viaje-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        margin-bottom: 1rem;
        justify-self: center;
    }
    
    /* Unified image container styles */
    .mobile-slider-container .viaje-imagen-container,
    .viajes-slider .viaje-imagen-container,
    .viaje-imagen-container {
        width: 100%;
        max-width: 280px;
        aspect-ratio: 1;
        margin: 0 auto 1rem auto;
    }
    
    /* Unified badge styles */
    .lugar-badge {
        max-width: 150px;
        padding: 6px 14px;
        top: 10px;
        left: 10px;
    }
    
    .lugar-nombre {
        font-size: 0.75rem;
        color: #fff;
    }
    
    .precio-badge {
        width: 68px;
        height: 68px; 
        bottom: 10px;
        right: 10px;
    }
    
    .precio-desde {
        font-size: 0.69rem;
        color: #fff;
    }
    
    .precio-valor {
        font-size: 0.9rem;
        color: #fff;
    }
    
    /* Unified content styles */
    .viaje-info {
        padding: 0;
    }
    
    .viaje-titulo {
        font-size: 1.1rem;
    }
    
    .boton-viaje {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    
    /* Unified slider arrows */
    .mobile-slider-container .splide__arrow,
    .viajes-slider .splide__arrow {
        position: absolute;
        top: 25%;
        width: 40px;
        height: 40px;
        background: var(--color-titulo, #bdd8eb);
        border: none;
        border-radius: 50%;
        color: #474747;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s ease;
        box-shadow: 0 4px 12px rgba(189, 216, 235, 0.3);
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: none !important;
    }
    
    .mobile-slider-container .splide__arrow:hover,
    .viajes-slider .splide__arrow:hover {
        background: var(--color-texto, #fff);
        transform: none !important;
    }
    
    .mobile-slider-container .splide__arrow--prev,
    .viajes-slider .splide__arrow--prev {
        left: 8px;
    }
    
    .mobile-slider-container .splide__arrow--next,
    .viajes-slider .splide__arrow--next {
        right: 8px;
    }
    
    .mobile-slider-container .splide__arrow:disabled,
    .viajes-slider .splide__arrow:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

@media (max-width: 480px) {
    .continente-titulo {
        font-size: 1.3rem;
    }
    
    .viaje-burbujas {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
        max-width: 100%;
    }
    
    /* Align bubbles to the left in mobile sliders */
    .mobile-slider-container .viaje-burbujas,
    .viajes-slider .viaje-burbujas {
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .burbuja {
        justify-content: flex-start;
        padding: 4px 10px;
        font-size: 0.75rem;
        flex-direction: row;
        flex-shrink: 0;
        white-space: nowrap;
        width: auto;
        min-width: fit-content;
        display: inline-flex;
        box-sizing: border-box;
    }
    
    /* Unified image container for smallest screens */
    .mobile-slider-container .viaje-imagen-container,
    .viajes-slider .viaje-imagen-container,
    .viaje-imagen-container {
        width: 100%;
        aspect-ratio: 1.2;
        max-width: 280px;
    }
    
    .viaje-accion {
        justify-content: flex-start;
        margin-top: 10px;
    }
}

