/* Illustrated switches for exploring the globe by season and clothing. */
#weather-map {
  --sky-cream:#fff5dd;--sky-clear:#eaf4ff;
  --map-strip:#e5eff6;--isobar:#749fbb;--compass-rim:#b6cbd1;
}
#weather-map[data-period=typical] {
  --sky-cream:#fff0d5;--sky-clear:#f1f0fd;--map-strip:#eaeaf4;--isobar:#9185ac;
}
.explore-controls {
  container-type:inline-size;display:flex;flex-wrap:wrap;align-items:center;gap:.65rem 1rem;
  padding:.7rem clamp(.65rem,1.1vw,1.25rem);
  background:radial-gradient(ellipse at 4% 0%,var(--sky-cream),transparent 53%),
    linear-gradient(105deg,var(--surface),var(--sky-clear));
}
.explore-controls .season-control{display:contents}
.explore-controls .season-top{order:0;min-width:0;gap:.62rem}
.explore-controls .season-tabs{
  max-width:100%;background:var(--surface);padding:3px;border:1px solid var(--line);
  box-shadow:0 2px 6px #2139570b;
}
.explore-controls .season-tabs button{
  display:inline-flex;align-items:center;justify-content:center;gap:.36rem;
  min-width:0;padding:.35rem .83rem;line-height:1.15;color:var(--muted);
}
.explore-controls .season-tabs button.active{
  color:var(--ink);background:var(--sky-cream);box-shadow:inset 0 0 0 1px #d29a492f;
}
.explore-controls #period-year.active{background:var(--sky-clear);box-shadow:inset 0 0 0 1px #897cb344}
.period-art{position:relative;isolation:isolate;display:inline-block;flex:none;width:1.56rem;height:1.56rem;pointer-events:none}
.period-art::before,.period-art::after{content:"";position:absolute}
.period-sky::before{
  width:64%;height:64%;top:1%;right:5%;border-radius:50%;background:radial-gradient(circle at 36% 30%,#ffe58c,#f7bd48 75%);
  box-shadow:0 0 0 2px #edaf484c;
}
.period-sky::after{
  inset:31% 1% 3% 0;filter:drop-shadow(0 1px 1px #405d7573);
  background:radial-gradient(ellipse at 25% 70%,#dcecf2 0 23%,transparent 25%),
    radial-gradient(ellipse at 49% 48%,#e9f4f8 0 36%,transparent 38%),
    radial-gradient(ellipse at 73% 67%,#f2f9fb 0 23%,transparent 26%),
    radial-gradient(ellipse at 52% 77%,#d4e6ee 0 39%,transparent 41%);
}
.period-calendar::before{
  inset:16% 8% 4%;border:1px solid #77799e;border-radius:24%;
  background:linear-gradient(#a59bcf 0 28%,transparent 29%),
    radial-gradient(circle,#77639e 0 20%,transparent 28%) 50% 102% / 30% 39% repeat-x,#faf6ff;
  box-shadow:0 1px 1px #34304826;
}
.period-calendar::after{
  top:6%;left:30%;width:9%;height:24%;border-radius:1rem;background:#665583;box-shadow:.47rem 0 #665583;
}
.explore-controls .outfit-filter-bar{order:1;flex:1;min-width:0;margin:0}
.explore-controls .outfit-filters{display:flex;flex-wrap:wrap;gap:.36rem;justify-content:flex-end}
.explore-controls .outfit-filter{
  display:inline-flex;align-items:center;gap:.34rem;min-width:0;min-height:2.75rem;
  padding:.23rem .66rem .23rem .36rem;font-size:.9rem;line-height:1.15;
  border:1px solid var(--line);background:var(--surface);color:var(--ink);
}
.explore-controls .outfit-filter[aria-pressed=true]{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}
.outfit-art{
  flex:none;position:relative;display:grid;place-items:center;width:1.95rem;height:1.95rem;
  background:radial-gradient(ellipse at 50% 65%,var(--outfit-halo,transparent),transparent 72%);pointer-events:none;
}
.outfit-art .garment-picture{display:block;width:100%;height:100%;object-fit:contain}
.outfit-filter[data-clothing=tshirt]{--outfit-halo:#ffe6a6}
.outfit-filter[data-clothing=light]{--outfit-halo:#e7eaf8}
.outfit-filter[data-clothing=hoodie]{--outfit-halo:#eae2fb}
.outfit-filter[data-clothing=jacket]{--outfit-halo:#cfede1}
.outfit-filter[data-clothing=winter]{--outfit-halo:#d2e7fb}
.outfit-palette{
  width:1.35rem;height:1.35rem;margin-inline:.2rem;
  background:radial-gradient(circle at 29% 29%,#efa755 0 17%,transparent 20%),
   radial-gradient(circle at 72% 29%,#9c91cd 0 17%,transparent 20%),
   radial-gradient(circle at 29% 72%,#7da797 0 17%,transparent 20%),
   radial-gradient(circle at 72% 72%,#638bbd 0 17%,transparent 20%);
}
.explore-controls #season-scrubber{order:2;width:100%;margin:0}
.map-toolbar{
  position:relative;isolation:isolate;overflow:hidden;padding:.4rem clamp(.65rem,1.1vw,1.25rem);
  background:linear-gradient(105deg,var(--map-strip),var(--map) 85%);
}
.map-toolbar::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.39;
  background:repeating-radial-gradient(ellipse 15rem 9rem at 39% 300%,transparent 0 13px,var(--isobar) 14px,transparent 15.5px 24px);
  mask-image:linear-gradient(90deg,transparent 12%,#000 36%,#000 54%,transparent 82%);
}
.map-extent{display:inline-flex;align-items:center;gap:.47rem;min-width:0;cursor:default}
.map-compass{
  position:relative;flex:none;width:1.72rem;height:1.72rem;border-radius:50%;border:1px solid var(--compass-rim);
  background:radial-gradient(circle at 50% 50%,#fffdf6 0 61%,transparent 63%),
    repeating-conic-gradient(from -1deg,#a5b7c2 0 3deg,#f5f7f5 3deg 45deg);
  box-shadow:0 1px 2px #233b511c;
}
.map-compass::before{
  content:"";position:absolute;inset:12% 33%;transform:rotate(32deg);
  background:linear-gradient(#d56d56 0 50%,#465777 51%);clip-path:polygon(50% 0,100% 51%,50% 100%,0 49%);
}
.map-compass::after{content:"";position:absolute;inset:43%;border-radius:50%;background:#374b63}
.explore-controls button:focus-visible,.map-toolbar button:focus-visible {outline:2px solid var(--blue);outline-offset:2px}
@container(min-width:56rem) and (max-width:67rem) {
  .explore-controls #season-caption{display:none}
  .explore-controls .season-tabs button{padding-inline:.55rem}
  .explore-controls .outfit-filter{gap:.23rem;padding-inline:.28rem .48rem}
}
@container(max-width:55.99rem) {
  .explore-controls .outfit-filter-bar{flex:1 0 100%}
  .explore-controls .outfit-filters{justify-content:flex-start}
}
@container(max-width:34rem) {
  .explore-controls .outfit-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .explore-controls .outfit-filter{padding:.22rem .25rem;gap:.2rem;white-space:normal}
  .explore-controls .outfit-art{width:1.65rem;height:1.65rem}
  .explore-controls .outfit-palette{width:1.2rem;height:1.2rem}
}
@media(max-width:359px){.map-toolbar .map-actions{width:auto}}
:root[data-theme=dark] #weather-map {
  --sky-cream:#403828;--sky-clear:#23364c;
  --map-strip:#273848;--isobar:#7a98ab;--compass-rim:#688195;
}
:root[data-theme=dark] #weather-map[data-period=typical]{--sky-clear:#353145;--map-strip:#302f43;--isobar:#a296c4}
:root[data-theme=dark] .outfit-art:not(.outfit-palette){background:none}
@media(prefers-reduced-motion:no-preference){
  .explore-controls .outfit-filter:is(:focus-visible,:active,.just-picked) .garment-picture{animation:layer-hop .43s ease-out}
  .season-tabs button:is(:focus-visible,:active) .period-art{animation:layer-hop .47s ease-out}
  @media(hover:hover) and (pointer:fine){
    .outfit-filter:hover .garment-picture,.season-tabs button:hover .period-art{animation:layer-hop .46s ease-out}
    .map-extent:hover .map-compass::before{animation:compass-settle .8s ease-out}
  }
  @keyframes compass-settle{0%,100%{transform:rotate(32deg)}38%{transform:rotate(54deg)}70%{transform:rotate(24deg)}}
}
