/* Autism Atlas — Dark theme
   Fonts: Plus Jakarta Sans + Source Serif 4 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --primary: #4fd0c5;
  --primary-dark: #2aa8a0;
  --primary-light: #12333a;
  --accent: #d4a017;
  --accent-soft: #3a2d12;
  --sage: #9b7cf0;
  --sage-light: #241b3d;
  --bg: #07080f;
  --surface: #12121c;
  --surface-2: #1b1b2a;
  --text: #eef1ff;
  --text-muted: #9aa0c0;
  --border: #2a2c45;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; color: #7ecfdd; }
img { max-width: 100%; height: auto; display: block; }

/* HEADER */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.7rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; color: var(--primary); }
.logo img {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 50%;
  background: #05050a;
}
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.94rem;
  text-decoration: none;
}
.nav a:hover { color: var(--primary); }
.nav .btn-nav {
  background: var(--primary);
  color: #0f1416 !important;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav .btn-nav:hover {
  background: #7ecfdd;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

/* HERO */
.hero {
  background: linear-gradient(160deg, #0a1012 0%, #122026 45%, #0f2a28 100%);
  color: white;
  padding: 3.5rem 1.15rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 15%, rgba(94,184,200,0.12), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(94,184,200,0.12);
  border: 1px solid rgba(94,184,200,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--primary);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.95rem;
  letter-spacing: -0.01em;
  color: #f0f5f6;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 1.85rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  color: #c5d0d4;
}
.search-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.search-bar input {
  flex: 1;
  min-width: 130px;
  border: none;
  padding: 0.85rem 1rem;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text);
  background: transparent;
  font-family: var(--font);
}
.search-bar input::placeholder { color: var(--text-muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: var(--font);
}
.btn-primary { background: var(--accent); color: #1a120c; }
.btn-primary:hover { background: #f0a87a; text-decoration: none; color: #1a120c; }
.btn-secondary {
  background: rgba(94,184,200,0.12);
  color: var(--primary);
  border: 1px solid rgba(94,184,200,0.35);
}
.btn-secondary:hover { background: rgba(94,184,200,0.22); text-decoration: none; color: #7ecfdd; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.hero-ctas {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* SECTIONS */
.section { padding: 3.5rem 1.15rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.9rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Category tiles */
.home-categories {
  background:
    radial-gradient(700px 180px at 8% 0%, rgba(79,208,197,0.08), transparent 60%),
    radial-gradient(600px 160px at 92% 20%, rgba(155,124,240,0.08), transparent 55%);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.category-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.05rem 0.7rem 0.95rem;
  text-align: center;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-height: 148px;
}
.category-tile:hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.category-tile.cat-teal:hover { border-color: var(--primary); }
.category-tile.cat-violet:hover { border-color: #9b7cf0; }
.category-tile.cat-gold:hover { border-color: var(--accent); }
.category-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.2rem;
}
.category-icon svg { width: 26px; height: 26px; }
.cat-teal .category-icon { background: rgba(79,208,197,0.14); color: #4fd0c5; }
.cat-violet .category-icon { background: rgba(155,124,240,0.16); color: #b9a4ff; }
.cat-gold .category-icon { background: rgba(212,160,23,0.16); color: #e0b84a; }
.category-label {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.category-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.35rem;
  margin-top: 1.35rem;
}
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.65rem;
  border: 1px solid var(--border);
  text-align: center;
}
.step-num {
  width: 40px; height: 40px;
  background: var(--primary);
  color: #0f1416;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.9rem;
  font-size: 1rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.35rem; color: var(--text); }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* Trust */
.trust-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid #2a4a52;
}
.trust-box h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}
.trust-box p { color: var(--text-muted); }
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.15rem;
}
.trust-tag {
  background: var(--surface);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--border);
}

/* Featured / cards */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.15rem;
}
.listing-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.65rem;
  background: var(--surface-2);
}
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.listing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: #3a4a50;
}
.listing-card .badge-row { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
}
.badge.featured { background: #3d2e12; color: #f0c060; }
.badge.sensory { background: var(--sage-light); color: var(--sage); }
.listing-card h3 { font-size: 1.05rem; line-height: 1.3; color: var(--text); }
.listing-card .meta { font-size: 0.84rem; color: var(--text-muted); }
.listing-card .tags { display: flex; flex-wrap: wrap; gap: 0.28rem; margin-top: 0.2rem; }
.tag {
  font-size: 0.72rem;
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}
.card-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rating { font-size: 0.88rem; font-weight: 600; color: var(--accent); }

/* Email */
.email-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 3rem 1.15rem;
  text-align: center;
}
.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 400px;
  margin: 1.15rem auto 0;
}
.email-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}
.email-form input::placeholder { color: var(--text-muted); }
.email-form .btn { background: var(--accent); color: #1a120c; }

/* Business CTA */
.biz-cta {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.4rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* Events section */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.event-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #3a4a50;
}
.event-card .date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.event-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  color: var(--text);
}
.event-card .org {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.event-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* SEARCH / MAP */
.search-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
  max-height: 100vh;
}
.search-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.search-topbar input,
.search-topbar select {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  outline: none;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}
.search-topbar input:focus,
.search-topbar select:focus { border-color: var(--primary); }
.search-topbar input::placeholder { color: var(--text-muted); }
.search-layout { display: flex; flex: 1; overflow: hidden; }
.filters-panel {
  width: 270px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 0.9rem;
  flex-shrink: 0;
}
.filters-panel h3 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0.9rem 0 0.4rem;
}
.filters-panel h3:first-child { margin-top: 0; }
.filter-group { margin-bottom: 0.4rem; }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  padding: 0.22rem 0;
  cursor: pointer;
  color: var(--text);
}
.filter-group input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px; height: 15px;
  flex-shrink: 0;
}
.results-panel {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  background: var(--bg);
}
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.results-count { font-weight: 600; color: var(--text-muted); font-size: 0.93rem; }
.map-panel {
  width: 44%;
  min-width: 300px;
  min-height: 360px;
  background: #151c1f;
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
}
#map { width: 100%; height: 100%; min-height: 360px; }
.mobile-map-toggle {
  display: none;
  position: fixed;
  bottom: 1.15rem;
  right: 1.15rem;
  z-index: 50;
  background: var(--primary);
  color: #0f1416;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font);
}

