/* Toilet Finder (CA) - tool-specific styles only.
   Header/container/sidebar/button/form styles come from src/styles/global.css,
   same as every other CA tool - not redefined here. */

.results-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: center;
}

.summary-stat {
  background: var(--hover-bg);
  padding: 12px;
  border-radius: 8px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.results-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.results-list {
  max-height: 420px;
  overflow-y: auto;
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
}

.result-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.result-card:hover {
  border-color: var(--primary);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
  gap: 10px;
}

.result-name {
  font-weight: 600;
  color: var(--text);
}

.result-distance {
  text-align: right;
  flex-shrink: 0;
}

.distance-value {
  display: block;
  font-weight: 600;
  color: var(--primary);
}

.walk-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.result-meta,
.result-source {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.result-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  background: var(--hover-bg);
  color: var(--text-muted);
}

.tag.free { background: #e8f5e9; color: #2e7d32; }
.tag.wheelchair { background: #fff3e0; color: #e65100; }
.tag.baby { background: #fce4ec; color: #c2185b; }

.result-actions {
  margin-top: 8px;
}

.btn-directions,
.popup-directions {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary);
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
}

.btn-directions:hover,
.popup-directions:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

.loading-indicator {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--hover-bg);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.custom-marker { background: transparent !important; border: none !important; }

.user-marker {
  font-size: 32px;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.toilet-marker {
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--primary);
}

.toilet-marker.wheelchair { border-color: #e65100; }
/* Park-centroid results (BC Parks) get a visually distinct marker style,
   not just a text tag - the imprecision matters enough to show on the map
   itself, same "state precision per result" convention as elsewhere on
   this site. */
.toilet-marker.park-precision { border-color: #6a5acd; border-style: dashed; }

.leaflet-popup-content { margin: 12px; min-width: 180px; }
.popup-title { font-weight: 600; font-size: 1rem; margin-bottom: 8px; color: #333; }
.popup-facilities { margin: 8px 0; font-size: 1.1rem; }

/* Toast: styled only by the shared .toast component in src/styles/global.css. Do not restyle it here (see the contract comment there). */
.hidden { display: none !important; }

.field-status {
  margin-top: 6px;
  font-size: 13px;
}

.field-error {
  color: #dc2626;
  margin: 0;
}

/* A working result with a stated caveat (a place-name search centre),
   not an error - added 2026-09-16, same neutral treatment Shape B's
   own origin-caveat styling uses. */
.field-note {
  color: var(--text-muted);
  margin: 0;
}
