.parking-plan-widget {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.parking-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 0;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.parking-plan-floors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.parking-plan-lots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.parking-plan-lot {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  background: rgba(2, 6, 23, 0.5);
  color: rgba(248, 250, 252, 0.68);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.parking-plan-lot:hover {
  border-color: rgba(125, 211, 252, 0.55);
  color: rgba(248, 250, 252, 0.92);
}

.parking-plan-lot.is-active {
  border-color: rgba(125, 211, 252, 0.85);
  background: rgba(125, 211, 252, 0.16);
  color: #fff;
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.14);
}

.parking-plan-floor {
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(232, 197, 71, 0.32);
  background: rgba(2, 6, 23, 0.5);
  color: rgba(248, 250, 252, 0.68);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.parking-plan-floor:hover {
  border-color: rgba(232, 197, 71, 0.55);
  color: rgba(248, 250, 252, 0.92);
}

.parking-plan-floor.is-active {
  border-color: rgba(232, 197, 71, 0.88);
  background: rgba(232, 197, 71, 0.2);
  color: #fff;
  box-shadow: 0 0 16px rgba(232, 197, 71, 0.15);
}

.parking-plan-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  font-size: 10px;
  color: rgba(248, 250, 252, 0.72);
  flex-shrink: 0;
}

.parking-plan-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.parking-plan-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.parking-plan-legend .lg-free {
  background: #34d399;
  border: 1px solid #6ee7b7;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.45);
}

.parking-plan-legend .lg-occ {
  background: #fb923c;
  border: 1px solid #fdba74;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.45);
}

.parking-plan-legend .lg-ev {
  background: rgba(125, 211, 252, 0.45);
  border: 1px solid rgba(125, 211, 252, 0.85);
}

.parking-plan-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 8px 14px 6px;
  font-size: 10px;
  color: rgba(248, 250, 252, 0.68);
  position: relative;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.parking-plan-stats b {
  font-family: "Orbitron", monospace;
  color: #fff;
  margin-right: 3px;
}

.parking-floor-plan-mount {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 14px 46px;
}

.parking-plan-widget[data-plan-fill="fill"] .parking-floor-plan-mount {
  min-height: 0;
  padding: 4px 8px 40px;
}

.parking-plan-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.parking-plan-viewport.is-dragging {
  cursor: grabbing;
}

.parking-plan-zoom-layer {
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.parking-plan-zoom-layer .parking-plan-svg {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
}

.parking-plan-zoom-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: auto;
}

.parking-plan-zoom-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(6, 12, 24, 0.82);
  color: #fff;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.parking-plan-zoom-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(12, 22, 40, 0.92);
}

.parking-plan-zoom-btn[data-zoom="reset"] {
  font-size: 9px;
  letter-spacing: 0.02em;
}

.parking-plan-zoom-hint {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  color: rgba(248, 250, 252, 0.55);
  pointer-events: none;
}

.parking-plan-widget[data-plan-fill="fill"] .parking-floor-plan-mount {
  align-items: stretch;
  justify-content: stretch;
}

.parking-plan-svg {
  width: 100%;
  height: 100%;
  max-height: 280px;
  display: block;
  text-rendering: geometricPrecision;
  shape-rendering: geometricPrecision;
}

.parking-plan-widget[data-plan-fill="fill"] .parking-plan-svg {
  max-height: none;
  min-height: 0;
  flex: 1;
}

.parking-plan-svg .plan-border {
  fill: rgba(6, 10, 22, 0.65);
  stroke: rgba(232, 197, 71, 0.28);
  stroke-width: 1;
}

.parking-plan-svg .plan-aisle {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  stroke-dasharray: 5 4;
}

.parking-plan-svg .plan-aisle-main {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(232, 197, 71, 0.16);
  stroke-dasharray: 6 5;
}

.parking-plan-svg .plan-aisle-row {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-dasharray: 4 3;
}

.parking-plan-svg .plan-aisle-inner {
  fill: rgba(255, 255, 255, 0.045);
  stroke: rgba(125, 211, 252, 0.18);
  stroke-dasharray: 5 4;
}

.parking-plan-svg .plan-aisle-side {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-dasharray: 3 4;
}

.parking-plan-svg .plan-zone-floor {
  fill: rgba(255, 255, 255, 0.02);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.8;
}

