/* One local map and one consent design; only the crop changes between pages. */
body[data-page] .contact-map {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}
body[data-page] .rb-map {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--light-gray);
  container-type: inline-size;
}
body[data-page] .rb-map::after { display: none; }
body[data-page] .rb-map--full { aspect-ratio: 1360 / 778; min-height: max(520px, var(--map-required-height, 0px)); }
body[data-page] .rb-map--square {
  aspect-ratio: 1;
  overflow: visible;
  margin-bottom: var(--map-notice-overflow, 0px);
}
body[data-page] .rb-map .contact-map__drawing,
body[data-page] .rb-map .contact-map__iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  object-position: center;
}
body[data-page] .rb-map--full .contact-map__drawing { object-fit: cover; }
body[data-page] .rb-map--square .contact-map__drawing { object-fit: cover; }
.rb-map .social-preview-stage__consent.contact-map__notice {
  position: absolute;
  top: calc(50% + 25px);
  left: 50%;
  width: min(400px, calc(100% - 24px));
  margin: 0;
  transform: translateX(-50%);
}
.rb-map--full .social-preview-stage__consent.contact-map__notice {
  top: calc(50% + 70px);
}

/* All external-content notices use the same readable type, at every width. */
body :is(.social-preview-stage__consent, .home-social-consent__dialog, .social-feed__consent) > strong {
  font-size: 25px;
  line-height: 1.2;
}
body :is(.social-preview-stage__consent, .home-social-consent__dialog, .social-feed__consent) p {
  font-size: 15px;
  line-height: 1.4;
}
body :is(.social-preview-stage__consent, .home-social-consent__dialog, .social-feed__consent) p a {
  font-weight: 700;
  font-style: inherit;
  text-decoration: underline;
}
body :is([data-map-load], [data-home-map-load], [data-home-social-load], [data-instagram-load], [data-facebook-load]) {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.rb-map .contact-map__notice .contact-map__notice-toggle {
  position: absolute;
  top: 4px;
  right: 10px;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #292929;
  box-shadow: none;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: var(--cursor-pointer);
  transform: none;
}
.rb-map .contact-map__notice .contact-map__notice-toggle:hover,
.rb-map .contact-map__notice .contact-map__notice-toggle:focus-visible {
  color: var(--green);
  background: transparent;
  box-shadow: none;
  transform: none;
}
.rb-map .contact-map__notice .contact-map__notice-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
/* Pan and two-step zoom. The notice and controls stay outside this clipped layer. */
body[data-page] .rb-map .contact-map__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  touch-action: none;
  cursor: var(--cursor-grab) !important;
  user-select: none;
}
body[data-page] .rb-map .contact-map__canvas.is-dragging {
  cursor: var(--cursor-grabbing) !important;
}
body[data-page] .rb-map .contact-map__canvas .contact-map__drawing {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  width: var(--map-image-width, 100%);
  height: var(--map-image-height, 100%);
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  transform: translate3d(calc(-50% + var(--map-pan-x, 0px)), calc(-50% + var(--map-pan-y, 0px)), 0);
  will-change: transform, width, height;
}
body[data-page] .rb-map .contact-map__notice { z-index: 3; }
body[data-page] .rb-map .contact-map__zoom {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(41,41,41,.45);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #292929;
  box-shadow: none;
  font: 600 28px/1 var(--font-main);
  cursor: var(--cursor-pointer);
  transform: none;
}
body[data-page] .rb-map .contact-map__zoom:hover,
body[data-page] .rb-map .contact-map__zoom:focus-visible {
  border-color: var(--green);
  background: var(--green);
  box-shadow: none;
  transform: none;
}
body[data-page] .rb-map .contact-map__zoom:focus-visible {
  outline: 2px solid #292929;
  outline-offset: 2px;
}
/* Compact state keeps the consent action available at the lower map edge. */
.rb-map .social-preview-stage__consent.contact-map__notice.is-minimized {
  top: auto;
  bottom: 12px;
  left: 50%;
  display: flex;
  width: auto;
  max-width: calc(100% - 24px);
  min-height: 48px;
  margin: 0;
  padding: 7px 9px 7px 14px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 9px 9px 0 rgba(41,41,41,.22);
}
.rb-map .contact-map__notice.is-minimized > strong {
  order: 1;
  margin: 0;
  font-size: 17px;
  line-height: 1;
}
.rb-map .contact-map__notice.is-minimized > p { display: none; }
.rb-map .contact-map__notice.is-minimized > :is([data-map-load], [data-home-map-load]) {
  order: 2;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.rb-map .contact-map__notice.is-minimized .contact-map__notice-toggle {
  position: static;
  order: 3;
  flex: 0 0 26px;
  width: 26px;
  height: 24px;
}
@media (max-width: 520px) {
  .rb-map .social-preview-stage__consent.contact-map__notice.is-minimized {
    gap: 6px;
    padding-left: 9px;
  }
  .rb-map .contact-map__notice.is-minimized > strong { font-size: 14px; }
  .rb-map .contact-map__notice.is-minimized > :is([data-map-load], [data-home-map-load]) {
    padding-inline: 8px;
    font-size: 12px;
  }
}
/* Outlined chevron for minimizing and restoring the map notice. */
.rb-map .contact-map__notice .contact-map__notice-toggle {
  display: grid;
  place-items: center;
  font-size: 0;
}
.rb-map .contact-map__notice .contact-map__notice-toggle::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.rb-map .contact-map__notice.is-minimized .contact-map__notice-toggle::before {
  transform: translateY(6px) rotate(225deg);
}
/* Draw zoom symbols geometrically so their center matches the circular control. */
body[data-page] .rb-map .contact-map__zoom {
  position: absolute;
  font-size: 0;
  line-height: 0;
}
body[data-page] .rb-map .contact-map__zoom::before,
body[data-page] .rb-map .contact-map__zoom::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
body[data-page] .rb-map .contact-map__zoom::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
body[data-page] .rb-map .contact-map__zoom[aria-pressed="true"]::after {
  display: none;
}
/* Keep the full home-map notice inside its square crop. */
.rb-map--square .social-preview-stage__consent.contact-map__notice:not(.is-minimized) {
  top: auto;
  bottom: 18px;
}

