/* Sanctum public stylesheet — clean light theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #f8f7f4;
  --surface:  #ffffff;
  --border:   #e0ddd5;
  --text:     #1a1a18;
  --muted:    #666;
  --accent:   #1a5fa8;
  --radius:   6px;
  --font:     system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}
.site-nav { display: flex; gap: 1rem; font-size: 14px; }
.site-tagline { margin-left: auto; font-size: 13px; color: var(--muted); }

/* Main */
main { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }

/* Panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.panel-head {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.panel-meta { font-size: 13px; color: var(--muted); }
.panel-body { padding: 1.25rem; }

/* Map */
#dir-map {
  height: 420px;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

/* Filters */
.dir-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.dir-filters input,
.dir-filters select {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
}
#dir-search  { flex: 2; min-width: 180px; }
#dir-country { flex: 1; min-width: 150px; }
#dir-state   { flex: 1; min-width: 150px; }

/* Table */
.dir-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dir-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.dir-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.dir-table tr:last-child td { border-bottom: none; }
.dir-table td:last-child { text-align: center; }

/* Tradition badges */
.trad-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f0ec;
  white-space: nowrap;
}
.trad-vipassana-goenka  { color: #1a5fa8; }
.trad-triratna          { color: #b55a00; }
.trad-zen-plum-village  { color: #1a7a40; }
.trad-tibetan-shambhala { color: #9b1c5a; }

/* Center detail */
.center-name { font-size: 1.4rem; font-weight: 600; margin-bottom: 1.25rem; }
.center-meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.4rem 1rem;
  max-width: 560px;
}
.center-meta dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: baseline;
  padding-top: 2px;
}
.center-meta dd { margin: 0; font-size: 14px; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* Center description */
.center-description {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); }

/* Responsive */
@media (max-width: 600px) {
  main { padding: 0 1rem; }
  .site-tagline { display: none; }
  .dir-filters { flex-direction: column; }
  #dir-map { height: 300px; }
  .center-meta { grid-template-columns: 1fr; }
  .center-meta dt { color: var(--muted); }
}
