/* The Map section's shared map: the map's own picture with pins over it, zoom buttons and the card a press opens.
   Class prefix cms-map. Nothing here loads from outside. */
.cms-map { --map-pc: var(--gold, var(--accent, #E0452B)); --map-pt: var(--on-gold, #fff); --k: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.cms-map--full { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.cms-map--s { --k: .8; } .cms-map--l { --k: 1.25; }
.cms-map__words .cms-kick { display: inline-block; margin-bottom: 12px; }
.cms-map__words h2 { margin: 0 0 14px; }
.cms-map__words p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.cms-map--full .cms-map__words { max-width: var(--text-w, 760px); }
.cms-map__main { position: relative; min-width: 0; }
.cms-map__view { position: relative; overflow: hidden; border-radius: 18px; background: #DCEBF7; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04); width: min(100%, calc(85vh * var(--ar, 1))); margin-inline: auto; touch-action: pan-y pinch-zoom; }
.cms-map__view.is-zoomed { touch-action: none; cursor: grab; }
.cms-map__view.is-panning { cursor: grabbing; }
.cms-map__stage { position: relative; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; }
.cms-map__pic { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.cms-map__none { border: 2px dashed color-mix(in oklab, var(--ink, #111) 18%, transparent); border-radius: 18px; aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 15px; padding: 24px; }
.cms-map__none b { display: block; color: var(--ink, inherit); font-size: 16px; margin-bottom: 4px; }

/* A pin: drawn as a drop, a round badge or a dot, kept the same size while the map is zoomed. */
.cms-map__pin { position: absolute; z-index: 2; margin: 0; padding: 0; border: 0; background: none; font: inherit; line-height: 1; cursor: pointer; color: var(--map-pt); transform: translate(-50%, -100%) scale(calc(1 / var(--z, 1))); transform-origin: 50% 100%; }
.cms-map__b { display: grid; place-items: center; width: calc(26px * var(--k)); height: calc(26px * var(--k)); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pc, var(--map-pc)); border: 2px solid var(--pt, var(--map-pt)); box-shadow: 0 1px 3px rgba(0, 0, 0, .22); margin-bottom: 6px; box-sizing: border-box; }
.cms-map__b > * { transform: rotate(45deg); }
.cms-map__b i { display: block; width: calc(8px * var(--k)); height: calc(8px * var(--k)); border-radius: 50%; background: var(--pt, var(--map-pt)); }
.cms-map__b svg { width: calc(14px * var(--k)); height: calc(14px * var(--k)); }
.cms-map__pin--own .cms-map__b { background: var(--pt, var(--map-pt)); color: var(--pc, var(--map-pc)); border-color: var(--pc, var(--map-pc)); }
.cms-map--round .cms-map__pin, .cms-map--dot .cms-map__pin { transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); transform-origin: 50% 50%; }
.cms-map--round .cms-map__b { width: calc(30px * var(--k)); height: calc(30px * var(--k)); border-radius: 50%; transform: none; margin: 0; }
.cms-map--round .cms-map__b > * { transform: none; }
.cms-map--dot .cms-map__b { width: calc(16px * var(--k)); height: calc(16px * var(--k)); border-radius: 50%; transform: none; margin: 0; border-width: 3px; }
.cms-map--dot .cms-map__b > *, .cms-map--dot .cms-map__b i { display: none; }
.cms-map__pin.is-on { z-index: 4; }
.cms-map__pin.is-on .cms-map__b { box-shadow: 0 0 0 6px color-mix(in oklab, var(--pc, var(--map-pc)) 28%, transparent), 0 1px 3px rgba(0, 0, 0, .2); }
.cms-map__pin:focus-visible { outline: 0; }
.cms-map__pin:focus-visible .cms-map__b { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink, #111); }
.cms-map__l { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 2px); white-space: nowrap; background: #fff; color: #1d2433; font: 600 11.5px/1.2 var(--font-body, system-ui, sans-serif); padding: 3px 7px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); pointer-events: none; }

.cms-map__zoom { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; flex-direction: column; border-radius: 10px; background: #fff; border: 1px solid rgba(17, 34, 64, .12); overflow: hidden; }
.cms-map__zoom button { width: 34px; height: 34px; display: grid; place-items: center; margin: 0; padding: 0; border: 0; background: none; color: #112240; cursor: pointer; }
.cms-map__zoom button + button { border-top: 1px solid rgba(17, 34, 64, .1); }
.cms-map__zoom button:disabled { opacity: .35; cursor: default; }
.cms-map__zoom svg, .cms-map__x svg, .cms-map__a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* The card a press opens: beside the pin on a computer, a sheet from the bottom on a phone. Its parts, in order: the grab bar (phone), the
   close button, the picture or the pin's icon, the words, the buttons. */
.cms-map__card { position: absolute; z-index: 6; width: min(310px, calc(100% - 16px)); background: var(--card, #fff); color: var(--ink, #111); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .1); border: 1px solid color-mix(in oklab, var(--ink, #111) 8%, transparent); line-height: 1.45; text-align: left; }
.cms-map__card[hidden] { display: none; }
.cms-map__grab { display: none; }
.cms-map__cp { position: relative; height: 150px; background: #DCEBF7; }
.cms-map__cp picture, .cms-map__cp img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cms-map__x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px; margin: 0; padding: 0; border-radius: 50%; border: 0; background: color-mix(in oklab, var(--ink, #111) 7%, transparent); color: var(--ink, inherit); display: grid; place-items: center; cursor: pointer; }
.cms-map__card--pic .cms-map__x { top: 10px; right: 10px; background: rgba(255, 255, 255, .92); color: #112240; }
.cms-map__cb { padding: 14px 16px 0; display: grid; gap: 6px; }
.cms-map__card:not(.cms-map__card--pic):not(.cms-map__card--own) .cms-map__cb { padding: 16px 54px 0 16px; }
.cms-map__card--own .cms-map__cb { padding-top: 8px; }
.cms-map__cat { font: 700 11.5px var(--font-body, system-ui, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cms-map__card h3 { margin: 0; font: 800 19px/1.25 var(--font-display, var(--font-body, system-ui, sans-serif)); color: var(--ink, inherit); }
.cms-map__s { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.cms-map__stars { flex: none; display: block; max-width: none; width: 78px; height: 15px; fill: #E3A008; stroke: #E3A008; stroke-width: 1.6; stroke-linejoin: round; }
.cms-map__stars .off { fill: none; opacity: .55; }
.cms-map__card p { margin: 0; font-size: 14px; color: var(--muted); }
.cms-map__acts { display: flex; gap: 8px; padding: 10px 16px 16px; }
.cms-map__a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 99px; font: 700 13.5px var(--font-body, system-ui, sans-serif); text-decoration: none; white-space: nowrap; border: 1.5px solid color-mix(in oklab, var(--ink, #111) 18%, transparent); color: var(--ink, inherit); }
.cms-map__a--p { background: var(--map-pc); border-color: var(--map-pc); color: var(--map-pt); }
.cms-map__a svg { width: 14px; height: 14px; }
.cms-map__own { display: flex; align-items: center; gap: 12px; padding: 16px 60px 0 16px; }
.cms-map__own i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--map-pc) 14%, var(--card, #fff)); color: var(--map-pc); flex: none; }
.cms-map__own i svg { width: 22px; height: 22px; }
.cms-map__own h3 { font-size: 18px; margin-top: 2px; }
.cms-map__card--own { padding-bottom: 0; }
.cms-map__card > :last-child:not(.cms-map__acts) { margin-bottom: 16px; }

/* A plugin's own page with places on the shared map: the map alone, filling its box; a numbered pin shows its number. */
.cms-map--embed { display: block; }
.cms-map--embed .cms-map__view { width: 100%; border-radius: 0; box-shadow: none; }
.cms-map__n { font: 700 calc(12px * var(--k)) / 1 var(--font-body, system-ui, sans-serif); color: var(--pt, var(--map-pt)); font-variant-numeric: tabular-nums; }
.cms-map__pin--num .cms-map__b { width: calc(30px * var(--k)); height: calc(30px * var(--k)); }

@media (max-width: 760px) {
  .cms-map { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
  .cms-map__card { position: fixed !important; left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto; border-radius: 22px 22px 0 0; border: 0; box-shadow: 0 -1px 3px rgba(0, 0, 0, .12), 0 -8px 24px rgba(0, 0, 0, .1); padding: 0 0 12px; z-index: 50; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 14px; align-items: start; }
  .cms-map__card[hidden] { display: none; }
  .cms-map__grab { display: block; grid-column: 1 / -1; width: 40px; height: 5px; border-radius: 3px; background: color-mix(in oklab, var(--ink, #111) 18%, transparent); margin: 8px auto 4px; }
  .cms-map__card--pic .cms-map__x { top: 14px; right: 14px; background: color-mix(in oklab, var(--ink, #111) 7%, transparent); color: var(--ink, inherit); }
  .cms-map__cp { grid-row: 2; grid-column: 1; height: 96px; margin: 6px 0 0 16px; border-radius: 14px; overflow: hidden; }
  .cms-map__cb { grid-row: 2; grid-column: 2; padding: 6px 54px 0 0; gap: 4px; }
  .cms-map__card:not(.cms-map__card--pic):not(.cms-map__card--own) .cms-map__cb { grid-column: 1 / -1; padding: 6px 54px 0 16px; }
  .cms-map__card--own .cms-map__own { grid-row: 2; grid-column: 1 / -1; padding: 6px 54px 0 16px; }
  .cms-map__card--own .cms-map__cb { grid-row: 3; grid-column: 1 / -1; padding: 8px 16px 0; }
  .cms-map__acts { grid-column: 1 / -1; padding: 12px 16px 4px; }
  .cms-map__card h3 { font-size: 18px; }
  .cms-map__card > :last-child:not(.cms-map__acts) { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cms-map__stage { transition: transform .22s ease; }
  .cms-map__view.is-panning .cms-map__stage { transition: none; }
}
