/* 
   KidsMap Specialists Public Section Stylesheet (Scoped)
   Handles styling for:
   - Specialists Catalog List (.km-specialists-catalog)
   - Specialists Detail Page (.km-specialists-detail)
*/

/* ----------------------------------------------------
   1. COMMON UTILITIES & DESIGN SYSTEM TOKENS
   ---------------------------------------------------- */
:root {
  --km-primary: #4f46e5;
  --km-primary-hover: #4338ca;
  --km-primary-light: #e0e7ff;
  --km-secondary: #7c3aed;
  --km-success: #10b981;
  --km-success-bg: #ecfdf5;
  --km-warning: #fbbf24;
  --km-gray-50: #f9fafb;
  --km-gray-100: #f3f4f6;
  --km-gray-200: #e5e7eb;
  --km-gray-300: #d1d5db;
  --km-gray-600: #4b5563;
  --km-gray-700: #374151;
  --km-gray-900: #111827;
  --km-font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --km-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --km-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --km-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --km-radius-md: 12px;
  --km-radius-lg: 16px;
  --km-radius-xl: 24px;
}

/* ============================================================
   Specialist UX refresh — scoped additions
   ============================================================ */
.km-specialists-page,
.km-specialist-detail-page,
.km-specialist-owner-page,
.km-specialist-owner-form {
  --km-primary: #009a4e;
  --km-primary-hover: #087b43;
  --km-primary-light: #e8f7ef;
  --km-secondary: #0f766e;
  --km-ink: #12201a;
  --km-muted: #647067;
  --km-line: #dfe8e2;
  --km-surface: #ffffff;
  --km-page: #f7faf8;
  --km-radius-sm: 8px;
  --km-radius-md: 10px;
  --km-radius-lg: 14px;
  --km-shadow-card: 0 10px 30px rgba(20, 42, 31, 0.08);
}

.km-specialists-page [hidden],
.km-specialist-owner-form [hidden] {
  display: none !important;
}

body.km-filter-lock {
  overflow: hidden;
}

.km-specialists-page {
  background: var(--km-page);
  padding: 20px clamp(14px, 3vw, 32px) 42px;
}

.km-specialists-page .km-specialists-hero {
  max-width: 1240px;
  margin: 0 auto 22px;
  padding: clamp(24px, 4vw, 38px);
  text-align: left;
  color: var(--km-ink);
  background: linear-gradient(135deg, #ffffff 0%, #eefaf3 100%);
  border: 1px solid var(--km-line);
  border-radius: var(--km-radius-lg);
  box-shadow: var(--km-shadow-card);
}

.km-specialists-page .km-specialists-hero::after {
  display: none;
}

.km-specialists-page .km-specialists-hero h1 {
  max-width: 760px;
  color: var(--km-ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  text-shadow: none;
  letter-spacing: 0;
}

.km-specialists-page .km-specialists-hero p {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--km-muted);
  opacity: 1;
}

.km-hero-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--km-line);
  border-radius: var(--km-radius-lg);
  box-shadow: 0 12px 28px rgba(0, 154, 78, 0.1);
}

.km-hero-search i {
  color: var(--km-primary);
  margin-left: 10px;
}

.km-hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  min-height: 42px;
  font-size: 1rem;
  color: var(--km-ink);
}

.km-hero-search button,
.km-btn-apply,
.km-specialists-page .km-btn-card-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: var(--km-radius-sm);
  background: var(--km-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.km-hero-search button {
  padding: 0 18px;
}

.km-popular-directions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.km-popular-directions a,
.km-chip,
.km-spec-tag,
.km-lang-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--km-line);
  color: var(--km-ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.km-specialists-page .km-specialists-layout {
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 20px;
}

.km-mobile-filter-button {
  display: none;
  width: min(100%, 1240px);
  margin: 0 auto 14px;
  min-height: 44px;
  border: 1px solid var(--km-line);
  border-radius: var(--km-radius-md);
  background: #fff;
  color: var(--km-ink);
  font-weight: 750;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.km-mobile-filter-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--km-primary);
  color: #fff;
  font-size: 0.75rem;
}

.km-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.34);
  z-index: 998;
}

.km-specialists-page .km-filters-panel,
.km-specialists-page .km-catalog-toolbar,
.km-specialists-page .km-specialist-card,
.km-specialist-detail-page .km-detail-header-card,
.km-specialist-detail-page .km-detail-section,
.km-specialist-detail-page .km-side-card {
  border: 1px solid var(--km-line);
  border-radius: var(--km-radius-lg);
  box-shadow: var(--km-shadow-card);
}

.km-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.km-specialists-page .km-filters-panel h2,
.km-filter-title h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--km-ink);
}

.km-filter-close {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--km-line);
  border-radius: var(--km-radius-sm);
  background: #fff;
  color: var(--km-ink);
}

.km-filter-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #314038;
}

.km-filter-group label i {
  color: var(--km-primary);
  width: 16px;
  text-align: center;
}

.km-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* ─── Premium Custom Select for Specialists Filters ─── */
.km-specialists-page .km-custom-select {
  position: relative;
  width: 100%;
}

.km-specialists-page .km-custom-select__trigger {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  border-radius: var(--km-radius-sm);
  border: 1.5px solid var(--km-line);
  background: #ffffff;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--km-ink);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.km-specialists-page .km-custom-select__trigger:hover {
  border-color: var(--km-primary);
  background: #fbfdfc;
  box-shadow: 0 3px 8px rgba(0, 154, 78, 0.08);
}

.km-specialists-page .km-custom-select.is-open .km-custom-select__trigger,
.km-specialists-page .km-custom-select__trigger:focus-visible {
  border-color: var(--km-primary);
  box-shadow: 0 0 0 3.5px rgba(0, 154, 78, 0.15);
  background: #ffffff;
}

.km-specialists-page .km-custom-select__value {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--km-ink);
}

.km-specialists-page .km-custom-select__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.km-specialists-page .km-custom-select__arrow svg {
  display: block;
  width: 17px;
  height: 17px;
}

.km-specialists-page .km-custom-select.is-open .km-custom-select__arrow {
  transform: rotate(180deg);
  color: var(--km-primary);
}

/* Floating Custom Select Menu */
.km-specialists-page .km-custom-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 200px;
  max-height: 270px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 154, 78, 0.22);
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0 12px 28px -4px rgba(15, 23, 42, 0.14),
    0 4px 10px rgba(15, 23, 42, 0.05);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s;
  pointer-events: none;
}

.km-specialists-page .km-custom-select.is-open .km-custom-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.km-specialists-page .km-custom-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: all 0.14s ease;
}

.km-specialists-page .km-custom-select__option:hover {
  background: #edf7f1;
  color: #067245;
  transform: translateX(2px);
}

.km-specialists-page .km-custom-select__option.is-selected {
  background: #e1f4e9;
  color: #086b3b;
  font-weight: 700;
}

.km-specialists-page .km-custom-select__option.is-selected::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--km-primary);
  box-shadow: 0 0 5px rgba(0, 154, 78, 0.6);
  flex-shrink: 0;
}

.km-specialists-page .km-custom-select__opt-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.km-specialists-page .km-custom-select__opt-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  flex-shrink: 0;
}

.km-specialists-page .km-custom-select__option:hover .km-custom-select__opt-count,
.km-specialists-page .km-custom-select__option.is-selected .km-custom-select__opt-count {
  background: #c2ebd4;
  color: #086b3b;
}

/* Sort dropdown specifically on toolbar */
.km-specialists-page .km-sort-custom-select {
  min-width: 200px;
}

/* ─── Age Range Slider in Specialists ─── */
.km-specialists-page .range-filter {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.km-specialists-page .range-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.km-specialists-page .range-filter-current {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  background: transparent;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.km-specialists-page .range-filter-track {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.km-specialists-page .range-filter-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #d1ded5 0%,
    #d1ded5 var(--from-pct, 0%),
    #22b25d var(--from-pct, 0%),
    #22b25d var(--to-pct, 100%),
    #d1ded5 var(--to-pct, 100%),
    #d1ded5 100%
  );
  pointer-events: none;
}

.km-specialists-page .range-slider {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.km-specialists-page .range-slider::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #22b25d;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(28, 119, 62, 0.25);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.km-specialists-page .range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(34, 178, 93, 0.2);
}

.km-specialists-page .range-slider::-moz-range-thumb {
  pointer-events: auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #22b25d;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(28, 119, 62, 0.25);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* ─── Rating Filter Pills in Specialists ─── */
.km-specialists-page .filter-rating-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.km-specialists-page .rating-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.km-specialists-page .rating-filter-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.km-specialists-page .rating-filter-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.km-specialists-page .rating-filter-pill.is-active {
  background: #fefce8 !important;
  border-color: #facc15 !important;
  color: #854d0e !important;
  box-shadow: 0 1px 4px rgba(234, 179, 8, 0.2) !important;
}

.km-specialists-page .rating-filter-pill .rating-star-icon {
  width: 13px;
  height: 13px;
  color: #eab308;
}

.km-filter-input,
.km-filter-select {
  border-radius: var(--km-radius-sm);
  border-color: var(--km-line);
}

.km-filter-input:focus,
.km-filter-select:focus {
  border-color: var(--km-primary);
  box-shadow: 0 0 0 3px rgba(0, 154, 78, 0.14);
}

.km-btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}

.km-sort-select {
  width: auto;
  min-width: 190px;
  padding: 0.58rem 2rem 0.58rem 0.75rem;
}

.km-specialists-page .km-specialists-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.km-specialists-page .km-specialist-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
}

