/* =====================================================================
   Braai BBQ — Store Locator plugin styles
   Scoped under .braai-sl to avoid theme collisions.
   Softer revision: fewer hard borders, gentle radii, more air.
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Novecento Slab Condensed';
  src: url('../fonts/NovecentoSlabCond-Ultrabold.woff') format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Novecento Slab Condensed';
  src: url('../fonts/NovecentoSlabCond-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Novecento Slab';
  src: url('../fonts/NovecentoSlab-Demibold.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Novecento Slab';
  src: url('../fonts/NovecentoSlab-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'BDSupper';
  src: url('../fonts/BDSupper-Regular.woff2') format('woff2'),
       url('../fonts/BDSupper-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'BDSupper';
  src: url('../fonts/BDSupper-Bold.woff2') format('woff2'),
       url('../fonts/BDSupper-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Root container ---------- */
.braai-sl {
  --braai-sl-black: #1A1613;
  --braai-sl-ink:   #2A231E;
  --braai-sl-ember: #E34E2A;
  --braai-sl-ember-700: #B83418;
  --braai-sl-gold:  #F5A623;
  --braai-sl-gold-700: #C47D0A;
  --braai-sl-sky:   #3D7CC9;
  --braai-sl-cream: #F5F0E8;
  --braai-sl-cream-2: #FAF6EF;
  --braai-sl-blush: #E8C5B0;
  --braai-sl-gray-mid: #6B6560;
  --braai-sl-gray-warm: #A8A29B;
  --braai-sl-line: rgba(26, 22, 19, 0.10);
  --braai-sl-line-strong: rgba(26, 22, 19, 0.18);
  --braai-sl-shadow: 0 1px 2px rgba(26,22,19,0.04), 0 12px 28px -12px rgba(26,22,19,0.18);
  --braai-sl-shadow-soft: 0 1px 2px rgba(26,22,19,0.04), 0 6px 18px -10px rgba(26,22,19,0.14);
  --braai-sl-display: 'Novecento Slab Condensed', 'Barlow Condensed', 'Oswald', Impact, sans-serif;
  --braai-sl-body: 'BDSupper', 'Space Mono', ui-monospace, Menlo, monospace;

  font-family: var(--braai-sl-body);
  color: var(--braai-sl-black);
  background: var(--braai-sl-cream);
  line-height: 1.5;
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}
.braai-sl *, .braai-sl *::before, .braai-sl *::after { box-sizing: border-box; }

/* ---------- Optional header ---------- */
.braai-sl__header { padding: 28px 0 24px; }
.braai-sl__eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--braai-sl-ember);
}
.braai-sl__title {
  font-family: var(--braai-sl-display); font-weight: 900;
  font-size: clamp(48px, 6vw, 80px); line-height: 0.9;
  text-transform: uppercase; letter-spacing: 0.01em;
  margin: 6px 0 12px;
}
.braai-sl__lede {
  font-size: 13px; line-height: 1.65; max-width: 560px;
  margin: 0; color: var(--braai-sl-gray-mid);
}
.braai-sl__warn {
  margin-bottom: 14px; padding: 12px 16px;
  background: var(--braai-sl-gold); color: var(--braai-sl-black);
  border-radius: 10px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  box-shadow: var(--braai-sl-shadow-soft);
}

/* ---------- Shell (map + list) ---------- */
.braai-sl__shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  height: var(--braai-sl-height, 760px);
  border-radius: 20px;
  box-shadow: var(--braai-sl-shadow);
  overflow: hidden;
}
@media (max-width: 900px) {
  .braai-sl__shell { grid-template-columns: 1fr; height: auto; border-radius: 16px; }
  .braai-sl__map   { height: 420px; }
  .braai-sl__list  { height: 520px; }
}

/* ---------- Map ---------- */
.braai-sl__map {
  position: relative;
  background: var(--braai-sl-cream);
}

