/* Desktop styles — applies at min-width: 768px */
@media (min-width: 768px) {

body {
  font-family: var(--font-family);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Full-bleed aurora wash — one continuous canvas behind header + map +
     sidebar, instead of each section painting its own background. Blob
     positions are in this element's coordinate space (whole page).
     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. Each holds full saturation briefly before fading. */
  background:
    radial-gradient(50% 55% at 12% 9%, var(--aurora-cream) 0%, transparent 72%),
    radial-gradient(34% 38% at 50% 58%, var(--aurora-accent) 0%, var(--aurora-accent) 30%, transparent 70%),
    radial-gradient(42% 46% at 70% 70%, var(--aurora-accent) 0%, var(--aurora-accent) 25%, transparent 68%),
    radial-gradient(46% 40% at 60% 46%, var(--aurora-accent) 0%, var(--aurora-accent) 20%, transparent 72%),
    var(--aurora-base);
}

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

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

/* ── Layout ──────────────────────────────────────────────────────────── */
#layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ── 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 */
}

#map-svg {
  height: 90vh;
  max-height: 700px;
  width: auto;
  display: block;
  cursor: default;
}

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

/* ── Right sidebar ───────────────────────────────────────────────────── */
/* Floats as its own glass panel — shorter than the full viewport height,
   with margin on every side — instead of a flush full-height rail docked
   against the right edge ("remote control" look). Bottom-anchored (not
   centered) with the same 20px bottom margin as #map-overlay-btns, so the
   panel's bottom edge lines up exactly with the home/lang buttons instead
   of floating at an unpredictable height based on content length. */
#right-sidebar {
  width: 380px;
  max-height: 82%;
  align-self: flex-end;
  margin: 0 28px 20px 0;
  flex-shrink: 0;
  background: rgba(245, 240, 235, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(61, 42, 14, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Filter view ─────────────────────────────────────────────────────── */
#filter-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

/* ── Store view ──────────────────────────────────────────────────────── */
#store-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

#panel-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--aurora-accent);
  padding: 0;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  display: block;
}
#panel-back-btn:hover { color: var(--aurora-accent-dark); }

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

#store-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.01em;
  margin-bottom: 5px;
}

/* #store-address, #maps-link, #panel-updated all share #store-name's
   --c-text dark grey (unified per request, instead of each having its
   own muted/faint/accent shade). */
#store-address {
  font-size: 12px;
  color: var(--c-text);
  line-height: 1.5;
}

#maps-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#maps-link:hover { opacity: 0.7; }

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

#inventory-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#inventory-list::-webkit-scrollbar { width: 4px; }
#inventory-list::-webkit-scrollbar-track { background: transparent; }
#inventory-list::-webkit-scrollbar-thumb { background: var(--c-border-soft); border-radius: 2px; }

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

#home-btn,
#lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  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;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

#home-btn:hover,
#lang-btn:hover {
  background: rgba(253, 248, 241, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--c-text);
  box-shadow: 0 4px 14px rgba(61, 42, 14, 0.14);
}

/* ── Mobile-only elements hidden on desktop ──────────────────────────── */
#bottom-sheet { display: none; }

} /* end @media desktop */
