/* ─── Variables — tema "Madrid" (granito / terracota / ochre) ────────────── */
:root {
  --bg:          #F2ECE1;
  --ink:         #2A2420;
  --ink-muted:   #6E6459;
  --ink-dim:     #A79C8E;
  --line:        rgba(42, 36, 32, 0.09);
  --line-mid:    rgba(42, 36, 32, 0.16);
  --glass:       rgba(250, 246, 239, 0.72);
  --glass-solid: rgba(250, 246, 239, 0.97);
  --shadow:      0 8px 24px rgba(42, 36, 32, 0.10);
  --shadow-sm:   0 3px 12px rgba(42, 36, 32, 0.08);

  --terracotta:      #BE5B34;
  --terracotta-dim:  #A6522F;
  --terracotta-soft: rgba(190, 91, 52, 0.12);
  --ochre:           #C69A3E;
  --slate:           #5C6670;

  --radius:    18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --font-display: 'Syne', -apple-system, sans-serif;
  --font-body:    'Space Grotesk', -apple-system, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  overflow: hidden;
}

/* ─── Tipografía — titulares compactos vs. interfaz técnica ──────────────── */
.tipo-display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}

.tipo-label {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

a { color: var(--terracotta-dim); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

/* ─── Lienzo principal — el mapa ocupa todo el viewport ──────────────────── */
.main {
  position: fixed;
  inset: 0;
}

#map {
  width: 100%;
  height: 100%;
  background: var(--bg);
}

/* ─── Barra flotante superior ────────────────────────────────────────────── */
.chrome-top {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 10px 8px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.live-badge {
  display: none;
  align-items: center;
  gap: 4px;
  color: var(--terracotta-dim);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.live-dot {
  width: 5px; height: 5px;
  background: var(--terracotta);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.7); }
}

.update-time {
  display: none;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Grupo "Cuándo" — segmented control */
.cuando-group {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 0 1 auto;
  min-width: 0;
}

.cuando-group::-webkit-scrollbar { display: none; }

.fecha-rango {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.fecha-input {
  height: 27px;
  border: none;
  background: rgba(42,36,32,0.05);
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  min-width: 118px;
  transition: background 0.15s;
}

.fecha-input:focus { background: rgba(42,36,32,0.09); }

.fecha-sep {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* Botón de filtros (abre el flyout) */
.filters-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s;
}

.filters-toggle:hover,
.filters-toggle[aria-expanded="true"] {
  background: rgba(42, 36, 32, 0.06);
}

.filters-toggle-chevron {
  font-size: 10px;
  color: var(--ink-dim);
  transition: transform 0.15s;
}

.filters-toggle[aria-expanded="true"] .filters-toggle-chevron {
  transform: rotate(180deg);
}

.filters-toggle .dot-count {
  display: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.filters-toggle.has-active .dot-count { display: inline-block; }

.lang-switcher {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  gap: 2px;
  align-items: center;
}

.lang-switcher button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: var(--radius-xs);
  opacity: 0.45;
  transition: opacity 0.18s, transform 0.15s;
  line-height: 1;
}

.lang-switcher button:hover  { opacity: 0.75; transform: scale(1.10); }
.lang-switcher button.active { opacity: 1;    transform: scale(1.06); }

/* ─── Botones de filtro (compartidos: cuándo / público / categoría) ──────── */
.filter-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--ink-dim);
  letter-spacing: 0.9px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-sep {
  width: 1px;
  height: 16px;
  background: var(--line-mid);
  margin: 0 4px;
  flex-shrink: 0;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}

.filter-btn:hover {
  background: rgba(42, 36, 32, 0.06);
  color: var(--ink);
}

.filter-btn.active,
.filter-btn.active-cat {
  background: var(--ink);
  color: #FFFFFF;
}

.filter-btn[data-cat]::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--slate));
  margin-right: 6px;
  vertical-align: middle;
}

.filter-gratis.active {
  background: var(--terracotta);
}

