/* ============================================
   CLINIC DETAILS PAGE - PROFESSIONAL DESIGN
   Balanced mix of simplicity & beauty
   ============================================ */

:root {
  --primary-blue: #B17A30;
  --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
  --success-green: #10b981;
  --danger-red: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #6b7280;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.clinic-pro-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 0;
  margin: 2rem auto 3rem;
  max-width: 1400px;
  overflow: hidden;
  position: relative;
}

/* Elegant top accent bar */
.clinic-pro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

/* ============================================
   HEADER SECTION
   ============================================ */
.clinic-pro-header {
  padding: 2.5rem 2.5rem 2rem;
  background: linear-gradient(to bottom, var(--gray-50) 0%, white 100%);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.clinic-pro-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.clinic-pro-meta {
  font-size: 1rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.clinic-pro-meta i {
  color: var(--danger-red);
  font-size: 1.15rem;
}

/* ============================================
   BADGES & STATUS
   ============================================ */
.clinic-badges-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.clinic-specialty-badge {
  background: var(--primary-gradient);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.clinic-specialty-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

.clinic-pro-status {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.clinic-pro-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.clinic-pro-status.available {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.clinic-pro-status.available::before {
  background: var(--success-green);
}

.clinic-pro-status.sold {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.clinic-pro-status.sold::before {
  background: var(--danger-red);
}

/* ============================================
   PRICE BOX
   ============================================ */
.clinic-price-box {
  background: white;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.clinic-price-box:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.15);
}

.clinic-price-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.clinic-pro-price {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  display: block;
}

.clinic-published-date {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.clinic-published-date i {
  color: var(--primary-blue);
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.clinic-pro-card .row.g-4 {
  padding: 2.5rem;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.clinic-gallery-section {
  background: white;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.clinic-pro-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.clinic-pro-section-title i {
  color: var(--primary-blue);
  font-size: 1.75rem;
}

/* Carousel Styling */
.clinic-pro-gallery-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 1.5rem;
}

.clinic-pro-gallery-slider .carousel-inner {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.clinic-pro-gallery-slider .carousel-item {
  position: relative;
}

.clinic-pro-gallery-slider .carousel-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
  pointer-events: none;
}

.clinic-pro-gallery-slider .carousel-item img {
  object-fit: cover;
  /* height: 100% !important; */
  width: 100% !important;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.clinic-pro-gallery-slider .carousel-item:hover img {
  transform: scale(1.03);
}

/* Carousel Controls */
.clinic-pro-gallery-slider .carousel-control-prev,
.clinic-pro-gallery-slider .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clinic-pro-gallery-slider:hover .carousel-control-prev,
.clinic-pro-gallery-slider:hover .carousel-control-next {
  opacity: 1;
}

.clinic-pro-gallery-slider .carousel-control-prev {
  left: 1rem;
}

.clinic-pro-gallery-slider .carousel-control-next {
  right: 1rem;
}

.clinic-pro-gallery-slider .carousel-control-prev-icon,
.clinic-pro-gallery-slider .carousel-control-next-icon {
  background-color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background-size: 24px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  opacity: 0.9;
}

.clinic-pro-gallery-slider .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.clinic-pro-gallery-slider .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.clinic-pro-gallery-slider .carousel-control-prev-icon:hover,
.clinic-pro-gallery-slider .carousel-control-next-icon:hover {
  transform: scale(1.1);
  opacity: 1;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

/* Carousel Indicators */
.clinic-pro-gallery-slider .carousel-indicators {
  margin-bottom: 1rem;
}

.clinic-pro-gallery-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: 2px solid white;
  transition: var(--transition);
  margin: 0 4px;
  opacity: 0.7;
}

.clinic-pro-gallery-slider .carousel-indicators .active {
  background-color: white;
  opacity: 1;
  transform: scale(1.2);
}

/* Thumbnail Gallery */
.clinic-thumbnails {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.clinic-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

.clinic-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 110, 253, 0);
  transition: var(--transition);
}

.clinic-thumbnail:hover::after {
  background: rgba(13, 110, 253, 0.2);
}

.clinic-thumbnail:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.clinic-thumbnail.active {
  border-color: var(--primary-blue);
  border-width: 3px;
  transform: scale(1.05);
}

.clinic-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.clinic-thumbnail:hover img {
  transform: scale(1.1);
}

/* ============================================
   DETAILS SECTION
   ============================================ */
.clinic-details-section {
  background: white;
  padding: 0;
  border-radius: var(--radius-lg);
}

.clinic-details-section > h3 {
  padding: 1.5rem 1.5rem 0;
}

/* Info Cards Grid */
.clinic-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0 1.5rem;
}

.clinic-info-card {
  background: var(--gray-50);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.clinic-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.clinic-info-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-blue);
  background: white;
  box-shadow: var(--shadow-md);
}

.clinic-info-card:hover::before {
  transform: scaleX(1);
}

.clinic-info-card-icon {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.clinic-info-card-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.clinic-info-card-value {
  font-size: 1.25rem;
  color: var(--gray-900);
  font-weight: 700;
}

.clinic-info-card-value i {
  font-size: 1rem;
  vertical-align: middle;
}

/* ============================================
   DESCRIPTION SECTION
   ============================================ */
.clinic-details-section .mt-4 {
  padding: 0 1.5rem;
  margin-top: 2rem !important;
}

.clinic-details-section .mt-4 h4 {
  padding-left: 0;
}

.clinic-description-box {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  margin-top: 1rem;
  line-height: 1.75;
  font-size: 1rem;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.clinic-contact-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 2rem 1.5rem 1.5rem;
  border: 1px solid #bfdbfe;
}

.clinic-pro-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clinic-pro-contact li {
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.clinic-pro-contact li:last-child {
  margin-bottom: 0;
}

.clinic-pro-contact li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.clinic-pro-label {
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clinic-pro-label i {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.clinic-pro-contact a {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.clinic-pro-contact a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-contact-btn {
  background: linear-gradient(135deg, #25d366 0%, #1ebe58 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-contact-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.whatsapp-contact-btn:hover::before {
  width: 400px;
  height: 400px;
}

.whatsapp-contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-contact-btn:active {
  transform: translateY(-1px);
}

.whatsapp-contact-btn i {
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.whatsapp-contact-btn span {
  position: relative;
  z-index: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
  .clinic-pro-card .row.g-4 {
    padding: 2rem 1.5rem;
  }

  .clinic-pro-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .clinic-pro-title {
    font-size: 1.875rem;
  }

  .clinic-pro-price {
    font-size: 2rem;
  }

  .clinic-pro-gallery-slider .carousel-item img {
    height: 380px;
  }

  .clinic-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 767px) {
  .clinic-pro-card {
    margin: 1rem auto 2rem;
    border-radius: var(--radius-lg);
  }

  .clinic-pro-header {
    padding: 1.5rem 1.25rem;
  }

  .clinic-pro-card .row.g-4 {
    padding: 1.5rem 1.25rem;
  }

  .clinic-pro-title {
    font-size: 1.5rem;
  }

  .clinic-pro-meta {
    font-size: 0.9rem;
  }

  .clinic-pro-price {
    font-size: 1.75rem;
  }

  .clinic-price-box {
    margin-top: 1.5rem;
  }

  .clinic-badges-wrapper {
    justify-content: flex-start;
  }

  .clinic-pro-gallery-slider .carousel-item img {
    height: 280px;
  }

  .clinic-pro-section-title {
    font-size: 1.25rem;
    padding: 1.25rem 1.25rem 0;
  }

  .clinic-info-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1.25rem;
  }

  .clinic-details-section .mt-4,
  .clinic-contact-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .clinic-contact-section {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  .whatsapp-contact-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }

  .clinic-thumbnail {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 575px) {
  .clinic-pro-card::before {
    height: 3px;
  }

  .clinic-specialty-badge,
  .clinic-pro-status {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .clinic-info-grid {
    grid-template-columns: 1fr;
  }

  .clinic-pro-gallery-slider .carousel-item img {
    height: 240px;
  }

  .clinic-thumbnail {
    width: 60px;
    height: 60px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient-blue {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}