/* Listing Detail Page Styles */
.listing-detail-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.listing-image-gallery {
  margin-bottom: 30px;
}

.listing-image-gallery .main-image {
  width: 100%;
  height: 450px; /* Main image fixed height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: none; /* Hide all by default, show active image */
}

.listing-image-gallery .main-image.active {
  display: block;
}

.listing-image-gallery .thumbnail-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px; /* Space for scrollbar */
}

.listing-image-gallery .thumbnail {
  width: 120px; /* Thumbnail size adjustment */
  height: 90px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.listing-image-gallery .thumbnail.active {
  border-color: #000; /* Active thumbnail border (black) */
}

.listing-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #333;
  font-weight: 700;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.95em;
  color: #666;
}

.listing-meta .badge {
  font-size: 0.9em;
  padding: 5px 10px;
}

.listing-meta i {
  margin-right: 5px;
}

.listing-header .price {
  font-size: 2.5em;
  font-weight: 800;
  color: #000; /* Black for price */
  margin-bottom: 20px;
}

.listing-description p {
  line-height: 1.7;
  color: #555;
}

.listing-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.listing-details-grid div {
  background-color: #f9f9f9;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 1em;
  color: #444;
  font-weight: 500;
}

.listing-contact-info p {
  margin-bottom: 10px;
  color: #555;
}

.listing-contact-info strong {
  color: #333;
}

.listing-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.listing-actions .btn {
  padding: 12px 25px;
  font-size: 1.05em;
  border-radius: 8px;
  background-color: #000; /* Black for action buttons */
  border-color: #000;
  color: #fff;
}
.listing-actions .btn:hover {
  background-color: #333;
  border-color: #333;
}

.comments-section .comment-list {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fcfcfc;
}

.comments-section .comment-item {
  padding: 15px 0;
  border-bottom: 1px dashed #eee;
}

.comments-section .comment-item:last-child {
  border-bottom: none;
}

.comments-section .comment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  min-height: 100px;
  font-size: 1em;
}

.sidebar-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-card h4 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  font-weight: 700;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card ul li {
  margin-bottom: 12px;
}

.sidebar-card ul li a {
  text-decoration: none;
  color: #000; /* Black for sidebar links */
  font-weight: 500;
  transition: color 0.2s ease;
}

.sidebar-card ul li a:hover {
  text-decoration: underline;
  color: #555; /* Darker grey on hover */
}
