/* ─── Button system ─── */

.btn-wrap {
  display: inline-block;
}

.btn {
  --scoop: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h-md);
  padding: 0 28px;
  font-family: var(--font-display-alt);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: capitalize;
  border-radius: 0;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  /* Scooped corners — concave circular arcs punched from each corner */
  -webkit-mask:
    radial-gradient(circle at 0    0,    #0000 var(--scoop), #000 var(--scoop))
      0    0    / 50% 50% no-repeat,
    radial-gradient(circle at 100% 0,    #0000 var(--scoop), #000 var(--scoop))
      100% 0    / 50% 50% no-repeat,
    radial-gradient(circle at 0    100%, #0000 var(--scoop), #000 var(--scoop))
      0    100% / 50% 50% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--scoop), #000 var(--scoop))
      100% 100% / 50% 50% no-repeat;
  mask:
    radial-gradient(circle at 0    0,    #0000 var(--scoop), #000 var(--scoop))
      0    0    / 50% 50% no-repeat,
    radial-gradient(circle at 100% 0,    #0000 var(--scoop), #000 var(--scoop))
      100% 0    / 50% 50% no-repeat,
    radial-gradient(circle at 0    100%, #0000 var(--scoop), #000 var(--scoop))
      0    100% / 50% 50% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--scoop), #000 var(--scoop))
      100% 100% / 50% 50% no-repeat;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  /* ::after corner circles (z-index:3) paint on top, but their transparent
     center lets button text show through; pointer-events:none keeps clicks */
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    filter var(--dur-fast) var(--ease-out),
    transform 180ms var(--ease-out);
}

.btn-primary:active,
.btn-secondary:active { transform: translateY(1px); }

.btn-sm { height: var(--btn-h-sm); font-size: 13px; padding: 0 18px; --scoop: 7px; }
.btn-lg { height: var(--btn-h-lg); font-size: 17px; padding: 0 36px; }

.btn-primary { background: var(--flavor-color); color: #fff; }
.btn-primary:hover {
  filter: brightness(0.88);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: color-mix(in srgb, var(--color-cream) 78%, #000);
  color: var(--color-ink);
}
.btn-secondary:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.btn-ghost:hover {
  color: var(--flavor-color);
  text-decoration-color: var(--flavor-color);
}

.btn-nutrition {
  background: color-mix(in srgb, var(--color-cream) 78%, #000);
  color: var(--color-ink);
  font-family: var(--font-display-alt);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  height: var(--btn-h-sm);
  padding: 0 24px;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform 180ms var(--ease-out);
}
.btn-nutrition:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.surface-dark .btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-cream);
}
.surface-dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
}
.surface-dark .btn-ghost { color: var(--color-cream); }

/* ─── iOS 26 Safari status bar tint ─── */
/* iOS 26 samples the scrollable body background, not position:fixed elements.
   This element sits at the very top of the scroll flow so Safari sees #F5F0E8. */
.safari-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #F5F0E8;
  pointer-events: none;
  z-index: 0;
}

/* ─── Nav ─── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #F5F0E8;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid var(--color-border);
  padding-top: env(safe-area-inset-top);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display-alt);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  transition: color var(--dur-fast);
}
.nav-links a:hover { color: var(--flavor-color); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-ink);
}

.nav-stores-btn {
  /* visibility: hidden removes from compositor — opacity:0 alone still tints Safari toolbar */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out),
              visibility 0ms var(--dur-med); /* delay hide until fade completes */
}
.nav-stores-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out),
              visibility 0ms; /* show immediately */
}

/* Desktop: show full text; mobile: show short text + shrink button */
.nav-btn-short { display: none; }

@media (max-width: 768px) {
  .nav-btn-full  { display: none; }
  .nav-btn-short { display: inline; }
  .nav-stores-btn .btn {
    font-size: 11px;
    padding: 0 14px;
    height: 34px;
    letter-spacing: 0.06em;
  }
}

.nav-drawer {
  display: none;
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
  padding: 24px 40px;
}
.nav-drawer.open { display: block; }
.nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nav-drawer-links a {
  font-family: var(--font-display-alt);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Star navigation ─── */

.star-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 0 0 8px;
}

