/* ── Provider Cards ──────────────────────────── */
.provider-cards-container {
  max-width: 520px;
  margin: 8px 0;
}

.provider-cards-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--gold);
}

.provider-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.provider-card:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.provider-card:hover {
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.provider-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.provider-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-info {
  flex: 1;
  min-width: 0;
}

.provider-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.provider-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-score-badge {
  background: var(--gold-light);
  color: #8a6d1b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.provider-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.provider-rating .stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: -1px;
}

.provider-tagline {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.provider-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.provider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.provider-tag {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--text-light);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.provider-match-reason {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0ede6;
  font-size: 12px;
  color: var(--success);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.provider-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.btn-select-provider {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}
.btn-select-provider:hover:not(:disabled) {
  filter: brightness(0.9);
}
.btn-select-provider:disabled {
  cursor: not-allowed;
}
.btn-select-provider--selected {
  background: var(--success, #4caf50);
}
.btn-select-provider--maxed:not(.btn-select-provider--selected) {
  opacity: 0.4;
  cursor: not-allowed;
}
.shortlist-continue-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  margin-top: 8px;
  gap: 10px;
}
.shortlist-continue-bar .btn-submit {
  font-size: 14px;
  padding: 10px 28px;
}
.shortlist-selection-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Multi-Profession Tabs ───────────────── */
.shortlist-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}
.shortlist-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.shortlist-tab:hover { color: var(--accent); }
.shortlist-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* Single-tab: looks like category label, not clickable selector */
.shortlist-tab:only-child {
  color: var(--primary);
  border-bottom-color: var(--accent);
  cursor: default;
  font-weight: 700;
}
.shortlist-tab:only-child:hover {
  color: var(--primary);
}
.shortlist-tab-panel { display: none; }
.shortlist-tab-panel--active { display: block; }
.shortlist-tab .tab-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── Combined-First Section ──────────────── */
.shortlist-combined-section {
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--gold-light, #fdf6e3) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--gold-light, #f0ede6);
}
.shortlist-combined-header {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.shortlist-combined-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}
.shortlist-separator {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin: 16px 0;
  position: relative;
}
.shortlist-separator::before,
.shortlist-separator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border);
}
.shortlist-separator::before { left: 0; }
.shortlist-separator::after { right: 0; }

.btn-view-profile {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 12px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-view-profile:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Provider Profile Modal ──────────────────── */
.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}


.profile-modal {
  background: var(--bg);
  width: 480px;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.25s ease;
}


.profile-modal-header {
  position: relative;
  padding: 24px 20px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.profile-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.profile-modal-close:hover {
  color: var(--primary);
}

.profile-modal-identity {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--gold);
}

.profile-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Utility classes (replacing inline styles) ────── */
.profile-modal-avatar-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.profile-modal-avatar-initials {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 600;
}
.sh-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sh-avatar-initials {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.profile-modal-title { margin: 12px 0 4px; font-size: 20px; color: var(--primary); }
.profile-modal-tagline-text { margin: 0 0 8px; color: var(--text-muted); font-size: 14px; }
.profile-modal-rating-display { color: var(--gold); font-size: 16px; }
.profile-modal-rating-display .rating-count { color: var(--text-muted); font-size: 13px; }
.sh-rating-number { color: var(--text-muted); }
.estimate-currency-label { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.profile-section-content { padding: 0 20px; }
.profile-capability-badge { background: var(--chip-bg); color: var(--text-light); }
.provider-avatar-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 16px;
}
.profile-tags-wrapper { padding: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.review-stars { color: var(--gold); }
.profile-review-spotlight--inline { margin: 0 20px; }

.profile-modal-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.profile-modal-tagline {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 2px;
}

.profile-modal-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
}

.profile-modal-body {
  padding: 20px;
}

.profile-section {
  margin-bottom: 20px;
}

.profile-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.profile-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.profile-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.profile-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-tag {
  background: var(--gold-light);
  color: #8a6d1b;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.profile-match-box {
  background: #f0f8f0;
  border: 1px solid #c8e0c8;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
}

.profile-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  gap: 12px;
}

