/* Explore ▸ Coffees — the search options collapse into an openable panel
   instead of a permanent sidebar, so the results start at the top of the page. */

.mcs-ex { display: block; }

.mcs-ex-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-top: 4px;
}

/* a key (css/keys.css); it is pressed in while the panel is open (.is-open) */
.mcs-ex-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 17px;
  font-family: "Lato-Bold", sans-serif; font-size: 14px;
}
.mcs-ex-toggle svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.mcs-ex-toggle .mcs-ex-chev { color: var(--mcs-accent, #C05A2A); transition: transform .15s ease; font-size: 12px; }
.mcs-ex-toggle.is-open .mcs-ex-chev { transform: rotate(180deg); }
.mcs-ex-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--mcs-accent, #C05A2A); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

.mcs-ex-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
.mcs-ex-chip {
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: var(--mcs-chip, #EFE6D8); color: var(--mcs-body, #5C4638);
}
.mcs-ex-chip b { color: var(--mcs-muted, #8A7059); font-weight: 700; }

.mcs-ex-chips .mcs-ui-morelink { --pk-k: .75; min-height: 28px; padding: 0 12px; font-size: 12px; }

/* the panel: collapsed by default, opens to a roomy multi-column grid */
.mcs-ex-panel {
  display: none;
  margin-top: 14px; padding: 20px;
  background: var(--mcs-card, #FFFDFA);
  border: 1px solid var(--mcs-line, #E6DCCC);
  border-radius: var(--mcs-r-lg, 18px);
}
.mcs-ex-panel.is-open { display: block; }

.mcs-ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 20px;
}
.mcs-ex-panel-actions {
  display: flex; gap: 14px; align-items: center;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--mcs-line, #E6DCCC);
}

.mcs-ex .mcs-ui-sechead { margin-top: 26px; }

@media (max-width: 575px) {
  .mcs-ex-bar { gap: 10px; }
  .mcs-ex-toggle { flex: 1 1 auto; justify-content: center; }
  .mcs-ex-panel { padding: 16px; }
  .mcs-ex-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Explore ▸ Roasters — the List/Map toggle (reuses .mcs-ui-segbar/.mcs-ui-seg,
   the same classes as the Coffees/Roasters switch above it) and the map itself. */
.mcs-rm-viewbar { transform: scale(.92); transform-origin: right center; }

/* the list panel is a grid (display:grid, set below) — an author rule of equal
   specificity to the browser's own [hidden]{display:none}, and author always
   wins regardless of source order, so the bare `hidden` attribute silently did
   nothing on it. This makes hidden win outright on either panel. */
[data-rm-panel][hidden] { display: none !important; }

.mcs-rm-frame {
  margin-top: 18px; border-radius: var(--mcs-r-lg, 18px); overflow: hidden;
  border: 1px solid var(--mcs-line, #E6DCCC);
}
#roaster-map { height: min(62vh, 560px); min-height: 360px; width: 100%; background: #e4ded1; }
.mcs-rm-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--mcs-muted, #8A7059); }

/* the pin: a plain map-pin silhouette with the roaster's logo (or initial)
   as a circular badge riding on top of it — built in roaster-map.js */
.mcs-rm-pin { position: relative; display: block; }
.mcs-rm-pin img, .mcs-rm-pin .mcs-rm-ph {
  position: absolute; top: 3px; left: 5px; width: 24px; height: 24px;
  border-radius: 50%; object-fit: cover; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.mcs-rm-pin .mcs-rm-ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--mcs-accent, #C05A2A); color: #fff;
  font-family: "Lato-Bold", sans-serif; font-size: 12px; font-weight: 700;
}

/* restyle Leaflet.markercluster's default green/yellow/orange badge to the
   site's own palette instead — MarkerCluster.Default.css sets these same
   selectors first; this simply overrides the colors, not the shape/sizing. */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background-color: rgba(192, 90, 42, .35);
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background-color: var(--mcs-accent, #C05A2A);
}
.marker-cluster span { color: #fff; font-family: "Lato-Bold", sans-serif; font-weight: 700; }

.mcs-rm-popup { font-family: "Lato-Regular", sans-serif; min-width: 180px; }
.mcs-rm-popup .n { font-family: "Lato-Bold", sans-serif; font-weight: 700; font-size: 14px; margin: 0 0 3px; color: var(--mcs-ink, #2E1B14); }
.mcs-rm-popup .a { font-size: 12.5px; color: var(--mcs-muted, #8A7059); margin: 0 0 8px; }
.mcs-rm-popup .links { display: flex; flex-direction: column; gap: 4px; }
.mcs-rm-popup a { font-size: 12.5px; font-weight: 700; color: var(--mcs-accent, #C05A2A); }
.mcs-rm-popup .unclaimed { font-size: 12.5px; font-style: italic; color: var(--mcs-muted, #8A7059); }

@media (max-width: 575px) {
  .mcs-ui-sechead { flex-wrap: wrap; }
  .mcs-rm-viewbar { transform: none; }
}

/* the wider directory strip (name + country only, no logo — see
   roasters.unclaimed_directory), below the real roster list/map. The
   marquee mechanic itself (scroll, hover-pause, reduced-motion) is the
   shared .mcs-marquee/.mcs-marquee-track base in mcs-extra.css; the 750s
   duration is tuned to the homepage logo strip's ~107px/s pace, scaled up
   for a track carrying ~12x more items (up to 300 chips vs. up to 24 logos)
   — a fixed duration this much shorter reads as a comfortable ambient
   scroll for 24 items and as a blur for 300, which is the bug an earlier,
   un-scaled duration here had. */
.mcs-dir-strip {
  padding: 4px 0 2px; margin-top: 6px;
  --mcs-marquee-duration: 750s;
  --mcs-marquee-gap: 10px;
}
.mcs-dir-note { text-align: center; font-size: 12.5px; color: var(--mcs-muted, #8A7059); margin: 0 0 14px; }
.mcs-dir-note a { color: var(--mcs-accent, #C05A2A); font-weight: 700; }
.mcs-dir-chip {
  flex: 0 0 auto; font-size: 12.5px; color: var(--mcs-muted, #8A7059); white-space: nowrap;
  background: var(--mcs-chip, #EFE6D8); padding: 6px 13px; border-radius: 999px;
}
@media (prefers-reduced-motion: reduce) {
  .mcs-dir-track { gap: 8px 10px; }
}
