/**
 * MapKit – the map on the site. (C) 2026 Thrane.nu – GPL-2.0-or-later
 * Colours and sizes come from CSS variables, so a template can change them:
 * --mapkit-accent, --mapkit-radius, --mapkit-h, --mapkit-h-m, --mapkit-list-w, --mapkit-gap.
 */
.mapkit {
  --mapkit-list-w: 340px;
  --mapkit-gap: 1rem;
  --mapkit-text: inherit;
  --mapkit-muted: color-mix(in srgb, currentColor 62%, transparent);
  --mapkit-line: color-mix(in srgb, currentColor 14%, transparent);
  --mapkit-card: transparent;
  position: relative;
  color: var(--mapkit-text);
}

.mapkit .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;
}

/* ---- Filter ------------------------------------------------------- */

.mapkit__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--mapkit-gap);
}

.mapkit__filter[hidden] {
  display: none;
}

.mapkit-filter {
  --cat: var(--mapkit-accent, #c0392b);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.95rem 0.35rem 0.4rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--mapkit-line);
  border-radius: 999px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.mapkit-filter[data-all] {
  padding-left: 0.95rem;
}

.mapkit-filter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.85rem;
  color: #fff;
  background: var(--cat);
  border-radius: 50%;
}

.mapkit-filter:hover {
  border-color: var(--cat);
}

.mapkit-filter[aria-pressed="true"] {
  color: #fff;
  background: var(--cat);
  border-color: var(--cat);
}

.mapkit-filter[data-all][aria-pressed="true"] {
  background: var(--mapkit-accent, #c0392b);
  border-color: var(--mapkit-accent, #c0392b);
}

.mapkit-filter[aria-pressed="true"] .mapkit-filter__icon {
  color: var(--cat);
  background: #fff;
}

/* The map surface: Leaflet focuses it from JS on a click, which matches :focus-visible in browsers. mapkit.js puts
   mapkit--pointer on the root on mouse/touch and takes it off on Tab, so the ring only shows with the keyboard. */
.mapkit .leaflet-container:focus {
  outline: none;
}

.mapkit .leaflet-container:focus-visible {
  outline: 3px solid var(--mapkit-accent, #c0392b);
  outline-offset: -3px;
}

.mapkit.mapkit--pointer .leaflet-container:focus,
.mapkit.mapkit--pointer .leaflet-container:focus-visible,
.mapkit.mapkit--pointer .leaflet-marker-icon:focus,
.mapkit.mapkit--pointer .leaflet-marker-icon:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.mapkit-filter:focus-visible,
.mapkit-btn:focus-visible,
.mapkit-card__more:focus-visible,
.mapkit .leaflet-marker-icon:focus-visible,
.mapkit-ctl button:focus-visible {
  outline: 3px solid var(--mapkit-accent, #c0392b);
  outline-offset: 2px;
}

/* ---- Feature filter (egenskaber) ----------------------------------- */
/* Pressed = tinted background, coloured border and a check mark; the text keeps the page colour, so a light
   feature colour (e.g. yellow) never makes the text unreadable. */

.mapkit__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: calc(var(--mapkit-gap) * -0.4) 0 var(--mapkit-gap);
}

.mapkit__features[hidden],
.mapkit-feat-btn[hidden] {
  display: none;
}

.mapkit-feat-btn {
  --feat: #6c757d;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.1rem;
  padding: 0.25rem 0.8rem 0.25rem 0.6rem;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.2;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px dashed var(--mapkit-line);
  border-radius: 999px;
  transition: background-color 0.15s, border-color 0.15s;
}

.mapkit-feat-btn:hover {
  border-color: var(--feat);
}

.mapkit-feat-btn[aria-pressed="true"] {
  font-weight: 600;
  background: color-mix(in srgb, var(--feat) 16%, transparent);
  border: 1px solid var(--feat);
}

.mapkit-feat-btn[aria-pressed="true"]::after {
  content: "✓";
  font-weight: 700;
}

.mapkit-feat-btn:focus-visible {
  outline: 3px solid var(--mapkit-accent, #c0392b);
  outline-offset: 2px;
}

/* Small marks: a dot in the feature's colour, or its icon in that colour. */
.mapkit-feat__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 0.6rem;
  height: 0.85rem;
  font-size: 0.8rem;
  color: var(--feat);
}

.mapkit-feat__mark:empty {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--feat);
  border-radius: 50%;
}

.mapkit-feat__mark .mapkit-icon svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* Features on a place (list and bubble). */
.mapkit-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.35rem 0 0.15rem;
  padding: 0;
  list-style: none;
}

.mapkit-feat {
  --feat: #6c757d;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.05rem 0.5rem 0.05rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  background: color-mix(in srgb, var(--feat) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--feat) 45%, transparent);
  border-radius: 999px;
}

.mapkit-card__facts,
.mapkit__pfacts {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}

/* The marker's dot (e.g. green = free). */
.mapkit-pin__dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 11px;
  height: 11px;
  background: var(--dot);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.mapkit-pin--main .mapkit-pin__dot {
  top: -4px;
  right: -4px;
  width: 13px;
  height: 13px;
}

/* ---- Layout: map and list ----------------------------------------- */

.mapkit__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--mapkit-gap);
}