.star-btn {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 100px;
  width: 10px;
  height: 10px;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    background var(--dur-med) var(--ease-out),
    width     var(--dur-med) var(--ease-out);
}
.star-btn[data-state="active"]  { background: var(--flavor-color); width: 26px; }
.star-btn[data-state="visited"] { background: rgba(0, 0, 0, 0.12); width: 10px; }
.star-btn[data-state="empty"]   { background: rgba(0, 0, 0, 0.2);  width: 10px; }

/* ─── Character circle ─── */

/* Width matches can CARD_W so JS slot positions line up with the can slider */
.character-circle {
  flex-shrink: 0;
  width: 310px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* JS overrides transition-duration at runtime; property/function declared here */
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease;
  transition-duration: 0ms, 0ms;
  will-change: transform, opacity;
}

.character-img-wrap {
  border-radius: 50%;
  overflow: hidden;
  width: 260px;
  height: 260px;
  background-color: var(--color-border);
  transition: box-shadow var(--dur-med) var(--ease-out);
  position: relative;
}

/* 10% warm overlay on inactive circles */
.character-circle:not(.active) .character-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(127, 118, 103, 0.1);
  pointer-events: none;
}

.character-circle.active .character-img-wrap {
  box-shadow: 0 0 0 4px var(--flavor-color), 0 0 24px rgba(0,0,0,0.15);
}

.character-img-wrap img,
.character-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.1);
}
/* Cream background fills the video element while frames are loading,
   preventing the black flash between character switches */
.character-video { background: var(--color-cream); }

/* ─── FAQ accordion ─── */

.faq-item {
  border-top: 1px solid var(--color-border);
  position: relative;
}
.faq-item:last-child { border-bottom: 1px solid var(--color-border); }

.faq-item.active { padding-left: 16px; }

.faq-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--flavor-color);
  transform-origin: top;
  animation: faqBar 250ms var(--ease-out) forwards;
}

@keyframes faqBar {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
  transition: transform 250ms var(--ease-out);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--flavor-color);
  border-radius: 1px;
  transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out);
}
.faq-icon::before { width: 16px; height: 2px; top: 7px; left: 0; }
.faq-icon::after  { width: 2px; height: 16px; top: 0; left: 7px; }
/* Active: hide the vertical bar → shows − instead of rotating to × */
.faq-item.active .faq-icon::after { transform: scaleY(0); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-answer-inner {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-ink-light);
  line-height: 1.65;
  padding-bottom: 20px;
}

/* ─── Benefit pill ─── */

.benefit-pill {
  display: inline-block;
  font-family: var(--font-display-alt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flavor-color);
  border: 1.5px solid var(--flavor-color);
  padding: 3px 10px;
  line-height: 1.4;
}

/* ─── Nutrition modal ─── */

.modal { display: none; }
.modal[data-open] { display: flex; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.88);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-panel {
  background: #fff;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
  overscroll-behavior: contain;      /* prevent scroll chaining to backdrop */
  position: relative;
  border: 1px solid #ccc;
}

/* ── Modal header ── */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--flavor-color);
  color: #fff;
  gap: 12px;
}
.modal-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-flavor-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.modal-header-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}
.modal-header-sub {
  font-family: var(--font-display-alt);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.8;
  margin-top: 2px;
}
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  flex-shrink: 0;
  padding: 0 0 0 8px;
}

