.villa-cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.villa-card {
  flex: 1 1 0;
  max-width: 380px;
  min-width: 300px; 
  margin: 0 10px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.villa-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 10;
}

.villa-card .image-container {
  position: relative;
  overflow: hidden;
}

.villa-card img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.villa-card:hover img {
  transform: scale(1.1);
}

.villa-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 0 0 6px 6px;
  text-align: center;
}

.villa-card:hover .overlay {
  opacity: 1;
}

.villa-card .overlay h3 {
  margin: 0 0 5px 0;
  font-size: 22px;
}

.villa-card .overlay p {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
}

.villa-name-fixed {
  font-weight: bold;
  font-size: 18px;
  margin: 10px 0;
  color: #333;
  text-align: center;
}

.slider-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  flex-direction: column;
}
.slider-img {
  max-width: 90vw;
  max-height: 80vh;
  margin: 20px 0;
}
.slider-close {
  position: absolute;
  top: 30px; right: 50px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}
.slider-prev, .slider-next {
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
}
.slider-prev { left: 30px; }
.slider-next { right: 30px; }