:root {
  --accent: #3b82f6;
  --accent-warm: #f59e0b;
  --bg-card: rgba(15, 18, 26, 0.86);
  --fg: #f4f6fb;
  --fg-muted: #b7c0d4;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 1920px;
  height: 1080px;
  background: transparent;
  overflow: hidden;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- mapa (Leaflet), inset arriba a la derecha, oculto salvo cuando la escena trae geo --- */
#map {
  position: absolute;
  top: 48px;
  right: 48px;
  width: 420px;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
#map.visible {
  opacity: 1;
  transform: translateY(0);
}

.leaflet-marker-pulse {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 0 rgba(245, 158, 11, 0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70%  { box-shadow: 0 0 0 22px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* --- tarjeta principal, abajo a la izquierda --- */
.card {
  position: absolute;
  left: 48px;
  bottom: 48px;
  max-width: 860px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: var(--fg);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #08101f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge.warm { background: var(--accent-warm); }

.thumb {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1c2333;
}
.thumb.hidden { display: none; }

.body { min-width: 0; }

.title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 560px;
}

.sub {
  margin-top: 6px;
  font-size: 19px;
  color: var(--fg-muted);
}

.meta {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-warm);
}

.desc {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--fg-muted);
  max-width: 620px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hidden { display: none; }
