.filter-row {
  display: flex;
  gap: 8px;
  margin: 14px 0 12px;
  overflow: hidden;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef1fb;
  font-size: 13px;
  white-space: nowrap;
}

.product-pill.active {
  background: rgba(77, 116, 255, 0.28);
  border-color: rgba(104, 143, 255, 0.5);
}

.pill-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.orange { background: radial-gradient(circle at 35% 30%, #ffd39a, #e67a12 72%); }
.grape { background: radial-gradient(circle at 35% 30%, #f2d5ff, #5a203c 75%); }
.onion { background: radial-gradient(circle at 35% 30%, #f9ecce, #a06d3e 72%); }
.apple { background: radial-gradient(circle at 35% 30%, #ffe4d5, #b43429 72%); }
.grain { background: radial-gradient(circle at 35% 30%, #f8e7aa, #bf8f21 75%); }
.tomato { background: radial-gradient(circle at 35% 30%, #ffd4ca, #c93025 72%); }
.flour { background: radial-gradient(circle at 35% 30%, #fafaf5, #c7c1aa 72%); }
.potato { background: radial-gradient(circle at 35% 30%, #f5df9f, #c19a27 72%); }
.arrow { background: linear-gradient(180deg, #858ba1, #6f7485); position: relative; }

.arrow::before {
  content: ">";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #121319;
  font-size: 11px;
  font-weight: 800;
}

.map-panel {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
}

.map-surface {
  position: relative;
  height: 480px;
  background:
    radial-gradient(circle at 18% 14%, rgba(77, 116, 255, 0.18), transparent 22%),
    radial-gradient(circle at 82% 85%, rgba(70, 168, 147, 0.18), transparent 24%),
    radial-gradient(circle at 56% 55%, rgba(255, 183, 77, 0.09), transparent 26%),
    linear-gradient(180deg, #050814, #0d1020);
}

.map-surface::before,
.map-surface::after {
  content: "";
  position: absolute;
  inset: 0;
}

.map-surface::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.16;
}

.map-surface::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(90, 100, 135, 0.18), transparent 20%),
    radial-gradient(circle at 70% 80%, rgba(77, 116, 255, 0.14), transparent 18%);
}

.map-shell {
  padding: 18px;
}

.map-overlay-top {
  position: absolute;
  inset: 18px 18px auto 18px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.map-kicker {
  margin: 0 0 6px;
  color: #91a4e8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.map-overlay-top h2 {
  margin: 0;
  max-width: 340px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.map-stat {
  display: grid;
  gap: 2px;
  min-width: 108px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(10, 14, 27, 0.78);
  backdrop-filter: blur(10px);
}

.map-stat strong { font-size: 22px; }

.map-stat span {
  color: #aeb7d2;
  font-size: 12px;
  font-weight: 700;
}

.map-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.85;
}

.orb-a {
  top: 92px;
  left: 80px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(77, 116, 255, 0.2), transparent 68%);
}

.orb-b {
  top: 200px;
  right: 120px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(84, 198, 181, 0.18), transparent 70%);
}

.orb-c {
  bottom: 56px;
  left: 45%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 194, 87, 0.16), transparent 68%);
}

.vietnam-map {
  position: absolute;
  inset: 18px;
  z-index: 1;
}

.highcharts-background { fill: transparent; }

.highcharts-container { filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.28)); }

.map-status {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 12, 23, 0.82);
  color: #c7d0e8;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.map-status.is-error {
  width: min(420px, calc(100% - 36px));
  border-radius: 18px;
  text-align: center;
  line-height: 1.5;
  white-space: normal;
  color: #ffe5b8;
  border-color: rgba(255, 190, 92, 0.24);
}

.map-status.is-hidden { display: none; }

.province-popup {
  position: absolute;
  z-index: 4;
  width: 280px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(150, 173, 255, 0.28);
  border-radius: 16px;
  background: rgba(15, 20, 37, 0.94);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.province-popup::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -9px;
  width: 18px;
  height: 18px;
  background: rgba(15, 20, 37, 0.94);
  border-left: 1px solid rgba(150, 173, 255, 0.28);
  border-bottom: 1px solid rgba(150, 173, 255, 0.28);
  transform: rotate(45deg);
}

.province-popup.flip::before {
  left: auto;
  right: -9px;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid rgba(150, 173, 255, 0.28);
  border-top: 1px solid rgba(150, 173, 255, 0.28);
}

.province-popup.active {
  opacity: 1;
  transform: translateY(0);
}

.popup-label {
  margin: 0 0 6px;
  color: #8aa4ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.province-popup h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.popup-meta {
  margin: 8px 0 12px;
  color: #acb5d2;
  font-size: 13px;
  line-height: 1.45;
}

.popup-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.popup-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ebefff;
  font-size: 13px;
  line-height: 1.4;
}

.popup-list li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7aa2ff, #4d74ff);
  box-shadow: 0 0 0 5px rgba(77, 116, 255, 0.12);
}

.map-legend {
  position: absolute;
  left: 18px;
  bottom: 42px;
  z-index: 3;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100% - 156px);
}

.legend-pill {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(9, 12, 24, 0.72);
  color: #d8def0;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.discover-badge {
  position: absolute;
  right: 14px;
  bottom: 20px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6b93ff, #4d74ff);
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 18px 30px rgba(77, 116, 255, 0.3);
}

.map-footer {
  position: absolute;
  z-index: 1;
  color: rgba(220, 224, 238, 0.46);
  left: 18px;
  bottom: 12px;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 700;
}