/* RigOps Intelligence — dedicated Map module */
.map-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 56px);
}
@media (min-width: 900px) {
  .map-layout { grid-template-columns: 1.4fr 1fr; }
}
.map-stage {
  padding: 12px 14px 20px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .map-stage { border-bottom: 0; border-right: 1px solid var(--border); }
}
#map-host {
  min-height: 400px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}
.map-stage .map-wrap {
  min-height: 400px;
  width: 100%;
  background: #0d1828;
  border: 1px solid #3d5a80;
  border-radius: 14px;
  position: relative;
}
.map-stage .map-wrap svg {
  width: 100% !important;
  height: min(58vh, 520px) !important;
  min-height: 380px !important;
  display: block !important;
}
.map-empty {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
  background: #1a1020;
  border: 1px dashed #6b5420;
  border-radius: 14px;
  color: #ffe7a3;
  line-height: 1.45;
}
.map-empty code {
  background: #0b1220;
  padding: 2px 6px;
  border-radius: 6px;
  color: #7dd3fc;
}
.map-side {
  padding: 12px 14px 28px;
  overflow: auto;
  max-height: calc(100vh - 56px);
}
.map-side h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-list-full { display: flex; flex-direction: column; gap: 8px; }
.site-list-item {
  text-align: left; width: 100%; cursor: pointer; font: inherit; color: var(--text);
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px;
  display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: start;
}
.site-list-item.active {
  border-color: var(--accent2);
  box-shadow: 0 0 0 1px rgba(245,185,66,.3);
}
.site-list-item .swatch { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; }
.site-list-item .name { font-weight: 800; font-size: 14px; }
.site-list-item .meta { color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.site-list-item .count-pill {
  font-size: 11px; font-weight: 800; color: var(--accent);
  background: rgba(61,214,198,.1); border: 1px solid rgba(61,214,198,.25);
  border-radius: 999px; padding: 3px 8px;
}
.map-detail {
  margin-top: 14px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.map-detail h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--accent2); }
.map-detail .row { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.map-crew { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.map-crew-title {
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px;
}
.map-crew-row {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(36,48,73,.5); font-size: 13px;
}
.map-crew-row:last-child { border-bottom: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.map-actions a, .map-actions .btn {
  text-decoration: none; display: inline-flex; align-items: center;
  min-height: 42px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: #0f172a; color: var(--text);
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.map-actions a.call { color: #86efac; border-color: rgba(74,222,128,.35); }
.map-actions a.pb { color: var(--accent); border-color: rgba(61,214,198,.35); }
