/* Roven service areas ([roven_areas], [roven_map]). Colors from the site (--rva-ink, --rva-accent on .rva),
   type from the page. Laid out by the card's own width (container queries), not the window's: a card in a
   half-width kit column stacks instead of squeezing the map. The section is the container and the grid is
   .rva__grid inside it: a container query styles only what is inside the container, never the container. */
.rva {
  --rva-ink: #112A57; --rva-accent: #D2284F; --rva-text: #495468; --rva-muted: #5B6780;
  --rva-line: #E3E6EC; --rva-soft: #F2F3F6; --rva-land: #F7F8FA;
  container: rva / inline-size;
  position: relative;
  color: var(--rva-text); font-size: 16px; line-height: 1.6; text-align: left;
  background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--rva-line);
  box-shadow: 0 1px 2px rgba(17,42,87,.06), 0 24px 60px -24px rgba(17,42,87,.28);
}
.rva *, .rva *::before, .rva *::after { box-sizing: border-box; }
.rva__grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "stage"; }
.rva__info { grid-area: info; display: flex; flex-direction: column; padding: 24px 16px 20px; }
.rva__stage { grid-area: stage; position: relative; aspect-ratio: 4 / 3; background: var(--rva-land); border-top: 1px solid var(--rva-line); overflow: hidden; }
.rva--list .rva__info { padding-bottom: 24px; }
.rva--compact .rva__stage { aspect-ratio: 16 / 10; }
/* A height set in the widget or the block: it beats every width's own proportions, the wide card's
   520px floor included (three classes outweigh the container queries' one and two). Never taller than
   1.25x the card's own width, so a desktop-sized map can't fill a phone screen and more. */
.rva.rva--h .rva__stage { aspect-ratio: auto; height: min(var(--rva-h), 125cqw); min-height: 0; }

/* the picture, and the map over it */
.rva__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rva__poster .rva-p.is-on path { fill: var(--rva-ink); }
.rva__poster text.is-on { fill: var(--rva-accent); }
.rva__poster .o.is-on { fill-opacity: .24; stroke-width: 2.4; }
/* .rva__stage in front: MapLibre's own .maplibregl-map { position: relative }
   (same weight, loaded later) would otherwise collapse the box to 0 high and
   leave the map drawing, unseen, under the picture. */
.rva__stage > .rva__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.rva--live .rva__stage > .rva__canvas { opacity: 1; }
.rva--static .rva__canvas { display: none; }
.rva__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(247,248,250,.92), rgba(247,248,250,0) 64px),
    linear-gradient(to left, rgba(247,248,250,.92), rgba(247,248,250,0) 64px),
    linear-gradient(to bottom, rgba(247,248,250,.85), rgba(247,248,250,0) 56px),
    linear-gradient(to top, rgba(247,248,250,.92), rgba(247,248,250,0) 72px);
}

/* words */
.rva__title { font-size: 13px; line-height: 1.2; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rva-ink); margin: 0 0 6px; }
.rva__based { font-size: 15px; margin: 0 0 18px; color: var(--rva-text); }
.rva__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rva__list li { margin: 0; padding: 0; }
.rva-town {
  display: block; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--rva-line); background: #fff;
  text-decoration: none !important; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
span.rva-town { cursor: default; }
/* A kit's own button rule (.elementor-kit-N button: inline-block, centered)
   outweighs .rva-town: the home-base row sat centered beside left-set links. */