.km-specialists-page .km-card-photo-wrapper {
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 0;
}

.km-card-photo-placeholder {
  height: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f4fbf6, #e8f7ef);
  color: var(--km-primary);
}

.km-card-photo-placeholder i {
  font-size: 3rem;
}

.km-specialists-page .km-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.km-specialists-page .km-card-specializations {
  max-height: 64px;
  overflow: hidden;
}

.km-specialists-page .km-card-name a {
  color: var(--km-ink);
}

.km-rating-none,
.km-rating-stars-wrapper {
  min-height: 24px;
}

.km-specialists-page .km-card-bio {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.km-lang-pill {
  min-height: 22px;
  padding: 2px 7px;
  margin-right: 3px;
  background: var(--km-primary-light);
  color: #087b43;
  font-size: 0.72rem;
}

.km-specialists-page .km-card-action {
  margin-top: auto;
}

.km-specialist-detail-page {
  background: var(--km-page);
  padding: 20px clamp(14px, 3vw, 32px) 90px;
}

.km-specialist-detail-page .km-back-link,
.km-specialist-detail-page .km-detail-header-card,
.km-specialist-detail-page .km-detail-columns {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.km-specialist-detail-page .km-detail-header-card {
  background: #fff;
}

.km-detail-photo-placeholder {
  width: 100%;
  height: 100%;
}

.km-detail-section h2,
.km-side-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.km-detail-section h2 i,
.km-side-card h3 i {
  color: var(--km-primary);
}

.km-detail-info-block-spaced,
.km-review-text-field {
  margin-top: 1.5rem;
}

.km-detail-stat-empty {
  color: #8b978f;
}

.km-reviews-list {
  margin-bottom: 2.5rem;
}

.km-empty-inline {
  color: var(--km-gray-600);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.km-review-form-card {
  background-color: var(--km-gray-50);
  border: 1px solid var(--km-gray-200);
  border-radius: var(--km-radius-md);
  padding: 1.75rem;
}

.km-review-form-card h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--km-gray-900);
}

.km-review-rating-field label,
.km-review-text-field label {
  font-weight: 700;
}

.km-review-form-card textarea {
  resize: vertical;
}

.km-review-submit {
  width: auto;
  padding: 0.8rem 2rem;
}

.km-review-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0.75rem 0 0;
}

.km-side-details-box {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.km-side-detail-row {
  border-bottom: 1px solid var(--km-gray-100);
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
}

.km-location-meta {
  font-size: 0.75rem;
  color: #66736c;
}

.km-location-schedule {
  font-size: 0.75rem;
  color: var(--km-gray-600);
  font-style: italic;
}

.km-specialist-owner-page .owner-dashboard-section__head {
  align-items: flex-start;
  gap: 12px;
}

.km-specialist-owner-page .owner-dashboard-section__head p {
  margin: 4px 0 0;
  color: #66736c;
}

.owner-specialist-profile-list {
  gap: 12px;
}

.owner-specialist-profile-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.owner-specialist-profile-card__photo {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--km-primary-light);
  color: var(--km-primary);
}

.owner-specialist-profile-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-specialist-profile-card__meta,
.owner-specialist-profile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-specialist-profile-card__meta {
  color: #66736c;
  font-size: 0.82rem;
}

.owner-empty-state i {
  color: var(--km-primary);
  font-size: 2rem;
  margin-bottom: 8px;
}

.km-specialist-owner-form .owner-event-section {
  border: 1px solid var(--km-line);
  border-radius: var(--km-radius-lg);
  box-shadow: var(--km-shadow-card);
}

.km-specialist-owner-form .owner-event-section h2,
.km-specialist-owner-form .owner-event-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.km-specialist-owner-form .owner-event-section h2 i {
  color: var(--km-primary);
}

.km-owner-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.km-owner-stepper button {
  min-height: 46px;
  border: 1px solid var(--km-line);
  border-radius: var(--km-radius-sm);
  background: #fff;
  color: #314038;
  font-weight: 750;
  cursor: pointer;
}

.km-owner-stepper button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border-radius: 999px;
  background: #edf4ef;
  color: #314038;
}

.km-owner-stepper button.is-active {
  border-color: var(--km-primary);
  background: var(--km-primary-light);
  color: #075d35;
}

.km-owner-stepper button.is-active span {
  background: var(--km-primary);
  color: #fff;
}

.km-owner-mobile-progress {
  display: none;
  margin-bottom: 12px;
  color: #314038;
  font-weight: 750;
}

.km-owner-mobile-progress > .km-progress-track {
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: #e6eee9;
  overflow: hidden;
}

.km-owner-mobile-progress span span,
.km-owner-mobile-progress [data-owner-progress-bar] {
  display: block;
  height: 100%;
  background: var(--km-primary);
  border-radius: inherit;
}

.km-owner-photo-preview {
  display: grid;
  place-items: center;
  width: 160px;
  aspect-ratio: 1;
  margin: 8px 0;
  border: 1px dashed var(--km-line);
  border-radius: var(--km-radius-lg);
  background: var(--km-primary-light);
  color: var(--km-primary);
  overflow: hidden;
}

.km-owner-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-specialist-chips,
.owner-specialist-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.owner-specialist-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--km-line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 650;
}

.owner-specialist-chip:has(input:checked) {
  border-color: var(--km-primary);
  background: var(--km-primary-light);
  color: #075d35;
}

.owner-specialist-chip input {
  accent-color: var(--km-primary);
}

.owner-specialist-lang-label {
  color: #66736c;
  font-weight: 700;
}

.km-owner-format-select select {
  max-width: 320px;
}

.km-owner-format-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.km-owner-format-cards button {
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--km-line);
  border-radius: var(--km-radius-md);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.km-owner-format-cards i {
  color: var(--km-primary);
  font-size: 1.2rem;
}

.km-owner-format-cards strong,
.km-owner-format-cards span {
  display: block;
}

.km-owner-format-cards span {
  margin-top: 5px;
  color: #66736c;
  font-size: 0.86rem;
}

.km-owner-format-cards button.is-selected {
  border-color: var(--km-primary);
  background: var(--km-primary-light);
  box-shadow: 0 0 0 3px rgba(0, 154, 78, 0.1);
}

.owner-specialist-lang-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--km-line);
  border-radius: var(--km-radius-md);
  background: #f7faf8;
}

.owner-specialist-lang-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: var(--km-radius-sm);
  padding: 0 16px;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.owner-specialist-lang-tabs button.is-active {
  background: #fff;
  color: var(--km-primary);
  box-shadow: 0 1px 2px rgba(20, 42, 31, 0.1);
}

.km-owner-step-actions,
.km-owner-final-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.km-owner-help-card-secondary {
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .km-specialists-page .km-specialists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .km-owner-stepper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .km-specialists-page {
    padding-inline: 12px;
  }

  .km-hero-search {
    grid-template-columns: auto 1fr;
  }

  .km-hero-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .km-mobile-filter-button {
    display: flex;
  }

  .km-specialists-page .km-specialists-layout {
    display: block;
  }

  .km-specialists-page .km-filters-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 999;
    max-height: min(86vh, 720px);
    overflow: auto;
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
    transition: transform 0.22s ease;
  }

  .km-specialists-page .km-filters-panel.is-open {
    transform: translateY(0);
  }

  .km-filter-close {
    display: inline-grid;
    place-items: center;
  }

  .km-specialists-page .km-specialists-grid {
    grid-template-columns: 1fr;
  }

  .km-catalog-toolbar {
    align-items: stretch;
  }

  .km-sort-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .km-sort-select {
    min-width: 0;
    width: 100%;
  }

  .owner-specialist-profile-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .owner-specialist-profile-card .owner-dashboard-status,
  .owner-specialist-profile-card__actions {
    grid-column: 1 / -1;
  }

  .km-owner-stepper {
    display: none;
  }

  .km-owner-mobile-progress {
    display: block;
  }

  .km-owner-format-cards {
    grid-template-columns: 1fr;
  }

  .km-owner-final-actions,
  .km-owner-step-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 18px -12px -12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--km-line);
  }
}

/* ----------------------------------------------------
   2. SPECIALISTS CATALOG LIST (.km-specialists-catalog)
   ---------------------------------------------------- */
.km-specialists-catalog {
  font-family: var(--km-font-sans);
  color: var(--km-gray-700);
  background-color: #fafbfc;
  padding: 1.5rem 0;
}

.km-specialists-catalog * {
  box-sizing: border-box;
}

/* Hero Section */
.km-specialists-hero {
  background: linear-gradient(135deg, var(--km-primary) 0%, var(--km-secondary) 100%);
  color: #ffffff;
  padding: 3.5rem 2rem;
  border-radius: var(--km-radius-lg);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--km-shadow-md);
}