.mapkit__stage {
  position: relative;
  min-width: 0;
}

.mapkit__canvas {
  position: relative;
  height: var(--mapkit-h, 480px);
  overflow: hidden;
  isolation: isolate;
  background: #eceae6;
  border-radius: var(--mapkit-radius, 12px);
  font: inherit;
}

.mapkit--dark .mapkit__canvas {
  background: #1f2124;
}

.mapkit__canvas.is-link {
  cursor: pointer;
}

@media (min-width: 768px) {
  .mapkit--list-right .mapkit__body {
    grid-template-columns: minmax(0, 1fr) var(--mapkit-list-w);
  }

  .mapkit--list-left .mapkit__body {
    grid-template-columns: var(--mapkit-list-w) minmax(0, 1fr);
  }

  .mapkit--list-left .mapkit__list {
    order: -1;
  }

  .mapkit--list-right .mapkit__items,
  .mapkit--list-left .mapkit__items {
    max-height: var(--mapkit-h, 480px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

@media (max-width: 767.98px) {
  .mapkit__canvas {
    height: var(--mapkit-h-m, 340px);
  }
}

/* ---- List --------------------------------------------------------- */

.mapkit__items {
  /* Positioned, so hidden screen reader texts (.visually-hidden, position:absolute) in the cards stay inside the
     scrolling list instead of hanging below the map and making the page longer. */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0 0.15rem 0 0;
  list-style: none;
}

.mapkit-card {
  --cat: var(--mapkit-accent, #c0392b);
  position: relative;
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: var(--mapkit-card);
  border: 1px solid var(--mapkit-line);
  border-left: 4px solid var(--cat);
  border-radius: 10px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.mapkit-card[hidden] {
  display: none;
}

.mapkit-card.is-active {
  border-color: var(--cat);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cat) 35%, transparent);
}

.mapkit-card--main {
  border-left-width: 6px;
}

.mapkit-card__img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.mapkit-card__body {
  flex: 1;
  min-width: 0;
}

.mapkit-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  line-height: 1.3;
}

.mapkit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
  color: #fff;
  background: var(--cat);
  border-radius: 50%;
}

.mapkit-card__icon:empty {
  display: none;
}

.mapkit-card__meta,
.mapkit-card__addr {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--mapkit-muted);
}

.mapkit-card__text {
  display: -webkit-box;
  margin-top: 0.35rem;
  overflow: hidden;
  font-size: 0.9rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.mapkit-card__text > * {
  margin: 0;
}

.mapkit-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-top: 0.6rem;
}

.mapkit-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mapkit-accent, #c0392b);
}

.mapkit-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  background: var(--mapkit-accent, #c0392b);
  border-radius: 999px;
}

.mapkit__empty {
  margin: 0;
  color: var(--mapkit-muted);
}

/* Buttons */
.mapkit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: var(--mapkit-accent, #c0392b);
  border: 1px solid var(--mapkit-accent, #c0392b);
  border-radius: 999px;
}

.mapkit-btn:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(0.92);
}