.parking-plan-svg .plan-zone-label-bg {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 0.8;
}

.parking-plan-svg .plan-zone-label {
  fill: rgba(248, 250, 252, 0.92);
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.parking-plan-svg .plan-spot-no {
  fill: #f8fafc;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: rgba(6, 10, 22, 0.55);
  stroke-width: 0.45px;
  stroke-linejoin: round;
}

.parking-plan-svg .plan-spot-wrap .plan-spot-free + .plan-spot-no,
.parking-plan-svg .plan-spot-wrap .plan-spot-no {
  fill: #f8fafc;
}

.parking-plan-svg .plan-spot {
  stroke-width: 0.9;
}

.parking-plan-svg .plan-spot-free {
  fill: rgba(52, 211, 153, 0.42);
  stroke: #34d399;
  stroke-width: 1.1;
}

.parking-plan-svg .plan-spot-occ {
  fill: rgba(251, 146, 60, 0.52);
  stroke: #fb923c;
  stroke-width: 1.1;
}

.parking-plan-svg .plan-spot-ev {
  fill: rgba(125, 211, 252, 0.32);
  stroke: rgba(125, 211, 252, 0.72);
  stroke-width: 0.8;
}

.parking-plan-svg .plan-entry-lane {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.9;
  stroke-dasharray: 6 5;
}

.parking-plan-svg .plan-entry-badge {
  fill: rgba(45, 212, 191, 0.14);
  stroke: rgba(45, 212, 191, 0.45);
  stroke-width: 0.8;
}

.parking-plan-svg .plan-entry-label {
  fill: rgba(45, 212, 191, 0.9);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* legacy selectors */
.parking-plan-svg .plan-entry rect:not(.plan-entry-lane):not(.plan-entry-badge) {
  fill: rgba(45, 212, 191, 0.14);
  stroke: rgba(45, 212, 191, 0.45);
  stroke-width: 0.8;
}

.parking-plan-svg .plan-entry text:not(.plan-entry-label) {
  fill: rgba(45, 212, 191, 0.9);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 9px;
  font-weight: 600;
}

/* 停车场独立大屏 · 青色主题 */
.parking-topic-center.parking-plan-widget .parking-plan-floor {
  border-color: rgba(0, 240, 255, 0.32);
}

.parking-topic-center.parking-plan-widget .parking-plan-floor.is-active {
  border-color: rgba(0, 240, 255, 0.85);
  background: rgba(0, 240, 255, 0.14);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

.parking-topic-center.parking-plan-widget .parking-plan-lot {
  border-color: rgba(0, 240, 255, 0.28);
}

.parking-topic-center.parking-plan-widget .parking-plan-lot:hover {
  border-color: rgba(0, 240, 255, 0.55);
}

.parking-topic-center.parking-plan-widget .parking-plan-lot.is-active {
  border-color: rgba(0, 240, 255, 0.88);
  background: rgba(0, 240, 255, 0.16);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.14);
}

.parking-topic-center .parking-plan-svg .plan-border {
  stroke: rgba(0, 240, 255, 0.28);
}

.parking-topic-center .parking-plan-svg .plan-aisle-inner {
  stroke: rgba(0, 240, 255, 0.22);
}

.parking-topic-center .parking-plan-svg .plan-zone-floor {
  stroke: rgba(0, 240, 255, 0.1);
}

.parking-topic-center .parking-plan-svg .plan-spot-free {
  fill: rgba(16, 185, 129, 0.48);
  stroke: #10b981;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.35));
}

.parking-topic-center .parking-plan-svg .plan-spot-occ {
  fill: rgba(234, 88, 12, 0.58);
  stroke: #f97316;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 3px rgba(249, 115, 22, 0.35));
}

.parking-topic-center .parking-plan-legend .lg-free {
  background: #10b981;
  border-color: #6ee7b7;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
}

.parking-topic-center .parking-plan-legend .lg-occ {
  background: #f97316;
  border-color: #fdba74;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.45);
}

.parking-topic-center .parking-plan-zoom-btn:hover {
  border-color: rgba(0, 240, 255, 0.55);
}

.parking-topic-center .parking-plan-zoom-hint {
  border-color: rgba(0, 240, 255, 0.18);
  color: rgba(240, 249, 255, 0.58);
}

@media (max-width: 1100px) {
  .parking-plan-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