.km-specialists-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 80%);
  pointer-events: none;
}

.km-specialists-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.km-specialists-hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.6;
}

/* Layout Grid */
.km-specialists-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar / Filters */
.km-filters-panel {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--km-radius-lg);
  border: 1px solid var(--km-gray-200);
  box-shadow: var(--km-shadow-sm);
  position: sticky;
  top: 20px;
}

.km-filters-panel h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--km-gray-900);
  border-bottom: 2px solid var(--km-gray-100);
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.km-filters-panel h2 svg {
  color: var(--km-primary);
}

.km-filter-group {
  margin-bottom: 1.25rem;
}

.km-filter-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--km-gray-600);
  margin-bottom: 0.5rem;
}

.km-filter-input, 
.km-filter-select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--km-gray-300);
  border-radius: var(--km-radius-md);
  font-size: 0.95rem;
  font-family: var(--km-font-sans);
  background-color: #ffffff;
  color: var(--km-gray-900);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.km-filter-input:focus, 
.km-filter-select:focus {
  border-color: var(--km-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Double input wrapper (for prices) */
.km-filter-range-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Checkbox Style */
.km-filter-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.km-filter-checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--km-primary);
  cursor: pointer;
}

.km-filter-checkbox-wrapper span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--km-gray-700);
}

/* Buttons inside filters */
.km-filter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.km-btn-apply {
  background: var(--km-primary);
  color: #ffffff;
  border: none;
  padding: 0.8rem;
  border-radius: var(--km-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-align: center;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.km-btn-apply:hover {
  background: var(--km-primary-hover);
}

.km-btn-apply:active {
  transform: scale(0.98);
}

.km-btn-reset {
  background: #ffffff;
  color: var(--km-gray-600);
  border: 1px solid var(--km-gray-300);
  padding: 0.8rem;
  border-radius: var(--km-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s;
  display: block;
}

.km-btn-reset:hover {
  background-color: var(--km-gray-50);
  border-color: var(--km-gray-600);
  color: var(--km-gray-900);
}

/* Toolbar (Results count and sort) */
.km-catalog-toolbar {
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--km-radius-lg);
  border: 1px solid var(--km-gray-200);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--km-shadow-sm);
}

.km-results-count {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--km-gray-900);
  margin: 0;
}

.km-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.km-sort-wrapper label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--km-gray-600);
}

/* Filter Chips Bar */
.km-chips-bar {
  background: var(--km-gray-50);
  padding: 0.75rem 1rem;
  border-radius: var(--km-radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border: 1px solid var(--km-gray-200);
}

.km-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.km-chip {
  background: #ffffff;
  border: 1px solid var(--km-gray-200);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--km-gray-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s;
}

.km-chip:hover {
  border-color: var(--km-primary);
  color: var(--km-primary);
  background-color: var(--km-primary-light);
}

.km-chip-remove {
  color: #9ca3af;
  font-size: 1.1rem;
  font-weight: bold;
}

.km-chips-reset-link {
  color: var(--km-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.km-chips-reset-link:hover {
  text-decoration: underline;
}

/* Specialist Cards Grid */
.km-specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}

/* Specialist Card styling */
.km-specialist-card {
  background: #ffffff;
  border: 1px solid var(--km-gray-200);
  border-radius: var(--km-radius-lg);
  overflow: hidden;
  box-shadow: var(--km-shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}

.km-specialist-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--km-shadow-lg);
}

/* Card Avatar Block */
.km-card-photo-wrapper {
  position: relative;
  height: 230px;
  background: var(--km-gray-100);
  overflow: hidden;
}

.km-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.km-specialist-card:hover .km-card-photo {
  transform: scale(1.04);
}

.km-card-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--km-primary);
}

/* Top badges on image */
.km-card-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.km-badge-verified {
  background: var(--km-success);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* Bottom badges on image */
.km-card-bottom-badges {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.km-badge-format-online {
  background: rgba(79, 70, 229, 0.95);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.km-badge-format-offline {
  background: rgba(31, 41, 55, 0.95);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* Card Content Body */
.km-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.km-card-specializations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.km-spec-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--km-primary-light);
  color: var(--km-primary-hover);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.km-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: var(--km-gray-900);
  line-height: 1.35;
}

.km-card-name a {
  color: inherit;
  text-decoration: none;
}

.km-card-name a:hover {
  color: var(--km-primary);
}

.km-card-name-alt {
  font-size: 0.85rem;
  color: #888;
  margin: -0.25rem 0 0.5rem 0;
}

/* Stars Rating */
.km-rating-stars-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.km-stars {
  color: var(--km-warning);
  font-size: 1.1rem;
}

.km-rating-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--km-gray-600);
}

.km-rating-none {
  font-size: 0.85rem;
  color: #9c9c9c;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

/* Card Bio text */
.km-card-bio {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--km-gray-600);
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card details (meta details box) */
.km-card-details-box {
  background: var(--km-gray-50);
  padding: 0.85rem;
  border-radius: var(--km-radius-md);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.km-card-detail-item {
  font-size: 0.85rem;
  color: var(--km-gray-700);
  margin: 0 0 0.4rem 0;
  display: flex;
  justify-content: space-between;
}

.km-card-detail-item:last-child {
  margin-bottom: 0;
}

.km-card-detail-item span.label {
  font-weight: 600;
  color: var(--km-gray-600);
}

.km-card-detail-item span.value {
  font-weight: 700;
  color: var(--km-gray-900);
}

/* Card locations text list */
.km-card-locations-list {
  font-size: 0.8rem;
  color: #888;
  display: flex;
  align-items: start;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.km-card-locations-list svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Card View Button */
.km-card-action {
  margin-top: auto;
}

.km-btn-card-view {
  display: block;
  text-align: center;
  background: var(--km-gray-100);
  color: var(--km-gray-900);
  text-decoration: none;
  padding: 0.7rem;
  border-radius: var(--km-radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.km-btn-card-view:hover {
  background: var(--km-primary);
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

/* Pagination bar */
.km-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.km-pagination-btn {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--km-gray-300);
  border-radius: var(--km-radius-md);
  text-decoration: none;
  color: var(--km-gray-600);
  font-weight: 600;
  font-size: 0.9rem;
  background: #ffffff;
  transition: all 0.2s;
}

.km-pagination-btn:hover {
  border-color: var(--km-primary);
  color: var(--km-primary);
}

.km-pagination-btn.active {
  background: var(--km-primary);
  border-color: var(--km-primary);
  color: #ffffff;
}

/* No results state */
.km-no-results {
  text-align: center;
  padding: 5rem 2rem;
  background: #ffffff;
  border-radius: var(--km-radius-lg);
  border: 1px solid var(--km-gray-200);
  grid-column: 1 / -1;
  box-shadow: var(--km-shadow-sm);
}

.km-no-results svg {
  color: #9c9c9c;
  margin-bottom: 1.5rem;
}

.km-no-results h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--km-gray-900);
  margin-bottom: 0.5rem;
}

.km-no-results p {
  color: var(--km-gray-600);
  max-width: 450px;
  margin: 0 auto;
}


/* ----------------------------------------------------
   3. SPECIALISTS DETAIL PAGE (.km-specialists-detail)
   ---------------------------------------------------- */
.km-specialists-detail {
  font-family: var(--km-font-sans);
  color: var(--km-gray-700);
  background-color: #fafbfc;
  padding: 1.5rem 0;
  max-width: 1120px;
  margin: 0 auto;
}

.km-specialists-detail * {
  box-sizing: border-box;
}

/* Back Link */
.km-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--km-gray-600);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.km-back-link:hover {
  color: var(--km-primary);
}

/* Profile Header Card */
.km-detail-header-card {
  background: #ffffff;
  border: 1px solid var(--km-gray-200);
  border-radius: var(--km-radius-xl);
  padding: 2.25rem;
  box-shadow: var(--km-shadow-md);
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.km-detail-photo-wrapper {
  width: 200px;
  height: 200px;
  border-radius: var(--km-radius-lg);
  overflow: hidden;
  background: var(--km-gray-100);
  border: 4px solid #ffffff;
  box-shadow: var(--km-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.km-detail-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.km-detail-header-info {
  flex-grow: 1;
}

.km-detail-tags-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.km-detail-name {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--km-gray-900);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.km-detail-name-alt {
  font-size: 1.15rem;
  color: var(--km-gray-600);
  font-style: italic;
  margin: -0.25rem 0 1rem 0;
}

.km-detail-stats-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  border-top: 1px solid var(--km-gray-100);
  padding-top: 1rem;
}

.km-detail-stat-item {
  font-size: 0.95rem;
  color: var(--km-gray-700);
}

.km-detail-stat-item b {
  color: var(--km-gray-900);
}

/* Two Column Layout */
.km-detail-columns {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2.25rem;
  align-items: start;
}

/* Sections in main column */
.km-detail-section {
  background: #ffffff;
  border: 1px solid var(--km-gray-200);
  border-radius: var(--km-radius-lg);
  padding: 2rem;
  box-shadow: var(--km-shadow-sm);
  margin-bottom: 2rem;
}

.km-detail-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--km-gray-900);
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--km-gray-100);
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.km-detail-section h2 svg {
  color: var(--km-primary);
}

.km-bio-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--km-gray-700);
  white-space: pre-line;
}

