/* Mobile styles — applies at max-width: 767px */
@media (max-width: 767px) {

body {
  font-family: var(--font-family);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Full-bleed aurora wash — one continuous canvas behind header + filter
     bar + map, instead of each section painting its own background.
     A single radial-gradient is always a perfect ellipse, so the accent
     blob is 3 overlapping same-color lobes at offset positions/sizes —
     their union reads as one irregular, organic blob instead of a clean
     geometric oval. Solid --aurora-accent core (fading after ~25%)
     instead of the pre-diluted wash — keeps it looking vivid, not muddy. */
  background:
    radial-gradient(60% 36% at 15% 5%, var(--aurora-cream) 0%, transparent 72%),
    radial-gradient(46% 30% at 50% 60%, var(--aurora-accent) 0%, var(--aurora-accent) 28%, transparent 70%),
    radial-gradient(56% 34% at 68% 72%, var(--aurora-accent) 0%, var(--aurora-accent) 24%, transparent 68%),
    radial-gradient(60% 28% at 58% 48%, var(--aurora-accent) 0%, var(--aurora-accent) 20%, transparent 72%),
    var(--aurora-base);
}

/* ── Header ──────────────────────────────────────────────────────────── */
header {
  height: 48px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

header h1 {
  font-size: 11px;
  font-weight: 400;
  font-family: var(--font-family);
  letter-spacing: 0.2em;
  color: var(--c-text);
  text-transform: uppercase;
}

/* ── Layout ──────────────────────────────────────────────────────────── */
#layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* ── Right sidebar → becomes compact top filter bar on mobile ────────── */
#right-sidebar {
  order: -1; /* DOM has #map-area first; move sidebar above it visually */
  flex-shrink: 0;
  background: transparent; /* shows the body-level aurora wash through */
  position: relative; /* anchor for the grid dropdown */
  z-index: 150;
}

/* Store view hidden on mobile (uses bottom sheet instead) */
#store-view { display: none !important; }

/* ── Filter view: compact bar (pills + search in two rows) ───────────── */
#filter-view {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#filter-view[hidden] { display: none; }

/* ── Filter grid: dropdown overlay below the bar ─────────────────────── */
#filter-grid {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 52dvh;
  overflow-y: auto;
  background: var(--c-panel);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  padding: 10px 12px 14px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}

#filter-grid.open {
  display: grid;
}

/* ── Map area ────────────────────────────────────────────────────────── */
#map-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent; /* shows the body-level aurora wash through */
  min-height: 0;
}

#map-svg {
  height: 100%;
  width: 100%;
  display: block;
  cursor: default;
}

#map-loading {
  position: absolute;
  font-size: 12px;
  color: var(--c-panel);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ── Bottom sheet ────────────────────────────────────────────────────── */
#bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70dvh;
  background:
    radial-gradient(120% 160px at 50% 0%, var(--aurora-accent-whisper) 0%, transparent 100%),
    var(--c-panel);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 200;
}
#bottom-sheet.open { transform: translateY(0); }

#bs-handle {
  width: 36px;
  height: 4px;
  background: var(--c-border-soft);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

#bs-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#bs-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}

.bs-close {
  float: right;
  background: none;
  border: none;
  font-size: 18px;
  color: #bbb;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.bs-close:active { color: #666; }

#bs-store-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
  padding-right: 24px;
}

#bs-store-address {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.5;
}

#bs-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--aurora-accent); /* was --c-accent — match the aurora accent used everywhere else now */
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#bs-updated {
  font-size: 10px;
  color: var(--c-text-faint);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

#bs-inventory-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}
#bs-inventory-list::-webkit-scrollbar { display: none; }

/* ── Map overlay buttons (home + lang) ───────────────────────────────── */
#map-overlay-btns {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

#home-btn,
#lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(253, 248, 241, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(61, 42, 14, 0.10);
  color: var(--c-text-muted);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ── Filter component overrides (compact bar on mobile) ──────────────── */
#filter-header { padding: 0; }
#filter-hint { font-size: 12px; }
#filter-clear-btn { font-size: 12px; }
#filter-category { padding: 0; }
.cat-pill { font-size: 11px; padding: 5px 0; }
#filter-search-wrap { margin: 0; }
#filter-grid { padding: 0; }

} /* end @media mobile */
