/* Room Details Page Styles */

.room-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('img/room2.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    margin-top: 90px;
    color: var(--white);
    text-align: center;
}

.back-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 1rem;
    transition: transform 0.3s;
}

.back-link:hover {
    transform: translateX(-5px);
}

.room-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.room-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Room Details Section */
.room-details-section {
    padding: 80px 0;
    background: var(--white);
}

.room-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.room-offers-list {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.room-offers-list h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.room-offers-list ul {
    list-style: none;
    padding: 0;
}

.room-offers-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

/* Room Gallery */
.room-gallery {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid var(--gold);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--gold);
    transform: scale(1.05);
}

/* Room Info Card */
.room-info-card {
    background: var(--bg-light);
    padding: 3rem;
    position: sticky;
    top: 110px;
}

.room-price {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    margin-bottom: 2rem;
    border-left: 4px solid var(--gold);
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.price-amount {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
}

.room-features-list,
.room-amenities-list {
    margin-bottom: 2rem;
}

.room-features-list h3,
.room-amenities-list h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.room-features-list ul,
.room-amenities-list ul {
    list-style: none;
}

.room-features-list li,
.room-amenities-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #ddd;
    color: var(--text-dark);
}

.room-features-list li .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-book-now {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: var(--primary-color);
    border: 2px solid var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-book-now:hover {
    background: transparent;
    color: var(--gold);
}

/* Room Description */
.room-description {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--bg-light);
}

.room-description h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.room-description p {
    line-height: 1.9;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Booking Modal */
.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.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 3rem;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--text-light);
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--gold);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Booking Form */
.booking-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.booking-summary {
    background: var(--bg-light);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--gold);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #ddd;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: none;
    margin-top: 1rem;
}

.summary-row.total span:last-child {
    color: var(--gold);
}

.btn-submit-booking {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: var(--primary-color);
    border: 2px solid var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-submit-booking:hover {
    background: var(--primary-color);
    color: var(--gold);
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .room-details-grid {
        grid-template-columns: 1fr;
    }
    
    .room-gallery,
    .room-info-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .room-hero {
        padding: 120px 0 60px;
    }
    
    .room-hero h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        padding: 2rem;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .room-hero h1 {
        font-size: 2rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .room-info-card {
        padding: 2rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}
