/* LISTING DETAILS */
#listing-details-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem 1rem;
}

#listing-details {
  display: flex;
  flex-direction: column;
  width: 70vw;
  max-width: 1200px;
}

/* Property Info Section */
#property-info {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e0e0e0;
}

#info-left {
  width: 55%;
}

#info-right {
  width: 40%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fafafa;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.property-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.description-section {
  padding: 2rem 0;
  border-bottom: 1px solid #e0e0e0;
}

/* Form Styling */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

input[type="date"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

input[type="date"]:focus {
  outline: none;
  border-color: #333;
}

textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  height: 120px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #333;
}

.reservation-status {
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.reservation-status.confirmed {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Button Styling */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Image Slider */
.slider-container {
  height: 400px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.slider-images {
  display: flex;
  height: 100%;
}

img {
  width: 100%;
  height: 400px;
  flex-shrink: 0;
  object-fit: cover;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  user-select: none;
}

.prev-btn:hover,
.next-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Reviews Section */
#reviews-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 70vw;
  max-width: 1200px;
  margin-top: 2rem;
}

.review-form {
  width: 40%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.review-container {
  width: 55%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reviews {
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.5rem;
}

/* Custom Scrollbar */
.reviews::-webkit-scrollbar {
  width: 6px;
}

.reviews::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.reviews::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.reviews::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.review-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.25rem;
  background: white;
  transition: all 0.2s ease;
}

.review-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.review-author {
  color: #333;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.review-comment {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.no-reviews {
  width: 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
}

/* Smaller star rating */
.starability-result,
.starability-heart {
  font-size: 0.75rem !important;
}

.starability-result::before,
.starability-heart label::before {
  font-size: 0.75rem !important;
}

/* Map */
.map-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

#map {
  height: 450px;
  width: 70vw;
  max-width: 1200px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Media Queries */
@media screen and (max-width: 1200px) {

  #map,
  #listing-details,
  #reviews-wrapper {
    width: 85vw;
  }
}

@media screen and (max-width: 900px) {

  #map,
  #listing-details,
  #reviews-wrapper {
    width: 90vw;
  }

  #property-info {
    flex-direction: column;
    gap: 2rem;
  }

  #info-left,
  #info-right {
    width: 100%;
  }

  #info-right {
    position: static;
  }
}

@media screen and (max-width: 768px) {
  #reviews-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .review-form,
  .review-container,
  .no-reviews {
    width: 100%;
  }

  .slider-container {
    height: 300px;
  }

  img {
    height: 300px;
  }

  .prev-btn,
  .next-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }
}