:root {
  --ink: #14213d;
  --muted: #64748b;
  --line: #d8e5f4;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --panel: #eef6ff;
  --green: #1463d8;
  --green-strong: #0b4ea2;
  --teal: #38a8ff;
  --coral: #eb6b62;
  --amber: #4f46e5;
  --blue: #0ea5e9;
  --shadow: 0 18px 48px rgba(20, 54, 95, 0.12);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(239, 247, 255, 0.92), rgba(255, 255, 255, 0.98) 38rem),
    #f8fbff;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.page-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(216, 229, 244, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(8.25rem, 15vw, 10rem);
  height: auto;
  flex: 0 0 auto;
}

.brand-region {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  border: 1px solid rgba(56, 168, 255, 0.32);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: rgba(247, 251, 255, 0.94);
  color: var(--green-strong);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 30px rgba(20, 99, 216, 0.22);
}

.brand-mark img {
  width: 2rem;
  height: 2rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ghost-link,
.text-button {
  border: 0;
  background: transparent;
  color: var(--green-strong);
  font-weight: 750;
}

.ghost-link {
  padding: 0.55rem 0.2rem;
}

.icon-button,
.primary-button {
  border: 0;
  min-height: 2.55rem;
  border-radius: var(--radius);
}

.icon-button {
  display: inline-grid;
  width: 2.55rem;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.icon-button:hover,
.provider-card:hover {
  border-color: rgba(20, 99, 216, 0.35);
  box-shadow: 0 14px 28px rgba(20, 54, 95, 0.1);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.primary-button:hover {
  background: var(--green-strong);
}

.marketplace-intro {
  border-bottom: 1px solid rgba(216, 229, 244, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.95)),
    #fff;
}

.marketplace-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 32rem);
  align-items: center;
  gap: 1.25rem;
  width: min(100%, 120rem);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 2vw, 1.5rem);
}

.marketplace-copy {
  min-width: 0;
}

.marketplace-copy h1 {
  max-width: 58rem;
  margin: 0.48rem 0 0;
  font-size: clamp(1.8rem, 3.2vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.marketplace-copy p {
  max-width: 45rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  line-height: 1.45;
}

.marketplace-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.intro-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.45rem;
  min-width: 0;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.intro-cta svg,
.intro-cta i {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
}

.intro-cta-primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 30px rgba(20, 99, 216, 0.16);
}

.intro-cta-primary:hover {
  background: var(--green-strong);
}

.intro-cta-secondary {
  border: 1px solid rgba(20, 99, 216, 0.22);
  background: #fff;
  color: var(--green-strong);
}

.intro-cta-secondary:hover {
  border-color: rgba(20, 99, 216, 0.42);
  box-shadow: 0 12px 26px rgba(20, 54, 95, 0.1);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(19rem, 25rem) minmax(22rem, 1fr) minmax(20rem, 25rem);
  align-items: stretch;
  gap: 1rem;
  width: min(100%, 120rem);
  min-width: 0;
  height: calc(100vh - 4.25rem);
  min-height: 42rem;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 2vw, 1.5rem) 1.5rem;
}

.filter-panel,
.profile-panel {
  align-self: stretch;
  height: 100%;
  min-width: 0;
  max-height: none;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.filter-panel {
  padding: 1rem;
}

.guided-search {
  border: 1px solid rgba(56, 168, 255, 0.24);
  border-radius: var(--radius);
  padding: 0.78rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.98)),
    #fff;
}

.guided-search-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.72rem;
}

.guided-search-top strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.15;
  text-align: right;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

.guide-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.48rem;
  min-height: 3.15rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.52rem 0.58rem;
  background: #fff;
  color: var(--green-strong);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.guide-card:hover {
  border-color: rgba(20, 99, 216, 0.38);
  transform: translateY(-1px);
}

.guide-card i {
  width: 1.12rem;
  height: 1.12rem;
  color: var(--teal);
}

.guide-card span {
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.12;
}

.guide-card.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.guide-card.active i {
  color: #fff;
}

.panel-heading h1,
.about-copy h2,
.lead-modal h2 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: 0;
}

.panel-heading h1 {
  margin-top: 0.35rem;
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}

.panel-heading p,
.about-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.55;
}

