
main { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.hero { min-height: 500px; display: grid; align-items: center; position: relative; padding: 70px 0 42px; }
.eagle { position: absolute; left: 4%; top: 14%; font-size: clamp(3.4rem, 7vw, 7rem); filter: drop-shadow(0 14px 20px rgba(0,0,0,.55)); animation: glide 8s ease-in-out infinite; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 950; }
h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.9rem); line-height: .94; letter-spacing: -.075em; text-shadow: 0 12px 45px rgba(0,0,0,.5); }
h1 span { color: var(--brand); }
.hero p { max-width: 600px; color: rgba(255,255,255,.9); font-size: 1.12rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.preview-grid { display: grid; grid-template-columns: .85fr 1.25fr .8fr; gap: 16px; align-items: start; }
.card { padding: 18px; }
.card h2 { margin: 0 0 8px; font-size: 1.06rem; }
.profile-main { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.avatar { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#486f4c,#9bd36f); color: #10220f; font-size: 2rem; font-weight: 950; border: 3px solid rgba(255,255,255,.55); }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.stat-grid div { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.stat-grid strong { display:block; color: var(--brand); font-size:1.35rem; }
.actions { display:grid; gap:8px; }
.actions button { display:grid; grid-template-columns:34px 1fr 18px; gap:10px; width:100%; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.08); color:#fff; border-radius:13px; padding:12px 14px; text-align:left; cursor:pointer; }
.actions button::after { content:"›"; color:var(--brand); font-weight:950; }
.map-preview { height: 480px; padding:0; overflow:hidden; }
.fake-map { height:100%; background: linear-gradient(135deg, rgba(122,201,67,.28), rgba(20,80,67,.6)), url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1300&q=80") center/cover; position:relative; }
.pin { position:absolute; width:18px; height:18px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 8px rgba(122,201,67,.22); }
.pin.one { left:30%; top:35%; } .pin.two { left:64%; top:50%; } .pin.three { left:50%; top:68%; }
.list { display:grid; gap:10px; }
.item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.item strong { display:block; }
.item span { color:var(--muted); font-size:.86rem; }
.gives { margin: 18px 0 28px; padding: 22px; }
.impact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:16px; }
.impact-grid div { background:rgba(255,255,255,.08); border:1px solid var(--line); border-radius:16px; padding:14px; }
@keyframes glide { 0%,100%{transform:translate3d(0,0,0) rotate(-4deg)} 50%{transform:translate3d(22px,-12px,0) rotate(3deg)} }
@media (max-width: 1020px) { .preview-grid { grid-template-columns:1fr; } .map-preview{height:420px;} }
@media (max-width: 560px) {
  h1 { font-size: clamp(3rem, 15vw, 4.35rem); line-height:1.03; }
  .stat-grid,.impact-grid{grid-template-columns:1fr;}
  .hero-actions{flex-direction:column;}
  .btn{width:100%;}
}

.map-preview {
  min-height: 480px;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.map-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(5,22,18,.72);
}
.map-headline span {
  color: var(--brand);
  font-weight: 900;
}
#home-map {
  height: 430px;
  width: 100%;
  filter: saturate(.8) brightness(.86);
}
.map-fallback {
  height: 430px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(122,201,67,.22), rgba(20,80,67,.72)), url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1300&q=80") center/cover;
}
.leaflet-container {
  background: #17352f;
}
@media (max-width: 1020px) {
  #home-map, .map-fallback { height: 420px; }
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(5,22,18,.66);
  border-bottom: 1px solid var(--line);
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 850;
}
.marker-dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
.marker-dot.my { background: #7ac943; }
.marker-dot.public { background: #2f80ed; }
.marker-dot.community { background: #56ccf2; }
.marker-dot.rare { background: #f2c94c; }
.marker-dot.group { background: #7ac943; }
.marker-dot.alert { background: #eb5757; }
.map-legend-full {
  border-top: 1px solid var(--line);
}
.custom-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 0 0 6px rgba(122,201,67,.18), 0 8px 18px rgba(0,0,0,.38);
}
.custom-pin.my { background: #7ac943; }
.custom-pin.public { background: #2f80ed; }
.custom-pin.community { background: #56ccf2; }
.custom-pin.rare { background: #f2c94c; }
.custom-pin.group { background: #bb6bd9; }
.custom-pin.alert { background: #eb5757; }
@media (max-width: 560px) {
  .map-legend { gap: 6px; padding: 8px; }
  .map-legend span { font-size: .72rem; padding: 6px 8px; }
}

/* Mobile + real map fixes */
.fake-map { display: none !important; }
.map-preview {
  min-height: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#home-map {
  height: 430px;
  width: 100%;
  filter: saturate(.82) brightness(.88);
  background: #17352f;
}
.map-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(5,22,18,.72);
}
.map-headline span { color: var(--brand); font-weight: 900; }
.leaflet-container { background: #17352f; }
@media (max-width: 560px) {
  main { width: min(100% - 22px, 1280px); }
  .hero { min-height: 460px; padding: 46px 0 30px; }
  .eagle { font-size: 3.7rem; left: 8%; top: 16%; }
  .eyebrow { font-size: .68rem; line-height: 1.45; letter-spacing: .1em; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.45rem); line-height: 1.05; letter-spacing: -.06em; }
  .hero p { font-size: .98rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .profile-main { align-items: flex-start; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .actions button {
    grid-template-columns: 30px 1fr 18px;
    align-items: center;
    min-height: 56px;
    padding: 10px 12px;
  }
  .actions button br { display: none; }
  #home-map { height: 360px; }
}

/* Guest mode mobile polish */
@media (max-width: 560px) {
  .actions button {
    display: grid;
    grid-template-columns: 34px 1fr 18px !important;
    align-items: center !important;
    min-height: 58px;
    text-align: left;
  }
  .actions button::after {
    align-self: center;
    justify-self: end;
  }
}

/* Auth modal close control: never inherit the full-width mobile .btn rule. */
#auth-modal .auth-close {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 36px !important;
  justify-self: end;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: rgba(255,255,255,.92) !important;
  box-shadow: none !important;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
#auth-modal .auth-close:hover,
#auth-modal .auth-close:focus-visible {
  background: rgba(255,255,255,.10) !important;
  outline: 2px solid rgba(151,213,106,.75);
  outline-offset: 2px;
}
@media (max-width: 560px) {
  #auth-modal .auth-close {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex-basis: 34px !important;
    font-size: 1.05rem;
  }
}

/* Live Android and iOS store links — July 22, 2026 */
.app-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 24px;
  padding: 22px 24px;
}
.app-download-copy { max-width: 650px; }
.app-download-copy h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.app-download-copy p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }
.store-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.store-button {
  min-width: 188px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: #050807;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.store-button:hover,
.store-button:focus-visible { transform: translateY(-2px); border-color: rgba(151,213,106,.8); background: #0d120f; }
.store-button:focus-visible { outline: 2px solid rgba(151,213,106,.85); outline-offset: 3px; }
.store-button span:last-child { display: grid; line-height: 1.05; }
.store-button small { font-size: .62rem; letter-spacing: .08em; }
.store-button strong { margin-top: 3px; font-size: 1.18rem; }
.store-icon { width: 29px; height: 29px; display: grid; place-items: center; color: var(--brand); font-size: 1.25rem; }
.store-icon.apple { font-size: 1.55rem; }
@media (max-width: 820px) {
  .app-download { align-items: flex-start; flex-direction: column; }
  .store-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .app-download { padding: 19px; }
  .store-actions { display: grid; grid-template-columns: 1fr; }
  .store-button { width: 100%; min-width: 0; }
}

/* V25 live map modes */
.home-map-tabs{display:flex;gap:8px;overflow-x:auto;padding:10px 12px;background:rgba(5,22,18,.82);border-bottom:1px solid var(--line);scrollbar-width:none}.home-map-tabs::-webkit-scrollbar{display:none}.home-map-tab{flex:0 0 auto;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:rgba(255,255,255,.78);border-radius:999px;padding:8px 11px;font:800 .76rem/1 system-ui;cursor:pointer}.home-map-tab.active{background:var(--brand);border-color:var(--brand);color:#07110e}.home-map-note{padding:8px 12px;background:rgba(5,22,18,.9);border-bottom:1px solid var(--line);color:rgba(255,255,255,.72);font-size:.76rem;line-height:1.4}.home-live-marker{--pin:#56ccf2;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--pin);border:2px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.38);font:800 14px/1 sans-serif;color:#07110e}@media(max-width:560px){.home-map-tab{font-size:.7rem;padding:8px 9px}.home-map-note{font-size:.72rem}}

/* V28 map overlay controls */
.home-map-overlays{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;background:rgba(5,22,18,.88);border-bottom:1px solid var(--line)}.home-map-overlays-label{font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.5)}.home-map-overlay{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:rgba(255,255,255,.78);border-radius:999px;padding:7px 10px;font:800 .72rem/1 system-ui;cursor:pointer}.home-map-overlay.active{border-color:rgba(122,201,67,.55);background:rgba(122,201,67,.15);color:#eaffdf}.home-map-overlay span{display:inline-block;min-width:12px}.home-map-alert-note{font-size:.68rem;color:rgba(255,255,255,.55)}@media(max-width:560px){.home-map-overlays{gap:6px}.home-map-alert-note{width:100%}}


/* V29 map usability: taller mobile map, reliable protected-area visibility,
   and explicit full-screen expand/close controls. */
#home-map{
  height:560px;
}
.map-headline-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.home-map-expand,.home-map-close{
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
  color:#fff;
  display:grid;
  place-items:center;
  font:800 1.2rem/1 system-ui;
  cursor:pointer;
}
.home-map-close{display:none;font-size:1.65rem}
.home-map-expand:hover,.home-map-close:hover{background:rgba(122,201,67,.16);border-color:rgba(122,201,67,.5)}
.marker-dot.protected{background:#d64545}
.home-map-overlay.source-error{border-color:rgba(255,184,0,.5);color:#ffd76a}

.map-preview.is-map-expanded{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  margin:0!important;
  border-radius:0!important;
  z-index:10000!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  background:#04130f!important;
}
.map-preview.is-map-expanded #home-map{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
}
.map-preview.is-map-expanded .home-map-expand{display:none}
.map-preview.is-map-expanded .home-map-close{display:grid}
body.map-expanded-open{overflow:hidden!important}

@media(max-width:820px){
  #home-map{height:520px}
}
@media(max-width:560px){
  #home-map{height:540px!important}
  .map-headline{padding:12px}
  .map-headline-actions{gap:7px}
  .map-headline-actions #home-map-status{font-size:.9rem}
  .home-map-expand,.home-map-close{width:36px;height:36px}
  .map-preview.is-map-expanded .map-headline,
  .map-preview.is-map-expanded .home-map-tabs,
  .map-preview.is-map-expanded .home-map-overlays,
  .map-preview.is-map-expanded .map-legend,
  .map-preview.is-map-expanded .home-map-note{
    flex:0 0 auto;
  }
}


/* V30 map expansion reliability — controls remain visible and close is always reachable. */
.home-map-floating-close{
  display:none;
  position:fixed;
  top:max(12px, env(safe-area-inset-top));
  right:12px;
  z-index:10060;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(3,18,14,.92);
  color:#fff;
  place-items:center;
  font:800 1.8rem/1 system-ui;
  box-shadow:0 8px 26px rgba(0,0,0,.45);
  cursor:pointer;
}
.map-preview.is-map-expanded .home-map-floating-close{display:grid!important}
.map-preview.is-map-expanded .map-headline{
  position:relative;
  z-index:10030;
  padding-right:62px;
  background:#071c17;
}
.map-preview.is-map-expanded .home-map-tabs,
.map-preview.is-map-expanded .home-map-overlays,
.map-preview.is-map-expanded .map-legend,
.map-preview.is-map-expanded .home-map-note{
  position:relative;
  z-index:10025;
  background:#071c17;
}
.map-preview.is-map-expanded .home-map-tabs,
.map-preview.is-map-expanded .map-legend{
  flex-wrap:nowrap;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.map-preview.is-map-expanded .home-map-tabs::-webkit-scrollbar,
.map-preview.is-map-expanded .map-legend::-webkit-scrollbar{display:none}
.map-preview.is-map-expanded .home-map-note{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.map-preview.is-map-expanded #home-map{
  width:100%!important;
  flex:1 1 0!important;
  min-height:240px!important;
}
.home-map-expand[aria-hidden="true"],
.home-map-close[aria-hidden="true"],
.home-map-floating-close[aria-hidden="true"]{display:none!important}
.map-preview.is-map-expanded .home-map-close[aria-hidden="false"]{display:grid!important}
.map-preview.is-map-expanded .home-map-floating-close[aria-hidden="false"]{display:grid!important}
@media(max-width:560px){
  #home-map{height:560px!important}
  .map-preview.is-map-expanded{height:100dvh!important;min-height:100dvh!important}
  .map-preview.is-map-expanded .map-headline{padding:10px 62px 10px 12px}
  .map-preview.is-map-expanded .home-map-tabs{padding:8px 10px}
  .map-preview.is-map-expanded .home-map-overlays{padding:7px 10px;flex-wrap:nowrap;overflow-x:auto}
  .map-preview.is-map-expanded .home-map-alert-note{width:auto;flex:0 0 auto;white-space:nowrap}
  .map-preview.is-map-expanded .map-legend{padding:7px 10px}
  .map-preview.is-map-expanded .home-map-note{padding:7px 10px;font-size:.7rem}
}


/* V31 persistent map-size control. This controls the normal embedded map height;\n   it is separate from full-screen mode so users can always shrink the taller map. */\n.map-preview{position:relative}\n.home-map-size-toggle{\n  position:absolute;\n  right:14px;\n  bottom:14px;\n  z-index:1200;\n  display:flex;\n  align-items:center;\n  gap:6px;\n  min-height:38px;\n  padding:8px 11px;\n  border-radius:999px;\n  border:1px solid rgba(255,255,255,.32);\n  background:rgba(3,18,14,.92);\n  color:#fff;\n  font:800 .72rem/1 system-ui;\n  box-shadow:0 6px 22px rgba(0,0,0,.42);\n  cursor:pointer;\n  backdrop-filter:blur(8px);\n}\n.home-map-size-toggle>span:first-child{\n  width:20px;height:20px;border-radius:50%;display:grid;place-items:center;\n  background:rgba(122,201,67,.22);color:#bdf58f;font-size:1.05rem;line-height:1;\n}\n.home-map-size-toggle:active{transform:scale(.98)}\n.map-preview.is-map-compact #home-map{height:360px!important;min-height:360px!important;flex:none!important}\n.map-preview.is-map-expanded .home-map-size-toggle{display:none!important}\n@media(max-width:560px){\n  .map-preview.is-map-compact #home-map{height:340px!important;min-height:340px!important}\n  .home-map-size-toggle{right:10px;bottom:10px;min-height:36px;padding:7px 10px;font-size:.68rem}\n}\n

/* V32 map interaction cleanup: one explicit expand control and one close control.
   Interacting with Leaflet never changes the homepage layout. */
.home-map-floating-close,
.home-map-size-toggle{display:none!important}
.map-preview:not(.is-map-expanded) .home-map-close{display:none!important}
.map-preview:not(.is-map-expanded) .home-map-expand{display:grid!important}
.map-preview.is-map-expanded .home-map-expand{display:none!important}
.map-preview.is-map-expanded .home-map-close{
  display:grid!important;
  position:relative!important;
  top:auto!important;
  right:auto!important;
  z-index:10070!important;
}
/* Keep a useful embedded height without a second size state. */
#home-map{height:520px!important;min-height:520px!important}
.map-preview.is-map-expanded #home-map{height:auto!important;min-height:240px!important;flex:1 1 0!important}
@media(max-width:560px){
  #home-map{height:460px!important;min-height:460px!important}
  .map-preview.is-map-expanded #home-map{height:auto!important;min-height:220px!important}
  .map-preview.is-map-expanded .map-headline{padding-right:12px!important}
}


/* V33 MOBILE MAP STABILITY FIX
   The normal homepage map is an auto-height card. Older responsive rules left
   .map-preview at a fixed height while #home-map was made taller, so Chrome on
   Android could visually clip the header/tabs until Leaflet received focus.
   Only .is-map-expanded is allowed to become full-screen. */
.map-preview:not(.is-map-expanded){
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
  display:block!important;
}
.map-preview:not(.is-map-expanded) .map-headline{
  display:flex!important;
  position:relative!important;
  visibility:visible!important;
}
.map-preview:not(.is-map-expanded) .home-map-tabs{
  display:flex!important;
  position:relative!important;
  visibility:visible!important;
}
.map-preview:not(.is-map-expanded) .home-map-overlays{
  display:flex!important;
  position:relative!important;
  visibility:visible!important;
}
.map-preview:not(.is-map-expanded) .map-legend{
  display:flex!important;
  position:relative!important;
  visibility:visible!important;
}
.map-preview:not(.is-map-expanded) .home-map-note{
  display:block!important;
  position:relative!important;
  visibility:visible!important;
}
.map-preview:not(.is-map-expanded) #home-map{
  height:520px!important;
  min-height:520px!important;
  width:100%!important;
  flex:none!important;
  position:relative!important;
}
@media(max-width:560px){
  .map-preview:not(.is-map-expanded) #home-map{
    height:460px!important;
    min-height:460px!important;
  }
}

/* V41 map filter separation */
.marker-dot.migration{background:#56ccf2;box-shadow:0 0 0 3px rgba(86,204,242,.16)}
