.hero-apartment {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.hero-apartment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.apartment-details {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  max-width: 1100px;
  margin: auto;
}

.apartment-details .description,
.apartment-details .features {
  flex: 1;
}

.features ul {
  list-style: none;
  font-size: 1.1rem;
  padding-left: 0;
}

.photo-gallery {
  text-align: center;
  padding: 40px 20px;
}

.slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden; /* чтобы лишние картинки не вылазили */
  border-radius: 12px;
}


.slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slider img {
  width: 800px;
  height: 450px;
  object-fit: cover;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.amenities .icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px;
}

.review-card {
  background: #f3f4f6;
  padding: 15px;
  margin: 10px auto;
  max-width: 800px;
  border-radius: 8px;
}

.fixed-buttons {
  position: fixed;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
}

.fixed-buttons a {
  padding: 12px 18px;
  background: #c0392b;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
}

.photo-gallery {
  text-align: center;
  padding: 40px 20px;
}

.slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden; /* чтобы лишние картинки не вылазили */
  border-radius: 12px;
}


.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.slider {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.slider img {
  width: 100%;
  height: auto;
  flex-shrink: 0; /* чтобы все были одинаково по ширине */
  object-fit: cover;
}


.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #d32f2f; /* Красный фон */
  color: #fff; /* Белая стрелка */
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.prev:hover,
.next:hover {
  background: #b71c1c; /* Более темный красный при наведении */
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}


.prev { left: 15px; }
.next { right: 15px; }

.slide-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 20px;
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.thumbnails img.active {
  border: 3px solid #c0392b;
  opacity: 1;
}

@media (max-width: 768px) {
  .slider img {
    width: 100%;
    height: 300px;
  }

  .thumbnails img {
    width: 70px;
    height: 50px;
  }
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.slider-button.prev {
  left: 10px;
}

.slider-button.next {
  right: 10px;
}

/* === Общий шрифт и базовые настройки === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* === Заголовки === */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

h2 {
  color: #c0392b;
}

/* === Текстовые блоки === */
.apartment-details .description,
.apartment-details .features {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.apartment-details .description p {
  margin-bottom: 15px;
}

/* === Список удобств === */
.features ul li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.features ul li:last-child {
  border-bottom: none;
}

/* === Фото-галерея === */
.photo-gallery h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.thumbnails img {
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.thumbnails img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* === Кнопки бронирования === */
.fixed-buttons a {
  background: #c0392b;
  transition: background 0.3s ease;
}

.fixed-buttons a:hover {
  background: #a93226;
}

/* === Адаптивность === */
@media (max-width: 768px) {
  .apartment-details {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .apartment-details .description,
  .apartment-details .features {
    padding: 20px;
  }
}

/* Общий блок секции */
.section-box {
    background: white;
    padding: 20px;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 900px;
}

/* Заголовок секции */
.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #d64532;
    margin-bottom: 15px;
}

/* Содержимое секции */
.section-content {
  column-count: 3;   /* number of columns */
  column-gap: 30px;  /* space between columns */
}
.section-content div {
  break-inside: avoid; /* prevents awkward splits */
  padding: 4px 0;
}

.map-container {
  display: flex;
  justify-content: center;   /* centers horizontally */
  align-items: center;       /* centers vertically (if you give it height) */
  margin-top: 10px;
}

.map-container iframe {
  max-width: 600px;   /* keeps map from being too wide */
  width: 100%;        /* responsive */
  border-radius: 8px;
}
.review-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: center;
}

.review-left {
  flex: 1;              /* takes left space */
  text-align: left;
}

.review-center {
  flex: 1;              /* takes center space */
  text-align: center;
}

.review-score a {
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

.review-left a {
  color: #FF5A5F; /* Airbnb red */
}

.review-center a {
  color: #003580; /* Booking.com blue */
}