/* ─── Flyout de filtros (público + tipo + gratis) ─────────────────────────── */
.filters-flyout {
  position: fixed;
  top: 70px;
  left: 14px;
  z-index: 999;
  max-width: min(420px, calc(100vw - 28px));
  background: var(--glass-solid);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.filters-flyout.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.filters-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

/* ─── Buscador de calles ─────────────────────────────────────────────────── */
.search-container {
  position: fixed;
  top: 78px;
  left: 14px;
  z-index: 600;
  width: 270px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-solid);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gps-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 0 2px;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.15s;
}
.gps-btn:hover { transform: scale(1.2); }
.gps-btn:disabled { opacity: 0.5; cursor: default; }

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}

.search-input::placeholder { color: var(--ink-dim); font-weight: 600; }

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-muted);
  padding: 0 2px;
  line-height: 1;
  font-weight: 900;
  flex-shrink: 0;
}

.search-clear:hover { color: var(--ink); }

.search-suggestions {
  list-style: none;
  background: var(--glass-solid);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-suggestions li {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.1s;
}

.search-suggestions li:last-child { border-bottom: none; }

.search-suggestions li:hover {
  background: var(--terracotta-soft);
  color: var(--terracotta-dim);
}

/* ─── Badge de distrito activo + Vista general ───────────────────────────── */
.map-toolbar-topleft {
  position: fixed;
  top: 136px;
  left: 14px;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.distrito-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 7px 8px 7px 15px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-sm);
}

.btn-overview {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-solid);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 8px 15px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
}

.btn-overview:hover { background: var(--terracotta-soft); }
.btn-overview-icon { font-size: 13px; }

.distrito-clear {
  background: rgba(255,255,255,0.20);
  border: none;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 900;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s;
}

.distrito-clear:hover { background: rgba(255,255,255,0.36); }

/* ─── Panel lateral flotante ─────────────────────────────────────────────── */
.panel {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 320px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 700;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Distrito activo: el mapa queda encuadrado a la zona, así que el listado gana espacio */
.panel.distrito-activo {
  width: min(46vw, 620px);
}

.panel-header {
  padding: 16px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

#panel-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.keyword-input {
  border: none;
  background: rgba(42,36,32,0.05);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  min-width: 0;
  transition: background 0.15s;
}

.keyword-input::placeholder { color: var(--ink-dim); font-weight: 600; }
.keyword-input:focus { background: rgba(42,36,32,0.09); }

.panel-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 10px;
}

.panel-list::-webkit-scrollbar { width: 3px; }
.panel-list::-webkit-scrollbar-track { background: transparent; }
.panel-list::-webkit-scrollbar-thumb { background: var(--line-mid); border-radius: 2px; }

.panel-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--ink-dim);
  text-align: center;
  flex-shrink: 0;
}

.panel-credit {
  margin-top: 4px;
  font-size: 10px;
  color: var(--ink-dim);
  font-style: italic;
}

/* ─── Items del panel ────────────────────────────────────────────────────── */
.inc-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 3px;
  cursor: pointer;
  background: transparent;
  transition: background 0.14s;
}

.inc-item:hover {
  background: rgba(42, 36, 32, 0.05);
}

.inc-item.selected {
  background: var(--terracotta-soft);
}

.inc-header {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.inc-cat-icon { font-size: 14px; flex-shrink: 0; }

.inc-titulo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.inc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 20px;
}

