/* ============================================
   ROOMS ARCHIVE - CARDS LAYOUT
   ============================================ */

.rooms-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.rooms-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 60px 10px;
}

/* ============================================
   ROOM CARD
   ============================================ */

.room-card {
    position: relative;
    width: calc(50% - 15px);
    min-width: 280px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Background Image */
.room-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.room-card:hover .room-card-bg {
    transform: scale(1.05);
}

/* Overlay oscuro */
.room-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: background 0.3s ease;
}

.room-card:hover .room-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Contenido de la card */
.room-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Título y subtítulo con fondo transparente */
.room-card-info {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.room-card-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: #ee7326;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
}

/* Botón Read More */
.room-card-btn {
    display: none;
    padding: 10px 24px;
    background: transparent;
    color: #ee7326;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ee7326;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(5px);
}

.room-card:hover .room-card-btn {
    display: inline-block;
    animation: fadeInUp 0.5s ease-out 0.2s forwards;
}

/* Mostrar botón siempre en dispositivos táctiles/móviles */
@media (hover: none) and (pointer: coarse) {
    .room-card-btn {
        display: inline-block;
        opacity: 1;
        transform: translateY(0);
        animation: none;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.room-card-btn:hover {
    background: #ee7326;
    color: #fff;
    border-color: #ee7326;
}

/* Loading State */
.rooms-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #666;
}

.rooms-error {
    text-align: center;
    padding: 60px 20px;
    color: #d32f2f;
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .rooms-section {
        padding: 40px 15px;
    }
    
    .room-card {
        width: calc(50% - 15px);
        aspect-ratio: 3 / 4;
    }
    
    .room-card-title {
        font-size: 1.5rem;
        font-weight: 300;
    }
    
    .room-card-subtitle {
        font-size: 0.85rem;
        margin: 0 0 12px 0;
    }
    
    /* Mostrar botón siempre en tablets táctiles */
    .room-card-btn {
        display: inline-block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        animation: none !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .rooms-section {
        padding: 30px 15px;
    }
    
    .rooms-container {
        gap: 20px;
    }
    
    .room-card {
        width: 100%;
        max-width: 400px;
        aspect-ratio: 3 / 4;
    }
    
    .room-card-content {
        padding: 20px;
    }
    
    .room-card-info {
        padding: 16px;
    }
    
    .room-card-title {
        font-size: 1.6rem;
        font-weight: 300;
    }
    
    .room-card-subtitle {
        font-size: 0.9rem;
        margin: 0 0 14px 0;
    }
    
    .room-card-btn {
        padding: 10px 24px;
        font-size: 0.85rem;
        margin-top: 14px;
    }
    
    /* En móvil, mostrar el botón siempre para accesibilidad */
    .room-card-btn {
        display: inline-block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        animation: none !important;
    }
}
