/* The landing atlas: a flat world of coastlines with musical-note pins stuck in it, hover cards,
   and a search box. Its own look, tuned to the wireframe logo (thin luminous lines on near-black);
   it does not reuse the in-flight .place / .card styles. Colours come from index.html's tokens. */

#start.atlas-start{display:flex;flex-direction:column;padding:0;min-height:100vh;min-height:100dvh;overflow-y:auto}
#atlas-hero{position:relative;width:100%;flex:1 1 auto;min-height:22rem;overflow:hidden}
#atlas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:grab}
#atlas.grabbing{cursor:grabbing}

/* the search bar over the map (top-right on desktop); the logo is centred on the globe, positioned by JS */
.atlas-top{position:absolute;left:0;right:0;top:0;z-index:2;display:flex;gap:1rem;align-items:flex-start;
  justify-content:flex-end;padding:calc(1rem + env(safe-area-inset-top,0px)) 1.1rem 1rem;pointer-events:none;
  background:linear-gradient(180deg,rgba(5,8,12,.7),transparent)}
.atlas-top > *{pointer-events:auto}
/* the SoundScapes wordmark sits on the globe's horizon; left/top/width are set in atlas.js (sizeLogo) so the
   letters span the globe's diameter. It never eats pointer events (the globe drags/hovers through it). */
.atlas-logo{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);z-index:1;width:60vw;height:auto;
  pointer-events:none;filter:drop-shadow(0 6px 26px rgba(0,0,0,.55))}
.atlas-search{position:relative;flex:0 1 26rem;display:flex;gap:.4rem}
.atlas-search input{flex:1;min-width:0;font:inherit;font-size:.92rem;color:var(--text);
  background:rgba(10,16,22,.9);border:1px solid var(--edge-lit);border-radius:8px;padding:.6rem .8rem}
.atlas-search input::placeholder{color:var(--muted)}
.atlas-search input:focus{outline:2px solid var(--gold);outline-offset:1px}
.atlas-search button{font:inherit;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:#0a0e13;
  background:var(--gold);border:0;border-radius:8px;padding:0 1rem;cursor:pointer;font-weight:600}
/* Explore is the second way in -- the globe picker, not a search -- so it reads as secondary: a ghost
   button beside the gold Go, same size and shape but outlined, not filled */
.atlas-search .atlas-explore{background:transparent;color:var(--gold);border:1px solid var(--gold-d)}
.atlas-search .atlas-explore:hover{background:rgba(240,178,74,.12)}

.atlas-hint{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:1rem 1.1rem calc(1rem + env(safe-area-inset-bottom,0px));
  font-family:var(--mono);font-size:.62rem;letter-spacing:.05em;color:var(--muted);text-align:center;pointer-events:none;
  background:linear-gradient(0deg,rgba(5,8,12,.7),transparent)}
.atlas-hint b{color:var(--text);font-weight:600}

/* the hover / tap card — the note's own little placard */
#atlas-card{position:absolute;z-index:3;width:16.5rem;max-width:calc(100vw - 1.5rem);padding:.9rem 1rem 1rem;
  pointer-events:none;transform:translate(-50%,calc(-100% - 1.1rem));
  background:linear-gradient(180deg,rgba(12,19,26,.97),rgba(8,12,17,.97));
  border:1px solid var(--edge-lit);border-radius:10px;box-shadow:0 16px 44px rgba(0,0,0,.6);
  opacity:0;transition:opacity .14s}
#atlas-card:not([hidden]){opacity:1}
#atlas-card.pinned{pointer-events:auto}
#atlas-card::after{content:"";position:absolute;left:50%;bottom:-7px;width:12px;height:12px;
  transform:translateX(-50%) rotate(45deg);background:rgba(8,12,17,.97);
  border-right:1px solid var(--edge-lit);border-bottom:1px solid var(--edge-lit)}
#atlas-card.below{transform:translate(-50%,1.1rem)}
#atlas-card.below::after{top:-7px;bottom:auto;border:0;border-left:1px solid var(--edge-lit);border-top:1px solid var(--edge-lit);
  background:linear-gradient(135deg,rgba(12,19,26,.97),rgba(12,19,26,.97))}