/* ── Cannabinoid strip ── */
.modal-cannab-strip {
  display: flex;
  align-items: stretch;
  background: #1a1a1a;
  color: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-cannab-col {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  text-align: center;
}
.modal-cannab-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.modal-cannab-label {
  font-family: var(--font-display-alt);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  white-space: nowrap;
}
.modal-cannab-div {
  width: 1px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ── FDA Nutrition Facts panel ── */
.nf-panel {
  background: #fff;
  color: #000;
  border-bottom: 1px solid #ccc;
  padding: 0 0 4px;
  font-family: Arial, Helvetica, sans-serif;
}
.nf-title {
  font-family: Impact, 'Arial Black', Arial, sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 10px 2px;
  border-top: 7px solid #000;
}
.nf-servings {
  font-size: 13px;
  padding: 0 10px 3px;
}
.nf-serving-size-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px 4px;
  border-bottom: 1px solid #000;
}
.nf-rule { background: #000; }
.nf-rule--thick { height: 8px; }
.nf-rule--medium { height: 4px; }
.nf-calories-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 10px 2px;
}
.nf-calories-label {
  font-size: 15px;
  font-weight: 700;
}
.nf-calories-value {
  font-family: Impact, 'Arial Black', Arial, sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}
.nf-dv-header {
  text-align: right;
  font-size: 10px;
  padding: 2px 10px;
  border-bottom: 1px solid #000;
}
.nf-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  padding: 3px 10px;
}
.nf-row--border { border-bottom: 1px solid #ddd; }
.nf-row--bold { font-weight: 700; }
.nf-row--indent  { padding-left: 22px; }
.nf-row--indent2 { padding-left: 38px; font-size: 11px; }
.nf-row--micro   { font-size: 12px; }
.nf-row b { font-weight: 400; }
.nf-footnote {
  font-size: 9px;
  padding: 5px 10px 4px;
  line-height: 1.4;
  color: #333;
  border-top: 1px solid #000;
}

/* ── Ingredients ── */
.modal-ingredients {
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.55;
  color: var(--color-ink);
}
.modal-ingredients strong { font-family: var(--font-display-alt); font-size: 11px; }

/* ── Dosing — boxed layout matching the can label ── */
.modal-dosing {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 14px;
  padding: 8px 10px;
  border: 1px solid var(--color-ink); /* full box border like the can */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--color-ink);
}
.modal-dosing-header {
  font-weight: 700;
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.modal-dosing-line { font-weight: 400; }
.modal-refrigerate {
  flex-shrink: 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  border: 1px solid var(--color-ink);
  padding: 4px 8px;
  align-self: center;
}

/* ── Government warning — all-caps dense text matching the can label ── */
.modal-warning {
  padding: 8px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8.5px;
  line-height: 1.55;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.modal-warning strong {
  font-family: var(--font-display-alt);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

/* ── CTA row ── */
.modal-cta {
  display: flex;
  gap: 10px;
  padding: 16px 14px 20px;
  justify-content: center;
  background: #fff;
}
/* Override the global scooped-corner mask — it fails to render on iOS Safari,
   making the button invisible. Use a plain rounded-none rectangle inside modals. */
.modal-cta .btn {
  -webkit-mask: none !important;
  mask: none !important;
  border-radius: 0;
  min-width: 160px;
}

/* ─── Video overlay ─── */

.video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26,26,26,0.95);
  align-items: center;
  justify-content: center;
}

.video-overlay-inner {
  width: 100%;
  max-width: 800px;
  padding: 24px;
  position: relative;
}

.video-overlay video { width: 100%; height: auto; display: block; }

.video-close {
  position: absolute;
  top: -4px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

.video-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 400px;
  color: #fff;
}

.video-placeholder[data-character="boxer"] svg        { animation: punch       0.6s ease-in-out infinite alternate; }
.video-placeholder[data-character="gentleman"] svg     { animation: tip-hat     1.0s ease-in-out infinite alternate; }
.video-placeholder[data-character="mountaineer"] svg   { animation: raise-axe  0.8s ease-in-out infinite alternate; }
.video-placeholder[data-character="working-man"] svg   { animation: roll-sleeves 1.0s ease-in-out infinite alternate; }
.video-placeholder[data-character="vendor"] svg        { animation: present-tray 1.0s ease-in-out infinite alternate; }

@keyframes punch        { from { transform: translateX(0); }               to { transform: translateX(30px); } }
@keyframes tip-hat      { from { transform: rotate(0deg); }                to { transform: rotate(-8deg); } }
@keyframes raise-axe    { from { transform: translateY(0); }               to { transform: translateY(-20px); } }
@keyframes roll-sleeves { from { transform: skewX(-3deg); }                to { transform: skewX(3deg); } }
@keyframes present-tray { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-10px) rotate(3deg); } }

/* ─── Section entrance animations ─── */