.panel-heading p {
  margin: 0.75rem 0 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: rgba(56, 168, 255, 0.13);
  color: var(--green-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters {
  display: grid;
  gap: 0.8rem;
}

.filters label,
.lead-form label {
  display: grid;
  gap: 0.4rem;
}

.filters label span,
.lead-form label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.search-field {
  position: relative;
}

.search-field i {
  position: absolute;
  bottom: 0.72rem;
  left: 0.75rem;
  width: 1.05rem;
  color: var(--muted);
}

.search-field input {
  padding-left: 2.25rem;
}

input,
select,
textarea {
  min-height: 2.85rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
}

input,
textarea {
  padding: 0 0.82rem;
}

textarea {
  min-height: 6rem;
  padding-top: 0.75rem;
  resize: vertical;
  line-height: 1.45;
}

select {
  padding: 0 2rem 0 0.82rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(56, 168, 255, 0.16);
}

.select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.toggle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.switch-line {
  position: relative;
  align-items: center;
  grid-template-columns: auto 1fr;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}

.switch-line input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.switch {
  position: relative;
  width: 2.2rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #cbd8ea;
}

.switch::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.2rem;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.switch-line input:checked + .switch {
  background: var(--green);
}

.switch-line input:checked + .switch::after {
  transform: translateX(0.88rem);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.quick-filters button,
.tag {
  border: 1px solid rgba(56, 168, 255, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  background: rgba(56, 168, 255, 0.1);
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

.quick-filters button.active {
  background: var(--green);
  color: #fff;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 0.7rem;
}

.results-head h2 {
  margin: 0;
  font-size: 1rem;
}

.provider-list {
  display: grid;
  gap: 0.78rem;
}

.provider-card {
  display: grid;
  gap: 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.72rem;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 28px rgba(20, 54, 95, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.provider-card.is-active {
  border-color: rgba(20, 99, 216, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(56, 168, 255, 0.12), 0 14px 36px rgba(20, 54, 95, 0.1);
}

.provider-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(20, 54, 95, 0.1);
}

.provider-card-main {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.78rem;
  align-items: start;
}

.provider-thumb {
  width: 4.2rem;
  height: 4.2rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
}

.avatar-thumb {
  position: relative;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(20, 99, 216, 0.14), 0 12px 28px rgba(20, 54, 95, 0.1);
}

.provider-thumb img,
.map-insight-main img,
.marker-photo img,
.popup-profile img,
.profile-identity img,
.doctor-profile-button img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 28%;
}

.provider-thumb img,
.marker-photo img {
  clip-path: circle(50% at 50% 50%);
}

.avatar-status {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #94a3b8;
}

.avatar-status.is-open {
  background: #19b46b;
}

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

.provider-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.42rem;
}

.provider-info h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.18;
}

.trust-badge,
.provider-plan {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.22rem 0.48rem;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.trust-badge {
  background: #eef6ff;
  color: var(--green-strong);
}

.trust-badge.is-verified {
  background: rgba(20, 99, 216, 0.1);
  color: var(--green);
}

.trust-badge i,
.trust-badge svg {
  width: 0.78rem;
  height: 0.78rem;
}

.provider-plan {
  flex: 0 0 auto;
  background: #f8fbff;
  color: var(--muted);
  white-space: nowrap;
}

.provider-info p {
  margin: 0.24rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.provider-specialty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.52rem;
}

.provider-specialty-row span {
  border: 1px solid rgba(56, 168, 255, 0.22);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  background: rgba(56, 168, 255, 0.08);
  color: var(--green-strong);
  font-size: 0.66rem;
  font-weight: 850;
}

.provider-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.provider-card-meta span,
.provider-metrics span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.provider-card-meta span {
  border-radius: var(--radius);
  padding: 0.42rem 0.5rem;
  background: var(--surface-soft);
}

.provider-card-meta i,
.provider-card-meta svg,
.provider-metrics i,
.provider-metrics svg {
  flex: 0 0 auto;
  width: 0.92rem;
  height: 0.92rem;
  color: var(--green);
}

.provider-card-footer {
  display: grid;
  gap: 0.62rem;
  border-top: 1px solid rgba(216, 229, 244, 0.74);
  padding-top: 0.68rem;
}

.provider-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 0.45rem;
}

.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0.65rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 850;
}

.small-action.whatsapp {
  border-color: transparent;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 20px rgba(20, 99, 216, 0.18);
}

.map-area {
  position: sticky;
  top: 5.25rem;
  align-self: stretch;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}

.map-toolbar > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  align-items: center;
}

.map-toolbar strong,
.map-toolbar small {
  display: block;
}

.map-toolbar small {
  color: var(--muted);
  font-size: 0.74rem;
}

.status-dot {
  grid-row: span 2;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0.38rem rgba(56, 168, 255, 0.16);
}

.map-actions {
  display: flex;
  gap: 0.5rem;
}

.map-canvas {
  height: 100%;
  min-height: 0;
  background: var(--panel);
}

.map-insight-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 850;
  width: min(23rem, calc(100% - 2rem));
  border: 1px solid rgba(216, 229, 244, 0.92);
  border-radius: var(--radius);
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(20, 54, 95, 0.18);
  backdrop-filter: blur(16px);
}

.map-insight-main {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.map-insight-main img {
  width: 3.25rem;
  height: 3.25rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(20, 99, 216, 0.16);
}

.map-insight-main strong,
.map-insight-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-insight-main small {
  margin-top: 0.22rem;
  color: var(--muted);
}

.map-insight-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.map-insight-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2rem;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--green-strong);
  font-size: 0.72rem;
  font-weight: 850;
}

