/* Atlantic Dreamscapes job map: a full-width map of Brevard County with the heading, project-type
   filters and town counts on a white card over the ocean side. Colors from the town-page template
   (ink #1e1c1b, forest #255748, mint #99eac1). Ported from the CHS Restore job map. */
.ad-jobmap{--jm-ink:#1e1c1b;--jm-body:#3f3d3a;--jm-forest:#255748;--jm-mint:#99eac1;--jm-paper:#f1efe9;
  position:relative;background:var(--jm-paper);color:var(--jm-body);font-family:Poppins,sans-serif;font-size:16px;line-height:1.6;
  min-height:clamp(620px,84vh,800px)}
.ad-jobmap *{box-sizing:border-box}
.ad-jobmap .ad-jobmap__stage{position:relative;min-height:inherit;padding:clamp(2.5rem,5vw,4rem) 0;display:flow-root}
.ad-jobmap .ad-jobmap__map.ad-jobmap__map{position:absolute;inset:0;background:var(--jm-paper)}
.ad-jobmap:not(.is-ready) .ad-jobmap .ad-jobmap__map{background:radial-gradient(ellipse 30% 50% at 62% 48%,rgba(37,87,72,.14),rgba(37,87,72,0) 70%),var(--jm-paper)}
.ad-jobmap .ad-jobmap__panel{position:relative;z-index:2;width:min(27.5rem,calc(100% - 64px));margin:0 0 0 max(32px,calc((100% - 1280px) / 2 + 32px));
  padding:clamp(1.75rem,2.6vw,2.25rem);background:#fff;border-radius:10px;box-shadow:0 20px 50px rgba(30,28,27,.18)}
.ad-jobmap .ad-jobmap__h{margin:0;font-family:"DM Serif Display",sans-serif;font-size:clamp(1.875rem,1.4rem + 1.3vw,2.625rem);line-height:1.12;font-weight:400;color:var(--jm-ink);letter-spacing:0;text-transform:none}
.ad-jobmap .ad-jobmap__lede{margin:.75rem 0 0;font-size:1.0625rem;line-height:1.55;color:var(--jm-body)}
.ad-jobmap .ad-jobmap__filters{display:flex;flex-wrap:wrap;gap:6px;margin-top:1.4rem}
.ad-jobmap .ad-jobmap__chip{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.5rem .85rem;border:1px solid rgba(30,28,27,.55);border-radius:999px;
  background:#fff;color:var(--jm-ink);font:inherit;font-size:.9375rem;font-weight:500;line-height:1.2;cursor:pointer;transition:background-color .15s,border-color .15s;text-transform:none;letter-spacing:0;box-shadow:none}
.ad-jobmap .ad-jobmap__chip b{font-weight:600;font-variant-numeric:tabular-nums}
.ad-jobmap .ad-jobmap__chip:hover{background:#e6efe9}
.ad-jobmap .ad-jobmap__chip[aria-pressed="true"]{background:var(--jm-forest);border-color:var(--jm-forest);color:#fff}
.ad-jobmap .ad-jobmap__chip:focus-visible,.ad-jobmap .ad-jobmap__row:focus-visible{outline:3px solid var(--jm-forest);outline-offset:2px}
.ad-jobmap .ad-jobmap__towns-h{margin:1.6rem 0 0;font-size:1rem;font-weight:600;color:var(--jm-ink)}
.ad-jobmap .ad-jobmap__towns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,auto);grid-auto-flow:column;column-gap:1.25rem;margin:.4rem 0 0;padding:0;list-style:none}
.ad-jobmap .ad-jobmap__towns li{display:flex;min-width:0;border-top:1px solid rgba(30,28,27,.14);margin:0;padding:0}
.ad-jobmap .ad-jobmap__row{display:flex;align-items:center;gap:.5rem;width:100%;min-height:44px;color:var(--jm-ink);text-decoration:none}
.ad-jobmap .ad-jobmap__row[aria-current]{font-weight:600}
.ad-jobmap .ad-jobmap__town{flex:1;min-width:0;line-height:1.3;padding:.35rem 0}
.ad-jobmap .ad-jobmap__towns b{font-weight:600;font-variant-numeric:tabular-nums;color:var(--jm-ink)}
.ad-jobmap .ad-jobmap__go{flex:none;width:.5rem;height:.5rem;margin-left:.1rem;border-top:2px solid var(--jm-forest);border-right:2px solid var(--jm-forest);transform:rotate(45deg)}
.ad-jobmap .ad-jobmap__go--none{visibility:hidden}
a.ad-jobmap__row:hover .ad-jobmap .ad-jobmap__town{text-decoration:underline;text-decoration-color:var(--jm-forest);text-decoration-thickness:2px;text-underline-offset:4px}
.ad-jobmap .ad-jobmap__note{margin:.9rem 0 0;font-size:.9375rem;color:#5a5754}
.ad-jobmap .maplibregl-ctrl-group{border-radius:8px;box-shadow:0 6px 18px rgba(30,28,27,.18)}
.ad-jobmap .maplibregl-ctrl-group button{width:44px;height:44px}
.ad-jobmap .maplibregl-ctrl-attrib{font-size:.75rem;line-height:1.4;padding:2px 6px;background:rgba(255,255,255,.85)}
.ad-jobmap .maplibregl-ctrl-attrib a{color:#3f3d3a;text-decoration:none}
.ad-jobmap .maplibregl-ctrl-group button{padding:0;margin:0;border-radius:0;background-color:#fff;text-transform:none;min-height:0}
.ad-jobmap .maplibregl-popup-content{padding:.9rem 1rem;border-radius:8px;font-family:Poppins,sans-serif;box-shadow:0 14px 36px rgba(30,28,27,.22)}
.ad-jobmap .maplibregl-popup-close-button{width:40px;height:40px;font-size:1.4rem;color:#5a5754}
.ad-jm-pop p{margin:0}
.ad-jm-pop__what{padding-right:1.75rem;font-weight:600;font-size:1.0625rem;line-height:1.25;color:var(--jm-ink)}
.ad-jm-pop__where{margin-top:.25rem!important;font-size:.9375rem;color:#5a5754}
.ad-jobmap.is-failed .ad-jobmap .ad-jobmap__map{display:none}
@media (max-width:900px){
  .ad-jobmap{min-height:0;padding:clamp(2.5rem,8vw,4rem) 0}
  .ad-jobmap .ad-jobmap__stage{display:flex;flex-direction:column;padding:0}
  .ad-jobmap .ad-jobmap__panel{display:contents}
  .ad-jobmap .ad-jobmap__panel>*{width:calc(100% - 40px);max-width:40rem;margin-left:auto;margin-right:auto}
  .ad-jobmap .ad-jobmap__h{order:1}.ad-jobmap .ad-jobmap__lede{order:2}.ad-jobmap .ad-jobmap__filters{order:3}
  .ad-jobmap .ad-jobmap__map.ad-jobmap__map{order:4;position:relative;inset:auto;height:clamp(380px,60vh,520px);margin-top:1.25rem}
  .ad-jobmap .ad-jobmap__towns-h{order:5}.ad-jobmap .ad-jobmap__towns{order:6}.ad-jobmap .ad-jobmap__note{order:7}
}