.section--hidden { opacity: 0; } /* parallax.js also sets transform via inline style */
/* section--animated is now a state class only — parallax.js drives the actual animation.
   The CSS @keyframes fadeUp below is kept for .anim-stagger child elements only. */
.section--animated { /* no animation here */ }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-stagger > * { opacity: 0; transform: translateY(40px); }
.section--animated .anim-stagger > *:nth-child(1) { animation: fadeUp 500ms   0ms var(--ease-out) forwards; }
.section--animated .anim-stagger > *:nth-child(2) { animation: fadeUp 500ms  80ms var(--ease-out) forwards; }
.section--animated .anim-stagger > *:nth-child(3) { animation: fadeUp 500ms 160ms var(--ease-out) forwards; }
.section--animated .anim-stagger > *:nth-child(4) { animation: fadeUp 500ms 240ms var(--ease-out) forwards; }
.section--animated .anim-stagger > *:nth-child(5) { animation: fadeUp 500ms 320ms var(--ease-out) forwards; }

/* ─── Store locator ─── */

/* Search wrapper — relative parent for autocomplete dropdown */
.store-search-wrapper {
  position: relative;
  display: inline-block;
}

/* Autocomplete dropdown */
.store-search-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 999;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.store-search-autocomplete.is-open { display: block; }

.autocomplete-item {
  padding: 14px 18px;
  font-family: var(--font-display-alt);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--color-ink); line-height: 1.4;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.1s ease;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.is-highlighted { background: color-mix(in srgb, var(--flavor-color) 8%, transparent); }

/* Split panel container */
.store-locator-panel {
  display: flex; flex-direction: row;
  width: 100%; max-width: 970px; margin: 0 auto;
  height: 520px; overflow: hidden;
  background: var(--color-cream);
  border: 1px solid rgba(0,0,0,0.1);
}

/* Left: store list panel */
.store-list-panel {
  width: 32%; min-width: 260px;
  border-right: 1px solid rgba(0,0,0,0.1);
  background: var(--color-cream);
  display: flex; flex-direction: column;
  overflow: hidden;
  /* Render above Mapbox canvas so markers don't bleed through */
  position: relative; z-index: 1;
}
.store-list-scroll {
  flex: 1 1 0;       /* grow+shrink with zero base — required for overflow in flex child */
  min-height: 0;     /* prevents flex from blocking mouse-wheel scroll */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Override text-align:center inherited from .section-stores */
  text-align: left;
  /* Prevent scroll from leaking out to page or Lenis */
  overscroll-behavior: contain;
}
.store-list-scroll::-webkit-scrollbar { width: 4px; }
.store-list-scroll::-webkit-scrollbar-thumb { background: var(--flavor-color); border-radius: 2px; }

/* Right: map */
.store-map-panel { flex: 1; position: relative; }
#mapbox-map      { width: 100%; height: 100%; }

/* ── Store cards (collapsed list view) ── */
.store-card {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.15s ease;
  border-left: 3px solid transparent;
}
.store-card:hover {
  background: rgba(0,0,0,0.07);
  border-left-color: var(--flavor-color);
}

