﻿.oxy-map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 1rem;
  min-height: 520px;
}

.oxy-map-canvas {
  height: 520px;
  border-radius: var(--oxy-radius);
  overflow: hidden;
  background: var(--oxy-surface-low);
  z-index: 1;
}

.oxy-map-pin.leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

.oxy-pin {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.oxy-pin-bolts {
  display: inline-flex;
  align-items: center;
}

.oxy-pin-bolts svg {
  width: 14px;
  height: 14px;
  fill: #c1f420;
  margin-left: -4px;
}

.oxy-pin-bolts svg:first-child {
  margin-left: 0;
}

.oxy-pin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.oxy-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.oxy-map-widget .oxy-map-filters {
  margin: 0 0 0.75rem;
}

.oxy-map-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--oxy-border, #d7dde3);
  background: #fff;
  color: var(--oxy-on-surface, #16323a);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.oxy-map-chip svg {
  width: 14px;
  height: 14px;
  fill: #084858;
}

.oxy-map-chip.on {
  background: #084858;
  border-color: #084858;
  color: #fff;
}

.oxy-map-chip.on svg {
  fill: #c1f420;
}

.oxy-map-label {
  background: #084858;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.oxy-map-label.available {
  color: #b4e404;
}

.oxy-map-label::before {
  border-top-color: #084858 !important;
}

.leaflet-tooltip-top.oxy-map-label::before {
  border-top-color: #084858 !important;
}

.oxy-map-cluster.leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

.oxy-map-cluster-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: var(--oxy-font);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.oxy-map-cluster-inner span {
  display: block;
  line-height: 1;
  transform: translateY(0.5px);
}

.oxy-map-cluster-sm {
  font-size: 0.75rem;
}

.oxy-map-cluster-md {
  font-size: 0.85rem;
}

.oxy-map-cluster-lg {
  font-size: 0.95rem;
}

/* Teal = há disponíveis; azul = todos ocupados/indisponíveis — sem verde claro */
.oxy-map-cluster.ok .oxy-map-cluster-inner {
  background: #084858;
}

.oxy-map-cluster.busy .oxy-map-cluster-inner {
  background: #1c78bc;
}

.oxy-map-canvas.compact {
  height: 320px;
}

.oxy-map-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.oxy-map-search {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: var(--oxy-radius);
  background: var(--oxy-surface-lowest);
  font: inherit;
}

.oxy-map-list {
  background: var(--oxy-surface-lowest);
  border-radius: var(--oxy-radius);
  overflow: auto;
  max-height: 220px;
  flex: 0 0 auto;
}

.oxy-map-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.oxy-map-list button:hover,
.oxy-map-list button.active {
  background: color-mix(in srgb, var(--oxy-primary-container) 10%, transparent);
}

.oxy-map-list .name {
  font-weight: 600;
  color: var(--oxy-primary);
}

.oxy-map-list .meta {
  font-size: 0.8rem;
  color: var(--oxy-muted);
  margin-top: 0.15rem;
}

.oxy-map-detail {
  background: var(--oxy-surface-lowest);
  border-radius: var(--oxy-radius);
  padding: 1rem;
  flex: 1;
  overflow: auto;
}

.oxy-map-detail h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--oxy-primary);
}

.oxy-map-detail .muted {
  color: var(--oxy-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.oxy-map-detail dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.oxy-map-detail dt {
  color: var(--oxy-muted);
}

.oxy-map-detail dd {
  margin: 0;
}

.oxy-map-connectors {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.oxy-map-connectors th,
.oxy-map-connectors td {
  text-align: left;
  padding: 0.45rem 0.35rem;
}

.oxy-map-connectors thead th {
  color: var(--oxy-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.oxy-status-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--oxy-surface-low);
}

.oxy-status-pill.ok {
  background: color-mix(in srgb, var(--oxy-brand-lime) 45%, #fff);
}

.oxy-map-widget {
  margin-top: 1.5rem;
}

.oxy-map-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.oxy-map-widget-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--oxy-primary);
}

@media (max-width: 960px) {
  .oxy-map-panel {
    grid-template-columns: 1fr;
  }

  .oxy-map-canvas {
    height: 360px;
  }
}
