:root {
    --primary-color: #006332;
    --primary-hover: #004d26;
    --marker-size: 30px;
}

/* The wrapper for the whole marker (Pin + Label) */
.custom-marker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Place Name Label */
.marker-label {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    white-space: nowrap;
    margin-bottom: 5px; /* Space between name and pin */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none; /* Let clicks pass through to the pin */
}

/* The Pin */
.custom-pin {
    width: var(--marker-size);
    height: var(--marker-size);
    border-radius: 50% 50% 50% 0;
    background: var(--primary-color);
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.custom-pin::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -5px;
}

.custom-pin:hover {
    background: var(--primary-hover);
    transform: rotate(-45deg) scale(1.1);
}

/* Style for the list item */
.side-heritage-list li.active {
    background-color: #f8f9fa; /* Light grey background */
    border-left: 4px solid var(--primary-color); /* Primary color indicator */
    padding: 10px;
}

/* Optional: change the text color for the active title */
.side-heritage-list li.active h3 {
    color: var(--primary-color);
    font-weight: bold;
}
