/* Map to STL maker (map-to-stl.html): only what style.css doesn't have yet */

.map-search { display: flex; gap: 8px; margin-bottom: 10px; }
.map-search input { flex: 1 1 auto; min-width: 0; }
.map-search .btn { flex: none; }
.map-results { list-style: none; margin: 0 0 10px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); max-height: 210px; overflow: auto; }
.map-results[hidden] { display: none; }
.map-results li { font-size: .86rem; }
.map-results li.muted { padding: 8px 10px; }
.map-results button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; font: inherit; color: var(--ink); cursor: pointer;
}
.map-results button:hover, .map-results button:focus-visible { background: var(--accent-soft); }

.map-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
#map { height: clamp(260px, 42vh, 380px); background: #e9ecef; z-index: 0; }
#map.picking { cursor: crosshair; }
#map.picking .leaflet-interactive { cursor: crosshair; }
.map-hint { margin: 8px 0 14px; }
.map-pin-icon { background: none; border: 0; }
.map-pin-icon svg { display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.leaflet-container { font: inherit; font-size: .8rem; }

.map-tool .shape-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 14px; }
@media (max-width: 420px) { .map-tool .shape-grid label { font-size: .7rem; padding-left: 2px; padding-right: 2px; } }

.map-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 16px; }
@media (max-width: 420px) { .map-layers { grid-template-columns: 1fr; } }

.map-tools { display: flex; width: 100%; margin-top: 6px; }
.map-tools button { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; white-space: nowrap; }

.hi-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hi-list:empty { display: none; }
.hi-list li {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px;
  background: #fde8e9; color: #8f1d22; font-size: .82rem; font-weight: 700; max-width: 100%;
}
.hi-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-list button {
  width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(143, 29, 34, .12); color: inherit;
  font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; flex: none;
}
.hi-list button:hover { background: rgba(143, 29, 34, .24); }

#make.pulse { box-shadow: 0 0 0 4px var(--accent-soft); }
.map-tool .status { margin: 10px 0 0; min-height: 1.2em; color: var(--muted); }
.map-tool .status.error { color: #b3261e; }
.map-tool .download .status.error { color: #ffb4ab; }
.map-note { margin: 0 0 14px; }
.map-note:empty { display: none; }
#block-colors .color-row select { width: 100%; }