.map-insight-stats i {
  width: 0.9rem;
}

.avatar-marker {
  position: relative;
  display: grid;
  width: 3.55rem;
  height: 5.45rem;
  place-items: start center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.marker-photo {
  position: relative;
  z-index: 3;
  display: block;
  width: 3.05rem;
  height: 3.05rem;
  aspect-ratio: 1 / 1;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 22px rgba(20, 54, 95, 0.24);
}

.marker-photo img {
  position: relative;
  z-index: 1;
}

.marker-brand {
  position: absolute;
  z-index: 2;
  top: 2.46rem;
  left: 50%;
  width: 2.45rem;
  height: 3.05rem;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(20, 54, 95, 0.24));
}

.avatar-marker.is-premium .marker-photo {
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.9), 0 12px 24px rgba(20, 54, 95, 0.24);
}

.avatar-marker:not(.is-premium) .marker-photo {
  box-shadow: 0 0 0 2px rgba(20, 99, 216, 0.9), 0 12px 24px rgba(20, 54, 95, 0.24);
}

.avatar-marker.is-selected {
  transform: translateY(-5px) scale(1.08);
}

.avatar-marker.is-selected .marker-photo {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(56, 168, 255, 0.9), 0 18px 36px rgba(20, 99, 216, 0.34);
}

.marker-status {
  position: absolute;
  right: -0.1rem;
  bottom: 0.05rem;
  z-index: 2;
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 5px 12px rgba(20, 54, 95, 0.18);
}

.marker-status.is-open {
  background: #19b46b;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
}

/* Leaflet fallback styles: keep the map usable even if the CDN stylesheet is delayed or blocked. */
.leaflet-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  outline-offset: 1px;
  font-family: inherit;
  touch-action: none;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  max-width: none !important;
  max-height: none !important;
  user-select: none;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  visibility: hidden;
}

.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-map-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  position: absolute;
  z-index: 900;
  pointer-events: none;
}

.leaflet-control-container .leaflet-top {
  top: 0.7rem;
}

.leaflet-control-container .leaflet-bottom {
  bottom: 0.7rem;
}

.leaflet-control-container .leaflet-left {
  left: 0.7rem;
}

.leaflet-control-container .leaflet-right {
  right: 0.7rem;
}

.leaflet-control {
  position: relative;
  z-index: 900;
  pointer-events: auto;
}

.leaflet-left .leaflet-control {
  float: left;
  clear: both;
}

.leaflet-right .leaflet-control {
  float: right;
  clear: both;
}

.leaflet-top .leaflet-control {
  margin-top: 0.6rem;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 0.6rem;
}

.leaflet-left .leaflet-control {
  margin-left: 0.6rem;
}

.leaflet-right .leaflet-control {
  margin-right: 0.6rem;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 54, 95, 0.14);
}

.leaflet-control-zoom a {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.leaflet-control-zoom a + a {
  border-top: 1px solid var(--line);
}

.leaflet-control-attribution {
  border-radius: var(--radius);
  padding: 0.18rem 0.4rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 0.66rem;
}

.leaflet-popup {
  position: absolute;
  margin-bottom: 1.15rem;
  text-align: left;
}

.leaflet-popup-content-wrapper {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 54, 95, 0.18);
}