.rva button.rva-town { display: block; width: 100%; text-align: left; }
a.rva-town, button.rva-town { position: relative; padding-right: 40px; }
a.rva-town::after, button.rva-town::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  border-top: 2.2px solid var(--rva-ink); border-right: 2.2px solid var(--rva-ink); transform: rotate(45deg); opacity: .45;
}
button.rva-town::after { border: 0; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--rva-accent); transform: none; opacity: .7; }
.rva-town:hover, .rva-town.is-active, .rva-town.is-on { border-color: rgba(17,42,87,.3); background: #F6F8FD; box-shadow: 0 8px 20px -12px rgba(17,42,87,.35); }
.rva-town:focus-visible { outline: 3px solid var(--rva-ink); outline-offset: 2px; }
.rva-town__name { display: block; font-size: 17px; line-height: 1.25; font-weight: 600; color: var(--rva-ink); }
.rva-town__meta { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--rva-text); }
.rva-town__meta:empty { display: none; }
.rva-badge { display: inline-block; font-size: 10px; line-height: 1; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--rva-soft); color: var(--rva-accent); }
.rva__call { margin-top: 16px; border-radius: 14px; padding: 16px 18px; background: var(--rva-soft); font-size: 14px; line-height: 1.5; }
.rva__call p { margin: 0; }
.rva__call strong { color: var(--rva-ink); }
.rva__phone {
  display: flex; justify-content: center; align-items: center; margin-top: 12px; padding: 13px 16px; border-radius: 12px;
  font-size: 16px; line-height: 1; font-weight: 700; background: var(--rva-accent); color: #fff !important; text-decoration: none !important;
}
.rva__phone:focus-visible { outline: 3px solid var(--rva-ink); outline-offset: 2px; }
.rva__skip, .rva__live, .rva-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rva__skip:focus { z-index: 20; width: auto; height: auto; margin: 0; clip: auto; left: 12px; bottom: 12px; padding: 10px 14px; border-radius: 10px; background: var(--rva-ink); color: #fff !important; font-weight: 600; }
.rva-note { padding: 12px 14px; border: 1px dashed #C3C9D5; border-radius: 10px; color: #5B6780; font-size: 14px; }

/* the map's own pieces */
.rva-legend {
  display: flex; align-items: center; gap: 14px; padding: 0 12px; height: 30px; border-radius: 10px;
  background: rgba(255,255,255,.94); font-size: 12px; line-height: 1; font-weight: 500; color: var(--rva-text);
  box-shadow: 0 1px 2px rgba(17,42,87,.08), 0 4px 14px -4px rgba(17,42,87,.16);
}
.rva-legend span { display: inline-flex; align-items: center; gap: 7px; }
.rva-swatch { width: 14px; height: 10px; border-radius: 3px; background: rgba(17,42,87,.16); border: 1.5px solid var(--rva-ink); }
.rva-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rva-accent); box-shadow: 0 0 0 2px #fff; }
.rva .maplibregl-ctrl-group { border-radius: 10px !important; overflow: hidden; box-shadow: 0 1px 2px rgba(17,42,87,.08), 0 4px 14px -4px rgba(17,42,87,.18) !important; }
.rva .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.rva .maplibregl-ctrl-group button:focus-visible { box-shadow: inset 0 0 0 2px var(--rva-ink); }
.rva .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 12px 12px 0 0; }
.rva .maplibregl-ctrl-bottom-left { display: flex; align-items: flex-end; gap: 12px; left: 12px; bottom: 12px; }
.rva .maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin: 0; float: none; }
.rva .maplibregl-ctrl-bottom-left .maplibregl-ctrl-scale { order: 2; display: none; }
.rva .maplibregl-ctrl-scale {
  background: transparent; border: 1.5px solid #8A93A6; border-top: 0; border-radius: 0 0 2px 2px;
  color: var(--rva-muted); font-size: 10.5px; line-height: 1; padding: 0 5px 4px; margin-bottom: 8px !important;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}
