/* =========================================================
   Restaurant open-now status layer — popup + legend styles
   ========================================================= */

/* ---------- MapLibre popup shell ---------- */
.vnm-rest-popup-wrap .maplibregl-popup-content {
  padding: 14px 16px 12px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-width: 190px;
  max-width: 260px;
}

.vnm-rest-popup strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.vnm-rest-status {
  display: block;
  font-size: 12px;
  color: #475569;
  margin-bottom: 8px;
  font-weight: 500;
}

.vnm-rest-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-weight: 600;
}

.vnm-rest-badge--card {
  background: #fef3c7;
  color: #92400e;
}

.vnm-rest-badge--feast {
  background: #fee2e2;
  color: #991b1b;
}

.vnm-rest-link {
  display: block;
  font-size: 12px;
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
  padding-top: 2px;
  border-top: 1px solid #f1f5f9;
  margin-top: 6px;
  padding-top: 8px;
}

.vnm-rest-link:hover { text-decoration: underline; }

/* ---------- Legend pill ---------- */
.vnm-rest-legend-pill {
  position: absolute;
  bottom: max(calc(var(--bottom-clear, 12px) + 52px), 116px);
  left: 12px;
  z-index: var(--z-floor-pill);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.vnm-rest-legend-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
  white-space: nowrap;
  transition: box-shadow 0.15s;
}

.vnm-rest-legend-btn:active {
  background: rgba(248,250,252,0.98);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.vnm-rest-legend-panel {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  min-width: 185px;
}

.vnm-rest-legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #334155;
  padding: 4px 0;
  font-weight: 500;
}

/* Pulsing dots in legend mirror the map halos */
.vnm-rest-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.vnm-rest-legend-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  opacity: 0;
}

.vnm-rest-legend-dot--open {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: vnm-halo-open 2.2s ease-in-out infinite;
}

.vnm-rest-legend-dot--closing {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245,158,11,0.6);
  animation: vnm-halo-closing 1s ease-in-out infinite;
}

.vnm-rest-legend-dot--later { background: #3b82f6; }
.vnm-rest-legend-dot--closed { background: #94a3b8; }

@keyframes vnm-halo-open {
  0%   { box-shadow: 0 0 0 0   rgba(16,185,129,0.6); }
  60%  { box-shadow: 0 0 0 6px rgba(16,185,129,0);   }
  100% { box-shadow: 0 0 0 0   rgba(16,185,129,0);   }
}

@keyframes vnm-halo-closing {
  0%   { box-shadow: 0 0 0 0   rgba(245,158,11,0.7); }
  50%  { box-shadow: 0 0 0 6px rgba(245,158,11,0);   }
  100% { box-shadow: 0 0 0 0   rgba(245,158,11,0);   }
}

.vnm-rest-location {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin: 2px 0 4px;
  cursor: pointer;
}
.vnm-rest-location:hover { color: #2563eb; text-decoration: underline; }

/* ── Opacity Slider ───────────────────────────────────────────────────── */
@keyframes vnm-op-slide-in {
  from { opacity: 0; transform: translateX(52px); }
  to   { opacity: 1; transform: translateX(0); }
}
.vnm-op-slider {
  position: absolute;
  right: 12px;
  top: calc(50% - 100px);
  width: 40px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: var(--z-opacity-slider, 450);
  user-select: none;
  touch-action: none;
  animation: vnm-op-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.vnm-op-track {
  position: relative;
  width: 10px;
  height: 150px;
  background: linear-gradient(to bottom, #2563eb 0%, rgba(37,99,235,0.25) 100%);
  border-radius: 5px;
  cursor: ns-resize;
  touch-action: none;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.3);
}
.vnm-op-thumb {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border: 3px solid #2563eb;
  border-radius: 50%;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(37,99,235,0.40), 0 1px 4px rgba(0,0,0,0.20);
  top: 37px;
}
.vnm-op-pct {
  font-size: 9px;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1;
  letter-spacing: -0.5px;
}
.vnm-op-auto {
  background: rgba(255,255,255,0.92);
  border: 1px solid #d1d5db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.vnm-op-auto:hover { color: #2563eb; border-color: #2563eb; }

/* ── Vector floor info card (2026-06-21 render upgrade) ─────────────────── */
.vf-card-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.vf-card-category {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.vf-card-hotel {
  font-size: 12px;
  color: #374151;
  margin-bottom: 3px;
}
.vf-card-hours {
  font-size: 12px;
  color: #374151;
  margin-bottom: 6px;
}