.leaflet-popup-content {
  min-width: 11rem;
  margin: 0;
  padding: 0.75rem;
  line-height: 1.4;
}

.popup-profile {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.6rem;
  align-items: center;
}

.popup-profile img {
  width: 2.6rem;
  height: 2.6rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 50%;
}

.popup-profile strong,
.popup-profile span {
  display: block;
}

.popup-profile span {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.popup-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.popup-stats span {
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  background: var(--surface-soft);
  color: var(--green-strong);
  font-size: 0.7rem;
  font-weight: 850;
}

.leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  width: 2rem;
  height: 1rem;
  margin-left: -1rem;
  overflow: hidden;
}

.leaflet-popup-tip {
  width: 0.8rem;
  height: 0.8rem;
  margin: -0.4rem auto 0;
  transform: rotate(45deg);
  background: #fff;
}

.leaflet-popup-close-button {
  position: absolute;
  top: 0.2rem;
  right: 0.35rem;
  z-index: 1;
  color: var(--muted);
  font-size: 1.25rem;
}

.popup-button {
  margin-top: 0.45rem;
  border: 0;
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  background: var(--green);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
}

.profile-panel {
  background: linear-gradient(180deg, #f8fbff, #ffffff 18rem);
}

.profile-cover {
  position: relative;
  min-height: 12.5rem;
  background-position: center;
  background-size: cover;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 45, 105, 0.08), rgba(9, 37, 78, 0.72)),
    linear-gradient(90deg, rgba(11, 78, 162, 0.58), rgba(11, 78, 162, 0.02));
}

.profile-cover-content {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  color: #fff;
}

.profile-logo {
  display: block;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.65rem;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.profile-cover-content h2 {
  margin: 0.35rem 0 0;
  text-shadow: 0 6px 18px rgba(15, 23, 42, 0.24);
  font-size: 1.42rem;
  line-height: 1.08;
}

.profile-cover-content p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.profile-body {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem;
}

.profile-identity {
  display: grid;
  grid-template-columns: 3.85rem 1fr;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgba(216, 229, 244, 0.9);
  border-radius: var(--radius);
  padding: 0.78rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 54, 95, 0.08);
}

.profile-identity img {
  width: 3.85rem;
  height: 3.85rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(20, 99, 216, 0.16);
}

.profile-identity strong,
.profile-identity span {
  display: block;
}

.profile-identity span {
  margin-top: 0.2rem;
  color: var(--muted);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.48rem;
}

.insight-grid div {
  min-height: 4.25rem;
  border: 1px solid rgba(216, 229, 244, 0.88);
  border-radius: var(--radius);
  padding: 0.68rem;
  background: #fff;
}

.insight-grid strong,
.insight-grid span {
  display: block;
}

.insight-grid strong {
  color: var(--green-strong);
  font-size: 1rem;
  line-height: 1.12;
}

.insight-grid span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 760;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.profile-social-section {
  display: grid;
  gap: 0.55rem;
}

.social-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.55rem;
  min-width: 0;
  border: 1px solid rgba(216, 229, 244, 0.9);
  border-radius: var(--radius);
  padding: 0.46rem 0.55rem;
  background: #fff;
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

.social-link:hover {
  border-color: rgba(20, 99, 216, 0.35);
  background: var(--surface-soft);
}

.social-logo,
.social-link > i,
.social-link > svg {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
}

.social-logo {
  display: block;
  object-fit: contain;
}

.social-link > i,
.social-link > svg {
  color: var(--green);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  border: 1px solid rgba(216, 229, 244, 0.95);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.whatsapp-button {
  border: 0;
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 99, 216, 0.2);
}

.detail-grid {
  display: grid;
  gap: 0.6rem;
}

.detail-item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  border: 1px solid rgba(216, 229, 244, 0.9);
  border-radius: var(--radius);
  padding: 0.7rem;
  background: #fff;
}

.detail-item i {
  color: var(--green);
}

.detail-item strong,
.detail-item span {
  display: block;
}

