#map {
    height: 100%;
    min-height: 780px;
    width: 100%;
    background-color: #cfedfc;
    position: relative;
    z-index: 0;
}

/* Styling cho popup */
.leaflet-container {
    font-size: 14px;
}
.leaflet-popup-content{
    width: 300px;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 10px;
}
.leaflet-marker-pane img{
    width: 18px!important;
    height: 18px!important;
}
.leaflet-popup-content-wrapper {
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-height: 450px;
    overflow-y: auto;
    background: #FFF0EC;
}
.leaflet-popup-content h1 {
    color: #111213;
    font-size: 18px;
    margin: 0;
    font-weight: bold;
    font-family: 'Roboto';
    position: relative;
    padding-left: 25px;
    position: relative;
    top:2px;
    padding-bottom: 5px;
}
.leaflet-popup-content h1::before{
    position: absolute;
    top:0;
    left: 0;
    content: '';
    background: url(./img/icon_locations.png) no-repeat center;
    background-size: contain;
    height: 21px;
    width: 20px;
    display: block;
}
.info {
    line-height: 1.4;
    padding: 5px 0;
}
.viewmore{
    display: flex;
    justify-content: center;
    color: #DB252C;
    border: 1px solid #DB252C;
    border-radius: 2px;
    padding: 6px 0;
}
.viewmore a{
    color: #DB252C;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    font-family: "Roboto";
}

.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;
    display: none;
    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;
}
.leaflet-left .leaflet-control {
    margin: 0;
    padding: 10px;
}
.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;
    border: none;
    color: #333;
    font-size: 1em;
    box-sizing: border-box;
    border-radius: 6px;
    /* background: linear-gradient(90deg, #14b8c2 0%, #2483eb 100%); */
}
.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: #DB252C;
    font-family: "Roboto";
    font-size: 1.2rem;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -0.54px;
    margin: 0;
    max-width: 300px;
}
@media (max-width: 768px) {
    .map-wrapper {
        height: 480px;
    }
    .label-select-point {
        display: none;
    }
}