.ac-kind{font-family:var(--mono);font-size:.56rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.ac-kind.example{color:var(--ice)}
.ac-label{font-family:var(--display);font-weight:700;font-size:1.08rem;line-height:1.2;margin-top:.15rem;color:var(--text)}
.ac-place{font-family:var(--mono);font-size:.62rem;letter-spacing:.06em;color:var(--muted);margin-top:.1rem}
.ac-stats{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.7rem}
.ac-stat{flex:1 1 auto;min-width:3.4rem;padding:.35rem .45rem;border:1px solid var(--edge);border-radius:6px;
  background:rgba(255,255,255,.02)}
.ac-stat b{display:block;font-variant-numeric:tabular-nums;font-size:.9rem;color:var(--text)}
.ac-stat span{font-family:var(--mono);font-size:.5rem;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
.ac-cta{margin-top:.7rem;font-family:var(--mono);font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}

/* the fold-down list: keyboard, screen readers, and anyone who just wants names */
#place-list{padding:0}
#place-list > summary{font-family:var(--mono);font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);cursor:pointer;list-style:none;padding:.5rem 0}
#place-list > summary::-webkit-details-marker{display:none}
#place-list > summary::before{content:"▸ ";color:var(--faint)}
#place-list[open] > summary::before{content:"▾ "}
.pl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(13rem,1fr));gap:.5rem;padding:.4rem 0 .6rem}
.pl-item{display:flex;flex-direction:column;gap:.15rem;text-align:left;cursor:pointer;font:inherit;
  background:var(--surface);border:1px solid var(--edge);border-radius:6px;padding:.6rem .75rem;color:var(--text);
  transition:border-color .15s,background .15s;position:relative}
.pl-item:hover,.pl-item:focus-visible{border-color:var(--edge-lit);background:#111b24;outline:none}
.pl-item.own{border-color:var(--gold-d)}
.pl-item i{font-style:normal;font-family:var(--mono);font-size:.56rem;letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.pl-item.own i{color:var(--gold)}
.pl-item b{font-family:var(--display);font-weight:700;font-size:.98rem}
.pl-item span{font-family:var(--mono);font-size:.6rem;color:var(--muted)}
.pl-forget{position:absolute;top:.3rem;right:.35rem;border:0;background:transparent;color:var(--faint);
  font-size:1rem;line-height:1;cursor:pointer;padding:.1rem .25rem}
.pl-forget:hover{color:var(--text)}
.pl-choose{border-style:dashed}

/* the foot: just the All-places fold-down and an About button, centred */
.atlas-foot{flex:0 0 auto;display:flex;gap:1.6rem;justify-content:center;align-items:flex-start;flex-wrap:wrap;
  width:min(100%,60rem);margin:1.1rem auto 1.4rem;padding:0 1.1rem}
.atlas-foot-btn{font-family:var(--mono);font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);background:transparent;border:0;cursor:pointer;padding:.5rem 0}
.atlas-foot-btn::before{content:"\24d8  ";color:var(--faint)}
.atlas-foot-btn:hover{color:var(--text)}
#place-list > summary{padding:.5rem 0}

/* the About popup */
.atlas-pop{position:fixed;inset:0;z-index:9;display:flex;align-items:center;justify-content:center;
  padding:1rem;background:rgba(5,8,12,.72);backdrop-filter:blur(3px)}
.atlas-pop[hidden]{display:none}
.atlas-pop-card{position:relative;width:min(34rem,100%);max-height:calc(100dvh - 3rem);overflow-y:auto;
  padding:1.4rem 1.5rem;background:rgba(8,13,19,.98);border:1px solid var(--edge-lit);border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.6)}
.atlas-pop-card h3{font-family:var(--display);font-weight:700;font-size:1.15rem;color:var(--text)}
.atlas-pop-card p{margin-top:.7rem;font-size:.86rem;line-height:1.6;color:#c3cad4}
.atlas-pop-card p.note{font-family:var(--mono);font-size:.66rem;line-height:1.7;color:var(--muted);max-width:none;margin:1rem 0 0;padding:0}
.atlas-pop-card p.note a{color:var(--text)}
.atlas-pop-x{position:absolute;top:.6rem;right:.7rem;width:1.9rem;height:1.9rem;border:0;border-radius:50%;
  background:rgba(255,255,255,.06);color:var(--muted);font-size:1.3rem;line-height:1;cursor:pointer}
.atlas-pop-x:hover{color:var(--text);background:rgba(255,255,255,.12)}

@media (max-width:560px){
  /* phone: the wordmark stays centred on the globe (sized by JS); the way IN -- search + Go + Explore --
     drops to the FOOT of the globe where a thumb reaches it, with the tagline just above it. */
  .atlas-top{top:auto;bottom:0;background:linear-gradient(0deg,rgba(5,8,12,.75),transparent);
    padding:1rem 1.1rem calc(1rem + env(safe-area-inset-bottom,0px))}
  .atlas-search{flex-basis:100%;width:100%}
  .atlas-hint{top:auto;bottom:calc(4.6rem + env(safe-area-inset-bottom,0px));background:none;padding:.2rem 1.1rem}
}
@media (prefers-reduced-motion:reduce){ #atlas-card{transition:none} }
