/* ================================
   DESTINATIONS - TESOROS DEL CARIBE
   CSS para secciones de destinos y lugares destacados
   ================================ */

/* =================== SECCIÓN DESTINOS Y LUXURY DESTINATIONS =================== */
.destinations,
.luxury-destinations {
    background: linear-gradient(135deg, var(--white-cream) 0%, var(--white-pure) 50%, var(--white-cream) 100%);
    position: relative;
    overflow: hidden;
}

.destinations .container,
.luxury-destinations .container {
    position: relative;
    z-index: 2;
}

/* =================== GRID DE DESTINOS =================== */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* =================== TARJETAS DE DESTINO =================== */
.destination-card {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-elegant);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 5px 15px rgba(27, 54, 93, 0.08);
}

.destination-card.large {
    grid-column: span 2;
    height: 500px;
}

.destination-card.tulum {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('/assets/images/tulum-destination.webp');
}

.destination-card.playa {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('/assets/images/playa-destination.webp');
}

.destination-card.cancun {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('/assets/images/cancun-destination.webp');
}

.destination-card.mahahual {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('/assets/images/mahahual-destination.webp');
}


/* =================== OVERLAY DE DESTINO =================== */
.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.8;
    transition: var(--transition-elegant);
}

.destination-card:hover .destination-overlay {
    opacity: 0.7;
    background: linear-gradient(
        to bottom,
        rgba(212, 175, 55, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* =================== CONTENIDO DE DESTINO =================== */
.destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl);
    color: var(--white-pure);
    z-index: 2;
}

.destination-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--white-pure);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.destination-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.destination-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.destination-card:hover .destination-link {
    color: var(--gold-light);
    transform: translateX(5px);
}

.destination-link i {
    font-size: 1rem;
    transition: var(--transition-fast);
}

.destination-card:hover .destination-link i {
    transform: translateX(3px);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 992px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        gap: var(--space-lg);
    }
    
    .destination-card {
        height: 320px;
    }
    
    .destination-name {
        font-size: 1.8rem;
    }
    
    .destination-content {
        padding: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .destinations {
        padding: var(--space-3xl) 0;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        max-width: 600px;
    }
    
    .destination-card.large {
        grid-column: span 1;
        height: 400px;
    }
    
    .destination-card {
        height: 300px;
    }
    
    .destination-name {
        font-size: 1.6rem;
        margin-bottom: var(--space-xs);
    }
    
    .destination-description {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }
    
    .destination-content {
        padding: var(--space-lg);
    }
    
    .destination-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .destinations {
        padding: var(--space-2xl) 0;
    }
    
    .destinations-grid {
        gap: var(--space-sm);
    }
    
    .destination-card {
        height: 250px;
    }
    
    .destination-card.large {
        height: 300px;
    }
    
    .destination-name {
        font-size: 1.4rem;
    }
    
    .destination-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .destination-content {
        padding: var(--space-md);
    }
    
    .destination-link {
        font-size: 0.75rem;
        gap: var(--space-xs);
    }
}

@media (max-width: 360px) {
    .destination-card {
        height: 200px;
    }
    
    .destination-name {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .destination-description {
        font-size: 0.8rem;
        margin-bottom: var(--space-sm);
        line-height: 1.4;
    }
    
    .destination-content {
        padding: var(--space-sm);
    }
}

@media (max-width: 280px) {
    .destination-card {
        height: 180px;
    }
    
    .destination-name {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    
    .destination-description {
        font-size: 0.75rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .destination-content {
        padding: 8px;
    }
    
    .destination-link {
        font-size: 0.7rem;
    }
}

@media (max-width: 240px) {
    .destination-card {
        height: 160px;
    }
    
    .destination-name {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .destination-description {
        font-size: 0.7rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .destination-content {
        padding: 6px;
    }
}

/* =================== ANIMACIONES =================== */
.destination-card {
    opacity: 0;
    transform: translateY(30px);
    animation: luxuryFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.destination-card:nth-child(1) { animation-delay: 0.1s; }
.destination-card:nth-child(2) { animation-delay: 0.2s; }
.destination-card:nth-child(3) { animation-delay: 0.3s; }
.destination-card:nth-child(4) { animation-delay: 0.4s; }
.destination-card:nth-child(5) { animation-delay: 0.5s; }
.destination-card:nth-child(6) { animation-delay: 0.6s; }
.destination-card:nth-child(7) { animation-delay: 0.7s; }
.destination-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes luxuryFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== EFECTOS DE HOVER AVANZADOS =================== */
.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease-in-out;
}

.destination-card:hover::before {
    transform: scale(1.1);
}