:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html, body { width: 100%; min-height: 100%; margin: 0; }

.site-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

.brand-panel, .map-panel { position: relative; min-width: 0; min-height: 0; }

.brand-panel {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff4de;
}

.brand-image {
  display: block;
  width: 100%;
  max-height: 360px;
  padding: 24px;
  object-fit: contain;
  user-select: none;
}

.map-panel { overflow: hidden; background: #b4dce7; }

#map { position: absolute; inset: 0; z-index: 0; }

.location-card {
  min-width: 188px;
  text-align: center;
}

.office-popup .leaflet-popup-content-wrapper {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgb(0 0 0 / 16%);
}

.office-popup .leaflet-popup-content { margin: 18px 16px 16px; }
.office-popup .leaflet-popup-tip { box-shadow: 0 3px 6px rgb(0 0 0 / 10%); }

.location-card h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.location-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 9px;
  color: #161616;
  background: #f6f6f6;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.location-card a:hover, .location-card a:focus-visible { background: #ededed; }
.location-card a:focus-visible { outline: 2px solid #005e66; outline-offset: 2px; }
.leaflet-container { font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 639px) {
  .site-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(240px, 1fr) minmax(240px, 1fr);
    height: 100vh;
    height: 100svh;
  }
}