.btn-book-now {
  flex: 1;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-book-now:hover {
  background: var(--accent-hover);
}

.btn-add-shortlist {
  padding: 12px 24px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-add-shortlist:hover {
  border-color: var(--primary);
}

/* ── Trust Signals Row ──────────────────── */
.trust-signals-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 12px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--success-light);
  color: var(--success-dark);
}
.trust-badge--neutral {
  background: #e3f2fd;
  color: #1565c0;
}

/* ── Card-level trust row (compact) ──────── */
.card-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.card-trust-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--success-light);
  color: var(--success-dark);
}
.card-savings-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--warning-light);
  color: var(--warning);
}

/* ── Package Cards ──────────────────── */
.offering-package-card {
  background: linear-gradient(135deg, #fdf6e3, #fffbe8);
  border: 1px solid #e8d5a3;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 8px;
  position: relative;
}
.package-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  margin-bottom: 6px;
}
.package-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.package-description {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.package-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}
.package-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.package-original-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.package-savings {
  font-size: 12px;
  font-weight: 700;
  color: var(--success-dark);
}
.package-includes {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
}
.package-includes span {
  font-weight: 600;
  color: var(--text-primary);
}
.package-includes ul {
  margin: 4px 0 0 16px;
  padding: 0;
  line-height: 1.7;
}

/* ── Individual Offering Row (updated) ──────── */
.profile-offering-description {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.offering-per-person {
  font-size: 11px;
  color: var(--text-light);
}
.offering-group-tiers {
  font-size: 11px;
  color: var(--success-dark);
  margin-top: 2px;
}

/* ── Discount Rows in Breakdown ──────── */
.profile-breakdown-discount-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}
.discount-label {
  color: var(--success-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.discount-amount {
  color: var(--success-dark);
  font-weight: 600;
}
.savings-banner {
  background: var(--success-light);
  color: var(--success-dark);
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}
.discount-available-badge {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Why Me / Process / Included ──────── */
.profile-why-me {
  padding: 0 20px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}
.profile-process-box {
  padding: 12px 16px;
  margin: 0 20px 16px;
  background: #f8f6f0;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}
.included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 16px;
}
.included-col {
  font-size: 12px;
  line-height: 1.8;
}
.included-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 4px;
  font-weight: 700;
}
.included-item {
  color: var(--success-dark);
}
.included-item::before { content: '\2713 '; }
.not-included-item {
  color: var(--text-muted);
}
.not-included-item::before { content: '\2717 '; }

/* ── Policy Display ──────────────────── */
.policy-list {
  padding: 0 20px 16px;
}
.policy-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 6px;
  font-size: 12px;
}
.policy-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  text-transform: capitalize;
  color: var(--primary);
  margin-bottom: 4px;
}
.policy-text {
  color: var(--text-light);
  line-height: 1.5;
}
.policy-timeline {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.policy-tier {
  flex: 1;
  text-align: center;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}
.policy-green { background: var(--success-light); color: var(--success-dark); }
.policy-amber { background: var(--warning-light); color: var(--warning); }
.policy-red { background: var(--danger-light); color: var(--danger-dark); }

/* ── Available Discounts Section ──────── */
.discount-cards {
  padding: 0 20px 16px;
}
.discount-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fdf8;
  border: 1px solid #c8e6c9;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--success-dark);
  font-weight: 500;
}
.discount-card--inactive {
  background: #fafafa;
  border-color: var(--border);
  color: var(--text-muted);
}

/* ── Card Hero Section ──────────────────────── */
.card-hero {
  position: relative;
  height: 140px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-hero-fallback {
  position: relative;
  height: 60px;
  background: linear-gradient(135deg, #f0ede6 0%, #e8e0d5 50%, #ddd6c9 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle dot pattern overlay */
.card-hero-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 168, 78, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  z-index: 0;
}

/* Centered sparkle icon */
.card-hero-fallback::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c8a84e'%3E%3Cpath d='M12 0c.5 4 3 7 6 8-3 1-5.5 4-6 8-.5-4-3-7-6-8 3-1 5.5-4 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

/* Badge repositioning for compact fallback */
.card-hero-fallback .card-hero-score {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}
.card-hero-fallback .card-savings-banner {
  bottom: auto;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.card-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.35));
}

