/* Общие стили */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #e0f2e9;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #2c3e50;
  color: #fff;
  position: relative;
  z-index: 1000;
}

/* Логотип */
.logo img {
  height: 100px;
  width: auto;
}

/* Кнопка "Войти" */
.login-btn {
  background-color: #27ae60; /* Зеленый цвет */
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #219653; /* Темно-зеленый при наведении */
}

/* Наименование */
.property-header {
  margin-bottom: 20px;
  padding: 20px;
  text-align: left; /* Выравнивание текста слева */
}

.property-header h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Адрес, карта и кнопка "Поделиться" */
.address-map-share {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 20px;
}

.address p {
  font-size: 18px;
  color: #555;
  margin: 0;
}

.map-share {
  display: flex;
  gap: 10px;
  align-items: center;
}

.view-map-btn {
  background-color: #27ae60;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.view-map-btn:hover {
  background-color: #219653;
}

.map-share button {
  background-color: #27ae60;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.map-share button:hover {
  background-color: #219653;
}

/* Галерея фотографий */
.photo-gallery {
  margin-bottom: 40px;
  padding: 0 20px;
}

.photo-gallery-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-photo-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
}

.main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.1);
}

/* Описание и карта */
.description-map {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  margin-bottom: 40px;
}

.description {
  flex: 2;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.description h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.description p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.map {
  flex: 1;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Основные удобства */
.amenities {
  margin-bottom: 40px;
  padding: 0 20px;
}

.amenities-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.amenities h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 20px;
}

.amenities ul {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Два столбика */
  gap: 10px; /* Расстояние между элементами */
}

.amenities li {
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.amenities li i {
  margin-right: 10px;
  color: #27ae60;
}

/* Форма бронирования */
.booking-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 20px 40px;
}

.booking-form h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 20px;
}

.booking-form .form-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.booking-form label {
  font-size: 16px;
  color: #2c3e50;
  min-width: 60px;
}

.booking-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.booking-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.booking-footer .price {
  font-size: 20px;
  color: #27ae60;
  font-weight: bold;
}

.booking-form button {
  background-color: #27ae60;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.booking-form button:hover {
  background-color: #219653;
}

/* Подвал */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #2c3e50;
  color: #fff;
  margin-top: auto;
}

footer .footer-left .mark-group {
  height: 30px;
}

footer .footer-right .copyright {
  font-family: Arial, sans-serif;
  margin-right: 20px;
}

footer .footer-right .admin-link {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
}

/* Яндекс.Карта */
#map {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Модальное окно входа */
.login-modal {
  display: none; /* Скрываем модальное окно по умолчанию */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
  justify-content: center;
  align-items: center;
  z-index: 1001; /* Убедитесь, что модальное окно поверх других элементов */
  
}
.login-modal.active {
  display: flex; /* Показываем модальное окно при добавлении класса active */
}
.login-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
}

.login-form h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.login-form input {
  width: 90%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.login-form button {
  width: 100%;
  padding: 10px;
  background-color: #27ae60;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.login-form button:hover {
  background-color: #219653;
}

.error-message {
  color: red;
  margin-top: 10px;
  display: none;
}