/* Phones: the globe section, "Found all over." (find-map.css, find-map.js).
   Loaded after the other landing styles. Everything here is inside a
   phone-width media query, so wider screens keep find-map.css as it is.
   find-map.js places the heading and the globe in the room above the row of
   controls (layout), and moves the map only with two fingers on touch screens. */
@media (max-width:640px){
 /* The card reaches the bottom of the screen also when the browser's bars
    have folded away: 100svh is the height with them showing, which left a
    white band under the card on iPhones. find-map.js lays the globe out
    again when the height changes. */
 @supports (height:100dvh){
  .fm-stage{height:100dvh}
  /* The section grows with the stage, so the stretch of scroll where it stays
     pinned is the same length whatever the bars do: a map resting at the end
     of it isn't let go (leaving a band at the bottom) when the screen grows. */
  .find-map{height:calc(100dvh + 85svh + var(--nav-h,0px))}
 }

 /* One row of controls along the bottom of the card: the city chips, then
    the credits (i). With a mouse the zoom buttons end the row, side by side;
    on touch screens they go (pinch, a double tap and the chips do it). The
    finds count has no room beside the chips, so the World chip carries it
    ("30"), like the cities' counts. */
 .find-map{--fm-pad:10px;--fm-zoom-w:calc(2 * var(--fm-ctl));--fm-zoom-gap:8px}
 .fm-hud-bottom{left:calc(var(--fm-x1) + var(--fm-pad));right:calc(var(--fm-x1) + var(--fm-pad) + var(--fm-zoom-w) + var(--fm-zoom-gap) + 34px);bottom:calc(var(--fm-y1) + var(--fm-pad));
  justify-content:flex-start;flex-wrap:nowrap;gap:0}
 .fm-cities{flex:1 1 auto;max-width:none}
 .fm-info{display:none}
 .fm-chip{padding:0 12px}
 .fm-chip[data-go=world]{width:auto;padding:0 13px 0 11px;font-size:0;gap:5px}
 .fm-chip[data-go=world] .n{display:inline;font-size:13px}
 /* A longer fade at the edge that has more, so a chip running off it reads
    as "more this way" rather than a word cut off. */
 .fm-cities-track.fade-l{--fl:44px}
 .fm-cities-track.fade-r{--fr:52px}
 .fm-hud-side{right:calc(var(--fm-x1) + var(--fm-pad));top:auto;bottom:calc(var(--fm-y1) + var(--fm-pad));margin:0}
 .fm-zoom{flex-direction:row}
 .fm-zoom button+button{border-top:0;border-left:.5px solid rgb(0 0 0 / .12)}
 /* The (i) at the row's end, centred on it (it was squeezed into the card's
    top corner); opened, the credits card sits above it. A bigger target
    than the 24px button itself. */
 .find-map .fm-credits{top:auto;right:calc(var(--fm-x1) + var(--fm-pad) + var(--fm-zoom-w) + var(--fm-zoom-gap) + 2px);bottom:calc(var(--fm-y1) + var(--fm-pad) + var(--fm-ctl) / 2 - 12px)}
 .find-map .fm-credits .maplibregl-ctrl-attrib-button::after{content:"";position:absolute;inset:-10px}

 /* The finds on the globe: piles and cards a little bigger than on desktop,
    for fingers and for reading at arm's length. */
 .fm-stack-photos{width:30px;height:30px}
 .fm-stack-photos img{border-radius:6.5px}
 .fm-stack-photos::before{inset:-10px}
 .fm-stack-label{font-size:11px;padding:3px 7px}
 .fm-card{width:50px;margin:0 -2px;padding:3px;border-radius:8px}
 .fm-card img{border-radius:5px}
 .fm-card .tag{font-size:7.5px}
}
/* Touch screens: no zoom buttons on a phone. */
@media (max-width:640px) and (pointer:coarse){
 .find-map{--fm-zoom-w:0px;--fm-zoom-gap:0px}
 .fm-hud-side{display:none}
}
/* A tap leaves :hover behind on touch screens: no lifted card or fanned pile after it. */
@media (max-width:640px) and (hover:none){
 .fm-card:hover{z-index:auto;transform:translateY(var(--y)) rotate(var(--rot))}
 .fm-stack-photos:hover img:nth-child(1){transform:rotate(-9deg) translateX(-3px)}
 .fm-stack-photos:hover img:nth-child(2){transform:rotate(6deg) translateX(3px)}
 .fm-stack-photos.two:hover img:nth-child(2){transform:rotate(3deg)}
}
/* Short phones (iPhone SE and the like): a tighter subtitle, so the globe
   keeps the width of the card. */
@media (max-width:640px) and (max-height:720px){
 .landing-mode .find-map .fm-heading p{font-size:13.5px;line-height:1.42;margin-top:10px}
}
