/* Pluck'd CRM theme: map.css
   The map page chrome: top bar (#top, #tabs), legend, map buttons. Never style map shapes (#map path, #g-*): they are drawn by the thousand.

   Astra (design) edits this file; Claude reviews every change (docs/ASTRA_DESIGN_HANDOFF.md).
   Loaded after every add-on, so rules here win over the add-on defaults at the same specificity.
   Use the tokens (var(--accent) ...), scope every rule under the screen root, no url() to other sites, no @import. */

/* Warm look, stage 1 (9 Nov 2026): the open tab is marked by an accent bar as well as its fill (never colour alone). */
#tabs button.on{box-shadow:inset 0 -2px 0 var(--accent)}

/* ---------- More map space (Ben, 19 Nov 2026: "This is all about maxing out the available map space")
   The legend is a small chip that opens as a compact list; the zoom and state buttons are one slim row at the top
   right; the bar under the map is one row. Sizes come down only where a mouse is used: touch screens keep 44 px. */
/* Find parcels is the first thing in its column now (the Strategy cards button is gone): no rule above it */
body #v-map #maptools>.box:first-child>details:first-child{border-top:0;padding-top:0}
#legendbox{right:6px;bottom:24px;width:max-content;max-width:min(250px,calc(100% - 12px));max-height:calc(100% - 76px)}
#legendbox:not(.shut){width:min(250px,calc(100% - 12px))}
#legendbox .legtog{gap:8px;font-size:12px}
@media (pointer:fine){#legendbox .legtog{padding:4px 9px;min-height:0;line-height:1.5}}
@media (pointer:coarse){#legendbox .legtog{min-height:44px}}
/* on a phone the Find new site mode and Compare parcels buttons stand over the top of the Find parcels column: the
   column's heading starts under them */
@media (max-width:700px){body:not(.pf-on) #v-map #maptools>.box:first-child>details:first-child{margin-top:46px}}
/* on a phone the Find parcels column lies over the map: the Legend chip and its list stay in front of it */
@media (max-width:700px){#legendbox{z-index:3}}
#legendbody{padding:0 9px 8px;font-size:11.5px}
#legendbody h4{margin:7px 0 3px;font-size:10.5px}
#legendbody .lg-row{grid-template-columns:22px 1fr;gap:5px;padding:1px 0;line-height:1.25}
#legendbody .lg-row small{font-size:10.5px}
@media (pointer:fine) and (min-width:701px){
 body #v-map>#mapwrap #mapctl{flex-direction:row;align-items:center;gap:4px;top:4px;right:6px}
 body #v-map>#mapwrap #mapctl button,body #v-map>#mapwrap #mapctl select{width:auto;min-width:28px;height:28px;min-height:28px;padding:0 6px;font-size:14px}
 body #v-map>#mapwrap #mapctl select{max-width:66px;padding:0 2px 0 6px;font-size:11.5px}
 body #v-map>#mapwrap #mapctl button.msc{min-width:28px}
 body #v-map>#mapfoot{flex-wrap:nowrap;margin-top:6px;padding-top:3px;padding-bottom:3px}
 body #v-map>#mapfoot button{min-height:28px;padding-top:2px;padding-bottom:2px}
 body #v-map>#mapfoot #multi{flex:0 0 auto;flex-wrap:nowrap;white-space:nowrap}
 body #v-map>#mapfoot #foot-note{flex:0 1 330px;min-width:0;margin-left:auto;font-size:11px;line-height:1.25;text-align:right;text-wrap:balance}
 body #fb-dock{bottom:max(7px,env(safe-area-inset-bottom,0px))}
 body #fb-dock button{padding:3px 11px;font-size:12px;min-height:28px}
}
/* where the bar is too narrow for the hint beside the buttons (a smaller window, or the record open beside the map) it
   is left out: it is in the Tap to select tooltip, and no second line is added. Measured on the bar itself. */
#v-map>#mapfoot{container-type:inline-size;container-name:mapfoot}
@media (pointer:fine) and (min-width:701px){@container mapfoot (max-width:880px){#foot-note{display:none}}}