.inc-fecha    { font-size: 10.5px; color: var(--terracotta-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.inc-lugar    { font-size: 11px; color: var(--ink-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inc-distrito { font-size: 10px; color: var(--ink-dim); }

.inc-footer {
  margin-left: 20px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-gratis {
  background: rgba(92, 122, 94, 0.14);
  color: #3E6B41;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.inc-link { font-size: 11px; color: var(--terracotta-dim); font-weight: 700; }

.empty-msg, .loading {
  padding: 30px 14px;
  color: var(--ink-muted);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

/* ─── Tooltip mínimo (hover) ─────────────────────────────────────────────── */
.map-tooltip {
  position: fixed;
  z-index: 1100;
  transform: translate(-50%, -130%);
  background: var(--glass-solid);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xs);
  padding: 6px 11px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  white-space: nowrap;
  max-width: 240px;
}

.map-tooltip.visible { opacity: 1; }

.map-tooltip strong {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-tooltip span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terracotta-dim);
}

/* ─── Detalle ampliado del evento (click) ───────────────────────────────── */
.map-detalle {
  position: fixed;
  z-index: 1200;
  transform: translate(-50%, -100%) translateY(-14px);
  background: var(--glass-solid);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s;
}

.map-detalle.visible { opacity: 1; pointer-events: auto; }

.popup-evento { position: relative; min-width: 220px; max-width: 280px; }

.popup-close {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
}

.popup-close:hover { background: var(--terracotta-dim); }

.popup-cat {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--terracotta-dim);
  letter-spacing: 0.9px;
  font-weight: 800;
  margin-bottom: 4px;
}

.popup-titulo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 6px;
  color: var(--ink);
}

.popup-lugar  { font-size: 11px; color: var(--ink-muted); font-weight: 600; margin-bottom: 6px; }

.popup-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.popup-gratis {
  background: rgba(92, 122, 94, 0.14);
  color: #3E6B41;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 9px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.popup-precio { font-size: 11px; color: var(--ink-muted); font-weight: 600; }
.popup-link   { font-size: 11px; color: var(--terracotta-dim); font-weight: 700; }

.popup-share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.popup-share:hover { background: var(--terracotta-dim); }

/* Toast de confirmación */
#share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--ink);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

#share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Error ───────────────────────────────────────────────────────────────── */
.error-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-solid);
  color: var(--terracotta-dim);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  z-index: 2000;
}

/* ─── Controles MapLibre ─────────────────────────────────────────────────── */
.maplibregl-ctrl-group {
  background: var(--glass-solid) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
  border: none !important;
}

.maplibregl-ctrl-group button {
  width: 30px !important;
  height: 30px !important;
}

.maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--line) !important;
}

.maplibregl-ctrl-group button:hover {
  background: var(--terracotta-soft) !important;
}

.maplibregl-ctrl-bottom-right {
  margin-bottom: 14px !important;
}

.maplibregl-ctrl-attrib {
  background: rgba(250,246,239,0.85) !important;
  border-radius: var(--radius-xs) 0 0 0 !important;
  font-size: 10px !important;
}

.maplibregl-ctrl-attrib a { color: var(--ink-muted) !important; }

/* ─── Drawer handle (solo visible en móvil) ──────────────────────────────── */
.drawer-handle {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 10px 0 6px;
  cursor: grab;
  flex-shrink: 0;
}

.drawer-handle-bar {
  width: 36px;
  height: 4px;
  background: var(--line-mid);
  border-radius: 3px;
}

/* ─── FAB Lista (solo móvil) ─────────────────────────────────────────────── */
.fab-lista {
  display: none;
  position: fixed;
  bottom: 22px;
  right: 16px;
  z-index: 1400;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, background 0.15s;
}

.fab-lista:hover   { background: var(--terracotta-dim); }
.fab-lista:active  { transform: scale(0.95); }

/* ─── Backdrop drawer ────────────────────────────────────────────────────── */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42,36,32,0.32);
  /* Por debajo de la cabecera/flyout (999-1000). Sin backdrop-filter propio: apilar
     otro blur encima del cristal (ya difuminado) de la cabecera/panel provoca en
     algunos motores (Safari/Chromium) un desenfoque excesivo de todo el contenido. */
  z-index: 998;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .chrome-top {
    left: 10px; right: 10px; top: 10px; padding: 7px 8px 10px 14px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .brand        { order: 1; }
  #lang-switcher { order: 2; }
  .cuando-group  { order: 3; flex-basis: 100%; }

  .search-container { top: 94px; left: 10px; width: calc(100vw - 20px); }
  .map-toolbar-topleft { top: 148px; left: 10px; }

  .drawer-handle { display: flex; }
  .fab-lista { display: flex; }

  .panel {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    height: 72vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 28px rgba(42,36,32,0.16);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
  }

  .panel.open { transform: translateY(0); }
}
