#mapa-body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    height: 80vh;
    position: relative;
}

#map {
    flex: 3;
    height: 100%;
    position: relative;
    border: 1px solid #555;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.6);
}

.leaflet-container {
    background: #3e3e3e;
}
.sidebar {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.6);
    margin-right: 20px;
    position: relative;
}
.sidebar h3 {
    margin-top: 0;
}
.point {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: grab;
    user-select: none;
    width: 100%;
}
.point i {
    border: none;
    color: #ee4646;
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
}
.point i:hover {
    color: #ff1a1a;
}
.point-coordinates{
    border: 1px solid #ffffff;
    padding: 2px 10px;
    border-radius: 10px;
    width: 100%;
    margin-right: 10px;
    margin-left: 10px;
}
.point-number {
    width: 20px;
    height: 20px;
    aspect-ratio: 1/1;
    color: #726cf9;
    border: 1px solid #726cf9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background-color: #050612;
    position: relative;
}
.point-number:not(:last-of-type)::before {
    content: '';
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #ffffff 50%, transparent 50%);
    background-size: 4px 4px;
    z-index: -1;
}
.point-number:not(:first-of-type)::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent 50%, #ffffff 50%);
    background-size: 4px 4px;
    z-index: -1;
}
#contextMenu {
    position: absolute;
    display: none;
    background: #444;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
#contextMenu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 10px;
    text-align: left;
    cursor: pointer;
}
#contextMenu button:hover {
    background: #555;
}
.map-style-selector {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}
.map-style-selector select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#optimizeRouteBtn {
    margin-bottom: 10px;
}

#cleanRouteBtn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

#cleanRouteBtn:hover {
    background: #ff1a1a;
}

.optimization-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
}

.optimization-container label {
    white-space: nowrap;
    align-self: flex-start;
}

.select-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.select-button-container select {
    flex-grow: 1;
    padding-right: 30px;
}

#emptyListMessage {
    font-style: italic;
    color: #ccc;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}
