/* Store locator — scoped under .ndl, uses the Blocksy theme palette where available */
.ndl {
  --ndl-accent: var(--theme-palette-color-1, #418043);
  --ndl-accent-2: var(--theme-palette-color-2, #55a630);
  --ndl-ink: var(--theme-palette-color-3, #0a2117);
  --ndl-soft: var(--theme-palette-color-6, #f2f7f6);
  --ndl-line: #dfe7e4;
  --ndl-muted: #5b6472;
  --ndl-pink: #ec4e95;
  --ndl-pink-soft: #ffd3e7;
  --ndl-plum: #4a1236;
}
.ndl h2 { margin-top: 2.2em; }
.ndl .ndl-lead { font-size: 1.08em; }
.ndl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ndl-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.5em 0; }
.ndl-facts > div { background: var(--ndl-soft); border-radius: 12px; padding: 14px 12px; text-align: center; }
.ndl-facts b { display: block; font-size: 1.7em; line-height: 1.1; color: var(--ndl-accent); }
.ndl-facts span { font-size: .85em; color: var(--ndl-muted); }

.ndl-map { height: 360px; border-radius: 18px; overflow: hidden; margin: 1.5em 0; background: #fbeef5; z-index: 0;
  border: 2px solid #ffd3e7; box-shadow: 0 10px 30px rgba(236, 78, 149, .12), inset 0 0 0 1px rgba(255,255,255,.6); }
.ndl-map--big { height: 440px; }

.ndl-finder { background: #fff; border: 1px solid var(--ndl-line); border-radius: 16px; padding: 18px; margin: 1.5em 0; box-shadow: 0 6px 24px rgba(10, 33, 23, .06); }
.ndl-search { display: flex; flex-wrap: wrap; gap: 10px; }
.ndl-search__q { flex: 1 1 220px; }
.ndl-search__q input, .ndl-search__r select { width: 100%; height: 48px; border: 1px solid var(--ndl-line); border-radius: 10px; padding: 0 14px; font-size: 16px; background: #fff; }
.ndl-search__r { flex: 0 0 110px; }
.ndl-filters { display: flex; flex-wrap: wrap; gap: 18px; margin: 12px 2px 0; font-size: .95em; }
.ndl-filters input { margin-right: 6px; accent-color: var(--ndl-accent); }
.ndl-hint { font-size: .9em; color: var(--ndl-muted); margin: 10px 2px 0; }
.ndl-hint a { font-weight: 600; }

.ndl-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: 10px; border: 2px solid var(--ndl-accent);
  background: var(--ndl-accent); color: #fff !important; font-weight: 600; text-decoration: none !important; cursor: pointer; font-size: 15px; }
.ndl-btn:hover { background: var(--ndl-accent-2); border-color: var(--ndl-accent-2); }
.ndl-btn--ghost { background: #fff; color: var(--ndl-accent) !important; }
.ndl-btn--ghost:hover { background: var(--ndl-soft); color: var(--ndl-accent) !important; border-color: var(--ndl-accent); }
.ndl-cta { text-align: center; margin: 2em 0; }

.ndl-list { display: grid; gap: 10px; margin: 1em 0; }
.ndl-store { display: flex; gap: 12px; justify-content: space-between; border: 1px solid var(--ndl-line); border-left: 4px solid var(--ndl-pink); border-radius: 10px; padding: 14px 16px; background: #fff; }
.ndl-store.is-chain { border-left-color: #9aa3ae; }
.ndl .ndl-store__name { font-size: 1.05em; margin: 0 0 2px; }
.ndl-store__tag { font-size: .8em; color: var(--ndl-muted); margin-bottom: 6px; }
.ndl-store address { font-style: normal; font-size: .95em; line-height: 1.45; }
.ndl-store__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .9em; }
.ndl-store__links a { font-weight: 600; }
.ndl-store__dist { flex: 0 0 auto; font-weight: 700; color: var(--ndl-accent); white-space: nowrap; }

.ndl-online { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--ndl-soft); border-radius: 12px; padding: 16px 18px; margin: 2em 0; }

.ndl-chips, .ndl-states, .ndl-cities, .ndl-brands { list-style: none; margin: 1em 0; padding: 0; display: grid; gap: 8px; }
.ndl-chips { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ndl-chips a { display: block; border: 1px solid var(--ndl-line); border-radius: 10px; padding: 10px 12px; text-decoration: none; font-weight: 600; }
.ndl-chips a:hover { border-color: var(--ndl-accent); }
.ndl-chips small { display: block; font-weight: 400; color: var(--ndl-muted); }
.ndl-states, .ndl-cities { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 18px; }
.ndl-states li, .ndl-cities li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--ndl-line); padding: 4px 0; }
.ndl-states small, .ndl-cities small { color: var(--ndl-muted); }
.ndl-brands { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ndl-brands li { display: flex; justify-content: space-between; background: var(--ndl-soft); border-radius: 8px; padding: 8px 12px; }

.ndl-faq { margin: 1em 0; }
.ndl-faq__item { border-bottom: 1px solid var(--ndl-line); }
.ndl-faq__item summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; position: relative; }
.ndl-faq__item summary::-webkit-details-marker { display: none; }
.ndl-faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 1.4em; color: var(--ndl-accent); }
.ndl-faq__item[open] summary::after { content: '–'; }
.ndl .ndl-faq__item h3 { display: inline; font-size: 1.02em; margin: 0; }
.ndl-faq__a p { margin: 0 0 14px; }

.ndl-back { margin-top: 2em; font-weight: 600; }
.ndl-sources { font-size: .8em; color: var(--ndl-muted); margin-top: 2.5em; border-top: 1px solid var(--ndl-line); padding-top: 1em; }

@media (max-width: 600px) {
  .ndl-finder { padding: 12px; }
  .ndl-search__r { flex: 1 1 90px; }
  .ndl-search .ndl-btn { flex: 1 1 140px; }
  .ndl-map, .ndl-map--big { height: 300px; }
  .ndl-facts b { font-size: 1.35em; }
  .ndl-store { flex-direction: column; gap: 4px; }
}

/* ── Map look ───────────────────────────────────────────────────────────── */
/* Soft pastel basemap: same OSM tiles, toned down so the pins pop */
.ndl-map .ndl-tiles { filter: saturate(.42) brightness(1.07) contrast(.88) sepia(.12) hue-rotate(-12deg); }
.ndl-map .leaflet-container, .ndl-map.leaflet-container { font-family: inherit; background: #fbeef5; }

/* NeeDoh pin: drops in with a squish, wobbles on hover */
.ndl-pin { background: none; border: 0; }
.ndl-pin svg { display: block; filter: drop-shadow(0 3px 3px rgba(74, 18, 54, .28)); transform-origin: 50% 100%;
  animation: ndl-drop .45s cubic-bezier(.3, 1.6, .5, 1) backwards; transition: transform .18s ease; }
.ndl-pin:hover svg, .ndl-pin:focus svg { transform: scale(1.15, .92); }
@keyframes ndl-drop { 0% { transform: translateY(-14px) scale(.7, 1.15); opacity: 0; } 60% { transform: translateY(0) scale(1.12, .86); opacity: 1; } 100% { transform: none; } }

/* Chain badge: white puck with a brand-coloured ring + initials */
.ndl-badge { background: none; border: 0; }
.ndl-badge span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--b, #5b6472); color: var(--b, #5b6472); font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: -.3px; box-shadow: 0 2px 5px rgba(0, 0, 0, .18); transition: transform .15s ease; box-sizing: border-box; }
.ndl-badge span.is-long { font-size: 8.5px; letter-spacing: -.5px; }
.ndl-badge:hover span { transform: scale(1.15); }

/* Clusters: squishy bubbles */
.ndl-cluster { background: none; border: 0; }
.ndl-cluster span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c3cad3, #7b8592 70%); color: #fff; font: 800 13px/1 system-ui, sans-serif;
  border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 5px rgba(123, 133, 146, .22), 0 4px 10px rgba(0, 0, 0, .18); box-sizing: border-box;
  transition: transform .15s ease; }
.ndl-cluster.has-dealers span { background: radial-gradient(circle at 35% 30%, #ff9cc8, var(--ndl-pink, #ec4e95) 70%);
  box-shadow: 0 0 0 6px rgba(236, 78, 149, .22), 0 4px 12px rgba(236, 78, 149, .35); }
.ndl-cluster:hover span { transform: scale(1.08, .94); }

/* "You are here" */
.ndl-me { background: none; border: 0; }
.ndl-me span { position: relative; display: block; width: 22px; height: 22px; border-radius: 50%; background: #6c4cf5; border: 4px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); box-sizing: border-box; }
.ndl-me span::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; background: rgba(108, 76, 245, .25); animation: ndl-pulse 1.8s ease-out infinite; }
@keyframes ndl-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* Popups */
.ndl-pop .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 12px 32px rgba(74, 18, 54, .22); padding: 0; }
.ndl-pop .leaflet-popup-content { margin: 14px 16px 14px; font-size: 14px; line-height: 1.4; color: var(--ndl-ink, #0a2117); }
.ndl-pop .leaflet-popup-tip { box-shadow: none; }
.ndl-pop a.leaflet-popup-close-button { top: 6px; right: 6px; color: #b06a8e; }
.ndl-pop__tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; border-radius: 99px; padding: 3px 9px; margin-bottom: 6px; }
.ndl-pop__tag.is-dealer { background: var(--ndl-pink-soft, #ffd3e7); color: var(--ndl-plum, #4a1236); }
.ndl-pop__tag.is-chain { background: #eceff3; color: #4b5563; }
.ndl-pop__name { font-weight: 800; font-size: 15.5px; margin-bottom: 3px; padding-right: 12px; }
.ndl-pop__addr { color: #5b6472; font-size: 13px; }
.ndl-pop__addr b { color: var(--ndl-pink, #ec4e95); }
.ndl-pop__btns { display: flex; gap: 6px; margin-top: 10px; }
.ndl-pop__btns a { flex: 1; text-align: center; white-space: nowrap; padding: 7px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; text-decoration: none !important;
  border: 2px solid var(--ndl-pink, #ec4e95); color: var(--ndl-pink, #ec4e95) !important; }
.ndl-pop__btns a.is-main { background: var(--ndl-pink, #ec4e95); color: #fff !important; }
.ndl-pop__btns a:hover { filter: brightness(1.06); }

/* Controls + legend */
.ndl-map .leaflet-bar { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(74, 18, 54, .18); }
.ndl-map .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; color: var(--ndl-plum, #4a1236); border-bottom-color: #f6dbe8; }
.ndl-map .leaflet-bar a:hover { background: var(--ndl-pink-soft, #ffd3e7); }
.ndl-legend { display: flex; gap: 12px; background: rgba(255, 255, 255, .92); border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  color: var(--ndl-plum, #4a1236); box-shadow: 0 3px 10px rgba(74, 18, 54, .15); }
.ndl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ndl-legend__pin { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ndl-pink, #ec4e95); box-shadow: 0 0 0 2px #fff; }
.ndl-legend__badge { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2.5px solid #7b8592; }
.ndl-map .leaflet-control-attribution { background: rgba(255, 255, 255, .75); border-radius: 8px 0 0 0; font-size: 10px; }

/* Store cards echo the map: pink for NeeDoh shops, brand-neutral for chains */
.ndl-store.is-dealer .ndl-store__dist { color: var(--ndl-pink); }

@media (prefers-reduced-motion: reduce) {
  .ndl-pin svg, .ndl-me span::after { animation: none; }
}
@media (max-width: 600px) {
  .ndl-legend { font-size: 11px; gap: 8px; padding: 5px 10px; }
}