/* Leaflet chrome — keep it on-brand, rounded */
.braai-sl .leaflet-container { font-family: inherit; background: var(--braai-sl-cream); }
.braai-sl .leaflet-bar {
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--braai-sl-shadow-soft);
  border: 1px solid var(--braai-sl-line-strong);
}
.braai-sl .leaflet-bar a,
.braai-sl .leaflet-bar a:hover {
  border: 0;
  background: #fff; color: var(--braai-sl-black);
  width: 34px; height: 34px; line-height: 34px;
  font-family: var(--braai-sl-display); font-weight: 900; font-size: 18px;
  border-radius: 0;
}
.braai-sl .leaflet-bar a + a { border-top: 1px solid var(--braai-sl-line); }
.braai-sl .leaflet-bar a:hover { background: var(--braai-sl-ember); color: #fff; }
.braai-sl .leaflet-control-attribution {
  background: rgba(250,246,239,0.94) !important;
  border: 0 !important;
  border-radius: 8px 0 0 0;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  color: var(--braai-sl-gray-mid);
  padding: 4px 8px !important;
}
.braai-sl .leaflet-control-attribution a { color: var(--braai-sl-ember-700) !important; }
.braai-sl .braai-sl-divicon { background: transparent; border: 0; }
.braai-sl .leaflet-popup.braai-sl-popup .leaflet-popup-content-wrapper {
  background: transparent; box-shadow: none; border-radius: 0; padding: 0;
}
.braai-sl .leaflet-popup.braai-sl-popup .leaflet-popup-content { margin: 0; }
.braai-sl .leaflet-popup.braai-sl-popup .leaflet-popup-tip { display: none; }
.braai-sl .leaflet-popup.braai-sl-popup .leaflet-popup-close-button {
  top: 8px; right: 10px; color: #fff; background: var(--braai-sl-black);
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 16px; line-height: 22px; font-weight: 700;
}

/* Recenter button overlayed on top of the map */
.braai-sl__recenter {
  position: absolute; left: 16px; bottom: 16px; z-index: 1000;
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--braai-sl-body); font-weight: 400;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; color: var(--braai-sl-black);
  box-shadow: var(--braai-sl-shadow-soft);
  transition: transform 180ms ease-out, background 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out;
}
.braai-sl__recenter:hover {
  transform: translateY(-2px);
  background: var(--braai-sl-black); color: var(--braai-sl-cream);
  box-shadow: 0 2px 4px rgba(26,22,19,0.06), 0 16px 32px -12px rgba(26,22,19,0.28);
}

.braai-sl__legend {
  position: absolute; left: 16px; top: 16px; z-index: 4;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--braai-sl-shadow-soft);
}
.braai-sl__legend-item { display: flex; align-items: center; gap: 8px; }

/* ---------- Info-window popover ---------- */
.braai-sl__popover {
  width: 280px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(26,22,19,0.06), 0 20px 40px -12px rgba(26,22,19,0.32);
  font-family: var(--braai-sl-body);
  position: relative;
}
.braai-sl__popover::before {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--braai-sl-ember);
}
.braai-sl__popover.is-flagship::before { background: var(--braai-sl-gold); }
.braai-sl__popover-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--braai-sl-line); }
.braai-sl__popover-name {
  font-family: 'Novecento Slab', var(--braai-sl-display); font-weight: 700;
  font-size: 20px;
  line-height: 1.15; letter-spacing: 0.005em;
}
.braai-sl__popover-body { padding: 14px 18px 16px; font-size: 13px; line-height: 1.55; color: var(--braai-sl-black); }
.braai-sl__popover-body .street { margin-bottom: 2px; }
.braai-sl__popover-body .city   { color: var(--braai-sl-gray-mid); }
.braai-sl__popover-body .braai-sl__labels { margin-top: 12px; }

/* ---------- List ---------- */
.braai-sl__list {
  display: flex; flex-direction: column;
  background: var(--braai-sl-cream-2);
  min-height: 0;
  border-left: 1px solid var(--braai-sl-line);
}
@media (max-width: 900px) { .braai-sl__list { border-left: 0; border-top: 1px solid var(--braai-sl-line); } }

.braai-sl__list-head {
  padding: 22px 24px 20px;
  background: var(--braai-sl-black); color: var(--braai-sl-cream);
  position: relative;
}
.braai-sl__list-head .eyebrow {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700;
  color: var(--braai-sl-ember); margin-bottom: 6px;
}
.braai-sl__list-head .title {
  font-family: 'Novecento Slab', var(--braai-sl-display); font-weight: 700;
  font-size: 30px; line-height: 1.05; letter-spacing: 0.005em;
}
.braai-sl__list-head .sub {
  margin-top: 10px; font-size: 11px; line-height: 1.6;
  color: var(--braai-sl-blush); max-width: 320px;
}

.braai-sl__items { flex: 1; overflow-y: auto; min-height: 0; padding: 8px 0; }
.braai-sl__items::-webkit-scrollbar { width: 10px; }
.braai-sl__items::-webkit-scrollbar-track { background: transparent; }
.braai-sl__items::-webkit-scrollbar-thumb {
  background: var(--braai-sl-line-strong); border-radius: 999px;
  border: 2px solid var(--braai-sl-cream-2);
}
.braai-sl__items::-webkit-scrollbar-thumb:hover { background: var(--braai-sl-ember); }

