:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0f4b81;
  --accent-soft: #e6f0fb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
}

.members-page {
  min-height: 100vh;
}

.hero {
  background: linear-gradient(130deg, #ffffff 0%, #eef5fd 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 20px 40px;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 800;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(1.9rem, 2.5vw, 3rem);
  line-height: 1.15;
}

.hero-text {
  max-width: 700px;
  color: var(--muted);
  margin: 0;
  font-size: 1.03rem;
}

.finder {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 20px 28px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  align-items: start;
}

.finder-left {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.search-box {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.search-box input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 75, 129, 0.12);
}

.result-count {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.member-list {
  padding: 10px;
  overflow: auto;
}

.member-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.member-card:hover,
.member-card.active {
  border-color: #9ec0e3;
  box-shadow: 0 10px 20px rgba(15, 75, 129, 0.08);
  transform: translateY(-1px);
}

.member-name {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.member-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

.member-meta strong {
  color: #334155;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 12px;
  border: 1px solid transparent;
}

.btn-link.primary {
  background: var(--accent);
  color: #fff;
}

.btn-link.secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #bfd7f1;
}

.toggle-map {
  display: none;
  margin: 12px 14px 0;
  border: 1px solid #b7d0ea;
  border-radius: 10px;
  color: var(--accent);
  background: #ecf4fc;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}

.finder-right {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 600px;
}

#memberMap {
  width: 100%;
  height: 100%;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 32px 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

@media (max-width: 1024px) {
  .finder {
    grid-template-columns: 1fr;
  }

  .finder-right {
    height: 260px;
  }

  .finder-left {
    max-height: 400px;
  }
}

.member-label {
  background: #fff;
  border: 1px solid #0f4b81;
  border-radius: 4px;
  color: #0f4b81;
  font-family: Manrope, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
