.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, .8fr);
  gap: 18px;
  align-items: stretch;
}

#technicians-map {
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #d7e6df;
  border-radius: 18px;
}

.technician-list {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 620px;
  padding: 2px 8px 2px 2px;
  overflow: auto;
  scrollbar-color: #9aaba3 transparent;
}

.technician-card-admin {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #d8e7df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(8, 74, 54, .07);
}

.technician-card-admin.active {
  border-color: #08a86b;
  box-shadow: 0 0 0 3px rgba(8, 168, 107, .13),
    0 8px 22px rgba(8, 74, 54, .1);
}

.technician-focus {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100% !important;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #14231d;
  text-align: left;
  cursor: pointer;
}

.technician-card.technician-card-admin {
  display: flex !important;
  grid-template-columns: none !important;
}

.technician-focus .technician-identity strong {
  color: #12352d !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
}

.technician-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #087b55, #08a86b);
  color: #fff;
  font-size: .95rem;
  font-weight: 850;
  letter-spacing: .03em;
}

.technician-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.technician-identity strong,
.technician-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technician-identity strong { color: #063f32; font-size: 1rem; }
.technician-identity small { color: #62716a; font-size: .78rem; }
.technician-area::before { content: "⌖ "; color: #087b55; }

.technician-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.technician-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.technician-status.available { background: #dcf7e9; color: #08704d; }
.technician-status.busy { background: #fff0dd; color: #925000; }
.technician-status.offline { background: #edf1ef; color: #66736d; }

.technician-card-admin > .admin-action {
  width: 100%;
  min-height: 42px;
  margin-top: 2px;
  border-top: 1px solid #dce9e3;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 800;
}

.technician-card-admin > .admin-action.secondary {
  background: #e8f3ee;
  color: #075b43;
}

.technician-card-admin > .admin-action.danger {
  border: 1px solid #f4c8c3;
  background: #fff0ee;
  color: #a22920;
}

@media (max-width: 1180px) {
  .map-layout { grid-template-columns: 1fr; }
  .technician-list {
    grid-template-columns: 1fr;
    max-height: 520px;
  }
  .technician-focus { grid-template-columns: 44px minmax(0, 1fr); }
  .technician-status { grid-column: 2; justify-self: start; }
  .technician-avatar { width: 44px; height: 44px; }
}

@media (max-width: 720px) {
  #technicians-map { min-height: 430px; }
  .technician-list { grid-template-columns: 1fr; max-height: none; }
}