.detail-item span {
  margin-top: 0.18rem;
  color: var(--muted);
  line-height: 1.42;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-section-card {
  border: 1px solid rgba(216, 229, 244, 0.9);
  border-radius: var(--radius);
  padding: 0.78rem;
  background: #fff;
}

.professional-profile-section {
  display: grid;
  gap: 0.72rem;
  border: 1px solid rgba(216, 229, 244, 0.9);
  border-radius: var(--radius);
  padding: 0.82rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 54, 95, 0.06);
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.section-heading-row .section-title {
  margin-bottom: 0.2rem;
}

.section-heading-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.validation-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(20, 99, 216, 0.18);
  border-radius: 999px;
  padding: 0.34rem 0.55rem;
  background: var(--surface-soft);
  color: var(--green-strong);
  font-size: 0.68rem;
  font-weight: 900;
}

.validation-chip i,
.validation-chip svg {
  width: 0.88rem;
  height: 0.88rem;
}

.doctor-picker {
  display: grid;
  gap: 0.5rem;
}

.doctor-profile-button {
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  align-items: center;
  gap: 0.58rem;
  width: 100%;
  border: 1px solid rgba(216, 229, 244, 0.92);
  border-radius: var(--radius);
  padding: 0.52rem;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.doctor-profile-button.is-active {
  border-color: rgba(20, 99, 216, 0.42);
  background: linear-gradient(180deg, rgba(56, 168, 255, 0.13), rgba(255, 255, 255, 0.98));
}

.doctor-profile-button img {
  width: 2.7rem;
  height: 2.7rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(20, 99, 216, 0.18);
}

.doctor-profile-button strong,
.doctor-profile-button small {
  display: block;
}

.doctor-profile-button small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-weight: 760;
}

.doctor-profile-card {
  display: grid;
  gap: 0.65rem;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
}

.doctor-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.doctor-profile-facts {
  display: grid;
  gap: 0.48rem;
}

.doctor-profile-fact {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.45rem;
  align-items: start;
  border-radius: 0.72rem;
  padding: 0.55rem;
  background: #f6faff;
}

.doctor-profile-fact i,
.doctor-profile-fact svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--green);
}

.doctor-profile-fact span,
.doctor-profile-fact strong {
  display: block;
}

.doctor-profile-fact span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.doctor-profile-fact strong {
  margin-top: 0.12rem;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.38;
}

.doctor-highlight-list {
  display: grid;
  gap: 0.38rem;
}

.doctor-highlight-list span {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.35;
}

.doctor-highlight-list i,
.doctor-highlight-list svg {
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--green);
}

.doctor-validation-note {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.45rem;
  border: 1px dashed rgba(20, 99, 216, 0.28);
  border-radius: var(--radius);
  padding: 0.58rem;
  background: rgba(56, 168, 255, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.38;
}

.doctor-validation-note i,
.doctor-validation-note svg {
  width: 1rem;
  height: 1rem;
  color: var(--green-strong);
}

.doctor-list {
  display: grid;
  gap: 0.5rem;
}

.doctor-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
}

.doctor-row strong,
.doctor-row span {
  display: block;
}

.doctor-row span {
  margin-top: 0.18rem;
  color: var(--muted);
}

.section-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.about-band {
  scroll-margin-top: 5.5rem;
  width: min(100%, 88rem);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

.about-copy {
  max-width: 58rem;
}

.about-copy h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.04;
}

.about-copy p {
  max-width: 52rem;
  color: var(--muted);
  line-height: 1.55;
}

.about-contact-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.96), #fff),
    #fff;
  box-shadow: 0 14px 36px rgba(28, 51, 47, 0.09);
}

.about-contact-card strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  background: #fff;
  color: var(--green-strong);
  font-weight: 850;
}

.contact-link i,
.contact-link svg {
  width: 1.1rem;
  color: var(--teal);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.about-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
  box-shadow: 0 14px 36px rgba(28, 51, 47, 0.09);
}

.about-grid i,
.about-grid article > svg {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: var(--radius);
  padding: 0.48rem;
  background: rgba(20, 99, 216, 0.08);
  color: var(--green);
}

.about-grid h3 {
  margin: 0.8rem 0 0;
}

.about-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.4rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 42rem;
  margin: 0;
  font-size: 0.82rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 32, 62, 0.56);
}

.modal-backdrop[hidden] {
  display: none;
}

.lead-modal {
  position: relative;
  width: min(100%, 44rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: var(--radius);
  padding: 1rem clamp(1rem, 3vw, 1.25rem) 1.2rem;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.26);
}

.lead-modal h2 {
  margin-top: 0.6rem;
  margin-bottom: 0;
  font-size: 1.8rem;
}

