/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  background-color: #f7f7f7;
  padding: 20px;
}
.wholeListing {
  gap: 20px;
}
/* Main Container */
.listing {
  padding: 30px;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.listing:hover {
  transform: translateY(-5px);
}

/* Image (BIG like Airbnb) */
.listing img {
  width: 100%;
  height: 500px;

  display: block;
  margin: 20px auto;

  border-radius: 12px;
  border: 2px solid #ddd;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* 🔥 Hover Effect */
.listing img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Content Wrapper */
.listing-content {
  width: 90%; /* 🔥 same as image */
  margin: 0 auto; /* center */
  padding: 10px 0; /* cleaner spacing */
}

/* Title */
.listing h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #222;
}

.description {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Info Section */
.info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

/* Info Items */
.info p {
  font-size: 15px;
  color: #444;
}

.price span {
  font-size: 16px;
  font-weight: bold;
  color: #ff385c;
}

/* Divider */
.divider {
  height: 1px;
  background: #eee;
  margin: 20px 0;
}

/* Back Button */
.back-btn {
  display: inline-block;
  margin: 20px;
  text-decoration: none;
  color: #ff385c;
  font-weight: bold;
}

.editDelete {
  display: flex;
  flex-direction: row; /* 🔥 makes it vertical */
  gap: 12px;
  margin-top: 20px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.editDelete button {
  padding: 8px 25px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

/* Whatsapp Button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background-color: #25d366; /* WhatsApp green */
  color: white;

  padding: 8px 14px;
  border-radius: 25px;

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;
  transition: all 0.25s ease;
}

/* Icon */
.whatsapp-btn i {
  font-size: 16px;
}

/* Hover */
.whatsapp-btn:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Edit button */
.editDelete form:first-child button {
  background-color: #f2f2f2;
  color: #333;
}

.editDelete form:first-child button:hover {
  background-color: #e6e6e6;
}

/* Delete button */
.editDelete form:last-child button {
  background-color: #ff385c;
  color: white;
}

.editDelete form:last-child button:hover {
  background-color: #e03150;
}

#map {
  height: 500px;
  width: 100%;
  margin: 20px auto; /* centers properly */
  border-radius: 12px;
  border: 2px solid grey;
}

/* Title */
.map-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
}

.image-container {
  position: relative; /* important */
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;

  padding: 6px 8px;
  font-size: 18px;
  cursor: pointer;

  transition: all 0.2s ease;
}

/* Hover effect */
.wishlist-btn:hover {
  transform: scale(1.1);
  background: white;
}