/* Education and Experience content blocks */
.km-detail-info-block {
  margin-bottom: 1.5rem;
}

.km-detail-info-block:last-child {
  margin-bottom: 0;
}

.km-detail-info-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--km-gray-900);
  margin: 0 0 0.5rem 0;
}

.km-detail-info-block p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--km-gray-700);
  white-space: pre-line;
  margin: 0;
}

/* Documents Grid */
.km-documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.km-document-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--km-gray-200);
  border-radius: var(--km-radius-md);
  text-decoration: none;
  color: var(--km-gray-900);
  background: var(--km-gray-50);
  transition: all 0.2s;
}

.km-document-card:hover {
  border-color: var(--km-primary);
  background: #ffffff;
  box-shadow: var(--km-shadow-sm);
  transform: translateY(-2px);
}

.km-doc-icon {
  color: #ef4444;
  flex-shrink: 0;
}

.km-doc-info p.doc-type {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.km-doc-info p.doc-name {
  margin: 0;
  font-size: 0.75rem;
  color: var(--km-gray-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

/* Sidebar Cards */
.km-side-card {
  background: #ffffff;
  border: 1px solid var(--km-gray-200);
  border-radius: var(--km-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--km-shadow-sm);
  margin-bottom: 1.75rem;
}

.km-side-card h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--km-gray-900);
  border-bottom: 2px solid var(--km-gray-100);
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.km-side-card h3 svg {
  color: var(--km-primary);
}

/* Practice locations list in detail */
.km-detail-locations-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.km-detail-location-item {
  border-left: 3px solid var(--km-primary);
  padding-left: 0.85rem;
}

.km-detail-location-badge-row {
  margin-bottom: 5px;
}

.km-location-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.725rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .025em;
  padding: 2px 7px;
  border-radius: 4px;
}

.km-location-status-badge--center {
  background: #e8f7ee;
  color: #0b7d3f;
  border: 1px solid #c2e8cf;
}

.km-location-status-badge--private {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.km-detail-location-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--km-gray-900);
  margin: 0 0 0.25rem 0;
}

.km-detail-location-title a {
  color: var(--km-primary);
  text-decoration: none;
}

.km-detail-location-title a:hover {
  text-decoration: underline;
}

.km-detail-location-address {
  font-size: 0.875rem;
  color: var(--km-gray-600);
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
}

.km-detail-location-schedule-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.825rem;
  color: #374151;
  margin: 4px 0;
  line-height: 1.35;
}

.km-detail-location-schedule-row i {
  color: #0b7d3f;
  margin-top: 2px;
}

.km-detail-location-phone-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  color: #374151;
  margin: 4px 0 8px;
}

.km-detail-location-phone-row a {
  color: #0b7d3f;
  font-weight: 700;
  text-decoration: none;
}

.km-detail-location-price-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #065f46;
  background: var(--km-success-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--km-success);
}

/* Online Only Big Banner */
.km-online-only-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--km-radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.95rem;
}

.km-online-only-banner svg {
  color: var(--km-primary);
  flex-shrink: 0;
}

/* Contacts Card Details */
.km-contact-item {
  margin-bottom: 1.25rem;
}

.km-contact-item:last-child {
  margin-bottom: 0;
}

.km-contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.km-contact-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--km-gray-900);
  text-decoration: none;
}

.km-contact-value.km-link {
  color: var(--km-primary);
}

.km-contact-value.km-link:hover {
  text-decoration: underline;
}

/* Floating/Sticking CTA box for phone & whatsapp on Mobile */
.km-mobile-sticky-cta {
  display: none; /* Hidden on desktop */
}

/* Interactive Star Rating Selector */
.km-stars-selector {
  display: flex;
  gap: 0.4rem;
  font-size: 2rem;
  color: var(--km-gray-300);
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.km-star-btn {
  transition: color 0.15s, transform 0.1s;
}

.km-star-btn:hover {
  transform: scale(1.15);
}

/* Disclaimer text block */
.km-disclaimer-box {
  background: #fdf2f2;
  border: 1px solid #fde8e8;
  border-radius: var(--km-radius-md);
  padding: 1.25rem;
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
}

.km-disclaimer-box svg {
  color: #ef4444;
  flex-shrink: 0;
}

.km-disclaimer-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #9b1c1c;
  margin: 0;
}

.km-disclaimer-text b {
  font-weight: 700;
}

/* Map frame container */
.km-detail-map-container {
  height: 250px;
  width: 100%;
  border-radius: var(--km-radius-md);
  overflow: hidden;
  border: 1px solid var(--km-gray-200);
  margin-top: 1rem;
}

/* Reviews List styles */
.km-review-item {
  background: var(--km-gray-50);
  border: 1px solid var(--km-gray-200);
  border-radius: var(--km-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.km-review-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
}

.km-review-author {
  font-weight: 700;
  color: var(--km-gray-900);
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.km-review-date {
  font-size: 0.8rem;
  color: #9ca3af;
}

.km-review-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--km-gray-700);
  margin: 0;
}

/* WhatsApp CTA Button styling */
.km-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--km-radius-md);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 6px rgba(37, 211, 102, 0.15);
  margin-top: 0.5rem;
}

.km-whatsapp-btn:hover {
  background-color: #20ba5a;
}

.km-whatsapp-btn:active {
  transform: scale(0.98);
}


/* ----------------------------------------------------
   4. RESPONSIVE MEDIA QUERIES (Desktop / Mobile)
   ---------------------------------------------------- */

/* Tablet & Mobile (max 991px) */
@media (max-width: 991px) {
  /* Catalog */
  .km-specialists-layout {
    grid-template-columns: 1fr;
  }
  
  .km-filters-panel {
    position: static;
    margin-bottom: 2rem;
  }
  
  /* Details */
  .km-detail-columns {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices (max 767px) */
@media (max-width: 767px) {
  .km-specialists-hero {
    padding: 2.5rem 1.25rem;
  }
  
  .km-specialists-hero h1 {
    font-size: 2rem;
  }
  
  .km-specialists-hero p {
    font-size: 1rem;
  }
  
  /* Profile header card layout stack vertical */
  .km-detail-header-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .km-detail-photo-wrapper {
    margin: 0 auto;
  }
  
  .km-detail-tags-row {
    justify-content: center;
  }
  
  .km-detail-stats-row {
    justify-content: center;
    gap: 1rem;
  }
  
  .km-detail-name {
    font-size: 1.75rem;
  }
  
  .km-detail-section {
    padding: 1.25rem;
  }
  
  /* Floating CTA on Mobile at the bottom so contacts are accessible instantly */
  .km-mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--km-gray-200);
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
    z-index: 100;
    justify-content: stretch;
    gap: 0.75rem;
  }
  
  .km-mobile-sticky-cta a {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.7rem;
    border-radius: var(--km-radius-md);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }
  
  .km-mobile-cta-phone {
    background-color: var(--km-primary);
    color: #ffffff;
  }
  
  .km-mobile-cta-whatsapp {
    background-color: #25d366;
    color: #ffffff;
  }
  
  /* Ensure padding-bottom on wrapper so content isn't covered by sticky bottom bar */
  .km-specialists-detail {
    padding-bottom: 80px;
  }
}

/* ==========================================================================
   2. SPECIALISTS PUBLIC CATALOG REFRESH (.km-specialists-catalog)
   ========================================================================== */

.km-specialists-catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 42px;
  background: transparent;
  color: var(--km-ink);
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

/* ----------------------------------------------------
   Hero Banner & Contrast Card
   ---------------------------------------------------- */
/* ==========================================================================
   KidsMap Specialists Hero - Unified Design System (matching Catalog Hero)
   ========================================================================== */

.km-specialists-catalog .km-breadcrumbs {
  margin-bottom: 14px;
}

.km-specialists-catalog .km-specialists-hero {
  position: relative;
  z-index: 10;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(140deg, #f2f9f5 0%, #e7f5ec 100%);
  border: 1px solid #cbe7d8;
  padding: clamp(24px, 3.2vw, 36px) clamp(20px, 3.2vw, 38px);
  margin: 0 0 24px;
  box-shadow: 0 4px 24px rgba(18, 33, 31, 0.04);
}

@media (min-width: 960px) {
  .km-specialists-catalog .km-specialists-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: center;
  }
  .km-specialists-catalog .km-specialists-hero .hero-text {
    grid-column: 1;
  }
  .km-specialists-catalog .km-specialists-hero .km-specialists-hero-stats {
    grid-column: 2;
  }
}

.km-specialists-catalog .catalog-hero-decoration {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  z-index: 1 !important;
}

