/* ═══════════════════════════════════════════
   CatMap – Stili globali
   ═══════════════════════════════════════════ */

/* ─── VARIABILI ─── */
:root {
  --terra:        #C4704F;
  --terra-light:  #E8A87C;
  --terra-pale:   #F5DFD0;
  --terra-dark:   #8B4A2B;
  --cream:        #FAF6F0;
  --cream-mid:    #F0E8DC;
  --sand:         #DDD0BF;
  --sand-dark:    #C4B39E;
  --brown:        #3D2B1F;
  --brown-mid:    #6B4C38;
  --sage:         #8FA888;
  --sage-light:   #C4D9BF;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(61,43,31,0.10);
  --shadow-md:    0 4px 20px rgba(61,43,31,0.18);
  --shadow-lg:    0 8px 40px rgba(61,43,31,0.22);
  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    28px;
  --radius-pill:  100px;
  --nav-h:        72px;
  --font-display: 'Fraunces', serif;
  --font-ui:      'Nunito', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; touch-action: manipulation; }
body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--brown);
  -webkit-font-smoothing: antialiased;
}
button { border: none; cursor: pointer; background: none; font-family: var(--font-ui); }

/* ─── APP SHELL ─── */
.app {
  position: fixed;
  inset: 0;
  display: flex;
  overflow: hidden;
}

/* ══════════════════════════════════
   SIDEBAR DESKTOP
══════════════════════════════════ */
.sidebar {
  display: none;
  width: 300px;
  height: 100%;
  background: var(--cream);
  border-right: 1px solid var(--cream-mid);
  flex-direction: column;
  flex-shrink: 0;
  z-index: 400;
  box-shadow: 2px 0 20px rgba(61,43,31,0.06);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }

.sidebar-head { padding: 24px 20px 0; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.sidebar-logo-icon {
  width: 42px; height: 42px;
  background: var(--terra);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.sidebar-logo-text { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--brown); }
.sidebar-logo-text span { color: var(--terra); }
.sidebar-logo-sub { font-size: 11px; color: var(--sand-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 1px; }

.sidebar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.sidebar-search:focus-within { border-color: var(--terra); }
.sidebar-search input {
  border: none; outline: none;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  color: var(--brown); background: transparent; flex: 1;
}
.sidebar-search input::placeholder { color: var(--sand-dark); }

.sidebar-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }

/* ─── CHIP (condiviso sidebar + mobile) ─── */
.chip {
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--brown-mid);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.chip.active { background: var(--terra); color: var(--white); border-color: var(--terra); }
.chip:not(.active):hover { border-color: var(--terra); color: var(--terra); }

.sidebar-section-title {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--sand-dark);
  margin-bottom: 12px; padding: 0 20px;
}

.sidebar-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px 20px; }
.sidebar-stat-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 14px; border: 1px solid var(--cream-mid);
}
.sidebar-stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--terra); line-height: 1; }
.sidebar-stat-label { font-size: 11px; font-weight: 600; color: var(--brown-mid); margin-top: 4px; }

.sidebar-cat-list { flex: 1; padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-cat-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius-md);
  padding: 12px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}
.sidebar-cat-item:hover { border-color: var(--terra); transform: translateX(2px); }
.sidebar-cat-item.active { border-color: var(--terra); background: var(--terra-pale); }
.sidebar-cat-photo {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--cream-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.sidebar-cat-info { flex: 1; min-width: 0; }
.sidebar-cat-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--brown); }
.sidebar-cat-meta { font-size: 12px; color: var(--brown-mid); font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sidebar-cat-dot.recent { background: var(--sage); }
.sidebar-cat-dot.old    { background: var(--sand); }

.sidebar-nav { padding: 16px 20px 8px; border-top: 1px solid var(--cream-mid); display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; color: var(--brown-mid);
  transition: all 0.15s ease; cursor: pointer;
}
.sidebar-nav-item:hover { background: var(--cream-mid); color: var(--brown); }
.sidebar-nav-item.active { background: var(--terra-pale); color: var(--terra); }
.sidebar-nav-item-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar-nav-item-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.sidebar-user {
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  background: var(--white); border-top: 1px solid var(--cream-mid);
  cursor: pointer; transition: background 0.15s;
}
.sidebar-user:hover { background: var(--cream); }
.sidebar-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--terra); display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--font-display); font-size: 16px; font-weight: 600; flex-shrink: 0;
}
.sidebar-user-name { font-size: 14px; font-weight: 700; color: var(--brown); }
.sidebar-user-sub  { font-size: 11px; color: var(--sand-dark); font-weight: 500; }