.rva .maplibregl-cooperative-gesture-screen { background: rgba(17,42,87,.55); font-family: inherit; }
.rva .maplibregl-ctrl-bottom-right { right: 12px; bottom: 12px; }
.rva .maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0; }
.rva .maplibregl-ctrl-attrib { font-size: 11px; line-height: 1.4; color: var(--rva-muted); }
.rva .maplibregl-ctrl-attrib a { color: var(--rva-muted); }
.rva .maplibregl-ctrl-attrib.maplibregl-compact {
  min-height: 30px; margin: 0; border-radius: 10px; padding: 0 34px 0 0; background: rgba(255,255,255,.94);
  display: flex; align-items: center; box-shadow: 0 1px 2px rgba(17,42,87,.08), 0 4px 14px -4px rgba(17,42,87,.16);
}
.rva .maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 0 34px 0 12px; }
.rva .maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button {
  top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.6' fill='none' stroke='%235B6780' stroke-width='1.3'/%3E%3Ccircle cx='10' cy='6.3' r='1.05' fill='%235B6780'/%3E%3Cpath d='M10 9v5.2' stroke='%235B6780' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/20px 20px no-repeat;
}

/* pins */
.rva-marker { line-height: 0; }
.rva-pin { all: unset; cursor: pointer; position: relative; display: block; width: 34px; height: 44px; transform-origin: 50% 100%; transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.rva-pin svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 6px rgba(17,42,87,.35)); }
.rva-pin--base { width: 42px; height: 54px; }
.rva-pin:hover, .rva-pin.is-active { transform: translateY(-3px) scale(1.08); }
.rva-pin:focus-visible { outline: none; }
.rva-pin:focus-visible::after { content: ""; position: absolute; left: 50%; top: 38%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--rva-ink); }
.rva-pin__label {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  white-space: nowrap; pointer-events: none; text-align: center; padding: 6px 10px; border-radius: 10px;
  background: #fff; color: var(--rva-ink); font-size: 12.5px; line-height: 1; font-weight: 600;
  box-shadow: 0 1px 2px rgba(17,42,87,.1), 0 6px 16px -6px rgba(17,42,87,.3);
}
.rva-pin--below .rva-pin__label { bottom: auto; top: calc(100% + 10px); }
.rva-pin__label small { display: block; font-size: 9.5px; line-height: 1; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: .75; margin-bottom: 5px; }
.rva-pin--base .rva-pin__label { background: var(--rva-ink); color: #fff; padding: 8px 14px; font-size: 14.5px; }
.rva-pulse { position: absolute; left: 50%; bottom: -5px; width: 22px; height: 8px; margin-left: -11px; border-radius: 50%; background: rgba(17,42,87,.2); pointer-events: none; }
.rva-pin--base .rva-pulse::after { content: ""; position: absolute; inset: -6px -10px; border-radius: 50%; border: 2px solid var(--rva-accent); opacity: .5; animation: rva-ring 2.4s ease-out infinite; }
@keyframes rva-ring { from { transform: scale(.5); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* popup */
.rva-popup { z-index: 10; }
.rva-popup .maplibregl-popup-content { padding: 18px 20px 16px; border-radius: 14px; min-width: 230px; font-family: inherit; box-shadow: 0 18px 40px -12px rgba(17,42,87,.4), 0 2px 6px rgba(17,42,87,.1); }
.rva-popup__kicker { font-size: 10.5px; line-height: 1.2; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rva-accent); margin: 0 0 8px; padding-right: 26px; }
.rva-popup h3 { font-size: 19px; line-height: 1.2; font-weight: 700; color: var(--rva-ink); margin: 0 0 12px; padding-right: 22px; }
.rva-popup a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1; font-weight: 600; color: var(--rva-ink); text-decoration: none; }
.rva-popup a:hover { text-decoration: underline; }
.rva-popup a:focus-visible { outline: 2px solid var(--rva-ink); outline-offset: 4px; border-radius: 4px; }

/* wider cards: the map beside the list */
@container rva (min-width: 600px) {
  .rva__info { padding: 28px 24px 24px; }
  .rva__stage { aspect-ratio: 16 / 10; }
  .rva .maplibregl-ctrl-bottom-left .maplibregl-ctrl-scale { display: block; }
  .rva-pin__label { font-size: 13.5px; padding: 7px 12px; }
}
@container rva (min-width: 860px) {
  .rva__grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "stage info"; }
  .rva--list .rva__grid, .rva--compact .rva__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "stage"; }
  .rva__info { padding: 32px 28px 26px; border-left: 1px solid var(--rva-line); }
  .rva--list .rva__info, .rva--compact .rva__info { border-left: 0; }
  .rva__stage { aspect-ratio: auto; min-height: 520px; border-top: 0; }
  .rva--compact .rva__stage { min-height: 0; aspect-ratio: 16 / 10; border-top: 1px solid var(--rva-line); }
  /* Map beside the list: a set height is a floor, so a long town list can make the row taller and the map
     grows with it instead of stopping short and leaving an empty cell. */
  .rva.rva--h:not(.rva--compact):not(.rva--list) .rva__stage { height: auto; min-height: var(--rva-h); }
}
/* A browser without container queries gets the stacked card, which works at any width. */

