/* -----------------------------
   Yacht Listings Container
----------------------------- */
.yacht-listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 auto;
  padding: 20px 0;
}

/* -----------------------------
   Individual Yacht Card
----------------------------- */
.yacht-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px;
}

/* Hover effect */
.yacht-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

/* -----------------------------
   Yacht Image
----------------------------- */
.yacht-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.yacht-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Zoom effect on image hover */
.yacht-card:hover .yacht-image img {
  transform: scale(1.05);
}

/* -----------------------------
   Yacht Details
----------------------------- */
.yacht-details {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.yacht-details h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.yacht-meta {
  font-size: 14px;
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* View Details Button */
.yacht-details-btn {
  display: inline-block;
  text-align: center;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #f0a341;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.yacht-details-btn:hover {
  background-color: #d3892d;
  transform: translateY(-2px);
}

/* -----------------------------
   Responsive Tweaks
----------------------------- */
@media (max-width: 1024px) {
  .yacht-card {
    min-height: 400px;
  }
  .yacht-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .yacht-listings {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .yacht-card {
    min-height: 380px;
  }
  .yacht-image {
    height: 160px;
  }
}
