.office-map,
.office-map * {
  box-sizing: border-box;
}

.office-map {
  min-height: 100vh;
  padding: 40px;
  font-family: Arial, Helvetica, sans-serif;
  background: #203137;
  color: #fff;
}

.office-map__layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 32px;
  align-items: center;
}

.office-map__eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #6AA4B8;
}

.office-map h1 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}

.office-map__intro {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.office-map__canvas {
  margin-top: 32px;
}

#austria-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.region-path {
  cursor: pointer;
  transition:
    opacity 240ms ease,
    stroke 240ms ease,
    stroke-width 240ms ease,
    filter 240ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.region-path.is-active {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

.region-path:hover,
.region-path:focus {
  outline: none;
}

.office-pin {
  pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.28));
}

.office-map__locations {
  max-width: 1280px;
  margin: 34px auto 0;
}

.office-map__legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  color: #fff;
  font-size: 14px;
}

.legend-card {
  appearance: none;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  cursor: pointer;
	background: transparent !important;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.legend-card:hover,
.legend-card:focus,
.legend-card.is-active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.legend-card:focus {
  outline: 2px solid #6AA4B8 !important;
  outline-offset: 3px;
}

.legend-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-card__logo-wrap {
  display: block;
  min-height: 54px;
}

.legend-card__logo {
  display: block;
  width: 100%;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.legend-card__title {
  font-weight: 700;
  line-height: 1.25;
}

.legend-card__details {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.legend-dot,
.color-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.office-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  will-change: opacity, transform;
}

.office-card.is-changing {
  opacity: 0.72;
  transform: translateY(4px);
}

.office-card__top {
  padding-right: 44px;
  margin-bottom: 14px;
}

.office-card__heading {
  min-width: 0;
}

.office-card__region {
  color: #111827;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.office-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.office-card__media {
  margin: 0 0 14px;
}

.office-card__close {
  appearance: none;
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background-color: #203137 !important;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
	padding: 0 !important;
}

.office-card__close:focus {
  outline: 2px solid #6AA4B8;
  outline-offset: 3px;
}

.office-card__logo {
  display: block;
  width: 100%;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

.office-card__body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  color: #374151;
  font-size: 16px;
  line-height: 1.7;
}

.office-card__body p {
  margin: 0;
}

.office-card__body a {
  color: inherit;
  text-decoration: none;
}

.office-card__body a:hover,
.office-card__body a:focus {
  color: #111827;
  text-decoration: underline;
}

.office-card__reference {
  margin-top: 8px;
  font-weight: 700;
  color: #1f2937;
}

.office-card__footer {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 960px) {
  .office-map {
    padding: 24px;
  }

  .office-map__layout {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .office-map__legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .office-map {
    padding: 16px;
  }

  .office-card__top {
    padding-right: 40px;
  }

  .office-card__logo {
    max-height: 70px;
  }

  .office-map__canvas {
    margin-top: 24px;
  }

  .office-map__locations {
    margin-top: 28px;
  }

  .office-map__legend {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .region-path,
  .office-card {
    transition: none;
  }
}
