/* 
* Téli Berek Vendégház - Rooms Page CSS
* Custom styles for the Rooms page
*/

/* ===== Page Header ===== */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background-image: url('./assets/Galery/februar/DSC_0064.JPG');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Room Sections ===== */
.room-section {
    padding: 100px 0;
}

.room-content {
    padding-right: 30px;
}

.room-content .section-heading {
    margin-bottom: 30px;
}

.room-content .section-heading h2:after {
    left: 0;
    transform: none;
}

.lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 25px;
}

.room-features p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Room Gallery ===== */
.room-gallery {
    position: relative;
}

.main-image-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

.main-image.loading {
    opacity: 0.7;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    height: 80px;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.thumbnail.active:after,
.thumbnail:hover:after {
    opacity: 0;
}

.thumbnail.active {
    box-shadow: 0 0 0 3px var(--primary-color);
}

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

/* ===== Amenities ===== */
.amenities {
    margin-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
}

.amenity-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.amenity-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(75, 111, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-item span {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
}

/* ===== House Rules Section ===== */
.house-rules-section {
    padding: 100px 0;
    background-color: #f9f9f9;
    background-image: linear-gradient(45deg, rgba(75, 111, 77, 0.05) 25%, transparent 25%, transparent 50%, rgba(75, 111, 77, 0.05) 50%, rgba(75, 111, 77, 0.05) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.house-rules-card {
    background-color: white;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.house-rules-card .section-heading h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.rules-content {
    margin-top: 30px;
}

.rule-group {
    margin-bottom: 30px;
}

.rule-group h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.rules-list {
    list-style: none;
    padding-left: 0;
}

.rules-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.rules-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
    font-size: 14px;
}

.signature {
    margin-top: 40px;
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--primary-dark);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991px) {
    .page-header {
        height: 30vh;
    }
    
    .room-section {
        padding: 70px 0;
    }
    
    .room-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .main-image {
        height: 350px;
    }
    
    .house-rules-card {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .page-header h1 {
        font-size: 36px;
    }
    
    .room-section {
        padding: 50px 0;
    }
    
    .room-content .section-heading h2 {
        font-size: 28px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail {
        height: 60px;
    }
    
    .house-rules-section {
        padding: 50px 0;
    }
    
    .rule-group h4 {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .page-header {
        height: 25vh;
        min-height: 200px;
    }
    
    .page-header h1 {
        font-size: 30px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .thumbnail {
        height: 70px;
    }
    
    .house-rules-card {
        padding: 20px;
    }
}