.map-section {
    padding: 0;
    background: #fff;
    margin-bottom: 10px;
}

.map-header {
    background-image: url('../images/bannn.png');
    object-fit: cover;
    text-align: center;
    padding: 15px;
    opacity: 0.9;
}

.map-title {
    font-size: 24px;
    color: var(--mainColor);
    font-weight: bold;
}

.map-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* padding: 20px; */
}

.control-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.map-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.map-search-btn,
.map-view-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    background: #79D0FF;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 162px;
    min-height: 44px;
}

.map-search-btn:hover,
.map-view-btn:hover {
    background: #1557b0;
}

.map-visualization {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.vietnam-map {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
}

.info {
    padding: 10px 15px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    max-width: 300px;
}

.info h4 {
    margin: 0 0 10px;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.legend {
    line-height: 18px;
    color: #555;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.legend-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.legend i {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 8px;
    opacity: 0.7;
    border-radius: 3px;
}

.emissions-chart {
    margin-top: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    height: 20px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    transition: width 0.3s ease;
}

#region-details {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#region-details h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
}

.map-controls {
    /* margin-top: 15px; */
    margin-bottom: 15px;
    background: var(--mainColor);
    opacity: 10;
    padding: 15px;
    /* border-radius: 8px; */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.control-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.map-select {
    min-width: 285px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
	
	appearance: none; /* Firefox */
	-webkit-appearance: none; /* Safari/Chrome */
	-moz-appearance: none; /* Firefox */
	padding: 8px 32px 8px 12px; /* chừa khoảng cho mũi tên */
}

.map-select:focus {
    border-color: #1a73e8;
    outline: none;
}

.leaflet-popup-content {
    margin: 15px;
}

.map-legend {
    width: 300px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.map-legend h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.legend-list,
.emission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legend-list li,
.emission-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.legend-color,
.emission-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
    display: inline-block;
}

.emission-color.red {
    background: #dc3545;
}

.emission-color.blue {
    background: #007bff;
}

.percentage {
    margin-left: auto;
    font-weight: bold;
}

.emission-types {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

@media (max-width: 992px) {
    .map-visualization {
        flex-direction: column;
    }

    .map-legend {
        width: 100%;
    }
}
.region-popup {
    padding: 10px;
}

.region-popup h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: bold;
}

.chart-container {
    margin-top: 10px;
    background: #f0f0f0;
    height: 15px;
    border-radius: 3px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.leaflet-popup-content {
    min-width: 200px;
}

.region-details {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.details-content {
    margin-top: 10px;
}

.details-summary {
    margin-top: 15px;
}

.details-summary ul {
    list-style: none;
    padding-left: 15px;
}

.region-control {
  background: white;
  padding: 8px;
  border-radius: 5px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
#regionSelect {
  width: 180px;
  padding: 10px;
}

#region-legend {
  position: absolute;
  top: 35%;
  right: 1%;
  z-index: 1000;
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  max-height: 80vh;
  overflow-y: auto;
}

.legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
}

.color-box {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--color);
  border-radius: 2px;
  margin-right: 6px;
  flex-shrink: 0;
}

.legend-item .percent {
  margin-left: auto;
  font-weight: bold;
}

.title1{
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: white;
    font-weight: 200;
}

.title2{
    font-family: 'Roboto', sans-serif;
    font-size: 21px;
    color: white;
    font-weight: 500;
}

/* #map {
    height: 600px;
}
#chartContainer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
}
canvas {
    width: 100% !important;
    height: auto !important;
} */

.custom-select-wrapper {
	position: relative;
}

.custom-select-wrapper::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 24px;
	height: 24px;
	background: url(/Portals/_default/Skins/CBITDCC/images/expand_more_24px_rounded.svg) no-repeat center;
	background-size: contain;
	transform: translateY(-50%);
	pointer-events: none;
}