/* Property Detail Page Styles */
.property-detail-section {
  padding: 2rem 0 4rem;
  background-color: #fafafa;
}

.back-button-container {
  margin-bottom: 1.5rem;
}

.back-button {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.back-button:hover {
  color: var(--primary-orange);
}

/* Property Gallery */
.property-gallery {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.main-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  background-color: #000;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-gray);
}

.thumbnail-item {
  height: 120px;
  overflow: hidden;
  cursor: pointer;
  border-right: 1px solid var(--border-gray);
  position: relative;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .thumbnail-item {
    height: 80px;
  }
}

.thumbnail-item:last-child {
  border-right: none;
}

.thumbnail-item:hover {
  opacity: 0.8;
}

.thumbnail-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid var(--primary-orange);
}

/* Property Detail Header */
.property-detail-header {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.property-detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.property-detail-address {
  color: var(--text-medium);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.property-price-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-top: 1rem;
}

.property-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-gray);
  background-color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-medium);
}

.action-btn:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  background-color: #fff5ee;
}

/* Property Features Grid */
.property-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-box {
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.feature-label,
.feature-value {
  color: var(--text-medium);
  text-align: center;
  font-family: var(--font-family);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
  letter-spacing: -0.312px;
}

/* Property Sections */
.property-section {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.property-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.property-section p {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Detail Items */
.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-gray);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.detail-label {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 0.25rem;
}

.detail-value {
  font-weight: 600;
  color: var(--text-dark);
}

/* Similar Properties */
.similar-property-card {
  background-color: #fafafa;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

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

.similar-property-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.similar-property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.similar-property-content {
  padding: 1rem;
}

.similar-property-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.similar-property-content h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.similar-property-address {
  color: var(--text-medium);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.similar-property-features {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* Contact Sidebar */
.contact-sidebar {
  position: sticky;
  top: 2rem;
}

.agent-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.agent-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.property-stats-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.property-stats-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-gray);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--text-medium);
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}

/* Responsive - Property Detail */
@media (max-width: 991px) {
  .contact-sidebar {
    position: relative;
    top: 0;
    margin-top: 2rem;
  }

  .property-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-image {
    height: 300px;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-detail-title {
    font-size: 1.5rem;
  }

  .property-price-large {
    font-size: 2rem;
  }

  .property-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-actions {
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .property-detail-header {
    padding: 1.5rem;
  }

  .property-section {
    padding: 1.5rem;
  }

  .agent-card {
    padding: 1.5rem;
  }
}

.thumbnail-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  position: relative;
}

.thumbnail-track {
  display: flex;
  gap: 8px;
  overflow: hidden;
  scroll-behavior: smooth;
  flex: 1;
}

.thumbnail-item {
  flex: 0 0 calc(20% - 7px); /* Shows ~5 at a time */
  min-width: 80px;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.thumbnail-item.active {
  border-color: #2563eb; /* Match your theme colour */
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-arrow {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: background 0.2s;
  z-index: 1;
}

.carousel-arrow:hover {
  background: #f0f0f0;
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
