/* Glassmorphism Design for Upcoming Trips - Rediseño Completo */

/* Grid de tarjetas de próximos viajes - Responsivo */
.wptc-upcoming-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

/* Media queries para diseño responsivo - Simplificado */
@media (min-width: 768px) {
    .wptc-upcoming-trips-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .wptc-upcoming-trips-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .wptc-upcoming-trips-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }
}

/* Botón de búsqueda en el header */
.wptc-glass-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 14px 28px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.wptc-glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.wptc-glass-btn:hover::before {
    left: 100%;
}

.wptc-glass-btn:hover {
    background: rgba(0, 198, 255, 0.15);
    border-color: rgba(0, 198, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 198, 255, 0.25),
        0 0 20px rgba(0, 198, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Tarjeta principal con efecto glassmorphism - Responsiva */
.wptc-glass-trip-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 260px;
    max-height: 400px;
    height: auto;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
    box-sizing: border-box;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Ajustes responsivos para las tarjetas */
@media (max-width: 767px) {
    .wptc-glass-trip-card {
        min-height: 240px;
        border-radius: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .wptc-glass-trip-card {
        min-height: 270px;
    }
}

@media (min-width: 1200px) {
    .wptc-glass-trip-card {
        min-height: 290px;
    }
}

.wptc-glass-trip-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(0, 198, 255, 0.5);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 198, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 198, 255, 0.2);
}

.wptc-glass-trip-card.marked-upcoming {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 
        0 12px 40px rgba(255, 215, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Imagen de fondo */
.wptc-trip-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.5s ease;
}

.wptc-glass-trip-card:hover .wptc-trip-bg-image {
    transform: scale(1.1);
}

/* Overlay con gradiente */
.wptc-trip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 198, 255, 0.05) 0%,
        rgba(0, 114, 255, 0.1) 30%,
        rgba(26, 46, 39, 0.7) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
    transition: all 0.4s ease;
}

.wptc-glass-trip-card:hover .wptc-trip-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 198, 255, 0.1) 0%,
        rgba(0, 114, 255, 0.15) 30%,
        rgba(26, 46, 39, 0.8) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* Contenido de la tarjeta - Flexbox optimizado */
.wptc-trip-content {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    min-height: 0;
}

/* Ajustes responsivos para el contenido */
@media (max-width: 767px) {
    .wptc-trip-content {
        padding: 12px;
    }
}

@media (min-width: 1200px) {
    .wptc-trip-content {
        padding: 20px;
    }
}

/* Header de la tarjeta - Responsivo */
.wptc-trip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .wptc-trip-header {
        margin-bottom: 6px;
    }
}

/* Badge de estado del viaje - Compacto */
.wptc-trip-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wptc-trip-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.wptc-trip-badge:hover::before {
    left: 100%;
}

.wptc-trip-badge.upcoming {
    background: rgba(0, 198, 255, 0.25);
    color: #00e6ff;
    border-color: rgba(0, 198, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 198, 255, 0.2);
}

.wptc-trip-badge.recent {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
}

.badge-icon {
    font-size: 12px;
}

/* Botón de marcar viaje - Compacto */
.wptc-mark-trip-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.wptc-mark-trip-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.wptc-mark-trip-btn:hover::before {
    width: 100px;
    height: 100px;
}

.wptc-mark-trip-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 
        0 8px 30px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.2);
}

.wptc-mark-trip-btn.marked {
    background: rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.8);
    color: #ffd700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    }
}

.mark-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    font-weight: bold;
}

.wptc-mark-trip-btn:hover .mark-icon {
    transform: rotate(20deg) scale(1.1);
}

/* Asegurar que el icono sea visible */
.wptc-mark-trip-btn {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Información del viaje - Flexbox optimizado */
.wptc-trip-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 16px;
    position: relative;
    z-index: 3;
    min-height: 0;
}

/* Información del destino - Compacta */
.wptc-trip-destination-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

/* Icono del destino - Compacto */
.destination-icon {
    font-size: 42px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    margin-bottom: 6px;
}

.wptc-glass-trip-card:hover .destination-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 198, 255, 0.3));
}

/* Detalles del destino */
.destination-details {
    width: 100%;
    text-align: center;
}

.destination-name {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(0, 198, 255, 0.3);
    line-height: 1.2;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.wptc-glass-trip-card:hover .destination-name {
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 198, 255, 0.5),
        0 0 40px rgba(0, 198, 255, 0.3);
}

.destination-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.destination-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: rgba(0, 198, 255, 0.95);
    font-weight: 700;
    background: rgba(0, 198, 255, 0.15);
    border: 1px solid rgba(0, 198, 255, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 3px 15px rgba(0, 198, 255, 0.2);
    transition: all 0.3s ease;
}

.wptc-glass-trip-card:hover .destination-date {
    background: rgba(0, 198, 255, 0.25);
    border-color: rgba(0, 198, 255, 0.6);
    box-shadow: 0 6px 30px rgba(0, 198, 255, 0.4);
}

.location-icon,
.date-icon {
    font-size: 14px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.wptc-glass-trip-card:hover .location-icon,
.wptc-glass-trip-card:hover .date-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Acciones de la tarjeta - Responsivas */
.wptc-trip-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding: 0;
    flex-shrink: 0;
}

/* Ajustes responsivos para las acciones */
@media (max-width: 767px) {
    .wptc-trip-actions {
        gap: 8px;
        flex-direction: row;
    }
}

.wptc-glass-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.wptc-glass-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.wptc-glass-action-btn:hover::before {
    left: 100%;
}

.wptc-glass-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Botón de búsqueda específico - Compacto */
.wptc-glass-action-btn.wptc-btn-search {
    background: rgba(0, 198, 255, 0.15);
    border-color: rgba(0, 198, 255, 0.35);
    color: #00e6ff;
}

.wptc-glass-action-btn.wptc-btn-search:hover {
    background: rgba(0, 198, 255, 0.25);
    border-color: rgba(0, 198, 255, 0.5);
    box-shadow: 
        0 8px 25px rgba(0, 198, 255, 0.3),
        0 0 20px rgba(0, 198, 255, 0.2);
}

/* Botón de detalles - Compacto */
.wptc-glass-action-btn.wptc-btn-details {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.wptc-glass-action-btn.wptc-btn-details:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.wptc-glass-action-btn.wptc-btn-details:hover {
    border-color: rgba(255, 107, 157, 0.4);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.2);
}

.btn-icon {
    font-size: 16px;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wptc-glass-trip-card {
    animation: fadeInUp 0.6s ease-out;
}

.wptc-glass-trip-card:nth-child(2) {
    animation-delay: 0.1s;
}

.wptc-glass-trip-card:nth-child(3) {
    animation-delay: 0.2s;
}

.wptc-glass-trip-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Responsive - Solo para móviles pequeños */
@media (max-width: 767px) {
    .wptc-glass-trip-card {
        min-height: 260px;
        height: auto;
    }
    
    .wptc-trip-content {
        padding: 14px;
    }
    
    .destination-name {
        font-size: 18px;
    }
    
    .wptc-trip-actions {
        flex-direction: row;
        gap: 8px;
    }
    
    .wptc-glass-action-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .wptc-glass-trip-card {
        min-height: 240px;
        height: auto;
    }
    
    .destination-name {
        font-size: 16px;
    }
    
    .destination-location,
    .destination-date {
        font-size: 12px;
    }
}