.store-card__header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.store-name     { font-family: var(--font-display-alt); font-weight: 700; font-size: 14px; color: var(--color-ink); }
.store-distance { font-size: 12px; color: #777; font-weight: 500; white-space: nowrap; margin-left: 8px; }

.store-card__addr-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.store-address { font-family: var(--font-body); font-size: 12px; color: #555; line-height: 1.4; margin: 0; flex: 1; }
.store-chevron { font-size: 20px; color: var(--flavor-color); flex-shrink: 0; line-height: 1; }

/* ── Sidebar detail view ── */
.store-detail-view {
  display: flex; flex-direction: column;
  height: 100%;
}
.store-detail-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.store-detail-label {
  font-family: var(--font-display-alt);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #999;
}
.store-detail-back {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-ink);
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.store-detail-back:hover { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.35); }

.store-detail-body {
  padding: 20px 18px 24px;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left; /* override .section-stores { text-align: center } */
}
.store-detail-name {
  font-family: var(--font-display-alt);
  font-size: 16px; font-weight: 700; line-height: 1.2;
  color: var(--color-ink);
}
.store-detail-addr-row {
  display: flex; align-items: flex-start; gap: 10px;
}
.store-detail-dist-badge {
  flex-shrink: 0;
  font-family: var(--font-display-alt);
  font-size: 11px; font-weight: 700;
  color: var(--flavor-color);
  border: 1.5px solid var(--flavor-color);
  padding: 2px 7px; line-height: 1.4;
  white-space: nowrap;
}
.store-detail-addr {
  font-family: var(--font-body); font-size: 13px; color: #444; line-height: 1.5;
}
.store-detail-actions { display: flex; gap: 8px; }
/* 50/50 split — width is fixed so "Copied!" doesn't resize the pair */
.store-detail-actions .btn-store-action,
.store-popup-actions  .btn-store-action  { flex: 1; justify-content: center; min-width: 0; }

/* ── Action buttons — rectangular, outlined, no scooped corners ── */
.btn-store-action {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1.5px solid rgba(0,0,0,0.2);
  background: transparent;
  font-family: var(--font-display-alt);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--color-ink);
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  -webkit-appearance: none; appearance: none;
  /* Ensure no scooped-corner mask from the global .btn rule leaks in */
  -webkit-mask: none; mask: none;
}
.btn-store-action:hover { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.4); }
.btn-store-action svg   { flex-shrink: 0; }

/* ── Mapbox popup — scoped under .nyf-popup to avoid global overrides ── */
.nyf-popup .mapboxgl-popup-content {
  background: #fff;
  border-radius: 2px;
  padding: 16px 16px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  border: 1px solid rgba(0,0,0,0.08);
  min-width: 260px;
  font-family: inherit;
}
.nyf-popup .mapboxgl-popup-tip { display: none; }

.store-popup { display: flex; flex-direction: column; gap: 10px; }
.store-popup-title-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.store-popup-name {
  font-family: var(--font-display-alt); font-size: 15px; font-weight: 700;
  color: var(--color-ink); line-height: 1.2; flex: 1;
}
.store-popup-close {
  flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  color: #aaa; font-size: 20px; line-height: 1;
  padding: 0; margin-top: -2px;
  transition: color 0.15s;
}
.store-popup-close:hover { color: var(--color-ink); }
.store-popup-addr-row { display: flex; align-items: flex-start; gap: 8px; }
.store-popup-dist {
  flex-shrink: 0;
  font-family: var(--font-display-alt); font-size: 12px; font-weight: 700;
  color: var(--flavor-color); padding-top: 1px;
}
.store-popup-addr  { font-family: var(--font-body); font-size: 13px; color: #555; line-height: 1.4; }
.store-popup-actions { display: flex; gap: 8px; }
/* text-align fix for popup content inside .section-stores */
.nyf-popup .mapboxgl-popup-content { text-align: left; }

/* ── Active pin bounce (5 s damped oscillation on inner element only) ── */
/* Scale is kept on the outer div so it never conflicts with Mapbox positioning */
@keyframes nyf-pin-bounce {
  0%   { transform: translateY(0); }
  10%  { transform: translateY(-10px); }
  20%  { transform: translateY(0); }
  32%  { transform: translateY(-7px); }
  44%  { transform: translateY(0); }
  54%  { transform: translateY(-4px); }
  64%  { transform: translateY(0); }
  74%  { transform: translateY(-2px); }
  84%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* ── Empty state ── */
.store-list-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 48px 24px;
  text-align: center; color: #999; height: 100%; min-height: 180px;
}
.store-list-empty p {
  font-family: var(--font-display-alt);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5;
  color: #888; margin: 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .store-locator-panel  { flex-direction: column; height: auto; }
  .store-map-panel      { width: 100%; height: 280px; order: 1; }
  .store-list-panel     {
    width: 100%; min-width: unset;
    border-right: none; border-top: 1px solid rgba(0,0,0,0.1);
    height: auto; max-height: 420px; order: 2;
  }
  .store-list-scroll    { flex: none; height: auto; max-height: 420px; }
  .store-card           { padding: 12px 14px; }
  .autocomplete-item    { padding: 14px 16px; font-size: 15px; }
  .btn-store-action     { height: 40px; }
  .store-popup-actions  { flex-direction: column; }
}

