.rom,
.rom * { box-sizing: border-box; }

.rom {
  --rom-accent: #03014c;
  width: 100%;
  color: #272727;
  background: transparent;
  font-family: inherit;
}

.rom__scene { position: relative; width: min(100%, 1200px); margin-inline: auto; }
.rom__map-area { position: relative; width: 100%; aspect-ratio: 1200 / 720; }
.rom__map-area::after { position: absolute; z-index: 1; inset: 0; pointer-events: none; content: ''; background: linear-gradient(to right, #fff 0%, transparent 9%, transparent 91%, #fff 100%), linear-gradient(to bottom, #fff 0%, transparent 9%, transparent 91%, #fff 100%), radial-gradient(ellipse 75% 82% at 50% 50%, transparent 50%, rgb(255 255 255 / 25%) 82%, rgb(255 255 255 / 60%) 100%); }
.rom__map { display: block; width: 100%; height: 100%; overflow: hidden; }
.rom__countries path { fill: #ececec; fill: url(#rom-map-dots); stroke: #fff; stroke-width: .75; vector-effect: non-scaling-stroke; transition: fill .28s ease; }
.rom__countries path.is-active { fill: #e7e6f3; fill: url(#rom-map-dots-active); }
.rom__map [id="rom-map-dots-active"] rect { fill: color-mix(in srgb, var(--rom-accent) 12%, #fff); }
.rom__map [id="rom-map-dots-active"] circle { fill: color-mix(in srgb, var(--rom-accent) 38%, #fff); }

/* Pin buttons are transparent hit areas, not theme-styled call-to-action buttons.
   Keep these resets local to pins, including theme hover/focus/active styles. */
.rom .rom__map-area > button.rom__pin {
  position: absolute;
  z-index: 2;
  display: block;
  width: 40px !important;
  height: 40px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none;
  max-height: none;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  color: var(--rom-accent);
  font-size: 0;
  line-height: 1;
  text-indent: 0;
  cursor: pointer;
  overflow: visible;
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: none;
  touch-action: manipulation;
}
.rom .rom__map-area > button.rom__pin::before,
.rom .rom__map-area > button.rom__pin::after {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  display: block;
  width: 13px;
  height: 13px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rom-accent);
  box-shadow: none;
  content: '';
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: rom-pulse 3s ease-out infinite;
  animation-delay: var(--rom-delay);
}
.rom .rom__map-area > button.rom__pin::after { animation-delay: calc(var(--rom-delay) + 1.5s); }
.rom .rom__pin > .rom__pin-core {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: 11px;
  height: 11px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rom-accent);
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.rom .rom__pin:hover > .rom__pin-core,
.rom .rom__pin[aria-expanded="true"] > .rom__pin-core { transform: translate(-50%, -50%) scale(1.25); }
.rom .rom__map-area > button.rom__pin:focus-visible { outline: 2px solid var(--rom-accent); outline-offset: 2px; }
@keyframes rom-pulse { 0% { opacity: .28; transform: translate(-50%, -50%) scale(1); } 70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(4.1); } }

.rom__popover { position: absolute; z-index: 5; width: min(248px, calc(100% - 16px)); padding: 23px 26px 24px; border: 1px solid #e4e4e4; border-radius: 5px; background: #fff; box-shadow: 0 8px 26px rgb(0 0 0 / 5%); animation: rom-popover-in .22s ease-out both; }
.rom__popover[hidden], .rom__office[hidden] { display: none !important; }
.rom__office h3 { margin: 0 0 13px; color: #292929; font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -.045em; }
.rom__office p { margin: 0; color: #424242; font-size: 14px; line-height: 1.38; }
.rom__office .rom__city { margin-bottom: 6px; font-weight: 600; }
.rom__office .rom__contact { display: block; margin-top: 10px; color: #4b4b4b; font-size: 13px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.rom__office .rom__directions { display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--rom-accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.rom__office a:hover { text-decoration: underline; }
.rom__office .rom__button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; margin-top: 18px; padding: 11px 14px; border: 1px solid var(--rom-accent); border-radius: 4px; background: var(--rom-accent); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none; transition: opacity .18s ease; }
.rom__button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.rom__button > span:last-child { flex: 0 0 auto; }
.rom__office .rom__button:hover { opacity: .85; text-decoration: none; }
.rom__office a:focus-visible { outline: 2px solid var(--rom-accent); outline-offset: 3px; }
@keyframes rom-popover-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.rom__fallback { margin: 15px 0; padding-left: 20px; }
.rom__fallback li { margin: 6px 0; }

@media (max-width: 600px) {
  .rom .rom__map-area > button.rom__pin { width: 36px !important; height: 36px !important; }
  .rom .rom__map-area > button.rom__pin::before,
  .rom .rom__map-area > button.rom__pin::after { width: 9px; height: 9px; animation-name: rom-pulse-mobile; }
  .rom .rom__pin > .rom__pin-core { width: 9px; height: 9px; }
  .rom__popover { position: relative; top: auto !important; left: auto !important; width: min(100%, 320px); margin: 10px auto 0; padding: 19px 22px 20px; }
  .rom__office h3 { font-size: 22px; }
}
@keyframes rom-pulse-mobile { 0% { opacity: .2; transform: translate(-50%, -50%) scale(1); } 70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.5); } }

@media (prefers-reduced-motion: reduce) {
  .rom .rom__map-area > button.rom__pin::before,
  .rom .rom__map-area > button.rom__pin::after { animation: none; }
  .rom__popover { animation: none; }
  .rom .rom__pin > .rom__pin-core, .rom__countries path, .rom__office .rom__button { transition: none; }
}