/* Ambient gradient orbs */
.km-specialists-catalog .faq-hero-orb1 {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  right: -40px;
  top: -120px;
  background: radial-gradient(circle, rgba(19, 111, 56, 0.12), rgba(19, 111, 56, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.km-specialists-catalog .faq-hero-orb2 {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  left: 45%;
  bottom: -130px;
  background: radial-gradient(circle, rgba(19, 111, 56, 0.08), rgba(19, 111, 56, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Left Hero Column */
.km-specialists-catalog .hero-text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
  text-align: left;
}

.km-specialists-catalog .faq-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e2f4ea;
  border: 1px solid #cbe7d8;
  color: #0d4924;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  width: fit-content;
  line-height: 1;
}

.km-specialists-catalog .faq-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.km-specialists-catalog .km-specialists-hero h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-family: inherit;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.km-specialists-catalog .km-specialists-hero .hero-intro-text {
  margin: 0 0 16px;
  color: #475569;
  font-size: clamp(14px, 1.25vw, 15px);
  line-height: 1.45;
  max-width: 620px;
}

/* Search Bar (Matching main catalog) */
.km-specialists-catalog .catalog-hero-search-wrap {
  position: relative;
  max-width: 660px;
  margin-bottom: 12px;
}

.km-specialists-catalog .km-specialists-hero-search {
  display: flex;
  align-items: center;
  position: relative;
  background: #ffffff;
  border: 1.5px solid #10b981;
  border-radius: 14px;
  padding: 4px 5px 4px 14px;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.km-specialists-catalog .km-specialists-hero-search:focus-within {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22), 0 6px 20px rgba(16, 185, 129, 0.16);
}

.km-specialists-catalog .catalog-hero-search__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  flex-shrink: 0;
}

.km-specialists-catalog .km-specialists-hero-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 8px 4px;
  font-size: 14.5px;
  color: #1e293b;
  outline: none;
  font-family: inherit;
}

.km-specialists-catalog .km-specialists-hero-search input[type="search"]::placeholder {
  color: #94a3b8;
}

.km-specialists-catalog .catalog-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #475569;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-right: 2px;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.km-specialists-catalog .catalog-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.km-specialists-catalog .catalog-search-clear[hidden] {
  display: none !important;
}

.km-specialists-catalog .hero-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.28);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.km-specialists-catalog .hero-search-submit:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.km-specialists-catalog .hero-search-submit:active {
  transform: translateY(0);
}

/* Popular Suggestions (Bubble Pills matching Catalog Hero) */
.km-specialists-catalog .catalog-hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.km-specialists-catalog .catalog-hero-tags-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  margin-right: 2px;
}

.km-specialists-catalog .catalog-hero-tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.km-specialists-catalog .catalog-hero-tag-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
  color: #0f172a;
}

.km-specialists-catalog .catalog-hero-tag-btn.is-active {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
}

.km-specialists-catalog .km-hero-bubble__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.km-specialists-catalog .km-hero-bubble--speech .km-hero-bubble__icon {
  background: #ede9fe;
  color: #7c3aed;
}

.km-specialists-catalog .km-hero-bubble--psych .km-hero-bubble__icon {
  background: #fce7f3;
  color: #db2777;
}

.km-specialists-catalog .km-hero-bubble--neuro .km-hero-bubble__icon {
  background: #e0f2fe;
  color: #0284c7;
}

.km-specialists-catalog .km-hero-bubble--pediatrician .km-hero-bubble__icon {
  background: #dcfce7;
  color: #15803d;
}

.km-specialists-catalog .km-hero-bubble--defectologist .km-hero-bubble__icon {
  background: #fed7aa;
  color: #c2410c;
}

.km-specialists-catalog .catalog-hero-tag-btn.is-active .km-hero-bubble__icon {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.km-specialists-catalog .km-hero-bubble__label {
  font-size: 13px;
  font-weight: 600;
}

/* Right Column: 3 Trust & Value Cards (Matching Catalog Hero Stats) */
.km-specialists-catalog .km-specialists-hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 28px;
  border-left: 1px solid rgba(203, 231, 216, 0.7);
}

.km-specialists-catalog .faq-hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.16s ease;
}

.km-specialists-catalog .faq-hero-stat + .faq-hero-stat {
  border-top: 1px solid rgba(203, 231, 216, 0.6);
}

.km-specialists-catalog .faq-hero-stat:hover {
  transform: translateX(2px);
}

.km-specialists-catalog .faq-hero-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #d3e5da;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.km-specialists-catalog .faq-hero-stat:hover .faq-hero-stat-icon {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.16);
}

.km-specialists-catalog .faq-hero-stat-icon--verified {
  color: #10b981;
}

.km-specialists-catalog .faq-hero-stat-icon--format {
  color: #0284c7;
}

.km-specialists-catalog .faq-hero-stat-icon--direct {
  color: #f59e0b;
}

.km-specialists-catalog .faq-hero-stat-val {
  font-size: 14.5px;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
}

.km-specialists-catalog .faq-hero-stat-label {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.35;
}

/* Responsive adjustments */
@media (max-width: 959px) {
  .km-specialists-catalog .km-specialists-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 20px;
  }
  .km-specialists-catalog .km-specialists-hero-stats {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(203, 231, 216, 0.7);
    padding-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .km-specialists-catalog .faq-hero-stat {
    padding: 6px 0;
    gap: 10px;
  }
  .km-specialists-catalog .faq-hero-stat + .faq-hero-stat {
    border-top: none;
  }
}

@media (max-width: 768px) {
  .km-specialists-catalog .km-specialists-hero {
    border-radius: 18px;
    padding: 16px 14px;
    margin-bottom: 16px;
  }
  .km-specialists-catalog .km-specialists-hero h1 {
    font-size: 20px;
    line-height: 1.22;
  }
  .km-specialists-catalog .km-specialists-hero .hero-intro-text {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .km-specialists-catalog .km-specialists-hero-search {
    padding: 3px 4px 3px 10px;
    border-radius: 11px;
  }
  .km-specialists-catalog .hero-search-submit {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }
  .km-specialists-catalog .km-specialists-hero-stats {
    display: none;
  }
  .km-specialists-catalog .catalog-hero-tags {
    gap: 6px;
  }
  .km-specialists-catalog .catalog-hero-tag-btn {
    font-size: 12px;
    padding: 4px 10px 4px 5px;
  }
}

/* ----------------------------------------------------
   Mobile Controls Bar
   ---------------------------------------------------- */
.km-mobile-bar {
  display: none;
}

/* ----------------------------------------------------
   Layout Grid (Sidebar + Main Content)
   ---------------------------------------------------- */
.km-specialists-catalog .km-specialists-layout {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 0;
}

/* ----------------------------------------------------
   Filters Sidebar
   ---------------------------------------------------- */
.km-specialists-catalog .km-filters-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  align-self: start;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #dfe8e2;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(18, 32, 26, 0.05);
}

.km-specialists-catalog .km-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef3f0;
}

.km-specialists-catalog .km-filter-title h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: #12201a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.km-specialists-catalog .km-filter-title h2 i,
.km-specialists-catalog .km-filter-title h2 .material-symbols-rounded {
  color: #009a4e;
  font-size: 20px;
}

.km-specialists-catalog .km-filter-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.km-specialists-catalog .km-filter-head-reset {
  font-size: 13px;
  font-weight: 700;
  color: #009a4e;
  text-decoration: none;
}

.km-specialists-catalog .km-filter-head-reset:hover {
  text-decoration: underline;
}

.km-specialists-catalog .km-filter-group {
  margin-bottom: 14px;
}

.km-specialists-catalog .km-filter-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #314038;
  margin-bottom: 6px;
}

.km-specialists-catalog .km-filter-group label i,
.km-specialists-catalog .km-filter-group label .material-symbols-rounded {
  color: #009a4e;
  width: 18px;
  font-size: 18px;
  text-align: center;
}

.km-specialists-catalog .km-filter-select,
.km-specialists-catalog .km-filter-input {
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  background: #ffffff;
  font-size: 13.5px;
  color: #12201a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.km-specialists-catalog .km-filter-select:focus,
.km-specialists-catalog .km-filter-input:focus {
  border-color: #009a4e;
  box-shadow: 0 0 0 3px rgba(0, 154, 78, 0.14);
}

.km-specialists-catalog .km-filter-range-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.km-specialists-catalog .km-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef3f0;
}

.km-specialists-catalog .km-btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  background: #009a4e;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.km-specialists-catalog .km-btn-apply:hover {
  background: #087b43;
}

.km-specialists-catalog .km-btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  background: #f4fbf7;
  color: #455a50;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.km-specialists-catalog .km-btn-reset:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* ----------------------------------------------------
   Toolbar (Count & Sort)
   ---------------------------------------------------- */
.km-specialists-catalog .km-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid #dfe8e2;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(18, 32, 26, 0.04);
}

.km-specialists-catalog .km-results-count {
  margin: 0;
  color: #12201a;
  font-size: 15px;
  font-weight: 800;
}

.km-specialists-catalog .km-sort-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.km-specialists-catalog .km-sort-wrapper label {
  color: #647067;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.km-specialists-catalog .km-sort-select {
  min-width: 175px;
  width: auto;
  min-height: 36px;
  font-size: 13px;
  padding: 4px 28px 4px 10px;
}

