

@media (max-width: 640px) {
  .sc-body-map-hint {
    top: 5.25rem;
    right: 0.75rem;
    bottom: auto;
    left: 0.75rem;
    max-width: none;
    padding: 0.4rem 0.65rem;
    font-size: 0.65rem;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-hotspot,
  .sc-hotspot-tech-grid,
  .sc-hotspot-tech-grid-band,
  .sc-body-map-area:hover .sc-hotspot,
  .sc-body-map-area:focus-visible .sc-hotspot,
  .sc-body-map-area--guided .sc-hotspot,
  .sc-body-map-area--guided .sc-hotspot-tech-grid,
  .sc-body-map-area--guided .sc-hotspot-tech-grid-band {
    animation: none;
  }

  .sc-body-map-area:hover .sc-hotspot-tech-grid-band,
  .sc-body-map-area:focus-visible .sc-hotspot-tech-grid-band,
  .sc-body-map-area--guided .sc-hotspot-tech-grid-band {
    opacity: 0.18;
  }
}

/* ─── Floating tooltip ────────────────────────────────────────────── */
.sc-body-map-tooltip {
  position: fixed;
  z-index: 9999;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--sc-consultation-tooltip-transition-ms, 250ms) ease;
}

.sc-body-map-tooltip__node {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 9999px;
  background: var(--sc-primary-container, #d4af37);
  box-shadow:
    0 0 0.25rem rgba(212, 175, 55, 0.9),
    0 0 0.8rem rgba(115, 92, 0, 0.5);
  transform: translate(-50%, -50%);
  transition: transform var(--sc-consultation-tooltip-transition-ms, 250ms) ease;
}

.sc-body-map-tooltip__line {
  position: absolute;
  top: -3rem;
  width: var(--sc-tooltip-line-width, 11.25rem);
  height: 3rem;
  overflow: visible;
  filter: drop-shadow(0 0 0.2rem rgba(115, 92, 0, 0.42));
}

.sc-body-map-tooltip__line path {
  fill: none;
  stroke: var(--sc-primary-container, #d4af37);
  stroke-width: 1.5;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset var(--sc-consultation-tooltip-transition-ms, 250ms) ease-out;
}

.sc-body-map-tooltip__label {
  position: absolute;
  top: -3.35rem;
  box-sizing: border-box;
  color: var(--sc-primary, #735c00);
  font-size: clamp(0.56rem, 1.2vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  max-width: var(--sc-tooltip-label-width, 14rem);
  opacity: 0;
  overflow: visible;
  text-overflow: clip;
  padding: 0.24rem 0.55rem;
  background: rgba(251, 249, 245, 0.92);
  border: 1px solid rgba(115, 92, 0, 0.14);
  border-radius: 0.65rem;
  box-shadow: 0 8px 18px rgba(30, 20, 0, 0.08);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  transform: translate(var(--sc-tooltip-label-shift-x, 0), 0.3rem);
  transition:
    opacity var(--sc-consultation-tooltip-transition-ms, 250ms) ease-out,
    transform var(--sc-consultation-tooltip-transition-ms, 250ms) ease-out;
  white-space: nowrap;
}

.sc-body-map-tooltip__measure {
  position: fixed;
  top: -9999px;
  left: -9999px;
  box-sizing: border-box;
  color: transparent;
  font-size: clamp(0.56rem, 1.2vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 0.24rem 0.55rem;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.sc-body-map-tooltip--right .sc-body-map-tooltip__line {
  left: 0;
}

.sc-body-map-tooltip--right .sc-body-map-tooltip__label {
  left: calc(var(--sc-tooltip-line-width, 11.25rem) - 0.35rem);
  --sc-tooltip-label-shift-x: -100%;
}

.sc-body-map-tooltip--left .sc-body-map-tooltip__line {
  right: 0;
  transform: scaleX(-1);
}

.sc-body-map-tooltip--left .sc-body-map-tooltip__label {
  right: calc(var(--sc-tooltip-line-width, 11.25rem) - 0.35rem);
  --sc-tooltip-label-shift-x: 100%;
}

.sc-body-map-tooltip--custom .sc-body-map-tooltip__line {
  right: auto;
}

.sc-body-map-tooltip--custom .sc-body-map-tooltip__label {
  left: var(--sc-tooltip-label-left, 0);
  right: auto;
  top: var(--sc-tooltip-label-top, -3.35rem);
  width: var(--sc-tooltip-label-width, 14rem);
  max-width: var(--sc-tooltip-label-width, 14rem);
  --sc-tooltip-label-shift-x: 0;
}

.sc-body-map-tooltip.visible .sc-body-map-tooltip__node {
  transform: translate(-50%, -50%) scale(1.75);
}

.sc-body-map-tooltip.visible .sc-body-map-tooltip__line path {
  stroke-dashoffset: 0;
}

.sc-body-map-tooltip.visible .sc-body-map-tooltip__label {
  opacity: 1;
  transform: translate(var(--sc-tooltip-label-shift-x, 0), 0);
  transition-delay: var(--sc-consultation-tooltip-label-delay-ms, 100ms);
}

@media (max-width: 640px) {
  .sc-body-map-tooltip__line {
    top: -2.3rem;
    height: 2.3rem;
  }

  .sc-body-map-tooltip__label {
    top: -2.6rem;
    font-size: 0.54rem;
    line-height: 1.1;
    letter-spacing: 0.04em;
    max-width: min(var(--sc-tooltip-label-width, 12rem), calc(100vw - 0.75rem));
    padding: 0.2rem 0.46rem;
  }

  .sc-body-map-tooltip__measure {
    font-size: 0.54rem;
    line-height: 1.1;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.46rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-body-map-tooltip,
  .sc-body-map-tooltip__node,
  .sc-body-map-tooltip__line path,
  .sc-body-map-tooltip__label {
    transition: none;
  }

  .sc-body-map-tooltip__line path {
    stroke-dashoffset: 0;
  }
}

/* ─── Treatment plan dialog ───────────────────────────────────────── */
#sc-booking-offcanvas {
  top: 3rem;
  right: 1.5rem;
  bottom: auto;
  width: min(28rem, calc(100vw - 3rem));
  max-width: calc(100vw - 3rem);
  height: auto;
  max-height: calc(100vh - 6rem);
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(127, 118, 99, 0.14);
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(30, 20, 0, 0.14);
}

#sc-booking-offcanvas .offcanvas-header {
  padding: 1.25rem 1.25rem 1rem;
}

#sc-booking-offcanvas .offcanvas-title {
  color: var(--sc-primary, #735c00);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

#sc-booking-offcanvas .offcanvas-body {
  padding: 0.75rem 1.25rem 1.25rem;
}

.sc-booking-close {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.75rem;
  border-radius: 9999px;
  transition: background-color var(--sc-consultation-booking-transition-ms, 250ms) ease;
}