/* ══════════════════════════════════
   MAPPA
══════════════════════════════════ */
.map-wrap {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

/* ══════════════════════════════════
   CONTENT AREA (generica per pagine non-mappa)
══════════════════════════════════ */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Sovrascrittura tile Leaflet per toni più caldi */
.leaflet-tile { filter: sepia(18%) saturate(85%) brightness(1.03); }

/* Rimuove branding Leaflet */
.leaflet-control-attribution { display: none !important; }
.leaflet-control-zoom { display: none !important; }

/* ── CLUSTER PERSONALIZZATI ── */
.marker-cluster {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.marker-cluster div {
  background: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Bubble cluster custom */
.catmap-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  filter: drop-shadow(0 3px 8px rgba(61,43,31,0.22));
}
.catmap-cluster-bubble {
  background: var(--terra);
  border: 2.5px solid var(--terra-dark);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: transform 0.2s ease;
}
.catmap-cluster-bubble:hover { transform: scale(1.1); }
.catmap-cluster-paw   { font-size: 13px; line-height: 1; margin-bottom: -1px; }
.catmap-cluster-count {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.catmap-cluster-shadow {
  width: 60%;
  height: 4px;
  background: rgba(61,43,31,0.18);
  border-radius: 50%;
  margin-top: 2px;
}

/* Dimensioni per numero di gatti */
.catmap-cluster--sm  .catmap-cluster-bubble { width: 42px; height: 42px; }
.catmap-cluster--sm  .catmap-cluster-count  { font-size: 14px; }
.catmap-cluster--md  .catmap-cluster-bubble { width: 52px; height: 52px; background: var(--terra-dark); }
.catmap-cluster--md  .catmap-cluster-count  { font-size: 16px; }
.catmap-cluster--lg  .catmap-cluster-bubble { width: 62px; height: 62px; background: var(--brown); border-color: var(--brown-mid); }
.catmap-cluster--lg  .catmap-cluster-count  { font-size: 18px; }

/* Animazione spiderfy */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* ── CAT MARKER ── */
.cat-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  filter: drop-shadow(0 3px 6px rgba(61,43,31,0.25));
  transition: filter 0.2s ease;
}
.cat-marker:hover { filter: drop-shadow(0 4px 12px rgba(196,112,79,0.4)); }

.cat-marker-pin {
  width: 46px; height: 46px;
  background: var(--white);
  border: 2.5px solid var(--sand);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  overflow: hidden;
}

/* Immagine dentro il pin */
.cat-marker-pin .pin-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: rotate(45deg) scale(1.15);
  /* LQIP: blur-up */
  filter: blur(6px);
  transition: filter 0.4s ease;
}
.cat-marker-pin .pin-img.loaded { filter: blur(0); }

.cat-marker-shadow {
  width: 12px; height: 4px;
  background: rgba(61,43,31,0.2);
  border-radius: 50%;
  margin-top: 2px;
}

.cat-marker.active .cat-marker-pin {
  border-color: var(--terra-dark);
  transform: rotate(-45deg) scale(1.2);
  box-shadow: 0 0 0 3px var(--terra-pale);
}

/* Pulse per gatti visti di recente */
.cat-marker.recent::before {
  content: '';
  position: absolute;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid var(--terra);
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  animation: markerPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes markerPulse {
  0%   { transform: translate(-50%, -60%) scale(0.7); opacity: 0.7; }
  100% { transform: translate(-50%, -60%) scale(1.6); opacity: 0; }
}

/* ── IMMAGINE BOTTOM SHEET ── */
.sheet-cat-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: blur(8px);
  transition: filter 0.4s ease;
}
.sheet-cat-img.loaded { filter: blur(0); }

/* ── IMMAGINE SIDEBAR ── */
.sidebar-cat-img {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  filter: blur(6px);
  transition: filter 0.35s ease;
}
.sidebar-cat-img.loaded { filter: blur(0); }

/* ── PIN POSIZIONE UTENTE ── */
.user-marker {
  width: 18px; height: 18px;
  background: #4A90D9;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(74,144,217,0.25);
  animation: userPulse 2s ease infinite;
}
@keyframes userPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(74,144,217,0.25); }
  50%       { box-shadow: 0 0 0 10px rgba(74,144,217,0.10); }
}

