.detail-page-wrapper {
  background: #f5f7fb;
  padding: 120px 0 80px;
}
/* Override modern-card styles for detail page */
.hero-media-card {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}
.hero-media-card.overflow-hidden {
  overflow: visible !important;
}
.hero-media-card .position-relative {
  background: #e5ecf4;
  border-radius: 0;
  border: none;
  width: 100%;
  position: relative;
  min-height: 450px;
  display: block;
}
/* --- Fix Image Aspect Ratio in Carousels / Galleries --- */
.service-gallery.carousel {
  width: 100% !important;
  height: 450px !important;
  background: #e5ecf4;
  border-radius: 0;
  overflow: hidden;
  display: block !important;
  position: relative;
}
.service-gallery .carousel-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  position: relative;
}
.service-gallery .carousel-item {
  width: 100% !important;
  height: 100% !important;
  background: #e5ecf4;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.service-gallery .carousel-item.active {
  display: block !important;
}
.service-gallery .carousel-item:not(.active) {
  display: none !important;
}
.gallery-frame {
  width: 100% !important;
  height: 100% !important;
  min-height: 450px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  position: relative;
  padding: 0;
  margin: 0;
}
.service-gallery img,
.gallery-image {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 450px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  border-radius: 0;
  border: none;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #e5ecf4;
  margin: 0;
  padding: 0;
}
/* Ensure active carousel items show images */
.service-gallery .carousel-item.active img,
.service-gallery .carousel-item.active .gallery-image {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
}
.thumbnail-btn img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.thumbnail-btn:hover img {
  transform: scale(1.05);
  border-color: #1a4d6e;
}
.price-panel {
  background: linear-gradient(135deg, rgba(26, 77, 110, 0.08), rgba(26, 77, 110, 0.02));
  border-left: 4px solid #d4af37;
  border-radius: 18px;
  padding: 24px;
}
.notes-panel {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid #d4af37;
  border-radius: 14px;
  padding: 16px;
  line-height: 1.8;
}
.accordion-button {
  color: #1a4d6e;
  background: rgba(26, 77, 110, 0.05);
}
.accordion-button:not(.collapsed) {
  background: rgba(26, 77, 110, 0.1);
  color: #1a4d6e;
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 77, 110, 0.15);
  border-color: rgba(26, 77, 110, 0.4);
}
.accordion-item {
  border: 1px solid rgba(26, 77, 110, 0.1);
  border-radius: 18px;
  overflow: hidden;
}
.info-chip {
  background: rgba(26, 77, 110, 0.05);
  border-radius: 16px;
  padding: 18px;
  color: #1a4d6e;
}
.info-chip i {
  color: #1a4d6e;
}
@media (max-width: 768px) {
  .detail-page-wrapper {
    padding-top: 100px;
  }
  .hero-media-card .position-relative {
    min-height: 350px !important;
  }
  .service-gallery.carousel {
    height: 350px !important;
  }
  .gallery-frame {
    min-height: 350px !important;
    height: 350px !important;
  }
  .service-gallery img,
  .gallery-image {
    min-height: 350px !important;
    max-height: 350px !important;
    height: 350px !important;
    width: 100% !important;
    display: block !important;
  }
}
@media (max-width: 576px) {
  .detail-page-wrapper {
    padding-top: 80px;
  }
  .service-price {
    font-size: 1.75rem;
  }
  .hero-media-card .position-relative {
    min-height: 300px !important;
  }
  .service-gallery.carousel {
    height: 300px !important;
  }
  .gallery-frame {
    min-height: 300px !important;
    height: 300px !important;
  }
  .service-gallery img,
  .gallery-image {
    min-height: 300px !important;
    max-height: 300px !important;
    height: 300px !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