.braai-sl__item {
  display: flex; align-items: stretch; width: 100%;
  background: transparent; color: var(--braai-sl-black);
  border: 0;
  padding: 0;
  margin: 2px 10px;
  width: calc(100% - 20px);
  border-radius: 12px;
  text-align: left;
  font-family: var(--braai-sl-body);
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out;
  position: relative;
}
.braai-sl__item + .braai-sl__item::before {
  content: '';
  position: absolute;
  left: 62px; right: 16px; top: -2px; height: 1px;
  background: var(--braai-sl-line);
}
.braai-sl__item:hover { background: #fff; box-shadow: var(--braai-sl-shadow-soft); }
.braai-sl__item:hover + .braai-sl__item::before,
.braai-sl__item.is-active + .braai-sl__item::before,
.braai-sl__item.is-hover-prev::before { background: transparent; }
.braai-sl__item.is-active { background: var(--braai-sl-black); color: var(--braai-sl-cream); box-shadow: 0 2px 4px rgba(26,22,19,0.06), 0 16px 32px -14px rgba(26,22,19,0.35); cursor: default; }
.braai-sl__item.is-active:hover { background: var(--braai-sl-black); box-shadow: 0 2px 4px rgba(26,22,19,0.06), 0 16px 32px -14px rgba(26,22,19,0.35); }
.braai-sl__item.is-active::before { background: transparent; }

.braai-sl__item-bar { display: none; }

.braai-sl__item-idx {
  width: 52px; padding: 20px 0 20px 18px;
  font-family: 'Novecento Slab', var(--braai-sl-display); font-weight: 600;
  font-size: 22px; line-height: 1; color: var(--braai-sl-gray-warm);
  letter-spacing: 0.02em;
}
.braai-sl__item.is-active .braai-sl__item-idx { color: var(--braai-sl-ember); }

.braai-sl__item-main { flex: 1; padding: 18px 16px 18px 6px; min-width: 0; }

.braai-sl__item-name {
  font-family: 'Novecento Slab', var(--braai-sl-display); font-weight: 600;
  font-size: 19px; line-height: 1.15;
  letter-spacing: 0.005em;
  margin-bottom: 8px;
  color: var(--braai-sl-black);
}
.braai-sl__item.is-active .braai-sl__item-name { color: var(--braai-sl-cream); }

.braai-sl__item-addr {
  font-size: 13px; letter-spacing: 0.01em; font-weight: 400;
  color: var(--braai-sl-gray-mid);
  display: flex; gap: 8px; align-items: center;
  line-height: 1.45;
}
.braai-sl__item.is-active .braai-sl__item-addr { color: var(--braai-sl-blush); }
.braai-sl__item-addr .sep { opacity: 0.5; }

.braai-sl__item-right {
  display: flex; align-items: center;
  padding-right: 12px;
}

.braai-sl__item-arrow {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--braai-sl-gray-mid);
  border-radius: 999px;
  transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}
.braai-sl__item:hover .braai-sl__item-arrow {
  background: var(--braai-sl-cream);
  color: var(--braai-sl-black);
}
.braai-sl__item.is-active .braai-sl__item-arrow {
  background: var(--braai-sl-ember); color: #fff;
  transform: translateX(2px);
}

.braai-sl__list-foot {
  padding: 22px 24px;
  text-align: center;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--braai-sl-gray-warm);
  border-top: 1px solid var(--braai-sl-line);
}
.braai-sl__list-foot .cta {
  display: block; margin-top: 8px;
  font-family: 'Kalam', cursive; font-weight: 700;
  font-size: 18px; color: var(--braai-sl-sky); letter-spacing: 0;
  text-transform: none;
}
.braai-sl__list-foot .email { margin-top: 4px; color: var(--braai-sl-gray-mid); }

/* ---------- Labels (optional, per-store chips) ---------- */
.braai-sl__labels {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.braai-sl__label {
  display: inline-block;
  padding: 4px 9px 3px;
  border-radius: 999px;
  background: rgba(26,22,19,0.08);
  color: var(--braai-sl-gray-mid);
  font-family: var(--braai-sl-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}
.braai-sl__item.is-active .braai-sl__label {
  background: rgba(245,240,232,0.14);
  color: var(--braai-sl-cream);
}
/* Active item: keep explicitly-colored labels visible, but keep neutral ones on-theme */
.braai-sl__item.is-active .braai-sl__label[style*="background"] { color: inherit; }
