/* Mosque finder — list rows, radius chips, states. Mobile-first. */

.mq-radii { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.mq-chip {
  font-size: .82rem; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 8px 16px;
  transition: color .2s, border-color .2s, background .2s;
}
.mq-chip:hover { color: var(--gold-bright); border-color: var(--gold-dim); }
.mq-chip.on { color: var(--gold-bright); border-color: var(--gold-dim); background: var(--surface-2); }

.mq-results { margin-top: 18px; }

.mq-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mq-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 15px;
  transition: background .2s;
}
.mq-row:hover { background: var(--surface-2); }

.mq-main { min-width: 0; }
.mq-name { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.mq-addr { color: var(--text-dim); font-size: .82rem; margin-top: 4px; line-height: 1.4; }

.mq-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.mq-dist { color: var(--gold); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.mq-dir {
  color: var(--text-dim); font-size: .78rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px;
  white-space: nowrap; transition: color .2s, border-color .2s;
}
.mq-dir:hover { color: var(--gold-bright); border-color: var(--gold-dim); }

/* ---------- states ---------- */
.mq-loading, .mq-empty, .mq-note {
  color: var(--text-dim); font-size: .88rem; line-height: 1.5; text-align: center; padding: 10px 4px;
}
.mq-note { font-size: .78rem; padding-top: 14px; }
.mq-loading::after {
  content: ''; display: inline-block; vertical-align: -2px; margin-left: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--gold-dim); border-top-color: var(--gold-bright);
  animation: mq-spin .8s linear infinite;
}
@keyframes mq-spin { to { transform: rotate(360deg); } }

.mq-error {
  text-align: center; color: var(--text-dim); font-size: .88rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 14px;
}
.mq-error .pill { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .mq-loading::after { animation: none; }
  .mq-row, .mq-chip, .mq-dir { transition: none; }
}
