.dtai-map-shell {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  margin: 24px 0;
}
.dtai-map-header {
  padding: 18px 20px 8px;
  border-bottom: 1px solid #eef2f7;
}
.dtai-map-title {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.25;
}
.dtai-map-description {
  margin: 0;
  color: #64748b;
}
.dtai-map-toolbar {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}
.dtai-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.dtai-filter-search {
  min-width: 240px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
}
.dtai-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  max-height: 145px;
  overflow: auto;
  padding: 4px 0;
}
.dtai-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.dtai-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
}
.dtai-filter-actions {
  display: flex;
  gap: 8px;
}
.dtai-filter-actions button {
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}
.dtai-map-status {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}
.dtai-map-canvas {
  min-height: 420px;
  width: 100%;
  position: relative;
}
.dtai-loading, .dtai-error {
  padding: 24px;
  text-align: center;
  color: #475569;
}
.dtai-error, .dtai-map-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 10px;
}
.dtai-popup h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.dtai-popup-row {
  margin: 3px 0;
  line-height: 1.35;
}
.dtai-legend {
  background: rgba(255,255,255,0.96);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15,23,42,.12);
  font-size: 12px;
  max-height: 220px;
  overflow: auto;
}
.dtai-legend strong {
  display: block;
  margin-bottom: 6px;
}
.dtai-legend div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}
.dtai-legend span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}
.dtai-map-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.dtai-map-summary div {
  padding: 12px 16px;
  border-right: 1px solid #eef2f7;
}
.dtai-map-summary div:last-child {
  border-right: 0;
}
.dtai-map-summary strong {
  display: block;
  font-size: 18px;
  color: #0f172a;
}
.dtai-map-summary span {
  display: block;
  font-size: 12px;
  color: #64748b;
}
@media (max-width: 720px) {
  .dtai-map-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtai-toolbar-top { align-items: flex-start; }
  .dtai-filter-search { width: 100%; }
}
.dtai-legend .dtai-legend-empty {
  display: block;
  color: #64748b;
  font-style: italic;
  margin: 2px 0 0;
}
.dtai-category-cluster {
  background: transparent;
  border: 0;
}
.dtai-cluster-bubble {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(15,23,42,.28);
}
.dtai-cluster-medium .dtai-cluster-bubble {
  width: 48px;
  height: 48px;
  font-size: 14px;
}
.dtai-cluster-large .dtai-cluster-bubble {
  width: 56px;
  height: 56px;
  font-size: 15px;
}
.dtai-advanced-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.dtai-field-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  white-space: nowrap;
}
.dtai-field-filter select {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  min-height: 30px;
}
.dtai-reviews-filter input[type="range"] {
  width: 130px;
  accent-color: #2563eb;
}
@media (max-width: 900px) {
  .dtai-toolbar-top {
    justify-content: flex-start;
  }
  .dtai-advanced-filters {
    width: 100%;
  }
}
