:root {
  --bg: #f6faf8;
  --surface: #ffffff;
  --text: #18332c;
  --muted: #65766f;
  --line: #dbe8e2;
  --brand: #127b5b;
  --brand-dark: #0c5f46;
  --brand-soft: #e5f5ef;
  --warning: #b78412;
  --danger: #b64545;
  --shadow: 0 18px 50px rgba(24, 51, 44, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246,250,248,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219,232,226,.8);
}
.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: white; font-size: 22px; transform: rotate(-18deg); }

.primary-btn, .secondary-btn, .icon-btn {
  border: 0; border-radius: 12px; font-weight: 700;
}
.primary-btn { background: var(--brand); color: white; padding: 14px 20px; }
.primary-btn:hover { background: var(--brand-dark); }
.secondary-btn { background: var(--surface); color: var(--brand-dark); border: 1px solid var(--line); padding: 11px 16px; }
.icon-btn { background: transparent; font-size: 30px; color: var(--muted); }
.full { width: 100%; }

.hero { padding: 76px 0 50px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .11em; font-size: 12px; font-weight: 800; color: var(--brand); }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: .98; letter-spacing: -0.055em; margin: 0 0 22px; max-width: 720px; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.035em; margin: 0; }
.hero-lead { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 650px; }

.search-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.search-card > label, .report-dialog label, fieldset legend { display: block; font-weight: 700; margin-bottom: 9px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input[type="search"], select, textarea { width: 100%; border: 1px solid #cfded7; border-radius: 12px; padding: 13px 14px; background: white; color: var(--text); }
input[type="search"]:focus, select:focus, textarea:focus { outline: 3px solid rgba(18,123,91,.12); border-color: var(--brand); }
.location-link { margin: 14px 0 4px; padding: 0; border: 0; background: transparent; color: var(--brand-dark); font-weight: 700; }
.microcopy { font-size: 12px; line-height: 1.5; color: var(--muted); margin-bottom: 0; }

.results-section { padding: 44px 0 78px; }
.results-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.in-stock { background: #1a9c69; }
.low-stock { background: #d49a19; }
.unknown { background: #a6b0ac; }

.content-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; }
.results-list { display: grid; gap: 14px; }
.pharmacy-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 16px; }
.card-top { display: flex; justify-content: space-between; gap: 16px; }
.pharmacy-card h3 { margin: 0 0 6px; font-size: 20px; }
.address { color: var(--muted); margin: 0; font-size: 14px; }
.status-pill { white-space: nowrap; align-self: start; border-radius: 999px; padding: 8px 10px; font-size: 12px; font-weight: 800; }
.status-in { background: #e4f5ed; color: #126743; }
.status-low { background: #fff5dc; color: #8f6504; }
.status-out { background: #fdeaea; color: #963c3c; }
.status-unknown { background: #eef2f0; color: #68756f; }
.stock-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.report-source { font-weight: 700; color: var(--brand-dark); }
.card-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.action-link { text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text); background: #fff; font-weight: 700; font-size: 13px; }
.action-link.report { background: var(--brand-soft); color: var(--brand-dark); border-color: transparent; }

.map-panel { position: sticky; top: 96px; align-self: start; }
.map-art { min-height: 455px; border-radius: 22px; border: 1px solid var(--line); background: #e9f1ed; position: relative; overflow: hidden; }
.map-road { position: absolute; background: rgba(255,255,255,.85); border: 1px solid #d4dfda; }
.road-a { width: 130%; height: 30px; left: -15%; top: 28%; transform: rotate(17deg); }
.road-b { width: 30px; height: 120%; left: 58%; top: -10%; transform: rotate(10deg); }
.road-c { width: 110%; height: 22px; left: -5%; bottom: 23%; transform: rotate(-12deg); }
.pin { position: absolute; width: 38px; height: 38px; border-radius: 50% 50% 50% 0; background: var(--brand); color: white; display: grid; place-items: center; font-weight: 800; transform: rotate(-45deg); box-shadow: 0 6px 18px rgba(24,51,44,.2); }
.pin::after { content: attr(class); display: none; }
.pin-1 { left: 24%; top: 24%; }
.pin-2 { left: 62%; top: 48%; }
.pin-3 { left: 42%; bottom: 20%; }
.pin { line-height: 1; }
.pin::before { content: attr(data-label); transform: rotate(45deg); }
.pin-1::before { content: "1"; }
.pin-2::before { content: "2"; }
.pin-3::before { content: "3"; }
.map-label { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); border-radius: 10px; padding: 9px 11px; font-size: 12px; font-weight: 800; }
.map-note { color: var(--muted); font-size: 12px; line-height: 1.5; }

.how-it-works { padding: 72px 0; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.steps article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.steps article > span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
.steps h3 { margin: 18px 0 8px; }
.steps p { color: var(--muted); line-height: 1.55; margin: 0; }

.safety { margin-bottom: 64px; padding: 18px 20px; display: flex; gap: 10px; flex-wrap: wrap; border-radius: 14px; background: #fff4e8; border: 1px solid #f0d4ae; }
footer { border-top: 1px solid var(--line); background: white; }
.footer-wrap { min-height: 110px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }

.report-dialog { width: min(560px, calc(100% - 28px)); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 28px 100px rgba(24,51,44,.24); }
.report-dialog::backdrop { background: rgba(15,35,29,.45); backdrop-filter: blur(4px); }
.report-dialog form { padding: 24px; display: grid; gap: 18px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; }
.report-dialog fieldset { border: 0; padding: 0; margin: 0; }
.status-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.status-options label { margin: 0; }
.status-options input { position: absolute; opacity: 0; pointer-events: none; }
.status-options span { display: block; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 11px 8px; font-size: 13px; }
.status-options input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: #173d31; color: white; border-radius: 999px; padding: 12px 18px; font-weight: 700; font-size: 13px; opacity: 0; transition: .25s ease; z-index: 100; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 820px) {
  .hero, .content-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; gap: 26px; }
  .map-panel { position: static; }
  .map-art { min-height: 300px; }
  .steps { grid-template-columns: 1fr; }
  .results-header, .footer-wrap { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 1120px); }
  .nav-wrap { height: 64px; }
  .brand span:last-child { font-size: 14px; }
  .secondary-btn { padding: 9px 11px; font-size: 12px; }
  .hero { padding-top: 42px; }
  .hero-lead { font-size: 16px; }
  .search-card { padding: 18px; border-radius: 18px; }
  .search-row { grid-template-columns: 1fr; }
  .search-row .primary-btn { width: 100%; }
  .card-top { flex-direction: column; }
  .status-pill { align-self: flex-start; }
  .status-options { grid-template-columns: 1fr; }
  .results-section { padding-bottom: 48px; }
}

.honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.report-note{font-style:italic;margin:.35rem 0;color:#555}.opening{font-size:.9rem;color:#555}
button:disabled{opacity:.6;cursor:wait}


.support-box{margin:36px 0 28px;padding:22px 24px;border:1px solid #d9e3df;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px}
.support-box h2{font-size:1.35rem;margin:0 0 6px}
.support-box p{margin:0;color:#555;line-height:1.5}
#paypal-donate-button-container{flex:0 0 auto;min-height:47px;display:flex;align-items:center}
@media(max-width:650px){.support-box{align-items:flex-start;flex-direction:column}.support-box h2{font-size:1.2rem}}


/* Find a Puffer live map */
.map-wrap {
  margin: 22px 0 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
#map {
  width: 100%;
  height: 440px;
  min-height: 320px;
  background: #e9f1ed;
}
.map-wrap .caption { margin: 0; padding: 10px 14px; color: var(--muted); font-size: 12px; }
.leaflet-container { font: inherit; z-index: 1; }

/* HTML/CSS loading animation */
.pharmacy-loader {
  padding: 34px 20px 38px;
  text-align: center;
  color: var(--text);
}
.pharmacy-loader strong,
.pharmacy-loader > span { display: block; margin-top: 8px; }
.pharmacy-loader > span { color: var(--muted); font-size: 13px; }
.puffer-animation { width: 118px; height: 96px; margin: 0 auto 8px; position: relative; }
.puffer-body { position: absolute; left: 26px; bottom: 10px; animation: pufferBounce 1.15s ease-in-out infinite; }
.puffer-canister { width: 38px; height: 58px; background: #b8d9ee; border: 3px solid var(--text); border-radius: 8px 8px 12px 12px; }
.puffer-mouthpiece { position: absolute; width: 44px; height: 20px; left: 26px; bottom: 0; background: #b8d9ee; border: 3px solid var(--text); border-left: 0; border-radius: 0 8px 8px 0; }
.puff { position: absolute; width: 11px; height: 11px; background: #cfe8f4; border-radius: 50%; opacity: 0; }
.puff-1 { left: 83px; top: 58px; animation: puffAway 1.5s infinite; }
.puff-2 { left: 88px; top: 50px; animation: puffAway 1.5s .28s infinite; }
.puff-3 { left: 84px; top: 67px; animation: puffAway 1.5s .56s infinite; }
@keyframes pufferBounce { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-6px) rotate(2deg)} }
@keyframes puffAway { 0%{transform:translate(0,0) scale(.5);opacity:0} 20%{opacity:.95} 100%{transform:translate(38px,-13px) scale(1.8);opacity:0} }
@media (prefers-reduced-motion: reduce) { .puffer-body,.puff { animation: none !important; } .puff-1 { opacity:.55; } }
@media (max-width: 560px) { #map { height: 340px; min-height: 280px; } }
