/* Räumlichkeiten Page Specific Styles */

/* Gallery Container */
.gallery-container {
    padding: var(--section-padding, 80px) 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Room Gallery Sections */
.room-gallery {
    margin-bottom: var(--spacing-xxl, 64px);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--border-radius, 20px);
    padding: var(--spacing-xl, 48px);
    box-shadow: var(--shadow-medium, 0 8px 25px rgba(74, 144, 226, 0.1));
    border: 2px solid var(--accent-blue-light, #E8F3FF);
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.room-gallery h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-blue, #4A90E2);
    margin-bottom: var(--spacing-lg, 32px);
    text-align: center;
    padding-bottom: var(--spacing-sm, 16px);
    border-bottom: 3px solid var(--accent-blue-light, #E8F3FF);
    width: 100%;
    max-width: 600px;
}

/* Image Grid Layout */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg, 32px);
    margin-top: var(--spacing-lg, 32px);
    width: 100%;
    justify-items: center;
    align-items: stretch;
}

/* Individual Image Items */
.image-item {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition, all 0.3s ease);
    position: relative;
    width: 100%;
    max-width: 350px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
}

/* All Images Same Size - Reduced */
.image-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(1.05) contrast(1.05);
    border-radius: 12px;
}

.image-item:hover img {
    transform: scale(1.1);
}

/* Image Descriptions */
.image-item p {
    padding: 20px;
    font-size: 14px;
    color: #555;
    text-align: center;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Creative hover effects for different categories */
.room-gallery:nth-child(2) .image-item:hover {
    box-shadow: 0 20px 50px rgba(139, 69, 19, 0.2);
}

.room-gallery:nth-child(3) .image-item:hover {
    box-shadow: 0 20px 50px rgba(70, 130, 180, 0.2);
}

.room-gallery:nth-child(4) .image-item:hover {
    box-shadow: 0 20px 50px rgba(255, 165, 0, 0.2);
}

.room-gallery:nth-child(5) .image-item:hover {
    box-shadow: 0 20px 50px rgba(34, 139, 34, 0.2);
}

.room-gallery:nth-child(6) .image-item:hover {
    box-shadow: 0 20px 50px rgba(105, 105, 105, 0.2);
}

.room-gallery:nth-child(7) .image-item:hover {
    box-shadow: 0 20px 50px rgba(30, 144, 255, 0.2);
}

/* Room Details */
.room-details {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.room-details h2 {
    font-size: 32px;
    font-weight: 300;
    color: #1e1e1e;
    margin-bottom: 25px;
    text-align: center;
}

.room-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

/* Position the last two items in the center of the second row */
.feature-item:nth-child(5) {
    grid-column: 2 / 3;
}

.feature-item:nth-child(6) {
    grid-column: 3 / 4;
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 500;
    color: #1e1e1e;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: #666;
}

/* Responsive Design for Räumlichkeiten */
@media (max-width: 768px) {
    .gallery-container {
        padding: 30px 15px;
    }
    
    .room-gallery {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .room-gallery h3 {
        font-size: 26px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .image-item img {
        height: 150px;
    }
    
    .image-item p {
        padding: 15px;
        font-size: 13px;
    }
    
    .room-details {
        padding: 25px;
        margin: 0 10px 30px;
    }
    
    .room-details h2 {
        font-size: 26px;
    }
    
    .room-features {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 15px;
    }
    
    /* Reset positioning for mobile */
    .feature-item:nth-child(5),
    .feature-item:nth-child(6) {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding: 20px 10px;
    }
    
    .room-gallery {
        padding: 20px 15px;
        margin-bottom: 30px;
        border-radius: 15px;
    }
    
    .room-gallery h3 {
        font-size: 22px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .image-item img {
        height: 140px;
    }
    
    .image-item p {
        padding: 12px;
        font-size: 12px;
    }
    
    .room-details {
        padding: 20px 15px;
    }
    
    .room-details h2 {
        font-size: 22px;
    }
    
    .room-features {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }
    
    /* Reset positioning for very small screens */
    .feature-item:nth-child(5),
    .feature-item:nth-child(6) {
        grid-column: auto;
    }
}