/* Result cards */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.result-card:hover,
.result-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.result-card h4 { font-size: 0.98rem; margin-bottom: 0.2rem; color: var(--text); }
.result-card .address {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.35;
  margin: 0.12rem 0 0.08rem;
}
.result-card .location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* PROFILE */
.profile-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.9rem 1.15rem;
}
.profile-header-inner { max-width: 880px; margin: 0 auto; }
.profile-header h1 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.profile-meta { color: var(--text-muted); margin-bottom: 0.9rem; font-size: 0.95rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.profile-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.9rem 1.15rem;
  display: grid;
  gap: 1.35rem;
}
.support-profile {
  background: var(--sage-light);
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid #2a4a3a;
}
.support-profile h2 {
  font-size: 1.12rem;
  color: var(--sage);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.support-profile p { color: var(--text-muted); }
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
}
.support-item {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.93rem;
  color: var(--text);
}
.support-item .check { color: var(--sage); font-weight: 700; flex-shrink: 0; }
.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.profile-section h2 {
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
  color: var(--primary);
}
.profile-section p { color: var(--text-muted); }

/* Footer */
.site-footer {
  background: #05050a;
  color: rgba(232,238,240,0.75);
  padding: 2.4rem 1.15rem 1.4rem;
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.35rem;
  margin-bottom: 1.75rem;
}
.footer-inner a { color: rgba(232,238,240,0.75); }
.footer-inner a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.15rem; }
.hidden { display: none !important; }


/* Utility / component polish */
.similar-card {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.similar-card:hover { border-color: var(--primary); text-decoration: none; }
.similar-card strong { color: var(--text); }
.similar-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.sensory-hours-box {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--sage-light);
  border-radius: 10px;
  border: 1px solid rgba(107, 196, 154, 0.35);
}
.sensory-hours-box strong { color: var(--sage); display: block; margin-bottom: 0.25rem; }
.map-placeholder {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 160px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}


