/* основная карточка дачи */

.cottage {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7)), url('../images/cottage/cottage-back.jpg');
  background-position: center 50%;
}
.dacha-card {
  background: #ffffff;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid #ede3d5;
  transition: transform 0.2s ease;
  margin-bottom: 3rem;
}

.dacha-card:hover {
  /* transform: translateY(-4px); */
  box-shadow: 0 24px 36px -12px rgba(0, 0, 0, 0.15);
}

/* фото-блок: широкий, с автоматической высотой */
.photo-block {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center 40%;
  background-color: #d9cfbc;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

/* .photo-label {
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(6px);
      color: white;
      font-size: 0.85rem;
      font-weight: 500;
      padding: 0.4rem 1.2rem;
      border-radius: 0 20px 0 0;
      letter-spacing: 0.5px;
      font-family: monospace;
    } */

/* контент */
.content-block {
  padding: 2rem 2rem 2.2rem;
}

.dacha-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c4a3b;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.address-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0ede7;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #9b5e2c;
  margin: 0.75rem 0 1.25rem 0;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.7rem 0;
  color: #2c3e35;
  border-left: 4px solid #c7873a;
  padding-left: 0.75rem;
}

.description-text {
  font-size: 1.2rem;
  color: #2c3a33;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
}

.feature-item {
  background: #f3efe7;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #8a5a2e;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #f8f5ef;
  border-radius: 1.2rem;
  padding: 1.2rem;
  margin: 1.2rem 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.info-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #b68b54;
}

.info-value {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1e2a2e;
}

/* .info-image {
  margin: 1rem 0;
  
}
.info-image img {
  width: 50px; height: 50px;
  cursor: pointer;
} */

.gallery-tag {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: #7e8b82;
  font-style: italic;
  border-top: 1px dashed #dfd5c5;
  padding-top: 1.2rem;
}


/* фейковое изображение по умолчанию — можно заменить на свою ссылку */
.default-dacha-img {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/cottage.jpg');
  background-size: cover;
  background-position: center 50%;
}

/* МОДАЛЬНОЕ */
.modal-slider {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.modal-slider.active {
  display: flex;
}
.modal-slider img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  border: none;
  font-size: 40px;
  cursor: pointer;
  padding: 10px 20px;
  color: white;
  border-radius: 8px;
}
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.close-slider {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
.info-image {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
}
.info-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 140px));
  justify-content: space-around;
}
.info-image img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}
.info-image-gallery img {
  width: 100%;
}
.info-image img:hover {
  opacity: 0.8;
  transform: scale(0.98);
}
@media (max-width: 768px) {
  .cottage {
    background-position: inherit;
  }
}

@media (max-width: 680px) {
  /* .container {
      padding: 1.2rem 1rem 2rem;
    } */

  /* .hero h1 {
      font-size: 1.9rem;
    } */

  .dacha-title {
    font-size: 1.6rem;
  }

  .content-block {
    padding: 1.4rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}