/* ----------------------------------------------------
   Active Filter Chips Bar
   ---------------------------------------------------- */
.km-specialists-catalog .km-chips-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #f0f7f3;
  border: 1px solid #d3e5da;
  border-radius: 12px;
}

.km-specialists-catalog .km-chips-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.km-specialists-catalog .km-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #b8d9c5;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  color: #12201a;
  text-decoration: none;
  transition: all 0.15s ease;
}

.km-specialists-catalog .km-chip:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.km-specialists-catalog .km-chip-remove {
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  color: #647067;
}

.km-specialists-catalog .km-chip:hover .km-chip-remove {
  color: #991b1b;
}

.km-specialists-catalog .km-chips-reset-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 750;
  color: #d32f2f;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.km-specialists-catalog .km-chips-reset-link:hover {
  background: #fee2e2;
}

/* ----------------------------------------------------
   Specialists Grid & Unified Cards
   ---------------------------------------------------- */
.km-specialists-catalog .km-specialists-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.km-specialists-catalog .km-specialist-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: 100%;
}

.km-specialists-catalog .km-specialist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  border-color: #b8d9c5;
}

/* Photo Wrapper: Strictly 4:3 Aspect Ratio */
.km-specialists-catalog .km-card-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden;
  background: #eef5f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.km-specialists-catalog .km-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.km-specialists-catalog .km-specialist-card:hover .km-card-photo {
  transform: scale(1.04);
}

/* Monogram Avatar Placeholder */
.km-specialists-catalog .km-card-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f7ef 0%, #d1f0e0 100%);
  color: #0d8a52;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 850;
  letter-spacing: 1px;
  user-select: none;
}

/* Corner Format Badge */
.km-specialists-catalog .km-card-format-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #12201a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.km-specialists-catalog .km-card-format-pill.format-online {
  color: #0f766e;
}

.km-specialists-catalog .km-card-format-pill.format-offline {
  color: #0d8a52;
}

.km-specialists-catalog .km-card-format-pill.format-both {
  color: #2563eb;
}

/* Floating Price Pill (on photo bottom-left) */
.km-specialists-catalog .km-card-price-pill {
  position: absolute !important;
  bottom: 10px !important;
  left: 10px !important;
  z-index: 4 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  padding: 5px 12px !important;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border-radius: 20px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(8px) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.km-specialists-catalog .km-specialist-card:hover .km-card-price-pill {
  transform: scale(1.04) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45) !important;
}

.km-specialists-catalog .km-card-price-pill .card-price-pill__amount {
  font-size: 14px !important;
  font-weight: 900 !important;
}

/* Card Body */
.km-specialists-catalog .km-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
}

.km-specialists-catalog .km-card-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.km-specialists-catalog .km-card-name a {
  color: #0f172a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s ease;
}

.km-specialists-catalog .km-card-name a:hover {
  color: #08a769;
}

.km-specialists-catalog .km-card-name-alt {
  margin: -4px 0 0;
  font-size: 12px;
  color: #647067;
}

/* Card Bio Snippet (2-line clamp with aligned min-height) */
.km-specialists-catalog .km-card-bio {
  font-size: 13px;
  color: #4f6357;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.km-specialists-catalog .km-card-bio.is-empty {
  min-height: 0;
  display: none;
}

/* Metadata Chips Row */
.km-specialists-catalog .km-card-tags-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
}

.km-specialists-catalog .card-meta-chip {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 9px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.km-specialists-catalog .card-meta-chip--spec {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #d1fae5 !important;
}

.km-specialists-catalog .card-meta-chip--exp {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

/* Rating, Experience, Languages Row */
.km-specialists-catalog .km-card-rating-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
}

.km-specialists-catalog .card-score {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #fffbeb !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  border: 1px solid #fef3c7 !important;
}

.km-specialists-catalog .card-score-star {
  color: #f59e0b !important;
  font-size: 14px !important;
}

.km-specialists-catalog .card-score-empty {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
  font-weight: 500 !important;
  font-size: 12px !important;
}

.km-specialists-catalog .card-score-star--empty {
  color: #cbd5e1 !important;
}

.km-specialists-catalog .card-review-count {
  color: #64748b !important;
  font-size: 12px !important;
}

.km-specialists-catalog .km-card-lang-pills {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.km-specialists-catalog .km-lang-pill {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  background: #e8f7ef;
  color: #087b43;
  border: 1px solid #c2e5d2;
}

/* Location Line */
.km-specialists-catalog .km-card-location {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

.km-specialists-catalog .km-card-location.is-empty {
  display: none !important;
}

.km-specialists-catalog .km-card-location .card-location-icon {
  font-size: 13px !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.km-specialists-catalog .km-card-location .card-location-text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* CTA Action */
.km-specialists-catalog .km-card-action-stack {
  margin-top: auto !important;
  padding-top: 6px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.km-specialists-catalog .km-card-bottom-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.km-specialists-catalog .km-btn-card-view {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 16px !important;
  background: #08a769 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 6px rgba(8, 167, 105, 0.2) !important;
}

.km-specialists-catalog .km-btn-card-view:hover {
  background: #068d58 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(8, 167, 105, 0.35) !important;
  color: #ffffff !important;
}

.km-specialists-catalog .km-btn-card-view:active {
  transform: translateY(0) scale(0.98) !important;
}

.km-specialists-catalog .km-btn-card-view::after {
  display: none !important;
  content: none !important;
}

/* ----------------------------------------------------
   Empty State Card
   ---------------------------------------------------- */
.km-specialists-catalog .km-no-results {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1.5px dashed #c2e5d2;
  border-radius: 16px;
  padding: 44px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.km-specialists-catalog .km-no-results-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e8f7ef;
  color: #009a4e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.km-specialists-catalog .km-no-results h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #12201a;
}

.km-specialists-catalog .km-no-results p {
  max-width: 440px;
  margin: 0;
  font-size: 13.5px;
  color: #58707e;
  line-height: 1.45;
}

.km-specialists-catalog .km-btn-reset-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  min-height: 40px;
  padding: 0 20px;
  background: #009a4e;
  color: #ffffff;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.km-specialists-catalog .km-btn-reset-all:hover {
  background: #087b43;
  color: #ffffff;
}

/* ----------------------------------------------------
   Pagination
   ---------------------------------------------------- */
.km-specialists-catalog .km-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.km-specialists-catalog .km-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  background: #ffffff;
  color: #12201a;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.km-specialists-catalog .km-pagination-btn:hover {
  border-color: #009a4e;
  color: #009a4e;
}

.km-specialists-catalog .km-pagination-btn.active {
  background: #009a4e;
  border-color: #009a4e;
  color: #ffffff;
}

/* ----------------------------------------------------
   Responsive Adjustments: 1100px, 768px, 520px, 360px
   ---------------------------------------------------- */
@media (max-width: 1100px) {
  .km-specialists-catalog .km-specialists-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
  }

  .km-specialists-catalog .km-specialists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Compact Hero */
  .km-specialists-catalog .km-specialists-hero {
    min-height: auto;
    padding: 10px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .km-specialists-catalog .km-hero-card {
    padding: 14px 14px 16px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(18, 32, 26, 0.08);
  }

  .km-specialists-catalog .km-specialists-hero h1 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .km-specialists-catalog .km-specialists-hero p {
    font-size: 12.5px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .km-specialists-catalog .km-hero-search {
    padding: 3px 4px 3px 10px;
    gap: 6px;
    border-radius: 10px;
  }

  .km-specialists-catalog .km-hero-search input {
    font-size: 13.5px;
    min-height: 34px;
  }

  .km-specialists-catalog .km-hero-search button {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 7px;
  }

  .km-specialists-catalog .km-popular-directions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .km-specialists-catalog .km-popular-directions::-webkit-scrollbar {
    display: none;
  }

  /* Mobile Bar */
  .km-specialists-catalog .km-mobile-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
  }

  .km-specialists-catalog .km-mobile-filter-button {
    flex: 1;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #d3e5da;
    border-radius: 10px;
    font-weight: 750;
    font-size: 13.5px;
    color: #12201a;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  }

  .km-specialists-catalog .km-mobile-filter-button .material-symbols-rounded {
    font-size: 20px;
    width: auto;
    height: auto;
    background: transparent;
    color: #009a4e;
    border-radius: 0;
  }

  .km-specialists-catalog .km-mobile-filter-button span.km-filter-btn-text {
    display: inline;
    width: auto;
    height: auto;
    background: transparent;
    color: #12201a;
    font-size: 13.5px;
    border-radius: 0;
  }

  .km-specialists-catalog .km-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #009a4e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 750;
  }

  .km-specialists-catalog .km-mobile-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 12px;
    background: #f4fbf7;
    border: 1.5px solid #d3e5da;
    border-radius: 10px;
    font-weight: 650;
    font-size: 13px;
    color: #d32f2f;
    text-decoration: none;
  }

  .km-specialists-catalog .km-mobile-reset-btn .material-symbols-rounded {
    font-size: 18px;
    color: #d32f2f;
  }

  /* Layout switch to single column */
  .km-specialists-catalog .km-specialists-layout {
    display: block;
  }

  /* Drawer Bottom Sheet */
  .km-specialists-catalog .km-filters-panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    margin: 0;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    transform: translateY(105%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 16px 18px 24px;
  }

  .km-specialists-catalog .km-filters-panel.is-open {
    transform: translateY(0);
  }

  .km-specialists-catalog .km-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0f4f2;
    border: 0;
    color: #455a50;
    cursor: pointer;
  }

  .km-specialists-catalog .km-filter-title {
    padding-bottom: 12px;
  }

  .km-specialists-catalog .km-catalog-toolbar {
    padding: 10px 14px;
    margin-bottom: 12px;
  }

  .km-specialists-catalog .km-results-count {
    font-size: 14px;
  }

  .km-specialists-catalog .km-sort-select {
    min-width: 145px;
    font-size: 12.5px;
  }
}

@media (max-width: 580px) {
  .km-specialists-catalog .km-specialists-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .km-specialists-catalog .km-card-photo-wrapper {
    aspect-ratio: 4 / 3 !important;
  }
}

@media (max-width: 360px) {
  .km-specialists-catalog .km-specialists-hero h1 {
    font-size: 18px;
  }

  .km-specialists-catalog .km-card-name {
    font-size: 16px;
  }

  .km-specialists-catalog .km-spec-label {
    min-width: 80px;
    font-size: 11px;
  }

  .km-specialists-catalog .km-spec-loc {
    max-width: 130px;
  }
}


/* ==========================================================================
   3. SPECIALIST PROFILE CREATION & EDIT WIZARD (.km-specialist-owner-page)
   ========================================================================== */

.km-specialist-owner-page {
  max-width: 1200px;
  margin: 0 auto;
}

.km-specialist-head {
  margin-bottom: 20px;
}

.km-head-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.km-head-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.km-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.km-back-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.km-specialist-head h1 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}