/* ══════════════════════════════════
   TOP BAR (MOBILE)
══════════════════════════════════ */
.top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 14px 0;
  pointer-events: none;
}
.top-bar-inner {
  display: flex; align-items: center; gap: 10px;
  pointer-events: all;
}
.logo {
  display: flex; align-items: center; gap: 7px;
  background: var(--white); border-radius: var(--radius-pill);
  padding: 8px 14px 8px 10px;
  box-shadow: var(--shadow-md); flex-shrink: 0;
}
.logo-icon { width: 30px; height: 30px; background: var(--terra); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--brown); letter-spacing: -0.3px; }
.logo-text span { color: var(--terra); }

.search-pill {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  cursor: text;
}
.search-pill input {
  border: none; outline: none;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  color: var(--brown); background: transparent; flex: 1; min-width: 0;
}
.search-pill input::placeholder { color: var(--sand-dark); }

.avatar-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--terra); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.avatar-initials { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: white; }

/* ── FILTER CHIPS MOBILE ── */
.filter-row {
  position: absolute;
  top: 72px; left: 0; right: 0;
  z-index: 99;
  padding: 0 14px;
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  pointer-events: all;
}
.filter-row::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════
   MAP CONTROLS (destra)
══════════════════════════════════ */
.map-controls {
  position: absolute;
  right: 14px;
  bottom: calc(var(--nav-h) + 180px);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 99;
}

.map-btn {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--brown);
  border: 1.5px solid var(--cream-mid);
  transition: all 0.15s ease;
  font-size: 19px;
}
.map-btn:hover  { background: var(--cream); transform: scale(1.05); }
.map-btn:active { transform: scale(0.94); }

.map-btn--locate {
  background: var(--terra); border-color: var(--terra-dark); color: white; margin-bottom: 4px;
}
.map-btn--locate:hover { background: var(--terra-dark); }
.map-btn--locate.loading { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Zoom buttons */
.zoom-group {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--cream-mid);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.zoom-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brown); font-size: 22px; font-weight: 300;
  transition: background 0.15s;
  border: none;
}
.zoom-btn:hover   { background: var(--cream); }
.zoom-btn:active  { background: var(--cream-mid); }
.zoom-divider { height: 1px; background: var(--cream-mid); margin: 0 8px; }

/* Badge zona */
.zone-badge {
  position: absolute;
  top: 128px; left: 50%; transform: translateX(-50%);
  z-index: 98;
  background: rgba(61,43,31,0.88);
  backdrop-filter: blur(6px);
  color: var(--cream);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  transition: opacity 0.4s;
  white-space: nowrap;
}
.zone-badge-pulse { width: 7px; height: 7px; background: var(--terra-light); border-radius: 50%; animation: blink 1.8s infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* ══════════════════════════════════
   BOTTOM SHEET
══════════════════════════════════ */
.bottom-sheet {
  position: absolute;
  bottom: var(--nav-h);
  left: 0; right: 0;
  z-index: 200;
  padding: 0 12px 12px;
  transform: translateY(calc(100% + 12px));
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.bottom-sheet.open { transform: translateY(0); pointer-events: all; }

.sheet-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}

.sheet-handle-row { display: flex; justify-content: center; margin-bottom: -6px; }
.sheet-handle { width: 36px; height: 4px; background: var(--sand); border-radius: var(--radius-pill); }

.sheet-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream-mid); color: var(--brown-mid);
  font-size: 13px; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.sheet-close:hover { background: var(--sand); }

