/**
 * amenities-styles.css
 * Styles for the expandable amenities section with enhanced mobile responsiveness
 */

.amenities-container {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.amenities-toggle {
    background-color: rgba(254, 251, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #FEFB3B;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 15px;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.amenities-toggle:hover {
    background-color: rgba(254, 251, 59, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.amenities-toggle:focus {
    outline: 2px solid #FEFB3B;
    outline-offset: 2px;
}

.toggle-icon {
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    color: #FEFB3B;
}

.amenities-content {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 20px;
    transition: max-height 0.3s ease;
    overflow: hidden;
    max-width: 100%;
    color: #fff;
}

.amenities-content h3 {
    margin-top: 0;
    color: #FEFB3B;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.amenities-content h4 {
    color: #FEFB3B;
    font-size: 1em;
    margin: 15px 0 5px 0;
    border-bottom: 1px solid rgba(254, 251, 59, 0.3);
    padding-bottom: 5px;
}

.amenities-content ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.amenities-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* When hidden, ensure it doesn't take up space */
.amenities-content[hidden] {
    display: none;
    max-height: 0;
}

/* Desktop styles for amenity cards */
.amenity-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    cursor: pointer;
}

.amenity-card:hover {
    animation: expandCard 0.3s ease forwards;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes expandCard {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .amenities-container h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* Create different card sizes for visual variety */
    .amenity-card:nth-child(3n+1) {
        min-height: 180px;
        background: linear-gradient(135deg, rgba(76, 175, 32, 0.9), rgba(46, 125, 50, 0.8));
    }
    
    .amenity-card:nth-child(3n+2) {
        min-height: 160px;
        background: linear-gradient(135deg, rgba(56, 142, 60, 0.9), rgba(76, 175, 32, 0.8));
    }
    
    .amenity-card:nth-child(3n+3) {
        min-height: 200px;
        background: linear-gradient(135deg, rgba(102, 187, 106, 0.9), rgba(76, 175, 32, 0.8));
    }

    /* Add icons to break up monotony */
    .amenity-card:nth-child(1) .amenity-title::before { content: "🎓 "; }
    .amenity-card:nth-child(2) .amenity-title::before { content: "🔒 "; }
    .amenity-card:nth-child(3) .amenity-title::before { content: "🏊 "; }
    .amenity-card:nth-child(4) .amenity-title::before { content: "💪 "; }
    .amenity-card:nth-child(5) .amenity-title::before { content: "🚗 "; }
    .amenity-card:nth-child(6) .amenity-title::before { content: "⛽ "; }
    .amenity-card:nth-child(7) .amenity-title::before { content: "🏐 "; }
    .amenity-card:nth-child(8) .amenity-title::before { content: "📍 "; }
    .amenity-card:nth-child(9) .amenity-title::before { content: "⛳ "; }
    .amenity-card:nth-child(10) .amenity-title::before { content: "🚐 "; }
    .amenity-card:nth-child(11) .amenity-title::before { content: "💰 "; }
    .amenity-card:nth-child(12) .amenity-title::before { content: "👕 "; }
    .amenity-card:nth-child(13) .amenity-title::before { content: "☀️ "; }
    .amenity-card:nth-child(14) .amenity-title::before { content: "🚿 "; }
    .amenity-card:nth-child(15) .amenity-title::before { content: "🛁 "; }

    /* Enhanced mobile card styling */
    .amenity-card {
        border-radius: 20px;
        border: 2px solid rgba(254, 251, 59, 0.2);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        transform: none;
        animation: slideInUp 0.6s ease forwards;
    }
    
    /* Stagger animation delays */
    .amenity-card:nth-child(1) { animation-delay: 0.1s; }
    .amenity-card:nth-child(2) { animation-delay: 0.2s; }
    .amenity-card:nth-child(3) { animation-delay: 0.3s; }
    .amenity-card:nth-child(4) { animation-delay: 0.4s; }
    .amenity-card:nth-child(5) { animation-delay: 0.5s; }
    .amenity-card:nth-child(6) { animation-delay: 0.6s; }
    .amenity-card:nth-child(7) { animation-delay: 0.7s; }
    .amenity-card:nth-child(8) { animation-delay: 0.8s; }
    .amenity-card:nth-child(9) { animation-delay: 0.9s; }
    .amenity-card:nth-child(10) { animation-delay: 1s; }
    .amenity-card:nth-child(11) { animation-delay: 1.1s; }
    .amenity-card:nth-child(12) { animation-delay: 1.2s; }
    .amenity-card:nth-child(13) { animation-delay: 1.3s; }
    .amenity-card:nth-child(14) { animation-delay: 1.4s; }
    .amenity-card:nth-child(15) { animation-delay: 1.5s; }

    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .amenity-content {
        padding: 20px;
    }

    .amenity-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
        line-height: 1.3;
        color: #FEFB3B;
    }

    .amenity-desc {
        opacity: 1;
        transform: none;
        font-size: 0.95rem;
        line-height: 1.5;
        color: #fff;
    }

    .amenity-content::before {
        opacity: 1;
    }

    /* Add alternating text alignment for visual interest */
    .amenity-card:nth-child(even) .amenity-content {
        text-align: right;
    }
    
    .amenity-card:nth-child(odd) .amenity-content {
        text-align: left;
    }

    /* Featured cards - make some stand out more */
    .amenity-card:nth-child(1),
    .amenity-card:nth-child(3),
    .amenity-card:nth-child(9) {
        border: 3px solid rgba(254, 251, 59, 0.6);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .amenities-toggle {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .amenities-content {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .amenities-content h3 {
        font-size: 1.1rem;
    }
    
    .amenities-content h4 {
        font-size: 0.95rem;
    }
    
    .amenities-content li {
        margin-bottom: 6px;
    }
    
    .toggle-icon {
        font-size: 16px;
    }
}