#map {
    height: 100%;
    width: 100%;
    background-color: transparent;
    position: relative;
    z-index: 0;
}

/* Styling cho popup */
.leaflet-container {
    font-size: 14px;
}
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-height: 450px;
    overflow-y: auto;
}
.leaflet-popup-content {
    margin: 5px;
}
.leaflet-popup-content h1 {
    margin-top: 0;
    color: #2483eb;
    font-size: 1.5em;
    font-family: hanzel;
    margin-bottom: 10px;
}

.leaflet-popup-content p {
    margin: 5px 0;
    color: #555;
}

.leaflet-popup-content label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.leaflet-popup-content input[type='text'] {
    width: calc(100% - 18px);
    /* Tính toán lại chiều rộng */
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    /* Bao gồm padding và border vào chiều rộng */
}

.leaflet-popup-content button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.leaflet-popup-content .delete-button {
    background-color: #c82333;
}

.leaflet-popup-content .save-button:hover {
    background-color: #0056b3;
}

.leaflet-popup-content .delete-button:hover {
    background-color: #930816;
}

.leaflet-control-command-interior {
    background-image: url(images/command.png);
    width: 20px;
    height: 20px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    display: block;
    padding: 3px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.65);
    cursor: auto;
    text-align: center;
    background-color: #ffffff;
}

.leaflet-control-command-interior:hover {
    background-color: #f4f4f4;
}

/* Styling for the sidebar */
.map-sidebar {
    width: auto;
    /* Fixed width for the sidebar */
    background-color: #f8f9fa;
    /* Light background */
    padding: 10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    /* Spacing between elements */
    border-radius: 0 8px 8px 0;
    /* Rounded right corners */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}
.map-sidebar.fullscreen {
    position: fixed;
    z-index: 100000;
}
.map-sidebar h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.map-sidebar label {
    margin-bottom: 0;
}
.map-sidebar select {
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    /* Include padding and border in width */
    font-size: 1em;
    background-color: white;
}

.map-sidebar .sidebar-button {
    background-color: #245eff;
    /* Red for delete button */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    width: 100%;
    /* Full width button */
    box-sizing: border-box;
}

.map-sidebar .sidebar-button:hover {
    background-color: #0934ab;
}

.map-sidebar .sidebar-button-red {
    background-color: #dc3545;
}
.map-sidebar .sidebar-button-red:hover {
    background-color: #c82333;
}

/* Custom message box styling */
.custom-message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #d4edda;
    /* Default info color */
    color: #155724;
    /* Default info text color */
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.custom-message-box.error {
    background-color: #f8d7da;
    color: #721c24;
}

.custom-message-box.warning {
    background-color: #fff3cd;
    color: #856404;
}

.leaflet-tooltip.leaflet-point-label {
    background-color: #fff;
    border: none;
    box-shadow: none;
    font-weight: bold;
    font-size: 1em;
    border-radius: 5px;
    padding: 3px 10px;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    color: #2483eb;
}
.leaflet-left .leaflet-control {
    margin: 0;
}
.leaflet-control-point-selector {
    padding: 0;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.leaflet-control-point-selector label {
    margin-bottom: 0px; /* Adjust as needed */
    color: #333;
    font-weight: bold;
    font-size: 0.9em; /* Smaller font for control label */
}
.leaflet-control-point-selector select {
    max-width: 250px;
    padding: 8px 10px;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
    border-radius: 6px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.leaflet-control-point-selector select:focus {
    outline: none;
    border-color: #2483eb;
}
.leaflet-control-point-selector button {
    background-color: #dc3545; /* Red for delete button */
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}
.leaflet-control-point-selector button:hover {
    background-color: #c82333;
}
.label-select-point {
    color: #2483eb;
    font-family: Fahkwang;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -0.54px;
    margin-top: 150px;
    max-width: 300px;
}
@media (max-width: 768px) {
    .map-wrapper {
        height: 480px;
    }
    .label-select-point {
        display: none;
    }
}