.km-specialist-head .auth-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 660px;
  margin: 0;
}

/* Stepper (Desktop) */
.km-owner-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.km-owner-stepper button {
  min-height: 48px;
  padding: 8px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #475569;
  font-weight: 750;
  font-size: 0.86rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.km-owner-stepper button .step-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #edf4ef;
  color: #136f38;
  font-size: 0.8rem;
  font-weight: 850;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.km-owner-stepper button:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.km-owner-stepper button.is-active {
  border-color: #136f38;
  background: #eaf5e9;
  color: #136f38;
  box-shadow: 0 2px 8px rgba(19, 111, 56, 0.12);
}

.km-owner-stepper button.is-active .step-num {
  background: #136f38;
  color: #ffffff;
}

.km-owner-stepper button.has-error {
  border-color: #f43f5e !important;
  color: #e11d48 !important;
}

.km-owner-stepper button.has-error .step-num {
  background: #ffe4e6 !important;
  color: #e11d48 !important;
}

/* Stepper (Mobile compact progress) */
.km-owner-mobile-progress {
  display: none;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.km-mobile-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.km-mobile-step-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.km-mobile-step-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.km-step-arrow {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.km-step-arrow > .fas {
  display: none;
}

.km-step-arrow::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("../../img/icon/coolicons.iconjar/icons/chevron-left.207d530c4564.svg") center / contain no-repeat;
  mask: url("../../img/icon/coolicons.iconjar/icons/chevron-left.207d530c4564.svg") center / contain no-repeat;
}

.km-step-arrow[data-owner-next]::before {
  -webkit-mask-image: url("../../img/icon/coolicons.iconjar/icons/chevron-right.1a830b311812.svg");
  mask-image: url("../../img/icon/coolicons.iconjar/icons/chevron-right.1a830b311812.svg");
}

.km-step-arrow:hover {
  background: #e2e8f0;
}

.km-progress-track {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.km-progress-track [data-owner-progress-bar] {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #136f38, #22c55e);
  border-radius: inherit;
  transition: width 0.25s ease;
}

/* Step section container */
.km-specialist-owner-form .km-step-section {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 28px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.km-step-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.km-step-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.km-step-header h2 i {
  color: #136f38;
}

.km-step-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 6px 0 0;
  line-height: 1.45;
}

/* Form fields & inputs */
.km-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 580px;
}

.km-input-half {
  max-width: 280px;
}

.km-label-text {
  font-size: 0.88rem;
  font-weight: 750;
  color: #1e293b;
}

.km-required {
  color: #e11d48;
}

.km-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.km-step-grid .owner-event-full {
  grid-column: 1 / -1;
  max-width: 580px;
}

.km-specialist-owner-form input.field,
.km-specialist-owner-form select.field,
.km-specialist-owner-form textarea.field {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.km-specialist-owner-form input.field:focus,
.km-specialist-owner-form select.field:focus,
.km-specialist-owner-form textarea.field:focus {
  border-color: #136f38;
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 111, 56, 0.14);
}

/* Photo Component */
.km-photo-component {
  margin-top: 4px;
}

.km-photo-uploader-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.km-photo-avatar {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

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

.km-avatar-placeholder {
  font-size: 28px;
  color: #94a3b8;
}

.km-photo-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.km-photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  width: fit-content;
  transition: all 0.15s ease;
}

.km-photo-upload-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.km-file-input-hidden {
  display: none;
}

/* Step 2: Specializations search & categories */
.owner-specialist-search-box {
  position: relative;
  margin-bottom: 16px;
  max-width: 580px;
}

.owner-specialist-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
}

.spec-search-input {
  width: 100%;
  height: 46px;
  padding-left: 40px !important;
  padding-right: 36px !important;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
}

.spec-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}

.spec-search-clear:hover {
  color: #0f172a;
}

.owner-specialist-selected-bar {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  animation: fadeIn 0.2s ease-out;
}

.selected-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.selected-bar-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #166534;
}

.btn-clear-selection {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.selected-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #136f38;
  color: #ffffff;
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: 0 1px 3px rgba(19, 111, 56, 0.2);
}

.selected-chip-pill .pill-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 2px;
  display: inline-grid;
  place-items: center;
}

.selected-chip-pill .pill-remove:hover {
  color: #ffffff;
}

.owner-spec-group {
  margin-bottom: 20px;
}

.owner-spec-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 10px;
}

.spec-group-icon {
  font-size: 20px;
  color: #136f38;
}

.owner-specialist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-specialist-chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.owner-specialist-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.owner-specialist-chip input[type="checkbox"] {
  accent-color: #136f38;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.owner-specialist-chip.is-checked,
.owner-specialist-chip:has(input:checked) {
  border-color: #136f38;
  background: #eaf5e9;
  color: #136f38;
}

.chip-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chip-title {
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.3;
}

.chip-hint {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.25;
}

.owner-specialist-chip.is-checked .chip-hint,
.owner-specialist-chip:has(input:checked) .chip-hint {
  color: #166534;
}

.owner-spec-no-results {
  text-align: center;
  padding: 32px 16px;
  color: #64748b;
}

.owner-spec-no-results i {
  font-size: 28px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.km-owner-age-grid {
  margin-top: 16px;
  max-width: 480px;
}

.owner-specialist-lang-section {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.owner-specialist-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Step 3: Format cards */
.km-format-select-wrapper {
  display: none; /* replaced by visual format cards */
}

.km-owner-format-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 20px;
}

.km-format-card {
  min-height: 104px;
  padding: 16px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.18s ease;
}

.km-format-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.km-format-card.is-selected {
  border-color: #136f38;
  background: #eaf5e9;
  box-shadow: 0 4px 12px rgba(19, 111, 56, 0.12);
}

.km-format-card i {
  color: #136f38;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.km-format-card strong {
  font-size: 0.96rem;
  color: #0f172a;
  display: block;
}

.km-format-card span {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

.km-location-box {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  background: #f8fafc;
  margin-top: 14px;
}

.km-location-header {
  margin-bottom: 14px;
}

.km-location-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.km-location-header h3 i {
  color: #136f38;
}

/* Step 4 & 5 subtitles and notices */
.km-subsection-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
}

.km-subsection-title i {
  color: #136f38;
}

.km-bio-section {
  margin-bottom: 24px;
}

.km-bio-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-indicator.is-filled {
  color: #166534;
  font-weight: 850;
  margin-left: 4px;
}

.km-owner-info-notice {
  display: flex;
  gap: 14px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.km-owner-info-notice .notice-icon {
  font-size: 24px;
  color: #136f38;
  flex-shrink: 0;
  margin-top: 2px;
}

.km-owner-info-notice .notice-body h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.km-owner-info-notice .notice-body p {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

.km-owner-privacy-card {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.km-owner-privacy-card .privacy-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #166534;
  margin-bottom: 10px;
}

.km-owner-privacy-card .privacy-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.km-owner-privacy-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  color: #1e3a29;
  line-height: 1.55;
}

/* Step Action Buttons */
.km-owner-step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.btn-save-draft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-save-draft:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-save-draft i {
  color: #136f38;
}

.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #136f38, #0e5229);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(19, 111, 56, 0.22);
  transition: all 0.18s ease;
}

.btn-continue:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #136f38, #0e5229);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(19, 111, 56, 0.25);
  transition: all 0.18s ease;
}

.btn-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Sidebar styling */
.km-sidebar-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.km-sidebar-card h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.km-sidebar-card h2 i {
  color: #136f38;
}

.km-help-bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
}