.sheet-cat { display: flex; gap: 14px; align-items: flex-start; }
.sheet-photo {
  width: 78px; height: 78px; border-radius: var(--radius-md);
  background: var(--cream-mid); font-size: 38px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.sheet-photo-badge {
  position: absolute; bottom: 4px; right: 4px;
  background: var(--terra); color: white;
  font-size: 8px; font-weight: 800;
  padding: 2px 6px; border-radius: var(--radius-pill);
}
.sheet-info { flex: 1; min-width: 0; }
.sheet-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--brown); line-height: 1.1; }
.sheet-breed { font-size: 13px; color: var(--brown-mid); font-weight: 500; margin-top: 3px; }
.sheet-time {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--sage-light); color: #3D6B3D;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill);
}

.sheet-stats { display: flex; gap: 8px; }
.sheet-stat { flex: 1; background: var(--cream); border-radius: var(--radius-md); padding: 10px 8px; text-align: center; }
.sheet-stat-val { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--terra); line-height: 1; }
.sheet-stat-lbl { font-size: 10px; font-weight: 700; color: var(--brown-mid); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 3px; }

.sheet-actions { display: flex; gap: 8px; }
.btn-primary {
  flex: 1; background: var(--terra); color: white;
  border-radius: var(--radius-pill); padding: 13px 16px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 3px 12px rgba(196,112,79,0.35);
  transition: all 0.15s ease;
}
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cream-mid); color: var(--brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; transition: background 0.15s;
}
.btn-icon:hover { background: var(--sand); }
.btn-icon.liked { color: #E05050; }

/* ══════════════════════════════════
   BOTTOM NAV MOBILE
══════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  display: flex; align-items: stretch; justify-content: space-around;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 8px);
  z-index: 300;
  border-top: 1.5px solid var(--cream-mid);
  box-shadow: 0 -6px 20px rgba(61,43,31,0.06);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  flex: 1;
  color: var(--sand-dark); transition: color 0.2s;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nav-item.active { color: var(--terra); }
.nav-label { font-size: 10px; font-weight: 700; letter-spacing: 0.2px; }

.nav-item--add {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.nav-add-btn {
  position: relative;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--terra); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(196,112,79,0.45), 0 0 0 4px var(--terra-pale);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-add-btn:hover  { transform: scale(1.1) rotate(90deg); background: var(--terra-dark); }
.nav-add-btn:active { transform: scale(0.95); }

/* Pulse sottile sul bottone + (solo mobile) */
.nav-add-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--terra);
  pointer-events: none;
  animation: addBtnPulse 3s ease-out infinite;
}
@keyframes addBtnPulse {
  0%   { transform: scale(1); opacity: 0.35; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ══════════════════════════════════
   TOAST
══════════════════════════════════ */
.toast {
  position: absolute;
  bottom: calc(var(--nav-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--brown); color: var(--cream);
  padding: 10px 20px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 500;
  opacity: 0; pointer-events: none;
  transition: all 0.3s ease; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════
   DESKTOP  ≥ 768px
══════════════════════════════════ */
@media (min-width: 768px) {
  .sidebar { display: flex; }
  .top-bar { display: none; }
  .filter-row { display: none; }
  .bottom-nav { display: none; }

  .map-controls {
    bottom: 100px;
    right: 20px;
  }

  .zone-badge { top: 16px; }

  /* Bottom sheet → pannello laterale destro */
  .bottom-sheet {
    top: 0; bottom: 0;
    right: 0; left: auto;
    width: 320px;
    transform: translateX(calc(100% + 20px));
    padding: 0;
    display: flex; flex-direction: column; justify-content: center;
  }
  .bottom-sheet.open { transform: translateX(0); }
  .sheet-card {
    height: 100%;
    border-radius: 0;
    box-shadow: -4px 0 30px rgba(61,43,31,0.12);
    overflow-y: auto;
    padding: 28px 20px;
    justify-content: flex-start;
  }
  .sheet-handle-row { display: none; }
}
