.svg-portal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 180px;
  touch-action: none;
  cursor: grab;
  background: #e0e4e8;
  font-family: Inter, Arial, sans-serif;
  --ink: #123331;
  --teal: #225550;
  --line: #c8dcd4;
  &.drag {
    cursor: grabbing;
  }
  &.moving .tile-layer,
  &.drag .tile-layer {
    will-change: transform;
  }
  [hidden] {
    display: none !important;
  }
  #popup {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    /* Include the overhanging touch target in the camera's measured bounds. */
    --corner-room: 22px;
    --panel-radius: 15px;
    box-sizing: content-box;
    width: min(17em, calc(100% - 80px));
    padding-inline: var(--corner-room);
    --portrait-size: clamp(64px, 5.625rem, 90px);
    --portrait-overhang: calc(var(--portrait-size) * 0.65);
    --popup-cap: calc(var(--portrait-overhang) + 6px);
    filter: drop-shadow(0 3px 6px #22555026);
    cursor: auto;
    touch-action: pan-y;
  }
  #popup::before {
    content: "";
    position: absolute;
    inset: var(--popup-cap) var(--corner-room) 0;
    z-index: -1;
    border-radius: var(--panel-radius);
    background: white;
    pointer-events: none;
  }
  #popup:after {
    content: "";
    position: absolute;
    left: var(--tip-x);
    bottom: -7px;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: white;
  }
  #popup.below:after {
    top: calc(var(--popup-cap) - 7px);
    bottom: auto;
  }
  #detail {
    isolation: isolate;
    border-radius: 0 0 var(--panel-radius) var(--panel-radius);
    max-height: calc(var(--map-height) - 155px);
    overflow-y: auto;
    overflow-x: clip;
    padding-top: var(--popup-cap);
  }
  #detail #fixed-popup {
    position: relative;
    inset: auto;
    transform: none;
    margin: 0;
    width: 100%;
    box-shadow: none;
    background: transparent;
    border-radius: var(--panel-radius);
  }
  #detail .popup-container-content.skeleton::after {
    border-radius: var(--panel-radius);
  }
  #detail .popup-container-content:has(.brand-container) {
    padding-top: calc(var(--portrait-size) - var(--portrait-overhang) + 10px);
  }
  #detail .brand-container {
    width: var(--portrait-size);
    height: var(--portrait-size);
    top: calc(0px - var(--portrait-overhang));
    transform: translateX(-50%);
  }
  #detail a.primary_btn:not(.disabled) {
    min-height: 44px;
    box-sizing: border-box;
    background-color: #42cc93;
    color: #132f2d;
    cursor: pointer;
    transition:
      background-color 140ms,
      box-shadow 140ms,
      transform 140ms;
  }
  #detail .primary_btn .right-arrow-icon-white {
    background-color: currentColor;
  }
  @media (hover: hover) {
    #detail a.primary_btn:not(.disabled):hover {
      background-color: #3ebf89;
      box-shadow: 0 6px 14px -7px #22555080;
      transform: translateY(-2px);
    }
  }
  #detail a.primary_btn:not(.disabled):focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
  }
  #detail a.primary_btn:not(.disabled):active {
    background-color: var(--teal);
    color: white;
    box-shadow: inset 0 2px 3px #132f2d55;
    transform: scale(0.97);
    transition-duration: 80ms;
  }
  @media (prefers-reduced-motion: reduce) {
    #detail a.primary_btn:not(.disabled),
    #detail a.primary_btn:not(.disabled):is(:hover, :active) {
      transition: none;
      transform: none;
    }
  }
  #popup .close {
    position: absolute;
    z-index: 2;
    right: var(--corner-room);
    top: var(--popup-cap);
    transform: translate(50%, -50%);
    font: inherit;
    margin: 0;
    display: grid;
    place-items: center;
    width: calc(2 * var(--corner-room));
    height: calc(2 * var(--corner-room));
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }
  #popup .close::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background-color: #ebfaf2;
    box-shadow:
      inset 0 0 0 1px #bde3ce,
      0 0 0 2px white,
      0 3px 8px #22555035;
  }
  #popup .close-x-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    background: none;
    color: var(--teal);
  }
  #popup .close-x-icon::before,
  #popup .close-x-icon::after {
    content: "";
    grid-area: 1 / 1;
    width: 19px;
    height: 3.25px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
  }
  #popup .close-x-icon::after {
    transform: rotate(-45deg);
  }
  @media (hover: hover) {
    #popup .close:hover::before {
      background-color: #d3f5e1;
    }
  }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    #popup .close:hover .close-x-icon {
      transform: rotate(180deg) scale(1.18);
      transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    }
  }
  #popup .close:active::before {
    background-color: #42cc93;
  }
  #popup .close:focus-visible {
    outline: none;
  }
  :root:not([data-svg-map-pointer]) & #popup .close:focus-visible::before {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
  }
  #paging:not(:empty) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 3px 8px;
    border-radius: 0 0 var(--panel-radius) var(--panel-radius);
    font-size: 13px;
  }
  #paging button {
    border: 0;
    background: #e8f7ef;
    border-radius: 5px;
    width: 32px;
    height: 30px;
  }
  .attribution {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #fffffff2;
    color: #435c58;
    z-index: 2;
    font: 11px/1.6 Arial;
    padding-inline: 4px;
  }
  .attribution a {
    color: inherit;
    text-decoration: underline;
  }
  .controls,
  .home {
    z-index: 3;
  }
  &.drag {
    cursor: grabbing;
  }
  &:focus-visible,
  button:focus-visible,
  a:focus-visible,
  select:focus-visible {
    outline: 3px solid #225550;
    outline-offset: 3px;
  }
  &:focus-visible {
    outline-offset: 1px;
  }
  #base,
  #pins {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }
  #base {
    z-index: 0;
  }
  #pins {
    z-index: 1;
  }
  .tile-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 1024px;
    height: 1024px;
    transform-origin: 0 0;
    pointer-events: none;
  }
  &.moving .tile-layer,
  &.drag .tile-layer {
    will-change: transform;
  }
  #base img {
    position: absolute;
    max-width: none;
    width: 1024px;
    height: 1024px;
    user-select: none;
    pointer-events: none;
  }
  .pin,
  .legend .praxis {
    border: 4px solid rgba(34, 85, 80, 0.3);
    background-clip: padding-box;
  }
  .pin {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: white;
    color: #225550;
    font:
      400 20px/1 Inter,
      Arial,
      sans-serif;
    cursor: pointer;
    pointer-events: auto;
  }
  .pin.single {
    background-color: #42cc93;
    color: white;
  }
  .pin:hover,
  .pin:focus-visible {
    width: 58px;
    height: 58px;
    z-index: 1;
  }
  .pin:not(.single):is(:hover, :focus-visible, .selected) {
    background-color: #225550;
    color: white;
  }
  .pin.selected.single {
    width: 48px;
    height: 48px;
    background: #00ca9d;
    color: transparent;
    border: 0;
    z-index: 2;
  }
  .pin.selected.single::after {
    content: "";
    position: absolute;
    inset: 16px;
    background: white;
    border-radius: 50%;
  }
  .controls,
  .home,
  .scale,
  .map #popup,
  #map-status {
    position: absolute;
    z-index: 2;
  }
  .controls,
  .home {
    right: 12px;
    background: white;
    border: 1px solid #cbd9d3;
    border-radius: 12px;
    box-shadow: 0 2px 8px #132f2d1f;
  }
  .controls {
    top: 12px;
    display: grid;
    overflow: hidden;
  }
  .controls button,
  .home {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: white;
    cursor: pointer;
  }
  .controls button {
    font: 500 26px/1 system-ui;
    border: 0;
  }
  .controls button + button {
    border-top: 1px solid var(--line);
  }
  .home {
    top: 110px;
  }
  .home svg {
    width: 22px;
  }
  .controls button:disabled {
    color: #82918b;
    cursor: default;
  }
  .scale {
    left: 12px;
    bottom: 12px;
    padding: 5px 9px 7px;
    border-radius: 9px;
    background: #fffffff5;
    color: var(--teal);
    box-shadow: 0 2px 8px #22555026;
    text-align: center;
    font:
      600 12px/1.3 Inter,
      Arial,
      sans-serif;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
  }
  .scale span {
    display: block;
    white-space: nowrap;
  }
  .scale span::after {
    content: "";
    display: block;
    height: 3px;
    margin-top: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--teal) 50%, #42cc93 50%);
  }
  @media (max-width: 420px) {
    .scale {
      /* Leave room for the floating list button, including its two-line label. */
      bottom: 88px;
    }
  }
  @media (forced-colors: active) {
    .scale span::after {
      background: CanvasText;
      forced-color-adjust: none;
    }
  }
  #map-status {
    bottom: 10px;
    right: 10px;
    max-width: 70%;
    background: white;
    color: var(--ink);
    font-size: 0.875rem;
    padding: 5px 9px;
    border-radius: 6px;
    cursor: default;
  }
  #map-status:empty {
    display: none;
  }
}
#app .search-card-container > .svg-empty-results {
  justify-items: center;
  align-content: center;
  min-height: clamp(300px, 62vh, 570px);
  gap: 12px;
  padding: clamp(24px, 5vw, 64px) 20px;
  box-sizing: border-box;
  text-align: center;
  color: #225550;
  background: #f7fcf9;
  border-radius: 20px;
}
.svg-empty-results .search-card-sub-title {
  max-width: 34ch;
  line-height: 1.5;
}
.svg-empty-art {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  width: min(230px, 100%);
}
.svg-empty-art::before {
  content: "";
  position: absolute;
  width: 88%;
  height: 76%;
  bottom: 3%;
  border-radius: 58% 42% 60% 40%;
  background: #fff3c9;
  transform: rotate(-8deg);
}
.svg-empty-art img {
  position: relative;
  height: clamp(117px, 19vh, 178px);
  width: auto;
  transform-origin: 50% 95%;
}
@media (prefers-reduced-motion: no-preference) {
  .svg-empty-art img {
    animation: svg-empty-look 1.2s ease-in-out 1;
  }
}
@keyframes svg-empty-look {
  0%,
  100% {
    transform: rotate(0);
  }
  40% {
    transform: rotate(-5deg);
  }
  72% {
    transform: rotate(2deg);
  }
}
.svg-empty-reset {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  min-height: 44px;
  margin-top: 6px;
  border-radius: 22px;
  background: #225550;
  color: white;
  font-weight: 650;
  text-decoration: none;
}
.svg-empty-reset:hover {
  background: #123331;
}
.svg-empty-reset:focus-visible {
  outline: 2px solid #225550;
  outline-offset: 3px;
}
/* Keep the map inside the results section as the list grows or shrinks. */
@media (min-width: 1280px) {
  #app :has(> .search-main-map) {
    position: sticky;
    grid-area: 1 / 2;
    align-self: start;
    inset-inline: auto;
    bottom: auto;
    margin-top: 16px;
    height: calc(
      100dvh - var(--dfx-search-header-height, 76px) - 16px - 1.875em
    );
    max-width: 100%;
  }
  #app .spacer {
    display: none;
  }
}
@media (max-width: 1279px) {
  /* Keep the mobile map anchored below the header when a marker receives focus. */
  .search-main-map:has(.svg-portal) {
    position: fixed;
    inset: var(--dfx-search-header-height, 60px) 0 0;
  }
  html:has(:not(.mobile-hidden) > .search-main-map .svg-portal) {
    overflow: hidden;
  }
}
#praxiskarte ~ .load-parent-practices-button {
  top: 12px;
  left: 12px;
  transform: none;
  width: max-content;
  max-width: calc(100% - 84px);
}

.svg-locate-button,
a.svg-profile {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: #225550;
  text-decoration: underline;
  cursor: pointer;
}

.search-card-container > [id] > .active {
  border-color: #7eeab4;
  background: linear-gradient(105deg, #ebfaf2, white 48%);
  box-shadow:
    inset 4px 0 #42cc93,
    0 6px 18px rgb(34 85 80 / 14%);
  transform: none;
}

@media (forced-colors: active) {
 