.km-help-card-requirements {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.km-side-notice {
  font-size: 0.84rem;
  color: #166534;
  font-weight: 600;
  margin: 10px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.km-side-muted {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 6px;
}

/* Responsive Overrides */
@media (max-width: 960px) {
  .km-specialist-owner-form .owner-event-layout {
    display: flex;
    flex-direction: column;
  }
  .km-specialist-side {
    order: 2;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .km-owner-stepper {
    display: none;
  }
  .km-owner-mobile-progress {
    display: block;
  }
  .km-owner-format-cards {
    grid-template-columns: 1fr;
  }
  .km-step-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .km-input-half {
    max-width: 100%;
  }
  .km-owner-step-actions {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin: 20px -16px -16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.05);
  }
  .km-owner-step-actions .btn-save-draft,
  .km-owner-step-actions .btn-continue,
  .km-owner-step-actions .btn-submit {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .km-owner-step-actions {
    flex-wrap: wrap;
  }
  .km-owner-step-actions .btn-save-draft {
    order: 2;
    width: 100%;
  }
  .km-owner-step-actions .btn-continue,
  .km-owner-step-actions .btn-submit {
    order: 1;
    width: 100%;
  }
}

/* Specialist editor additions, scoped away from the public directory. */
.km-specialist-owner-page .spec-save-state,.km-specialist-owner-page .spec-recovery{padding:14px 16px;margin-bottom:16px;border:1px solid #dbe4f0;border-radius:12px;background:#f5f8fc}
.km-specialist-owner-page .spec-recovery li{overflow-wrap:anywhere;margin-block:8px}
.km-specialist-owner-page .spec-practice-card{padding:18px;margin-block:16px;border:1px solid #dbe4f0;border-radius:14px;background:#fff}
.km-specialist-owner-page .spec-practice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.km-specialist-owner-page .spec-practice-field{min-width:0}
.km-specialist-owner-page .spec-practice-field label{display:block;margin-bottom:8px;font-weight:600}
.km-specialist-owner-page .spec-practice-field input:not([type=checkbox]),.km-specialist-owner-page .spec-practice-field select,.km-specialist-owner-page .spec-practice-field textarea{width:100%;max-width:100%;box-sizing:border-box}
.km-specialist-owner-page .spec-public-text details{padding:14px;margin-block:12px;border:1px solid #dbe4f0;border-radius:10px}
.km-specialist-owner-page .spec-public-text summary{cursor:pointer;min-height:30px;font-weight:600}
.km-specialist-owner-page .spec-public-text label{display:block;margin-block:12px 8px}
.km-specialist-owner-page :focus-visible{outline:3px solid #1568d4;outline-offset:3px}
.km-specialist-owner-page [hidden]{display:none!important}
.km-specialist-owner-page input,.km-specialist-owner-page select,.km-specialist-owner-page textarea{scroll-margin-block:120px}
.km-specialist-owner-page .spec-practice-card .errorlist{color:#b42318}
@media(max-width:600px){.km-specialist-owner-page .spec-practice-grid{grid-template-columns:1fr}.km-specialist-owner-page .spec-practice-card{padding:14px}.km-specialist-owner-page .spec-recovery button{width:100%;margin-block:5px}}
.km-specialist-owner-page .km-owner-stepper button .step-label{width:auto;height:auto;background:transparent;color:inherit;border-radius:0;margin:0;flex:1;line-height:1.25}
.km-specialist-owner-page .km-owner-stepper button .step-num{margin:0;flex:0 0 24px}
.km-specialist-owner-page .spec-practice-field:has(input[type=checkbox]){display:flex;align-items:center;gap:12px;min-height:44px}
.km-specialist-owner-page .spec-practice-field:has(input[type=checkbox]) label{margin:0;flex:1;cursor:pointer}
.km-specialist-owner-page .spec-practice-field input[type=checkbox]{width:20px;height:20px;min-width:20px;min-height:20px;padding:0;margin:0;flex:none;cursor:pointer}

/* ─────────────────────────────────────────────────────────────
   SPECIALIST FORM VISUAL POLISH & STEPPER UNIFICATION
   ───────────────────────────────────────────────────────────── */

/* Top Head Row & Status Chips */
.km-specialist-head .km-head-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.km-specialist-head .org-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.km-specialist-head .org-status--server-draft {
  background: #EBF5F0;
  color: #0D8A52;
  border: 1px solid #C6E6D5;
}

.km-specialist-head .org-status--approved {
  background: #EAF7EF;
  color: #0D8A52;
  border: 1px solid #A7F3D0;
}

/* Save State Box */
.km-specialist-owner-page .spec-save-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin-bottom: 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  background: #F8FAFC;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.km-specialist-owner-page .spec-save-state::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94A3B8;
  flex-shrink: 0;
}

/* Draft Informational Notice (replaces bare helptext) */
.km-draft-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1.5px solid #D1EAD9;
  border-radius: 14px;
  background: #F4FAF6;
  color: #234E3A;
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 500;
}

.km-draft-notice-icon {
  font-size: 20px;
  color: #0D8A52;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── STEPPER DESKTOP: Unified, crisp cards with NO nested boxes ─── */
.km-owner-stepper {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 24px !important;
}

.km-owner-stepper button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 50px !important;
  padding: 8px 12px !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 14px !important;
  background: #FFFFFF !important;
  color: #475569 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.km-owner-stepper button:hover {
  border-color: #B5DEC9 !important;
  color: #0D8A52 !important;
  background: #F4FAF6 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(13, 138, 82, 0.08) !important;
}

.km-owner-stepper button:active {
  transform: translateY(0) scale(0.98) !important;
}

.km-owner-stepper button.is-active {
  border-color: #0D8A52 !important;
  background: #0D8A52 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(13, 138, 82, 0.26) !important;
  transform: translateY(-1px) !important;
}

/* Number Circle Badge - Perfect Circle with zero outer padding or borders */
.km-owner-stepper button .step-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: #EDF2F7 !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  flex: 0 0 26px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.km-owner-stepper button:hover .step-num {
  background: #E2E8F0 !important;
  color: #0D8A52 !important;
}

.km-owner-stepper button.is-active .step-num {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #FFFFFF !important;
}

/* Step Label - Clean plain text with NO borders, NO backgrounds, NO pills */
.km-owner-stepper button .step-label {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 0 1 auto !important;
}

/* Sidebar Cards Polish */
.km-sidebar-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}

.km-sidebar-card h2 {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
}

.km-sidebar-card h2 i {
  color: #0D8A52 !important;
  font-size: 17px !important;
}

.km-sidebar-card p {
  font-size: 13.5px !important;
  color: #334155 !important;
  line-height: 1.5 !important;
  margin: 0 0 8px !important;
}

.km-help-bullets li {
  font-size: 13.5px !important;
  color: #475569 !important;
  line-height: 1.55 !important;
  padding: 3px 0 !important;
}


/* ==========================================================================
   Horizontal Specialization Strip (matching Main Catalog)
   ========================================================================== */
.km-specialists-catalog .catalog-category-strip-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 14px;
  overflow: visible;
  box-sizing: border-box;
}

.km-specialists-catalog .catalog-category-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 6px 8px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  cursor: grab;
}

.km-specialists-catalog .catalog-category-strip.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
  user-select: none !important;
}

.km-specialists-catalog .catalog-category-strip::-webkit-scrollbar {
  display: none;
}

.km-specialists-catalog .catalog-category-strip-wrap::before,
.km-specialists-catalog .catalog-category-strip-wrap::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 8px;
  width: 52px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.km-specialists-catalog .catalog-category-strip-wrap::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc 25%, rgba(248, 250, 252, 0) 100%);
}

.km-specialists-catalog .catalog-category-strip-wrap.has-overflow-left::before {
  opacity: 1;
}

.km-specialists-catalog .catalog-category-strip-wrap::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc 25%, rgba(248, 250, 252, 0) 100%);
}

.km-specialists-catalog .catalog-category-strip-wrap.has-overflow-right::after {
  opacity: 1;
}

.km-specialists-catalog .catalog-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  user-select: none;
}

.km-specialists-catalog .catalog-category-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.06);
}

.km-specialists-catalog .catalog-category-chip.is-active {
  background: #009a4e !important;
  border-color: #007a3d !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 154, 78, 0.28) !important;
}

.km-specialists-catalog .catalog-category-chip__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  overflow: hidden;
}

.km-specialists-catalog .catalog-category-chip__icon--all {
  background: #f1f5f9;
  color: #475569;
}

.km-specialists-catalog .catalog-category-chip.is-active .catalog-category-chip__icon {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.km-specialists-catalog .catalog-category-chip__icon svg,
.km-specialists-catalog .catalog-category-chip__icon .material-symbols-rounded {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.km-specialists-catalog .catalog-category-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.km-specialists-catalog .catalog-category-chip.is-active .catalog-category-chip__count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}