/* ========== HOME REDESIGN ========== */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.home-wrap { position: relative; z-index: 1; }
.home-brand {
  text-align: center;
  padding: 4.2rem 1.15rem 2.6rem;
  background:
    radial-gradient(1000px 380px at 50% -12%, rgba(155,124,240,0.20), transparent 58%),
    radial-gradient(800px 300px at 82% 8%, rgba(79,208,197,0.12), transparent 52%),
    transparent;

  border-bottom: 1px solid var(--border);
}
.home-brand-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.home-logo {
  display: block;
  width: clamp(210px, 28vw, 300px);
  height: clamp(210px, 28vw, 300px);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 4px rgba(212,160,23,0.55), 0 18px 48px rgba(0,0,0,0.5);
  object-fit: cover;
  background: #05050a;
}
.home-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
  color: var(--text);
  text-align: center;
  line-height: 0.98;
}
.home-lede {
  font-size: clamp(1.12rem, 2.4vw, 1.38rem);
  color: #d0d5ee;
  font-weight: 500;
  max-width: 40rem;
  margin: 0.2rem auto 1.4rem;
  line-height: 1.45;
}
.home-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  width: min(640px, 100%);
  margin: 0 auto 1rem;
}
.home-search input {
  flex: 1 1 160px;
  min-width: 140px;
  padding: 0.78rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.home-search input:focus { outline: none; border-color: var(--primary); }
.aa-ac-wrap { position: relative; flex: 1 1 160px; min-width: 140px; }
.aa-ac-wrap input { width: 100%; }
.aa-ac-list {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  z-index: 4000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.aa-ac-item {
  display: block; width: 100%; text-align: left;
  padding: 0.7rem 0.85rem; background: transparent; border: 0;
  border-bottom: 1px solid var(--border); color: var(--text);
  cursor: pointer; font: inherit; font-size: 0.92rem;
}
.aa-ac-item:last-child { border-bottom: 0; }
.aa-ac-item:hover, .aa-ac-item:focus { background: var(--surface-2); outline: none; }
.pac-container { z-index: 5000 !important; }

.home-search button { white-space: nowrap; }
@media (max-width: 600px) {
  .home-search { flex-direction: column; }
  .home-search button { width: 100%; }
}
.home-tagline {
  font-size: clamp(1.18rem, 2.4vw, 1.42rem);
  color: #c5cbe6;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  text-align: center;
  max-width: 640px;
  font-weight: 500;
}
.home-proof {
  font-size: 0.98rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}

.home-categories { padding-top: 2rem; padding-bottom: 1.5rem; }

.featured-section {
  background: var(--surface);
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.featured-header {
  margin-bottom: 1.15rem;
}

.home-map-section { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.home-map-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.map-filters-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.map-filters-link:hover { text-decoration: underline; }
.home-map-full {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 480px;
}
#home-map {
  width: 100%;
  height: 480px;
  min-height: 480px;
  background: #151c1f;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  margin-top: 0.7rem;
  line-height: 1.35;
}

.home-search-section { background: var(--surface); }
.home-search-inner { max-width: 720px; text-align: center; margin: 0 auto; }
.home-search-bar { margin: 0 auto; max-width: 600px; }
.home-search-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.search-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.search-box:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.event-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.event-card-link:hover {
  text-decoration: none;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.event-cta {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

/* ========== PROFILE COMPACT + PHOTOS ========== */
.profile-header-compact { padding: 1.35rem 1.15rem; }
.profile-header-compact h1 { font-size: 1.45rem; }
.profile-header-with-photo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.15rem;
  max-width: 960px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.profile-header-text {
  flex: 1 1 280px;
  min-width: 0;
}
.profile-header-text h1 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
.profile-header-photo {
  flex: 0 0 auto;
  width: 280px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.profile-header-photo img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
@media (max-width: 640px) {
  .profile-header-with-photo { flex-direction: column; }
  .profile-header-photo { width: 100%; }
  .profile-header-photo img { height: 180px; }
}
.profile-body-compact { padding: 1rem 1.15rem 2.5rem; max-width: 920px; margin: 0 auto; }

.profile-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.profile-photos figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.profile-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.profile-photos figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  background: var(--surface);
}

.support-why { margin-bottom: 0.85rem; font-size: 0.95rem; opacity: 0.9; }
.profile-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.85rem;
  margin: 0.85rem 0;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.contact-list strong { color: var(--text); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.profile-map-preview {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  background: #151c1f;
  overflow: hidden;
}
.map-link { display: inline-block; margin-top: 0.55rem; font-weight: 600; font-size: 0.9rem; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}
.details-grid .dlabel {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.similar-list { display: grid; gap: 0.55rem; }
.profile-disclaimer {
  background: var(--primary-light);
  border-color: transparent;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.profile-disclaimer p { margin: 0; }
.profile-disclaimer .linkish {
  background: none; border: none; color: var(--primary); cursor: pointer;
  font: inherit; text-decoration: underline; padding: 0;
}

@media (max-width: 900px) {
  .home-map-full { min-height: 320px; }
  #home-map { min-height: 320px; height: 320px; }
  .profile-photos { grid-template-columns: 1fr; }
  .profile-photos img { height: 180px; }
  .profile-grid-2 { grid-template-columns: 1fr; }
  .home-logo { width: 148px; height: 148px; }
  .home-brand { padding: 2.25rem 1rem 1.6rem; }
  .home-search-boxes { gap: 0.55rem; }
  .search-box { padding: 0.65rem 0.95rem; font-size: 0.88rem; flex: 1 1 calc(50% - 0.55rem); max-width: 180px; }
}


/* Mobile */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.15rem 1.25rem;
    gap: 0.15rem;
    box-shadow: var(--shadow-md);
    z-index: 200;
  }
  .nav.open a {
    padding: 0.75rem 0.4rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.open a:last-child { border-bottom: none; }
  .nav.open .btn-nav {
    text-align: center;
    margin-top: 0.4rem;
    display: block;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
    padding: 0.25rem;
  }

  /* Search page */
  .search-page { height: auto; min-height: calc(100vh - 56px); }
  body:has(.search-page) { overflow: auto; }
  .search-topbar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
  }
  .search-topbar input,
  .search-topbar select,
  .search-topbar .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.35rem);
    font-size: 16px; /* prevents iOS zoom */
  }
  .search-topbar .btn {
    min-width: 100%;
  }
  .search-layout { flex-direction: column; height: auto; }
  .filters-panel {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    border-right: none;
    border-bottom: 1px solid var(--border);
    transition: max-height 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
  }
  .filters-panel.open {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.9rem;
  }
  .map-panel {
    width: 100%;
    height: 42vh;
    min-height: 220px;
    min-width: unset;
    display: none;
  }
  .map-panel.visible { display: block; }
  .mobile-map-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
  }
  .results-panel {
    flex: 1;
    min-height: 45vh;
    padding: 0.75rem;
  }
  .result-card { padding: 0.9rem; }
  .result-card h4 { font-size: 1rem; }

  /* Homepage */
  .hero { padding: 2.4rem 1rem 2.8rem; }
  .hero h1 { font-size: 1.85rem; line-height: 1.2; }
  .hero p { font-size: 1rem; }
  .search-bar { flex-direction: column; gap: 0.55rem; }
  .search-bar input {
    width: 100%;
    font-size: 16px;
    min-height: 48px;
  }
  .search-bar .btn { width: 100%; min-height: 48px; }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn { width: 100%; text-align: center; min-height: 46px; }
  .section { padding: 2.4rem 1rem; }
  .section-title { font-size: 1.45rem; }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .category-tile {
    padding: 1rem 0.6rem;
    min-height: 88px;
  }
  .steps {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .trust-tags {
    justify-content: flex-start;
  }

  /* Profile / listing */
  .profile-header { padding: 1.4rem 1rem; }
  .profile-header h1 { font-size: 1.4rem; line-height: 1.25; }
  .profile-actions {
    flex-direction: column;
  }
  .profile-actions .btn {
    width: 100%;
    text-align: center;
    min-height: 46px;
    justify-content: center;
  }
  .profile-body { padding: 1rem; }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .profile-section { padding: 1rem; margin-bottom: 0.85rem; }
  .badge-row { gap: 0.35rem; }

  /* Compare page */
  .compare-wrap { padding: 1.15rem 0.85rem 2.5rem; }
  .compare-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .compare-controls label { width: 100%; }
  .compare-controls select {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
  }
  .compare-controls .btn {
    width: 100%;
    min-height: 48px;
  }
  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
  }
  .compare-table th,
  .compare-table td {
    min-width: 140px;
    padding: 0.7rem 0.75rem;
  }
  .compare-table th:first-child,
  .compare-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--surface-2);
    z-index: 1;
    min-width: 110px;
  }

  /* Footer & general */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-header { position: sticky; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.02rem; }
  .logo img { width: 34px; height: 34px; }
  .hero h1 { font-size: 1.55rem; }
  .hero-eyebrow { font-size: 0.78rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
  .category-tile { font-size: 0.88rem; padding: 0.85rem 0.45rem; }
  .category-icon { font-size: 1.35rem; }
  .steps { grid-template-columns: 1fr !important; }
  .footer-inner { grid-template-columns: 1fr; }
  .search-topbar input,
  .search-topbar select {
    min-width: 100%;
  }
  .profile-header h1 { font-size: 1.28rem; }
  .compare-table th,
  .compare-table td {
    min-width: 120px;
    font-size: 0.8rem;
  }
}

/* Touch-friendly improvements (all sizes) */
@media (hover: none) and (pointer: coarse) {
  .result-card { padding: 1.05rem; }
  .filter-group label { padding: 0.4rem 0; min-height: 40px; }
  .nav a { padding: 0.35rem 0; }
  a, button, .btn, .category-tile, .result-card {
    -webkit-tap-highlight-color: rgba(94, 184, 200, 0.25);
  }
}

/* Prevent horizontal overflow */
html, body { overflow-x: hidden; }
img, table, .compare-table, .search-topbar, .profile-actions {
  max-width: 100%;
}

.badge-link {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.badge-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  text-decoration: none;
}
.support-item-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s;
  border-radius: 8px;
  padding: 0.15rem 0.25rem;
  margin: -0.15rem -0.25rem;
}
.support-item-link:hover {
  background: var(--primary-light);
  text-decoration: none;
  color: var(--primary-dark);
}

.profile-header-photo.photo-loading {
  opacity: 0.7;
  position: relative;
}
.profile-header-photo.photo-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: photo-shimmer 1.2s infinite;
}
@keyframes photo-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.profile-header-photo.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--surface-2);
}
.photo-placeholder-inner {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem;
  text-align: center;
}

.profile-header-photo img[src*="org-logos"], .listing-card-img[src*="org-logos"]{object-fit:contain;background:#07080f;}
