/* ==========================================================================
   Maps — the map there, inside the task
   ========================================================================== */
.map-box { margin-bottom: 18px; }
.map-note {
  font-size: 13px; color: var(--text-faint); line-height: 1.5; margin: 0;
  background: var(--bg-hover); border-radius: 10px; padding: 10px 12px;
}
.map-form { display: flex; flex-wrap: wrap; gap: 8px; }
.map-form input {
  flex: 1 1 180px; border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 9px 12px; font: inherit; font-size: 14px; outline: none;
  background: var(--bg); color: var(--text);
}
.map-form input:focus { border-color: var(--accent); }
.map-form .btn-primary { flex: none; }

.map-card {
  display: block; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--bg-hover);
}
.map-card iframe { display: block; width: 100%; height: 260px; border: 0; }
.map-card.small { max-width: 420px; margin: 6px 0; }
.map-card.small iframe { height: 190px; }
.map-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--bg); font-size: 12.5px;
}
.map-where {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); font-weight: 600;
}
.map-mode { color: var(--text-faint); }
.map-out { color: var(--accent); text-decoration: none; white-space: nowrap; }
.map-out:hover { text-decoration: underline; text-underline-offset: 2px; }
.map-x {
  border: 0; background: none; color: var(--text-faint); cursor: pointer;
  font-size: 12px; padding: 3px 5px; border-radius: 6px;
}
.map-x:hover { background: var(--bg-hover); color: #d64545; }

/* a map link seen by somebody who hasn't got the app, or on a server with no key */
.map-locked {
  display: inline-flex; align-items: center; gap: 7px; vertical-align: middle;
  background: var(--bg-hover); border-radius: 8px; padding: 4px 10px;
  font-size: 12.5px; color: var(--text-soft); line-height: 1.3;
}
.map-locked a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.map-embed-load { font-size: 12.5px; color: var(--text-faint); }
