body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
}

/* checkbox list in top right of viewport */
#checkbox-list-container {
    position: absolute;
    top: 10px;
    right: 10px;
    background: black;
    color: white;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

#checkbox-list-container h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}

/* heatmaps */
.heatmap_button {
    width: 100%;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px;
    margin-top: 5px;
    cursor: pointer;
    display: block;
}

.heatmap_button:hover {
    background-color: #0056b3;
}

.clear_heatmap_button {
    display: block;
    width: 100%;
    background-color: gray;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px;
    margin-top: 5px;
    cursor: pointer;
}

.clear_heatmap_button:hover {
    background-color: #666666;
}

/* legend */
#legend-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: black;
    color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 300px;
    overflow-y: auto;
    max-height: 400px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    border: 1px solid black;
}

.legend-text {
    font-size: 14px;
}

.legend-image {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.legend-section {
    margin-bottom: 10px;
}

.legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

/* prediction pin */
#pin-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: black;
    color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 150px;
}

#reset-pin-button {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

#reset-pin-button:hover {
    background-color: #0056b3;
}

#draggable-pin {
    font-size: 24px;
    cursor: grab;
}


#draggable-pin:active {
    cursor: grabbing;
}

#pin-title {
    margin: 0;
    padding: 5px 0;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
}


/* general cluster icon styling */
.custom-cluster-icon, .custom-rectangle-icon, .custom-monochrome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.custom-cluster-icon {
    border: 2px solid black;
}

/* default circles */
.custom-cluster-icon {
    background-color: transparent;
    border-radius: 50%;
    height: 40px;
    width: 40px;
}

/* traffic/gradient rectangles */
.custom-rectangle-icon {
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    color: white;
}

/* monochrome circles */
.custom-monochrome-icon {
    background-color: transparent;
    border-radius: 50%;
    color: white;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}