:root {
  --ink: #23473f;
  --paper: #f7fbf6;
  --paper-light: #ffffff;
  --lime: #ffe78f;
  --grass: #79b98a;
  --grass-soft: #e2f3e4;
  --sky: #d9f1f4;
  --coral: #ffe78f;
  --muted: #6e817a;
  --line: rgba(35, 71, 63, 0.13);
  --shadow: 0 20px 60px rgba(67, 112, 100, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, select { font-family: inherit; }
.site-header, main, footer { max-width: 1680px; margin-inline: auto; }
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: 78px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 251, 246, 0.88);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: "Agbalumo", ui-sans-serif, sans-serif; font-weight: 400; letter-spacing: .01em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(35,71,63,.1); border-radius: 13px 18px 14px 17px; background: var(--lime); box-shadow: 0 5px 15px rgba(255,231,143,.3); font-size: 24px; transform: rotate(-2deg); transition: transform .25s ease; }
.brand:hover .brand-mark { transform: rotate(10deg) scale(1.06); }
.report-button { padding: 10px 16px; border: 2px solid var(--coral); border-radius: 999px; background: rgba(255,255,255,.74); color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.report-button:hover { transform: translateY(-2px); background: #fff1ee; box-shadow: 0 7px 18px rgba(255,131,116,.2); }
.report-button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.report-short { display: none; }
.button { padding: 14px 20px; border-radius: 999px; background: var(--ink); color: white; font-weight: 800; text-decoration: none; box-shadow: 0 7px 18px rgba(21,46,40,.16); transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,46,40,.24); }
.button-small { font-size: 14px; }
.hero {
  position: relative;
  min-height: clamp(560px, 68vh, 640px);
  padding: clamp(58px, 7vw, 96px) clamp(20px, 9vw, 140px) clamp(58px, 6vw, 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #fbfdf9 0%, var(--paper) 58%, #edf7ef 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(121,185,138,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(121,185,138,.3) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, transparent, #000 64%, #000); }
.hero-content { position: relative; z-index: 2; max-width: 960px; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 900; }
h1 { max-width: 950px; margin: 0; font-family: "Agbalumo", ui-sans-serif, sans-serif; font-size: clamp(60px, 9vw, 132px); font-weight: 400; line-height: .91; letter-spacing: -.018em; text-wrap: balance; }
.swing-word { position: relative; z-index: 0; display: inline-block; padding: 0 .025em .015em .01em; color: #497f72; font-family: "Caveat", "Bradley Hand", cursive; font-size: 1.27em; font-style: normal; font-weight: 500; letter-spacing: -.025em; line-height: .72; transform: rotate(-1deg) translateY(.005em); transform-origin: 50% 8%; animation: word-swing 1.9s cubic-bezier(.4,0,.2,1) .35s both; }
.swing-word::before { content: ""; position: absolute; z-index: -1; top: -38%; right: -20%; bottom: -33%; left: -20%; border-radius: 50%; background: radial-gradient(circle, rgba(211,242,234,.42) 0%, rgba(226,247,245,.24) 48%, transparent 74%); filter: blur(13px); }
.swing-word::after { content: ""; position: absolute; right: .03em; bottom: -.015em; left: .04em; height: .09em; border-bottom: .018em solid #f3a499; border-radius: 0 0 50% 50%; transform: rotate(1deg); }
@keyframes word-swing {
  0% { transform: rotate(-1deg) translateY(.005em); }
  18% { transform: rotate(6deg) translateY(.005em); }
  38% { transform: rotate(-4.5deg) translateY(.005em); }
  58% { transform: rotate(3deg) translateY(.005em); }
  76% { transform: rotate(-2deg) translateY(.005em); }
  90% { transform: rotate(.7deg) translateY(.005em); }
  100% { transform: rotate(-1deg) translateY(.005em); }
}
.hero-copy { max-width: 540px; margin: 40px 0 28px; font-size: clamp(18px, 1.8vw, 24px); font-weight: 400; line-height: 1.52; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 2px solid currentColor; font-weight: 850; text-decoration: none; }
.text-link .link-arrow { transition: transform .2s ease; }
.text-link:hover .link-arrow { transform: translateY(4px); }
.hero-orbit { position: absolute; z-index: 1; top: 18%; right: clamp(30px, 8vw, 130px); width: clamp(170px, 19vw, 280px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #fff2b7, var(--lime)); box-shadow: var(--shadow); transform: rotate(8deg); }
.hero-smile { font-size: clamp(70px, 10vw, 150px); line-height: 1; }

/* Keep the smile as a clean text symbol instead of a coloured phone emoji. */
.brand-mark,
.hero-smile,
.swing-pin span {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-variant-emoji: text;
  font-style: normal;
}
.orbit-label { position: absolute; right: -22px; bottom: 20px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-light); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.explore { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #ffffff, #f5fbf7); }
.explore-toolbar { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 42px clamp(24px, 5vw, 72px) 36px; border-bottom: 1px solid var(--line); }
.explore-grid { height: min(760px, 78vh); min-height: 650px; }
.map-wrap { position: relative; min-height: 720px; }
#map { position: absolute; inset: 0; background: #dce8dd; }
.map-note { position: absolute; z-index: 500; bottom: 18px; left: 18px; max-width: calc(100% - 36px); padding: 11px 14px; border: 1px solid rgba(23,63,53,.12); border-radius: 999px; background: rgba(255,253,248,.92); backdrop-filter: blur(8px); box-shadow: 0 6px 22px rgba(0,0,0,.12); font-size: 12px; font-weight: 700; }
.places-panel { display: flex; min-height: 0; flex-direction: column; border-left: 1px solid var(--line); background: var(--paper-light); }
.places-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0; }
h2 { margin: 0; font-family: "Agbalumo", ui-sans-serif, sans-serif; font-size: clamp(30px, 4vw, 55px); font-weight: 400; line-height: 1.04; letter-spacing: -.008em; }
.count { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto; border-radius: 50%; background: var(--sky); font-weight: 900; box-shadow: 0 5px 16px rgba(35,71,63,.08); }
.search { padding: 0; }
.explore-controls { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(190px, .55fr) minmax(190px, .55fr); align-items: end; gap: 12px; }
.explore-controls .search { grid-column: auto; }
.filter-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.search select { width: 100%; padding: 14px 42px 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.search select:focus { border-color: var(--grass); box-shadow: 0 0 0 3px rgba(105,169,90,.24); }
.location-button { min-height: 51px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(35,71,63,.08); border-radius: 12px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 850; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.location-button:hover { transform: translateY(-2px); background: #ffdd64; box-shadow: 0 8px 18px rgba(221,184,49,.2); }
.location-button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.location-button:disabled { opacity: .65; cursor: wait; transform: none; }
.suggest-button { min-height: 51px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: white; font-size: 14px; font-weight: 850; text-align: center; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.suggest-button:hover { transform: translateY(-2px); background: #315b51; box-shadow: 0 8px 18px rgba(35,71,63,.22); }
.suggest-button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.location-status { grid-column: 1 / -1; min-height: 16px; margin: -3px 0 0; color: var(--muted); font-size: 12px; }
.location-status:not(:empty) { padding: 9px 11px; border-radius: 8px; background: var(--grass-soft); color: var(--ink); font-weight: 700; }
.location-status.is-error { background: #f8ded8; color: #7f2d23; }
.user-location { width: 20px; height: 20px; border: 4px solid white; border-radius: 50%; background: #1677ff; box-shadow: 0 0 0 3px rgba(22,119,255,.25), 0 3px 10px rgba(0,0,0,.24); }
.place-list { overflow: auto; }
.place { position: relative; width: 100%; padding: 22px 32px; display: grid; grid-template-columns: 34px 1fr; gap: 14px; text-align: left; color: inherit; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; transition: background .2s ease, padding-left .2s ease; }
.place::after { content: "→"; position: absolute; top: 50%; right: 24px; opacity: 0; font-size: 20px; transform: translate(-8px,-50%); transition: opacity .2s ease, transform .2s ease; }
.place:hover, .place.active { padding-left: 38px; padding-right: 58px; background: var(--grass-soft); }
.place:hover::after, .place.active::after { opacity: 1; transform: translate(0,-50%); }
.place-number { color: var(--muted); font-size: 12px; font-weight: 800; padding-top: 4px; }
.place-name { display: block; font-size: 17px; font-weight: 850; line-height: 1.25; }
.place-meta { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.empty { padding: 30px; color: var(--muted); }
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 76px); padding: clamp(85px, 10vw, 150px) clamp(20px, 8vw, 120px); background: linear-gradient(135deg, #fafdFA 20%, var(--grass-soft) 68%, var(--sky)); }
.about h2 { max-width: 570px; }
.about p:last-child { max-width: 620px; margin: 28px 0 0; font-size: clamp(18px, 1.7vw, 22px); font-weight: 400; line-height: 1.72; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px clamp(20px, 5vw, 72px); background: var(--ink); color: white; font-size: 13px; }
.swing-pin { display: grid; place-items: center; width: 32px; height: 32px; border: 3px solid var(--ink); border-radius: 50% 50% 50% 5px; transform: rotate(-45deg); background: var(--coral); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.swing-pin span { transform: rotate(45deg); font-size: 20px; font-weight: 900; line-height: 1; }
.leaflet-popup-content-wrapper { border: 1px solid rgba(21,46,40,.12); border-radius: 16px; box-shadow: 0 14px 40px rgba(21,46,40,.22); }
.leaflet-popup-content { margin: 18px 20px; }
.popup-title { margin-bottom: 8px; font-size: 16px; font-weight: 900; }
.popup-note { color: var(--muted); font-size: 12px; }
.popup-credit { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.popup-contributor-note { margin-top: 7px; color: var(--ink); font-size: 13px; font-style: italic; font-weight: 500; line-height: 1.45; }
.popup-link { display: inline-block; margin-top: 8px; color: var(--ink); font-weight: 750; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 800px) {
  .site-header { height: 68px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; font-size: 21px; }
  .report-button { padding: 9px 12px; font-size: 11px; }
  .button-small { padding: 11px 14px; font-size: 12px; }
  .hero { min-height: 510px; padding: 60px 20px 52px; align-items: flex-start; }
  .hero::before { background-size: 34px 34px; }
  h1 { font-size: clamp(55px, 17vw, 82px); }
  .hero-copy { max-width: 80%; margin-top: 30px; }
  .hero-orbit { top: auto; right: -20px; bottom: 20px; width: 108px; opacity: .9; }
  .hero-smile { font-size: 54px; }
  .orbit-label { display: none; }
  .explore-toolbar { grid-template-columns: 1fr; gap: 24px; padding: 34px 20px 28px; }
  .explore-controls { grid-template-columns: 1fr 1fr; }
  .explore-controls .search { grid-column: 1 / -1; }
  .location-button, .suggest-button { width: 100%; padding-inline: 10px; font-size: 12px; }
  .explore-grid { height: auto; min-height: 0; }
  .map-wrap { min-height: 58vh; }
  .places-panel { border-left: 0; border-top: 1px solid var(--line); }
  .places-heading { padding: 0; }
  .search { padding: 0; }
  .place { padding-left: 20px; padding-right: 20px; }
  .place:hover, .place.active { padding-left: 26px; }
  .place-list { max-height: none; }
  .about { grid-template-columns: 1fr; gap: 28px; padding-top: 75px; padding-bottom: 75px; }
  .about p:last-child { margin-top: 0; }
  footer { flex-direction: column; }
}

@media (max-width: 440px) {
  .site-header { padding-inline: 14px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 31px; height: 31px; }
  .report-long { display: none; }
  .report-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