.card-hero-score {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.card-savings-banner {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--success-dark, #2e7d32);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.card-savings-banner.muted {
  background: var(--text-muted, #9e9e9e);
}

/* ── Card Identity Row ─────────────────────── */
.card-identity {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  align-items: flex-start;
}

.card-identity-info {
  flex: 1;
  min-width: 0;
}

.card-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-price-range {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.card-budget-fit {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--success-light, #e8f5e9);
  color: var(--success-dark, #2e7d32);
}

.card-budget-fit.above {
  background: var(--warning-light, #fff3e0);
  color: var(--warning, #f57c00);
}

/* ── Card Review Block ─────────────────────── */
.card-review-block {
  padding: 8px 14px;
  border-top: 1px solid var(--border-light, #f0ede6);
}

.card-review-text {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-review-author {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Availability Badge ────────────────────── */
.avail-badge {
  margin: 0 14px 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm, 6px);
  background: #f5f5f5;
  color: var(--text-muted);
}

.avail-badge--full {
  background: var(--success-light, #e8f5e9);
  color: var(--success-dark, #2e7d32);
}

.avail-badge--partial {
  background: var(--warning-light, #fff3e0);
  color: var(--warning, #f57c00);
}

.avail-badge__detail {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  font-weight: 400;
  opacity: 0.85;
}

/* ── Card Footer ───────────────────────────── */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 10px;
  gap: 8px;
  border-top: 1px solid var(--border-light, #f0ede6);
}

.card-view-link {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all var(--transition);
}

.card-view-link:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Enriched Provider Card ──────────────────── */
.card-portfolio-strip {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.card-portfolio-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--chip-bg);
}
.card-portfolio-thumb--video {
  position: relative;
}
.card-portfolio-thumb--video::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
}
.card-review-snippet {
  font-size: 11px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-estimate-range {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}
.card-estimate-range .budget-fit {
  color: var(--success);
  font-weight: 500;
}
.card-specialization-chip {
  background: var(--gold-light);
  color: #8a6d1b;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.card-capability-badge {
  background: #f0f0f0;
  color: var(--text-light);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ── Enriched Profile Modal Sections ─────────── */
.profile-hero-cover {
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
}
.profile-hero-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55));
  border-radius: var(--radius) var(--radius) 0 0;
}
.profile-hero-cover + .profile-modal-header {
  margin-top: -48px;
  position: relative;
  z-index: 1;
  background: transparent;
  border-bottom: none;
  padding-top: 0;
}
.profile-hero-cover + .profile-modal-header h2 {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.profile-narrative {
  margin: 0 20px 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8f6f0, var(--bg-elevated));
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--primary);
}
.profile-bio {
  padding: 0 20px 12px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}
.profile-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
  padding: 0 20px 16px;
}
.profile-portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--chip-bg);
}
.profile-portfolio-item img,
.profile-portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-portfolio-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
}
.profile-portfolio-item--video::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  pointer-events: none;
}

/* Image shimmer loading state */
.profile-portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--chip-bg) 25%, var(--bg-elevated) 50%, var(--chip-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  z-index: 1;
  border-radius: var(--radius-sm);
}
.profile-portfolio-item.loaded::before { display: none; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.profile-offerings-table {
  padding: 0 20px 16px;
}
.profile-offering-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.profile-offering-row:last-child {
  border-bottom: none;
}
.profile-offering-name {
  color: var(--primary);
  font-weight: 500;
}
.profile-offering-detail {
  color: var(--text-muted);
  font-size: 11px;
}
.profile-offering-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.profile-offering-addons {
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 12px;
}
.profile-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 16px;
}
.profile-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--success-light);
  color: var(--success-dark);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.profile-cert-badge .verified-icon {
  font-size: 12px;
}
.profile-review-spotlight {
  margin: 0 20px 16px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.profile-review-spotlight .review-text {
  font-size: 13px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 6px;
}
.profile-review-spotlight .review-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-evidence-section {
  padding: 0 20px 16px;
}
.profile-evidence-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.profile-evidence-bar .factor-label {
  width: 80px;
  color: var(--text-muted);
  text-transform: capitalize;
  flex-shrink: 0;
}
.profile-evidence-bar .bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.profile-evidence-bar .bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.profile-evidence-bar .score-label {
  width: 30px;
  text-align: right;
  color: var(--text-light);
  font-weight: 600;
  font-size: 11px;
}
.profile-estimate-box {
  margin: 0 20px 16px;
  padding: 14px 16px;
  background: var(--gold-light);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-estimate-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.profile-estimate-box .estimate-savings-block { margin-top: 4px; }
.profile-estimate-box .estimate-also-available { margin-top: 0; }
.profile-estimate-range {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.profile-estimate-confidence {
  font-size: 11px;
  color: var(--text-muted);
}
.profile-estimate-budgetfit {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.profile-estimate-budgetfit.within { background: var(--success-light); color: var(--success-dark); }
.profile-estimate-budgetfit.above { background: var(--warning-light); color: var(--warning); }
.profile-estimate-budgetfit.below { background: var(--success-light); color: var(--success-dark); }

/* Estimate breakdown table */
.profile-breakdown-table { margin: 0 20px 16px; }
.profile-breakdown-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--border-light, #e0ddd5); font-size: 13px; }
.profile-breakdown-row:last-child { border-bottom: none; }
.profile-breakdown-desc { color: var(--text); }
.profile-breakdown-total { font-weight: 600; color: var(--text); white-space: nowrap; }
.profile-breakdown-total-row { border-top: 2px solid var(--border); border-bottom: none; padding-top: 8px; margin-top: 4px; }
.profile-breakdown-total-row .profile-breakdown-desc { font-weight: 700; }
.profile-breakdown-total-row .profile-breakdown-total { font-weight: 700; color: var(--primary); }
.profile-breakdown-event-header { font-weight: 600; font-size: 12px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 0 4px; border-bottom: 1px solid var(--border); margin-top: 4px; }
.profile-breakdown-event-header:first-child { margin-top: 0; padding-top: 0; }
.profile-breakdown-event-row .profile-breakdown-desc { padding-left: 8px; }

/* ── Theme Layout Variants ───────────────────── */
/* vertical_featured: portfolio strip dominant, avatar centered */
.provider-card--vertical-featured .card-portfolio-strip {
  gap: 2px;
  margin-bottom: 12px;
}
.provider-card--vertical-featured .card-portfolio-thumb {
  width: auto;
  height: 64px;
  flex: 1;
  border-radius: 3px;
}
/* portfolio_grid: 2x2 image grid dominates the card */
.provider-card--portfolio-grid {
  display: flex;
  flex-direction: column;
}
.provider-card--portfolio-grid .card-portfolio-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 10px;
}
.provider-card--portfolio-grid .card-portfolio-thumb {
  width: 100%;
  height: 72px;
  border-radius: 3px;
}
/* reel_preview: single video thumbnail fills card top */
.provider-card--reel-preview .card-portfolio-strip {
  margin-bottom: 10px;
}
.provider-card--reel-preview .card-portfolio-thumb {
  width: 100%;
  height: 100px;
  border-radius: 4px;
}
/* comp_card: tall portrait emphasis */
.provider-card--comp-card .provider-avatar {
  width: 64px;
  height: 80px;
  border-radius: 6px;
}

/* ── Availability Badge (multi-event) ────── */
.avail-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin: 0 12px 8px;
  line-height: 1.4;
}

.avail-badge--full {
  background: #e8f5e9;
  color: #2e7d32;
}

.avail-badge--partial {
  background: #fff3e0;
  color: #e65100;
}

.avail-badge__detail {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}
