/* Accommodation Section */
/* Uses common.css .accommodation-section styles */

.dorm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.dorm-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}

.dorm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.image-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.gallery-container {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.gallery-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-color);
}

.dorm-info {
    padding: 1.5rem;
}

.dorm-title {
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-weight: 700;
}

.dorm-details p {
    margin: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.dorm-details strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Modal adjustments for accommodation if needed */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .dorm-grid {
        grid-template-columns: 1fr;
    }
    
    .accommodation-section {
        padding: 1.5rem;
    }
}
