/* ============================================================
   ScoutCar Services Professionnels - Pixel-Perfect Card Redesign
   Reference: 424px W x 432px H (Image: 187px, Content: 245px)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

.sc-home-services-section {
  position: relative;
}

/* Card Container - Exact Dimensions & Clean Aesthetics (432px baseline) */
.sc-home-pro-card,
.sc-home-pro-card.sc-provider-card,
.sc-home-pro-card.sc-card-top {
  width: 100% !important;
  max-width: 424px !important;
  height: auto !important;
  min-height: auto !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  cursor: pointer !important;
  position: relative !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.sc-home-pro-card:hover,
.sc-home-pro-card.sc-provider-card:hover,
.sc-home-pro-card.sc-card-top:hover {
  transform: translateY(-3px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03) !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
}

.sc-home-pro-card:focus-visible {
  outline: 2px solid #008a3e !important;
  outline-offset: 2px !important;
}

/* Top: Full-Width Image Container (~187px) */
.sc-home-pro-card .sc-home-pro-media,
.sc-home-pro-media {
  position: relative !important;
  width: 100% !important;
  height: 187px !important;
  max-height: 187px !important;
  background-color: #f1f5f9 !important;
  overflow: hidden !important;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sc-home-pro-media .sc-provider-img {
  width: 100% !important;
  height: 187px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

.sc-home-pro-card:hover .sc-home-pro-media .sc-provider-img {
  transform: scale(1.04) !important;
}

/* Content Area (~245px baseline) */
.sc-home-pro-card .sc-home-pro-body,
.sc-home-pro-body {
  height: auto !important;
  min-height: auto !important;
  padding: 20px 24px 18px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: none !important;
}

/* Upper Info Wrapper */
.sc-home-pro-top-content {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 0 !important;
  width: 100% !important;
}

/* Row 1: Badges Row (Vérifié on left, Top Services / Other on right) */
.sc-card-badges-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 24px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
}

/* Verified Badge - Blue Styling */
.sc-home-pro-card .sc-badge-verified,
.sc-badge.sc-badge-verified {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(0, 123, 255, 0.1) !important;
  background-color: rgba(0, 123, 255, 0.1) !important;
  color: #007BFF !important;
  border: 1px solid #007BFF !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  width: fit-content !important;
}

.sc-home-pro-card .sc-badge-verified .material-symbols-outlined,
.sc-badge.sc-badge-verified .material-symbols-outlined {
  color: #007BFF !important;
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'opsz' 20 !important;
}

/* Recommandé Badge */
.sc-home-pro-card .sc-badge-recom,
.sc-badge.sc-badge-recom {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background-color: #fef3c7 !important;
  color: #92400e !important;
  padding: 3px 10px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  width: fit-content !important;
}

.sc-home-pro-card .sc-badge-recom .material-symbols-outlined,
.sc-badge.sc-badge-recom .material-symbols-outlined {
  color: #92400e !important;
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'opsz' 20 !important;
}

/* Badges Row Layout */
.sc-card-badges-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

/* Badges inside .sc-home-pro-media (top-left corner) */
.sc-home-pro-media .sc-media-badge-top,
.sc-home-pro-media .sc-media-badge.sc-media-badge-top {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  z-index: 10 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  border-radius: 5px !important;
  width: fit-content !important;
  max-width: calc(100% - 24px) !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
  background: #FFE6F7 !important;
  color: #CC0687 !important;
}

.sc-home-pro-media .sc-media-badge .sc-media-badge-icon {
  font-family: 'Material Symbols Outlined' !important;
  font-size: 12px !important;
  line-height: 1 !important;
  color: inherit !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.sc-home-pro-media .sc-media-badge .sc-media-badge-text {
  color: inherit !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Badges in Badges Row - Reuses sc-media-badge styling */
.sc-home-pro-card .sc-card-badges-row .sc-media-badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  border-radius: 5px !important;
  width: fit-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  margin-left: auto !important;
}

.sc-home-pro-card .sc-card-badges-row .sc-media-badge.sc-media-badge-top,
.sc-home-pro-card .sc-card-badges-row .sc-media-badge-top {
  background: #FFE6F7 !important;
  color: #CC0687 !important;
  border-color: rgba(204, 6, 135, 0.2) !important;
}

.sc-home-pro-card .sc-card-badges-row .sc-media-badge.sc-media-badge-new,
.sc-home-pro-card .sc-card-badges-row .sc-media-badge-new {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #E08A00 !important;
}

.sc-home-pro-card .sc-card-badges-row .sc-media-badge-new .sc-media-badge-icon {
  display: none !important;
}

.sc-home-pro-card .sc-card-badges-row .sc-media-badge .sc-media-badge-icon {
  font-family: 'Material Symbols Outlined' !important;
  font-size: 12px !important;
  line-height: 1 !important;
  color: inherit !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.sc-home-pro-card .sc-card-badges-row .sc-media-badge .sc-media-badge-text {
  color: inherit !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Sponsorisé Badge */

.sc-home-pro-card .sc-badge-sponsored-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 10px !important;
  background-color: #FFEDD5 !important;
  color: #C2410C !important;
  border: 1px solid rgba(194, 65, 12, 0.2) !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Row 2: Provider Name with Verified Icon */
.sc-home-pro-body .sc-provider-name {
  font-size: 1.25rem !important; /* 20px */
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin: 0 0 10px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.sc-home-pro-body .sc-provider-link {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sc-home-pro-body .sc-provider-link:hover {
  color: #008a3e !important;
}

.sc-home-pro-body .sc-provider-name .sc-verified-icon,
.sc-verified-icon {
  font-family: 'Material Symbols Outlined' !important;
  color: #007BFF !important;
  font-size: 18px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'opsz' 20 !important;
  user-select: none !important;
}

/* Row 3: Location (left) and Rating/Reviews (right) in same row */
.sc-provider-meta-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 20px !important;
  margin-bottom: 10px !important;
  font-size: 0.875rem !important;
  width: 100% !important;
}

/* Location */
.sc-provider-meta-row .sc-provider-location {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #64748b !important;
  font-size: 0.875rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 55% !important;
}

.sc-provider-meta-row .sc-loc-icon {
  font-family: 'Material Symbols Outlined' !important;
  font-size: 16px !important;
  color: #94a3b8 !important;
  flex-shrink: 0 !important;
}

/* Rating Box */
.sc-provider-meta-row .sc-provider-rating-box {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  font-size: 0.875rem !important;
  margin-left: auto !important;
}

.sc-provider-meta-row .sc-star-icon {
  font-family: 'Material Symbols Outlined' !important;
  font-size: 16px !important;
  color: #f59e0b !important;
  font-variation-settings: 'FILL' 1, 'wght' 600 !important;
  flex-shrink: 0 !important;
}

.sc-provider-meta-row .sc-rating-val {
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 0.875rem !important;
}

.sc-provider-meta-row .sc-reviews-count {
  color: #64748b !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
}

/* Row 4: Single Service Specialty */
.sc-home-pro-body .sc-provider-specialty {
  font-size: 0.875rem !important;
  color: #64748b !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Bottom CTA Container */
.sc-home-pro-bottom,
.sc-home-pro-body .sc-home-pro-bottom {
  margin-top: 8px !important;
  padding-top: 0 !important;
  width: 100% !important;
}

/* Row 5: Thin Horizontal Divider */
.sc-home-pro-body .sc-card-divider {
  border: 0 !important;
  border-top: 1px solid #f1f5f9 !important;
  margin: 0 0 10px 0 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}

/* Row 6: Bottom CTA - Modern Pill-shaped Green Style */
.sc-home-pro-cta-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 8px 10px 8px 18px !important;
background: linear-gradient(
    135deg,
    rgb(0 138 62 / var(--tw-bg-opacity, 1)) 0%,
    rgb(0 110 50 / var(--tw-bg-opacity, 1)) 100%
) !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  text-decoration: none !important;
  user-select: none !important;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
}

.sc-home-pro-cta-row .sc-cta-text {
  color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
}

.sc-home-pro-cta-row .sc-cta-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  color: #16a34a !important;
  font-family: 'Material Symbols Outlined' !important;
  font-size: 16px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.25s ease, color 0.25s ease !important;
}

/* Hover effects */
.sc-home-pro-card:hover .sc-home-pro-cta-row,
.sc-home-pro-cta-row:hover {
  transform: translateY(-2px) !important;
  background: linear-gradient(
    135deg,
    rgb(0 138 62 / var(--tw-bg-opacity, 1)) 0%,
    rgb(0 110 50 / var(--tw-bg-opacity, 1)) 100%
) !important;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35) !important;
}

.sc-home-pro-card:hover .sc-cta-arrow,
.sc-home-pro-cta-row:hover .sc-cta-arrow {
  transform: translateX(3px) !important;
  color: #15803d !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .sc-home-pro-card,
  .sc-home-pro-card.sc-provider-card,
  .sc-home-pro-card.sc-card-top {
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
  }
  .sc-home-pro-media,
  .sc-home-pro-card .sc-home-pro-media {
    height: 170px !important;
  }
  .sc-home-pro-media .sc-provider-img {
    height: 170px !important;
  }
  .sc-home-pro-body,
  .sc-home-pro-card .sc-home-pro-body {
    height: auto !important;
    min-height: auto !important;
    padding: 18px 20px 16px 20px !important;
  }
}
