/* Events near you (v26) + shared location block + Home "Near you" card */

/* ---- shared location block (Mosques, Events, More) ---- */
.loc-block { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.loc-block .loc-geo { flex: 0 0 auto; }
.loc-form { display: flex; flex: 1 1 220px; gap: 6px; min-width: 0; }
.loc-input {
  flex: 1; min-width: 0; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: .92rem;
}
.loc-input:focus { outline: none; border-color: var(--gold); }
.loc-form .pill { padding: 9px 16px; }
.loc-note { flex-basis: 100%; font-size: .82rem; color: var(--text-dim); min-height: 1.1em; }
.loc-note.ok { color: var(--gold-bright); }
.loc-note.warn { color: #e8a26b; }
.loc-block.compact { margin-bottom: 8px; }

/* ---- filters ---- */
.ev-filters { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; }
.ev-chips { display: flex; gap: 6px; }
.ev-chip {
  padding: 7px 13px; border-radius: 999px; font: inherit; font-size: .82rem; cursor: pointer;
  background: transparent; color: var(--text-dim); border: 1px solid var(--line);
}
.ev-chip.on { background: var(--gold); color: #1a1406; border-color: var(--gold); font-weight: 600; }

/* ---- list ---- */
.ev-day { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 18px 0 8px; }
.ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ev-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px;
}
.ev-time { font-size: .8rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; line-height: 1.35; padding-top: 2px; }
.ev-title { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.ev-where { font-size: .84rem; color: var(--text-dim); margin-top: 2px; }
.ev-dist { color: var(--gold); }
.ev-desc { font-size: .84rem; color: var(--text-dim); margin-top: 6px; line-height: 1.5; white-space: pre-line; }
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ev-actions .pill { text-decoration: none; }
.ev-src { font-size: .78rem; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.ev-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 18px 16px; margin-top: 8px; }
.ev-empty p { margin: 0 0 6px; }
.ev-loading { color: var(--text-dim); padding: 12px 0; }

/* ---- post form ---- */
.ev-postcard { margin-top: 26px; }
.ev-form { display: flex; flex-direction: column; gap: 8px; }
.ev-form input, .ev-form textarea, .ev-form select {
  width: 100%; box-sizing: border-box; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font: inherit;
}
.ev-form input:focus, .ev-form textarea:focus, .ev-form select:focus { outline: none; border-color: var(--gold); }
.ev-lbl { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--text-dim); }
.ev-form .pill { align-self: flex-start; }

/* ---- Home "Near you" card: one event at a time, static, taps through ---- */
.near-strip {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: linear-gradient(120deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-dim); border-radius: var(--r-md);
  padding: 10px 14px; margin-top: 10px; cursor: pointer; transition: transform .15s;
}
.near-strip:active { transform: scale(.985); }
.near-strip .ns-mark { color: var(--gold); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; font-weight: 700; }
.near-strip .ns-body { flex: 1; min-width: 0; }
.near-strip .ns-title { display: block; font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near-strip .ns-meta { display: block; font-size: .76rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near-strip .ns-count { font-size: .72rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.near-strip.ns-fade .ns-body { animation: nsFade .45s ease; }
@keyframes nsFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .near-strip.ns-fade .ns-body { animation: none; } }

@media (max-width: 420px) {
  .ev-row { grid-template-columns: 1fr; gap: 4px; }
  .ev-time { padding-top: 0; }
}

/* v28: fallback note (default area / widened radius) */
.ev-note { font-size: .82rem; color: var(--text-dim); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 10px 12px; margin: 0 0 10px; }
