.rtm-public {
  --rtm-available: #16a34a;
  --rtm-reserved: #dc2626;
  --rtm-cleaning: #d97706;
  --rtm-closed: #6b7280;
  --rtm-marker-size: clamp(18px, 5.5vw, 28px);
  width: 100%;
}

.rtm-party-card {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #111;
  color: #fff;
}

.rtm-party-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.rtm-party-card h2 {
  margin: 0 0 8px;
  color: inherit;
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.1;
}

.rtm-party-card p {
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #dc2626;
}

.rtm-party-card span {
  font-size: 13px;
  opacity: .88;
}

.rtm-party-card strong {
  font-size: 22px;
}

.rtm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.rtm-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.rtm-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.rtm-floorplan {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #090909;
  border-radius: 6px;
}

.rtm-floorplan img {
  display: block;
  width: 100%;
  height: auto;
}

.rtm-marker-layer {
  position: absolute;
  inset: 0;
}

.rtm-marker {
  position: absolute;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--rtm-marker-size) !important;
  min-width: var(--rtm-marker-size) !important;
  max-width: var(--rtm-marker-size) !important;
  height: var(--rtm-marker-size) !important;
  min-height: var(--rtm-marker-size) !important;
  max-height: var(--rtm-marker-size) !important;
  padding: 0 !important;
  transform: translate(-50%, -50%);
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  color: #fff;
  cursor: pointer;
  font-size: clamp(8px, 2.4vw, 11px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
  appearance: none;
  aspect-ratio: 1 / 1;
}

.rtm-marker.is-available,
.rtm-legend .is-available { background: var(--rtm-available); }
.rtm-marker.is-reserved,
.rtm-legend .is-reserved { background: var(--rtm-reserved); }
.rtm-marker.is-cleaning,
.rtm-legend .is-cleaning { background: var(--rtm-cleaning); }
.rtm-marker.is-closed,
.rtm-legend .is-closed { background: var(--rtm-closed); }

.rtm-card {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.rtm-card h3,
.rtm-card p {
  margin: 0;
}

.rtm-card h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

@media (max-width: 640px) {
  .rtm-public {
    --rtm-marker-size: clamp(15px, 4.8vw, 20px);
  }

  .rtm-legend {
    gap: 8px 10px;
    font-size: 12px;
  }

  .rtm-party-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
}