.mapkit-btn--ghost,
.mapkit-btn--ghost:hover {
  color: var(--mapkit-accent, #c0392b);
  background: transparent;
}

.mapkit-btn--ghost:hover {
  background: color-mix(in srgb, var(--mapkit-accent, #c0392b) 9%, transparent);
  filter: none;
}

/* ---- Markers ------------------------------------------------------ */

.mapkit__marker {
  background: none;
  border: 0;
}

.mapkit-pin {
  --pin: var(--mapkit-accent, #c0392b);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  font-size: 13px;
  color: #fff;
  background: var(--pin);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.mapkit-pin--main {
  font-size: 17px;
  border-width: 4px;
}

.mapkit-pin .mapkit-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.mapkit__marker:hover .mapkit-pin,
.mapkit__marker:focus-visible .mapkit-pin {
  transform: scale(1.15);
}

.mapkit-pin--pulse::before {
  position: absolute;
  inset: -4px;
  z-index: -1;
  content: "";
  border: 3px solid var(--pin);
  border-radius: 50%;
  animation: mapkit-pulse 2.2s ease-out infinite;
}

@keyframes mapkit-pulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.1); }
}

@media (prefers-reduced-motion: reduce) {
  .mapkit-pin--pulse::before {
    animation: none;
    opacity: 0.35;
    transform: scale(1.35);
  }

  .mapkit-pin,
  .mapkit-card,
  .mapkit-filter {
    transition: none;
  }
}

.mapkit-cluster {
  --pin: var(--mapkit-accent, #c0392b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--pin);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--pin) 30%, transparent), 0 1px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* Routes */
.mapkit-arrow {
  background: none;
  border: 0;
}

.mapkit-arrow span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--arrow, #c0392b);
  clip-path: polygon(50% 0, 100% 85%, 50% 62%, 0 85%);
  filter: drop-shadow(0 0 1px #fff);
}

/* Joomla templates hide [role="tooltip"] until it has .show; Leaflet's tooltips must stay visible. */
.mapkit .leaflet-tooltip[role="tooltip"] {
  display: block;
}

.mapkit-route-label {
  /* A non-interactive marker (not a tooltip, which site styles for [role=tooltip] can move). */
  width: 0 !important;
  height: 0 !important;
  pointer-events: none;
}

.mapkit-route-label span {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 9px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #222;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}

/* ---- Popups ------------------------------------------------------- */

.mapkit .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.mapkit .leaflet-popup-content {
  margin: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.mapkit__pimg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
  margin: 0 0 0.6em;
  object-fit: cover;
  border-radius: 8px;
}

.mapkit__popup p {
  margin: 0 0 0.3em;
}

.mapkit__ptitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.mapkit__pmeta,
.mapkit__paddr {
  font-size: 0.85em;
  opacity: 0.75;
}

.mapkit__ptext > :first-child {
  margin-top: 0;
}

.mapkit__ptext > :last-child {
  margin-bottom: 0.3em;
}

.mapkit__plabel {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
}

.mapkit__phours {
  white-space: pre-line;
}

/* ---- Controls ----------------------------------------------------- */

.mapkit .leaflet-bar {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.mapkit .leaflet-bar a,
.mapkit-ctl button {
  width: 34px;
  height: 34px;
  line-height: 34px;
}

.mapkit-ctl button {
  display: block;
  padding: 0;
  color: #333;
  cursor: pointer;
  background: #fff center / 18px 18px no-repeat;
  border: 0;
}

.mapkit-ctl button:hover {
  background-color: #f4f4f4;
}

/* Back and start view: shown only when there is somewhere to go */
.mapkit-ctl[hidden],
.mapkit-ctl button[hidden] {
  display: none;
}

.mapkit-ctl--nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #333;
}

.mapkit-ctl--nav button:not([hidden]) ~ button:not([hidden]) {
  border-top: 1px solid #ccc;
}

.mapkit-ctl--nav .mapkit-ico,
.mapkit-ctl--nav svg {
  width: 18px;
  height: 18px;
}

.mapkit-ctl--locate button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='2.5' fill='%23333'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/svg%3E");
}

.mapkit-ctl--locate button.is-busy {
  animation: mapkit-spin 1s linear infinite;
}

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

.mapkit-ctl--fs button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E");
}

.mapkit .mapkit-ctl--fs button.is-on {
  width: auto;
  padding: 0 14px 0 36px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 40px;
  height: 40px;
  color: #222;
  white-space: nowrap;
  background-position: 11px center;
}

.mapkit-ctl--fs button.is-on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4v5H4M15 4v5h5M9 20v-5H4M15 20v-5h5'/%3E%3C/svg%3E");
}

.mapkit .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.mapkit--dark .leaflet-control-attribution {
  color: #bbb;
  background: rgba(0, 0, 0, 0.5);
}

.mapkit--dark .leaflet-control-attribution a {
  color: #ddd;
}

.mapkit__toast {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  z-index: 1000;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  color: #fff;
  background: rgba(20, 20, 20, 0.88);
  border-radius: 999px;
  transform: translateX(-50%);
}

.mapkit__toast[hidden] {
  display: none;
}

/* ---- Full screen -------------------------------------------------- */

.mapkit.mapkit--fs {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 0;
  /* The site's colours and font (read by mapkit.js); a template can set --mapkit-fs-bg and --mapkit-fs-fg */
  color: var(--mapkit-fs-fg, var(--mapkit-fs-site-fg, inherit));
  font-family: var(--mapkit-fs-site-font, inherit);
  background: var(--mapkit-fs-bg, var(--mapkit-fs-site-bg, #fff));
}

.mapkit.mapkit--fs:fullscreen {
  position: static;
}

/* Without the Fullscreen API (iPhone): the height of the visible screen (100dvh follows Safari's toolbars), and the
   controls kept clear of the notch and the home bar (env() is 0 unless the template has viewport-fit=cover) */
.mapkit.mapkit--fs:not(:fullscreen) {
  bottom: auto;
  height: 100%;
  height: 100dvh;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
  overscroll-behavior: contain;
}

.mapkit--fs .mapkit__filter,
.mapkit--fs .mapkit__list,
.mapkit--fs .mapkit__mini {
  display: none;
}

.mapkit.mapkit--fs {
  display: flex;
  flex-direction: column;
}

/* The family map's time line (and anything else above the map) stays, and the map takes the rest of the screen */
.mapkit--fs .mapkit__body {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
}

.mapkit--fs .mapkit__stage,
.mapkit--fs .mapkit__canvas {
  height: 100%;
  border-radius: 0;
}

html.mapkit-fs-open,
html.mapkit-fs-open body {
  overflow: hidden;
}

/* ---- Mini --------------------------------------------------------- */

.mapkit--mini .mapkit__canvas {
  height: var(--mapkit-h, 220px);
}

.mapkit__mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

/* ---- Click-to-show ------------------------------------------------ */

.mapkit__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem;
  color: #333;
  text-align: center;
  background-color: #eceae6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 2px, transparent 2px);
  background-size: 48px 48px;
}

.mapkit--dark .mapkit__consent {
  color: #ddd;
  background-color: #1f2124;
  background-image: none;
}

.mapkit__consent p {
  max-width: 34em;
  margin: 0;
  font-size: 0.95rem;
}

.mapkit__btn {
  padding: 0.65em 1.5em;
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--mapkit-accent, #c0392b);
  border: 0;
  border-radius: 999px;
}

.mapkit__remember {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  cursor: pointer;
}

.mapkit__noscript {
  margin: 0;
  padding: 1rem;
}

.mapkit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mapkit-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* ---- Where there are no tiles (1.7.0) ------------------------------ */
/* Outside the area the proxy serves, and while tiles load, a calm colour close to the map's land instead of Leaflet's
   grey, so the edge does not look like an error. Override with --mapkit-edge-bg on .mapkit. */
.mapkit .leaflet-container { background: var(--mapkit-edge-bg, #f2efe9); }
.mapkit--voyager .leaflet-container { background: var(--mapkit-edge-bg, #f5f3ef); }
.mapkit--osm .leaflet-container { background: var(--mapkit-edge-bg, #f2efe9); }
.mapkit--dark .leaflet-container { background: var(--mapkit-edge-bg, #1d1f23); }

/* ---- Light and dark without a CARTO key ---------------------------- */
/* OpenStreetMap tiles toned to a calm light or dark map. Only the tiles; markers and routes keep their colours. */

/* On each tile, not on the tile pane: a filtered pane that is scaled while zooming is drawn at its old size and stays
   blurred until the browser draws it again (arvio.nu 29.10.2026). The values are unchanged (FamilyKit uses them too). */
.mapkit-tint--light .leaflet-tile {
  filter: grayscale(1) brightness(1.06) contrast(0.88);
}

.mapkit-tint--dark .leaflet-tile {
  filter: grayscale(1) invert(1) brightness(0.92) contrast(0.86);
}

.mapkit-tint--dark {
  background: #1d1f23;
}

/* ---- Star on highlighted places (e.g. "Messetilbud") -------------- */

.mapkit-pin__star {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 16px;
  height: 16px;
  color: var(--star, #d62828);
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.mapkit-pin__star svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mapkit-card__star {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: var(--star, #d62828);
}

.mapkit-card__star svg {
  width: 100%;
  height: 100%;
}

/* ---- Icons in buttons --------------------------------------------- */

.mapkit-ico {
  flex: none;
  width: 15px;
  height: 15px;
}

/* Bubble buttons: small and rounded; "Vis vej" is the primary one. */
.mapkit__pbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.mapkit__pbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--mapkit-accent, #c0392b);
  text-decoration: none;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--mapkit-accent, #c0392b) 55%, transparent);
  border-radius: 999px;
}

.mapkit__pbtn:hover {
  background: color-mix(in srgb, var(--mapkit-accent, #c0392b) 9%, transparent);
}

.mapkit__pbtn--primary,
.mapkit__pbtn--primary:hover {
  color: #fff;
  background: var(--mapkit-accent, #c0392b);
  border-color: var(--mapkit-accent, #c0392b);
}

.mapkit__pbtn--primary:hover {
  filter: brightness(0.92);
}

.mapkit__pbtn:focus-visible {
  outline: 3px solid var(--mapkit-accent, #c0392b);
  outline-offset: 2px;
}

/* ---- Full width in articles --------------------------------------- */
/* mapkit.js sets the width and left margin: wider than the text column, inside the content area and the window. */

.mapkit--wide {
  max-width: none;
}

/* ---- Data source FamilyKit ----------------------------------------- */

.mapkit-fk {
  --pin: var(--mapkit-accent, #c0392b);
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: var(--pin);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

/* An approximate place ("omkring sognet"): larger and soft, so it is not read as an exact spot */
.mapkit-fk--approx {
  background: radial-gradient(circle, color-mix(in srgb, var(--pin) 75%, transparent) 0 22%,
    color-mix(in srgb, var(--pin) 30%, transparent) 45%, color-mix(in srgb, var(--pin) 8%, transparent) 70%);
  border: 1.5px dashed color-mix(in srgb, var(--pin) 70%, transparent);
  box-shadow: none;
}

.mapkit-fk-cluster {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 5px;
  background: var(--pie, var(--mapkit-accent, #c0392b));
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.mapkit-fk-cluster b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 700;
  color: #1d1f23;
  background: #fff;
  border-radius: 50%;
}

.mapkit-filter__dot {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-left: 0.5rem;
  background: var(--cat);
  border-radius: 50%;
}

.mapkit-filter[aria-pressed="true"] .mapkit-filter__dot {
  background: #fff;
}

.mapkit__timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin: 0 0 0.75rem;
}

.mapkit__timeline[hidden] {
  display: none;
}

.mapkit__year {
  flex: 1 1 6rem;
  min-width: 6rem;
  accent-color: var(--mapkit-accent, #c0392b);
}

.mapkit__year-out {
  min-width: 6.5em;
  font-variant-numeric: tabular-nums;
}

.mapkit-fk-events {
  max-height: 260px;
  padding: 0;
  margin: 6px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mapkit-fk-event {
  padding: 5px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mapkit-fk-event__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  vertical-align: 1px;
  background: var(--kind);
  border-radius: 50%;
}

/* "Henter slægtens steder …" on the map while the places are fetched */
.mapkit-fk-loading {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 1000;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.9rem 0.45rem 2.2rem;
  font-size: 14px;
  line-height: 1.3;
  color: #1d1f23;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
}

.mapkit-fk-loading::before {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  content: "";
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--mapkit-accent, #c0392b);
  border-radius: 50%;
  animation: mapkit-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mapkit-fk-loading::before {
    animation: none;
  }
}

/* ---- Reset: the map keeps its own look inside articles ------------ */
/* Sites style links, paragraphs and lists in articles (colours, underlines, 18 px text). The double class beats
   those rules without !important, and the sizes are in px so they do not grow with the article text. */

.mapkit.mapkit {
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}

.mapkit.mapkit :where(p, ul, ol, li, button, a) {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.mapkit.mapkit :where(ul, ol) {
  list-style: none;
}

.mapkit.mapkit .mapkit-card {
  font-size: 14px;
}

.mapkit.mapkit .mapkit-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.mapkit.mapkit .mapkit-card__meta,
.mapkit.mapkit .mapkit-card__addr {
  margin: 3px 0 0;
  font-size: 13px;
}

.mapkit.mapkit .mapkit-card__facts,
.mapkit.mapkit .mapkit__pfacts {
  margin: 3px 0 0;
  font-size: 13px;
}

.mapkit.mapkit .mapkit-card__text {
  margin: 5px 0 0;
  font-size: 13.5px;
}

.mapkit.mapkit .mapkit-feats {
  margin: 6px 0 2px;
  padding: 0;
}

.mapkit.mapkit .mapkit-feat {
  margin: 0;
  font-size: 12px;
}

.mapkit.mapkit .mapkit-filter {
  font-size: 15px;
}

.mapkit.mapkit .mapkit-feat-btn {
  font-size: 14px;
}

.mapkit.mapkit .mapkit-btn,
.mapkit.mapkit .mapkit__btn {
  font-size: 14px;
}

.mapkit.mapkit a.mapkit-btn,
.mapkit.mapkit a.mapkit-btn:hover,
.mapkit.mapkit a.mapkit-btn:focus,
.mapkit.mapkit a.mapkit-btn:visited {
  color: #fff;
  text-decoration: none;
}

.mapkit.mapkit a.mapkit-btn--ghost,
.mapkit.mapkit a.mapkit-btn--ghost:hover,
.mapkit.mapkit a.mapkit-btn--ghost:focus,
.mapkit.mapkit a.mapkit-btn--ghost:visited,
.mapkit.mapkit button.mapkit-btn--ghost {
  color: var(--mapkit-accent, #c0392b);
  text-decoration: none;
}

.mapkit.mapkit a.mapkit-card__more {
  font-size: 13px;
  text-decoration: none;
}

.mapkit.mapkit a.mapkit-card__more:hover {
  text-decoration: underline;
}

.mapkit.mapkit .leaflet-popup-content {
  font-size: 14px;
  line-height: 1.45;
}

.mapkit.mapkit .leaflet-popup-content p {
  margin: 0 0 4px;
}

.mapkit.mapkit .mapkit__ptitle {
  font-size: 15px;
}

.mapkit.mapkit .mapkit__pmeta,
.mapkit.mapkit .mapkit__paddr {
  font-size: 12.5px;
}

.mapkit.mapkit a.mapkit__pbtn,
.mapkit.mapkit a.mapkit__pbtn:hover,
.mapkit.mapkit a.mapkit__pbtn:visited {
  color: var(--mapkit-accent, #c0392b);
  text-decoration: none;
}

.mapkit.mapkit a.mapkit__pbtn--primary,
.mapkit.mapkit a.mapkit__pbtn--primary:hover,
.mapkit.mapkit a.mapkit__pbtn--primary:visited {
  color: #fff;
}

.mapkit.mapkit .mapkit__pbtns {
  margin: 10px 0 0;
}

.mapkit.mapkit .leaflet-bar a,
.mapkit.mapkit .leaflet-bar a:hover,
.mapkit.mapkit .leaflet-bar a:visited {
  color: #222;
  text-decoration: none;
}

.mapkit.mapkit a.leaflet-popup-close-button,
.mapkit.mapkit a.leaflet-popup-close-button:hover {
  color: #757575;
  text-decoration: none;
}

.mapkit.mapkit .leaflet-control-attribution a {
  color: #0078a8;
  text-decoration: none;
}

.mapkit.mapkit .mapkit-fk-event p {
  margin: 0;
}

.mapkit.mapkit .mapkit-fk-event__who {
  font-size: 13px;
}

.mapkit.mapkit .mapkit-fk-event__who a,
.mapkit.mapkit .mapkit-fk-event__who a:visited {
  color: var(--mapkit-accent, #c0392b);
  text-decoration: underline;
}