.modal-close {
  position: absolute;
  z-index: 8;
  top: 0.8rem;
  right: 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.modal-close svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
}

.lead-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.lead-intro {
  max-width: 34rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.lead-plan-field {
  grid-column: 1 / -1;
}

.lead-wide-field {
  grid-column: 1 / -1;
}

.lead-wide-field textarea {
  min-height: 5.8rem;
}

.checkbox-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.72rem 0.8rem;
  background: var(--surface-soft);
}

.lead-form .checkbox-line input {
  width: 1.05rem;
  min-height: 1.05rem;
  margin: 0.16rem 0 0;
  accent-color: var(--green);
}

.lead-form .checkbox-line span {
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
}

.turnstile-field {
  display: flex;
  min-height: 4.1rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lead-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.self-service-modal {
  width: min(100%, 59rem);
  padding: 1.2rem clamp(1rem, 3vw, 1.6rem) 1.4rem;
}

.self-service-heading {
  padding-right: 3rem;
}

.self-service-heading h2 {
  margin-top: 0.55rem;
}

.self-service-heading p {
  max-width: 40rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-lookup-link {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.status-lookup-link svg {
  width: 1rem;
}

.submission-status-view {
  display: grid;
  min-height: 24rem;
  align-content: start;
  margin-top: 1rem;
}

.submission-status-view[hidden] {
  display: none;
}

.status-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}

.status-lookup-form label {
  display: grid;
  gap: 0.4rem;
}

.status-lookup-form label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.status-lookup-form button {
  min-height: 3rem;
}

.status-lookup-result {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  border: 1px solid #f0cf78;
  border-radius: var(--radius);
  padding: 0.9rem;
  background: #fff9e8;
  color: #765300;
}

.status-lookup-result[hidden] {
  display: none;
}

.status-lookup-result.approved {
  border-color: #9ddbc4;
  background: #edf9f4;
  color: #08724d;
}

.status-lookup-result.rejected,
.status-lookup-result.error {
  border-color: #efb4b4;
  background: #fff3f3;
  color: #a42929;
}

.status-lookup-result > svg {
  width: 2rem;
  height: 2rem;
}

.status-lookup-result div {
  display: grid;
  gap: 0.2rem;
}

.status-lookup-result span,
.status-lookup-result small {
  line-height: 1.4;
}

.status-lookup-result span {
  font-size: 0.82rem;
}

.status-lookup-result small {
  font-weight: 850;
}

.status-back-button {
  width: fit-content;
  margin-top: 1rem;
}

.wizard-progress {
  position: relative;
  margin: 1.15rem 0 0;
  padding: 0 0.4rem;
}

.wizard-progress::before,
.wizard-progress-bar {
  position: absolute;
  top: 1rem;
  right: 10%;
  left: 10%;
  height: 2px;
  content: "";
}

.wizard-progress::before {
  background: var(--line);
}

.wizard-progress-bar {
  right: auto;
  z-index: 1;
  max-width: 80%;
  background: var(--green);
  transition: width 180ms ease;
}

.wizard-progress ol {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-progress li {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.wizard-progress li b {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
}

.wizard-progress li.is-active b,
.wizard-progress li.is-complete b {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.wizard-progress li.is-active {
  color: var(--green-strong);
}

.wizard-step {
  min-height: 26rem;
}

.wizard-step[hidden] {
  display: none;
}

.wizard-step-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.wizard-step-heading > svg {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  padding: 0.55rem;
  background: rgba(20, 99, 216, 0.09);
  color: var(--green);
}

.wizard-step-heading h3,
.wizard-step-heading p {
  margin: 0;
}

.wizard-step-heading h3 {
  font-size: 1.05rem;
}

.wizard-step-heading p {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.self-service-form textarea {
  min-height: 5rem;
  resize: vertical;
}

.free-plan-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
  border: 1px solid #b9dbf8;
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  background: #f3f9ff;
}

.free-plan-note > svg {
  width: 1.5rem;
  color: var(--green);
}

.free-plan-note div {
  display: grid;
  gap: 0.1rem;
}

.free-plan-note span {
  color: var(--muted);
  font-size: 0.76rem;
}

.wizard-actions {
  position: sticky;
  z-index: 6;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.15rem;
  background: #fff;
}

.wizard-actions-end {
  justify-content: flex-end;
}

.location-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}

.location-button {
  min-height: 3rem;
  white-space: nowrap;
}

.field-help {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.field-help svg {
  flex: 0 0 auto;
  width: 1rem;
  color: var(--green);
}

.self-service-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.self-service-upload {
  align-content: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: var(--surface-soft);
  cursor: pointer;
}

.self-service-upload:last-child {
  grid-column: 1 / -1;
}

.self-service-upload:hover,
.self-service-upload:focus-within {
  border-color: #76bff5;
  background: #f6fbff;
}

.self-service-upload.is-processing {
  opacity: 0.65;
  pointer-events: none;
}

.self-service-upload strong,
.self-service-upload > span:not(.upload-preview) {
  display: block;
}

.self-service-upload > span:not(.upload-preview) {
  min-height: 2.2rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.self-service-upload input {
  margin-top: 0.45rem;
  padding: 0.55rem;
  background: #fff;
  font-size: 0.74rem;
}

.upload-preview {
  display: grid;
  width: 5.5rem;
  height: 5.5rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid #c9def3;
  border-radius: 50%;
  margin-bottom: 0.65rem;
  background: #fff;
  color: var(--green);
}

.upload-preview-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  border-radius: var(--radius);
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview svg {
  width: 2rem;
}

.self-service-upload.has-image .upload-preview > svg {
  display: none;
}

.self-service-preview {
  width: min(100%, 42rem);
  margin: 0 auto;
}

.preview-profile {
  overflow: hidden;
  border: 1px solid #cfe0f2;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 54, 94, 0.09);
}

.preview-cover {
  position: relative;
  height: 8.5rem;
  overflow: hidden;
  background: linear-gradient(120deg, #0c438e, #168be2);
}

.preview-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(7, 34, 73, 0.45));
}

.preview-plan,
.preview-logo {
  position: absolute;
  z-index: 1;
  top: 0.65rem;
}

.preview-plan {
  left: 0.7rem;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: #fff;
  color: var(--green-strong);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-logo {
  right: 0.7rem;
  width: 3.4rem;
  height: 3.4rem;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: var(--radius);
  background: #fff;
}

.preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-profile-body {
  padding: 0 1rem 1rem;
}

.preview-professional {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: -2.25rem;
}

.preview-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 5.4rem;
  height: 5.4rem;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #eaf5ff;
  color: var(--green-strong);
  box-shadow: 0 5px 15px rgba(10, 50, 95, 0.16);
}

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

.preview-professional > div {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
  padding-top: 2.35rem;
}

.preview-professional strong {
  color: var(--ink);
  font-size: 1rem;
}

.preview-professional span {
  color: var(--green-strong);
  font-size: 0.82rem;
}

.preview-professional small {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
}

.preview-professional small svg {
  width: 0.85rem;
}

.preview-profile-body > p {
  margin: 0.8rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.preview-tags span {
  border: 1px solid #b9dbf8;
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  background: #f3f9ff;
  color: var(--green-strong);
  font-size: 0.7rem;
  font-weight: 800;
}

.preview-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.preview-details span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.preview-details svg {
  grid-row: 1 / 3;
  width: 1.1rem;
  color: var(--green);
}

.preview-details b {
  color: var(--ink);
}

.preview-services {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.preview-services > strong {
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
}

.preview-services span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.preview-services svg {
  width: 0.9rem;
  color: var(--green);
}

.self-service-consent {
  margin-top: 0.9rem;
}

.self-service-success {
  display: grid;
  max-width: 34rem;
  min-height: 26rem;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  margin: 0 auto;
  text-align: center;
}

.self-service-success[hidden] {
  display: none;
}

.success-icon {
  display: grid;
  width: 4.4rem;
  height: 4.4rem;
  place-items: center;
  border-radius: 50%;
  background: #e9f8f2;
  color: #0b8c62;
}

.success-icon svg {
  width: 2.3rem;
  height: 2.3rem;
}

.self-service-success h3,
.self-service-success p {
  margin: 0;
}

.self-service-success h3 {
  font-size: 1.55rem;
}

.self-service-success p {
  color: var(--muted);
  line-height: 1.5;
}

.success-actions {
  display: flex;
  gap: 0.55rem;
}

.submission-code {
  display: grid;
  gap: 0.25rem;
  width: min(100%, 23rem);
  border: 1px dashed #82bde9;
  border-radius: var(--radius);
  padding: 0.85rem;
  background: #f4faff;
}

.submission-code span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.submission-code strong {
  color: var(--green-strong);
  font-size: 1.05rem;
}

.button-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin 700ms linear infinite;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

.wide-button {
  width: 100%;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: 24rem;
  transform: translateY(1rem);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.mobile-only {
  display: none;
}

@media (max-width: 1180px) {
  .marketplace-intro-inner {
    grid-template-columns: 1fr;
  }

  .marketplace-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-grid {
    grid-template-columns: minmax(18rem, 23rem) minmax(22rem, 1fr);
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

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

  .profile-panel {
    grid-column: 1 / -1;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .location-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-button {
    grid-column: 1 / -1;
  }

  .topbar {
    align-items: stretch;
  }

  .top-actions {
    gap: 0.4rem;
  }

  .ghost-link {
    display: none;
  }

  .primary-button {
    padding-inline: 0.75rem;
  }

  .marketplace-intro-inner {
    padding-block: 0.85rem;
  }

  .marketplace-copy h1 {
    font-size: clamp(1.55rem, 7vw, 2.35rem);
  }

  .app-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
  }

  .filter-panel,
  .profile-panel,
  .map-area {
    width: 100%;
    min-width: 0;
    max-height: none;
  }

  .map-area {
    position: relative;
    top: auto;
    display: block;
    height: auto;
    min-height: 0;
    order: 1;
  }

  .filter-panel {
    order: 2;
  }

  .profile-panel {
    order: 3;
  }

  .map-canvas {
    height: 26rem;
    min-height: 26rem;
  }

  .map-insight-card {
    bottom: 4.55rem;
    width: min(20rem, calc(100% - 2rem));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .mobile-only {
    display: inline-grid;
  }
}

@media (max-width: 560px) {
  .modal-backdrop {
    align-items: stretch;
    padding: 0;
  }

  .self-service-modal {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    padding: 0.9rem;
  }

  .wizard-progress {
    margin-top: 0.9rem;
  }

  .wizard-progress li span {
    font-size: 0.62rem;
  }

  .wizard-step {
    min-height: 0;
  }

  .location-fields,
  .self-service-upload-grid,
  .preview-details,
  .status-lookup-form {
    grid-template-columns: 1fr;
  }

  .success-actions {
    display: grid;
    width: 100%;
  }

  .success-actions button {
    width: 100%;
  }

  .self-service-upload:last-child,
  .location-button {
    grid-column: auto;
  }

  .wizard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .wizard-actions-end {
    grid-template-columns: 1fr;
  }

  .wizard-actions button {
    width: 100%;
  }

  .preview-cover {
    height: 7.5rem;
  }

  .preview-professional {
    align-items: flex-start;
  }

  .preview-professional > div {
    padding-top: 2.2rem;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
  }

  .brand {
    flex: 1 1 100%;
    width: auto;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .brand-logo {
    width: min(8rem, 44vw);
  }

  .brand-region {
    display: none;
  }

  .top-actions {
    flex: 0 0 calc(100vw - 1.5rem);
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
    min-width: 0;
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr);
  }

  .top-actions .primary-button {
    width: 100%;
    min-width: 0;
    padding-inline: 0.65rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .marketplace-actions {
    grid-template-columns: 1fr;
  }

  .intro-cta {
    min-height: 3.25rem;
    padding-inline: 0.8rem;
  }

  .app-grid {
    width: calc(100vw - 1.3rem);
    max-width: calc(100vw - 1.3rem);
    padding-inline: 0;
  }

  .select-grid,
  .toggle-row,
  .profile-actions,
  .lead-form-grid,
  .lead-actions {
    grid-template-columns: 1fr;
  }

  .lead-modal {
    width: min(100%, calc(100vw - 1.4rem));
    padding: 0.9rem;
  }

  .lead-modal h2 {
    max-width: calc(100% - 3rem);
    font-size: 1.45rem;
    line-height: 1.12;
  }

  .guided-search-top {
    display: grid;
    justify-content: start;
    gap: 0.45rem;
  }

  .guided-search-top strong {
    text-align: left;
  }

  .provider-card {
    grid-template-columns: none;
  }

  .provider-card-main {
    grid-template-columns: 4rem 1fr;
  }

  .provider-thumb {
    width: 4rem;
    height: 4rem;
  }

  .provider-card-meta {
    grid-template-columns: 1fr;
  }
}
