* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  background-color: #e8f5e9; /* светло‑зелёный фон */
  height: 100%;
}


body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Merriweather', serif;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e8f5e9;
}

.room-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Галерея */
.room-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    height: 550px; 
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnails img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbnails img:hover {
    transform: scale(1.05);
}

/* Детали номера */
.room-details h1 {
    color: #fd8b0e;
    margin-bottom: 10px;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fd8b0e;
    margin-bottom: 25px;
}

.room-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.icon {
    font-size: 1.2rem;
}

.description {
    margin-bottom: 30px;
}

.description h2 {
    color: #fd8b0e;
    margin-bottom: 15px;
}

.amenities h3 {
    color: #fd8b0e;
    margin-bottom: 15px;
}

.amenities ul {
    list-style: none;
    padding-left: 0;
    
    display: flex;
    gap: 5px; /* расстояние между элементами */
    flex-wrap: wrap; /* перенос на новую строку при нехватке места */
}

.amenities li {
    margin-bottom: 8px;
}

.booking-btn {
    background: #fd8b0e;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.booking-btn:hover {
    background: #fd8b0e;
}

/* Модальное окно бронирования */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 110%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fd8b0e;
}

.modal h2 {
    color: #fd8b0e;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-btn {
    background: #fd8b0e;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #fd8b0e;
}

/* Заглушка для изображений */
.image-placeholder {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .room-page {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .main-image {
        height: 350px;
    }

    .thumbnails {
        flex-wrap: wrap;
    }

    .thumbnails img {
        width: calc(33.333% - 7px);
        height: 60px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .room-info {
        grid-template-columns: 1fr;
    }

    .thumbnails img {
        width: calc(50% - 5px);
    }

    .form-group input,
    .form-group select {
        padding: 10px;
    }
}

/* Дополнительные стили для улучшения UX */
input:focus,
select:focus {
    outline: 2px solid #fd8b0e;
    outline-offset: 0;
}

.booking-btn:focus,
.submit-btn:focus {
    outline: 2px solid #fd8b0e;
    outline-offset: 2px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    animation: fadeIn 0.3s ease;
    margin-top: 1%;
}
/* Общие стили для мобильных */
@media (max-width: 768px) {
  .room-desc-block {
    margin-bottom: 25px;
    padding: 10px;
  }

  .room-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .room-title {
    font-size: 1.4rem;
    margin: 15px 0 10px;
    text-align: center;
  }

  .room-desc {
    font-size: 0.9rem;
    text-align: center;
    color: #666;
  }

  .room-price {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    color: #000000b0;
  }

  .price-ruble {
    font-size: 0.8rem;
  }

  .room-link-block {
    text-align: center;
    margin: 10px 0;
  }

  .anum {
    display: inline-block;
    padding: 10px 20px;
    background: #e8f5e9;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
  }

  .booking-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background-color: #fd8b0e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .booking-btn:hover {
    background-color: #219955;
  }

  .title-text {
    font-size: 1.6rem;
    text-align: center;
    margin: 20px 0;
    line-height: 1.3;
  }
}

/* Для очень маленьких экранов (до 480 px) */
@media (max-width: 480px) {
  .room-title {
    font-size: 1.2rem;
  }
  
  .room-desc {
    font-size: 0.85rem;
  }
  
  .room-price {
    font-size: 1.3rem;
  }
  
  .title-text {
    font-size: 1.4rem;
  }
}
