#pig-price-map { 
  border: 1px solid #e5e7eb; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #f8fafc;
}

.ppm-stats { 
  margin-top: 12px; 
}

.ppm-stats-wrap { 
  display: flex; 
  gap: 16px; 
  align-items: center;
  flex-wrap: wrap;
}

.ppm-card { 
  background: linear-gradient(135deg, #4aa8d7 0%, #0d82a6 100%);
  color: #ffffff; 
  padding: 12px 16px; 
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(11, 19, 36, 0.15);
  min-width: 140px;
  border: 1px solid rgba(255,255,255,0.1);
}

.ppm-label { 
  font-size: 11px; 
  opacity: .9;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ppm-value { 
  font-size: 20px; 
  font-weight: 800;
  background: linear-gradient(45deg, #ffffff, #e3f2fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ppm-legend { 
  background: rgba(255,255,255,0.98); 
  padding: 12px 14px; 
  border-radius: 12px; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.15); 
  font-size: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

.ppm-legend-title { 
  font-weight: 700; 
  margin-bottom: 8px;
  font-size: 13px;
  color: #1a237e;
}

.ppm-legend-row { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin: 4px 0;
  padding: 2px 0;
}

.ppm-swatch { 
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid;
  display: inline-block;
}

.ppm-error, .ppm-note { 
  color: #dc2626; 
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 6px;
  border: 1px solid #fecaca;
  margin: 8px 0;
}

.ppm-updated {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  margin-right: 50px;
  font-weight: 500;
  font-size: 11px;
  opacity: .7;
  background: rgba(11, 19, 36, 0.05);
  padding: 6px 10px;
  border-radius: 6px;
  color: #0e326c;
}

.ppm-no-data {
  color: #6b7280;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  text-align: center;
  margin: 8px 0;
}

/* Tooltip styling */
.leaflet-tooltip {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  backdrop-filter: blur(8px);
  font-family: inherit !important;
}

.leaflet-tooltip-top:before {
  border-top-color: rgba(255,255,255,0.95) !important;
}

/* Popup styling */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  background: white !important;
}

.leaflet-popup-content {
  margin: 16px !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  background: white !important;
}

/* Map layer styling for no-data provinces */
.ppm-no-data-layer {
  fillColor: #f3f4f6 !important;
  color: #d1d5db !important;
  fillOpacity: 0.6 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .ppm-stats-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .ppm-card {
    min-width: auto;
    text-align: center;
  }
  
  .ppm-updated {
    margin-left: 0;
    text-align: center;
  }
  
  .ppm-value {
    font-size: 18px;
  }
  
  .ppm-swatch {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid;
  }
}

/* Triangle marker styling */
.ppm-triangle-marker {
  background: transparent !important;
  border: none !important;
}

.ppm-triangle-marker .leaflet-marker-icon {
  background: transparent !important;
  border: none !important;
}

/* Đảm bảo tam giác hiển thị trên cùng */
.leaflet-marker-pane {
  z-index: 600 !important;
}

.leaflet-shadow-pane {
  z-index: 590 !important;
}

.leaflet-overlay-pane {
  z-index: 580 !important;
}