.rokeby-plat-map {
  --rokeby-occupied: #2fbf71;
  --rokeby-reserved: #f2c94c;
  --rokeby-sold: #2d9cdb;
  --rokeby-available: #d8d8d8;
  --rokeby-model: #9b51e0;
  --rokeby-unknown: #bdbdbd;
  --rokeby-hover: #ffffff;
  --rokeby-text: #1f2933;
  --rokeby-muted: #5f6c72;
  --rokeby-border: #dde3e7;
  --rokeby-surface: #ffffff;
  --rokeby-tooltip: #111827;
  --rokeby-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color: var(--rokeby-text);
  max-width: 1180px;
  margin: 24px auto;
  padding: 16px;
  box-sizing: border-box;
}

.rokeby-plat-map *,
.rokeby-plat-map *::before,
.rokeby-plat-map *::after {
  box-sizing: border-box;
}

.rokeby-plat-map__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.rokeby-plat-map__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.rokeby-plat-map__description {
  margin: 4px 0 0;
  color: var(--rokeby-muted);
}

.rokeby-plat-map__legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.rokeby-plat-map__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rokeby-plat-map__legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.rokeby-plat-map__shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1478 / 1874;
  background: var(--rokeby-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--rokeby-shadow);
}

.rokeby-plat-map__image,
.rokeby-plat-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rokeby-plat-map__image {
  display: block;
  object-fit: contain;
}

.rokeby-plat-map__svg {
  overflow: visible;
}

.rokeby-plat-map__unit {
  cursor: pointer;
  stroke: rgba(12, 23, 30, 0.75);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: fill 0.16s ease, stroke 0.16s ease, opacity 0.16s ease;
  opacity: 0.78;
}

.rokeby-plat-map__unit.status-occupied,
.rokeby-plat-map__legend-swatch.status-occupied {
  fill: var(--rokeby-occupied);
  background: var(--rokeby-occupied);
}

.rokeby-plat-map__unit.status-reserved,
.rokeby-plat-map__legend-swatch.status-reserved {
  fill: var(--rokeby-reserved);
  background: var(--rokeby-reserved);
}

.rokeby-plat-map__unit.status-sold,
.rokeby-plat-map__legend-swatch.status-sold {
  fill: var(--rokeby-sold);
  background: var(--rokeby-sold);
}

.rokeby-plat-map__unit.status-available,
.rokeby-plat-map__legend-swatch.status-available {
  fill: var(--rokeby-available);
  background: var(--rokeby-available);
}

.rokeby-plat-map__unit.status-model,
.rokeby-plat-map__legend-swatch.status-model {
  fill: var(--rokeby-model);
  background: var(--rokeby-model);
}

.rokeby-plat-map__unit.status-unknown,
.rokeby-plat-map__legend-swatch.status-unknown {
  fill: var(--rokeby-unknown);
  background: var(--rokeby-unknown);
}

.rokeby-plat-map__unit:hover,
.rokeby-plat-map__unit:focus,
.rokeby-plat-map__unit.is-active {
  fill: var(--rokeby-hover);
  stroke: #111827;
  opacity: 0.95;
  outline: none;
}

.rokeby-plat-map__panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--rokeby-surface);
  border: 1px solid var(--rokeby-border);
}

.rokeby-plat-map__panel strong,
.rokeby-plat-map__tooltip strong {
  display: block;
}

.rokeby-plat-map__tooltip {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  min-width: 210px;
  max-width: min(280px, calc(100vw - 24px));
  background: var(--rokeby-tooltip);
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  line-height: 1.35;
}

.rokeby-plat-map__tooltip strong {
  font-size: 15px;
  margin-bottom: 3px;
}

.rokeby-plat-map__tooltip small {
  display: block;
  color: #cbd5e1;
  margin-top: 5px;
  text-transform: capitalize;
}

@media (max-width: 700px) {
  .rokeby-plat-map {
    margin: 0;
    padding: 10px;
  }

  .rokeby-plat-map__shell {
    border-radius: 8px;
  }
}