@media (prefers-reduced-motion: reduce) {
  .rva__canvas { transition: none; }
  .rva-pin--base .rva-pulse::after { animation: none; opacity: 0; }
  .rva-pin, .rva-town { transition: none; }
}

/* Theme armor: kits style bare buttons and h3s (Elementor kit globals, theme button fills, uppercase labels) at
   higher specificity than a component class. Ours win inside .rva, whatever the kit. */
.rva button.rva-town, .rva button.rva-town:hover, .rva button.rva-town:focus {
  background: #fff; color: inherit !important; border: 1px solid var(--rva-line) !important; box-shadow: none; min-height: 0 !important;
  margin: 0 !important; text-transform: none !important; letter-spacing: normal !important; font: inherit !important; line-height: inherit !important;
  border-radius: 14px !important; padding: 12px 40px 12px 14px !important; width: 100% !important;
}
.rva button.rva-town:hover, .rva button.rva-town.is-on, .rva button.rva-town.is-active { background: #F6F8FD !important; border-color: rgba(17,42,87,.3) !important; }
.rva .rva-pin, .rva .rva-pin:hover, .rva .rva-pin:focus, .rva .rva-pin:active {
  background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important;
  min-height: 0 !important; min-width: 0 !important; border-radius: 0 !important; color: inherit !important;
  text-transform: none !important; letter-spacing: normal !important; font: inherit; line-height: 0 !important; outline: none;
}
.rva .rva-pin { width: 34px !important; height: 44px !important; }
.rva .rva-pin.rva-pin--base { width: 42px !important; height: 54px !important; }
.rva .rva-pin__label { text-transform: none !important; letter-spacing: .005em !important; font-family: inherit !important; }
.rva .rva-pin__label small { text-transform: uppercase !important; letter-spacing: .16em !important; }
.rva h3.rva__title { font-size: 13px !important; line-height: 1.2 !important; font-weight: 600 !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--rva-ink) !important; margin: 0 0 6px !important; padding: 0 !important; }
.rva-popup h3 { font-size: 19px !important; line-height: 1.2 !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: normal !important; margin: 0 0 12px !important; }
.rva-popup button.maplibregl-popup-close-button {
  background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important;
  color: var(--rva-text) !important; width: 28px !important; height: 28px !important; min-height: 0 !important; line-height: 28px !important;
  border-radius: 50% !important; font-size: 18px !important; text-transform: none !important; letter-spacing: normal !important; top: 8px; right: 8px;
}
.rva-popup button.maplibregl-popup-close-button:hover { background: var(--rva-soft) !important; }
.rva .maplibregl-ctrl-group button, .rva .maplibregl-ctrl-attrib-button { padding: 0 !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-height: 0 !important; text-transform: none !important; letter-spacing: normal !important; }
.rva .maplibregl-ctrl-group button { background-color: #fff !important; border: 0 !important; }
.rva .maplibregl-ctrl-group button + button { border-top: 1px solid #ddd !important; }
.rva .maplibregl-ctrl-group button:hover { background-color: #F2F3F6 !important; }
.rva a.rva-town, .rva a.rva-town:hover { color: inherit; }
.rva .rva__list, .rva .rva__list li { list-style: none !important; margin-left: 0 !important; }
