/* Ingetrans - Live Map Widget CSS */
:root {
  --gflivemap-brand: #22c55e;
  --gflivemap-red: #dc4535;
}

.gflivemap-section {
  background: #0f172a;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
}
.gflivemap-section * { box-sizing: border-box; }

.gflivemap-map-wrapper {
  position: relative;
  width: 100%;
}

.gflivemap-map {
  width: 100%;
  height: var(--map-h-desk, 600px);
}

@media(max-width: 768px) {
  .gflivemap-map {
    height: var(--map-h-mob, 450px);
  }
}

.gflivemap-overlay { position: absolute; z-index: 10; pointer-events: none; }
.gflivemap-overlay--top {
  top: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(to bottom, rgba(15,23,42,0.8) 0%, transparent 100%);
}
.gflivemap-overlay--bottom {
  bottom: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(to top, rgba(15,23,42,1) 0%, rgba(15,23,42,0.8) 30%, transparent 100%);
}

.gflivemap-hero {
  text-align: center;
  margin-bottom: 24px;
}
.gflivemap-hero__label {
  font-size: 11px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gflivemap-red); margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(0,0,0,1));
}
.gflivemap-hero__number {
  font-size: clamp(64px, 12vw, 120px); font-weight: 900; line-height: 1;
  color: #fff; letter-spacing: -4px;
  text-shadow: 0 0 60px rgba(220,69,53,0.4), 0 2px 30px rgba(0,0,0,1), 0 0 3px rgba(0,0,0,1);
  transition: all 0.6s ease;
}
.gflivemap-hero__sub {
  font-size: clamp(14px, 2.5vw, 20px); font-weight: 500; color: #cbd5e1; margin-top: 8px;
  text-shadow: 0 1px 12px rgba(0,0,0,1), 0 0 4px rgba(0,0,0,1);
}

@media(max-width: 640px) {
  .gflivemap-hero__number { letter-spacing: -2px; font-size: 56px; }
  .gflivemap-hero__label { font-size: 9px; margin-bottom: 2px; letter-spacing: 2px; }
  .gflivemap-hero__sub { font-size: 11px; margin-top: -4px; line-height: 1.2; }
}

.gflivemap-bottom-panel {
  position: relative;
  z-index: 30;
  background: #0f172a;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.gflivemap-countries-bar {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.gflivemap-c-pill {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 99px; padding: 6px 16px;
  font-size: 13px; font-weight: 600; color: #64748b;
  transition: all 0.3s;
}
.gflivemap-c-pill-btn {
  cursor: pointer;
}
.gflivemap-c-pill-btn:hover {
  background: rgba(255,255,255,0.05);
}
.gflivemap-c-pill--active {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
  color: #fff;
}


.gflivemap-stats-bar {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.gflivemap-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  padding: 16px 24px; text-align: center; min-width: 120px; flex: 1; max-width: 200px;
}
.gflivemap-stat-card__val {
  font-size: 24px; font-weight: 900; color: #fff; line-height: 1.1;
}
.gflivemap-stat-card__val.gflivemap-red { color: var(--gflivemap-red); }
.gflivemap-stat-card__val.gflivemap-green { color: var(--gflivemap-brand); }
.gflivemap-stat-card__lbl {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #64748b; margin-top: 4px;
}

@media(max-width: 640px) {
  .gflivemap-countries-bar { gap: 6px; }
  .gflivemap-c-pill { padding: 4px 10px; font-size: 11px; }
  .gflivemap-stat-card { padding: 12px 16px; min-width: 100px; }
  .gflivemap-stat-card__val { font-size: 18px; }
  .gflivemap-stat-card__lbl { font-size: 9px; }
  .gflivemap-bottom-panel { padding: 24px 16px 32px; gap: 16px; }
}

/* Leaflet Popup overrides */
.leaflet-popup-content-wrapper {
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 4px;
}
.leaflet-popup-content { margin: 10px 14px; font-family: 'Inter', sans-serif; }
.leaflet-popup-tip { background: #fff; }
.leaflet-container a.leaflet-popup-close-button { color: #64748b; padding: 6px; }
.leaflet-container a.leaflet-popup-close-button:hover { color: #0f172a; }

.gflivemap-popup-title { font-size: 13px; font-weight: 800; margin-bottom: 4px; color: #0f172a; }
.gflivemap-popup-status { font-size: 11px; font-weight: 600; color: #64748b; display:flex; align-items:center; gap:4px; }
.gflivemap-popup-status.moving { color: #15803d; }
