path:hover {
    fill: rgb(107, 178, 236);
    stroke: rgb(42, 152, 196);
    stroke-width: 3px;
    transition: fill 0.4s;
}


h1 input {
  font-size: 1em;
  height: 1em;
}

#map-wrapper {
    position: relative;
    display: inline-block;
}

.event-tooltip {
    position: absolute;
    transform-origin: top left; /* Ensure the scale transforms from the top-left corner */
    background: rgba(255, 254, 240, 0.0);     /* transparent background */
    border: 2px solid rgba(179, 51, 51, 0.85);
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    /* max-width: 240px;
    max-height: 100px;           Fixed reasonable height */
    overflow-y: auto;            /* Scrollable */
    z-index: 100;
    pointer-events: auto;
    font-size: 14.2px;
    line-height: 1.48;
    color: rgba(0, 0, 0, 0.4);  /* Text slightly transparent */
    backdrop-filter: blur(4px);  /* Optional modern blur effect */
}

.event-tooltip strong {
    font-size: 16px;
    color: #b33;
}

/* Optional: nicer scrollbar */
.event-tooltip::-webkit-scrollbar {
    width: 6px;
}

.event-tooltip::-webkit-scrollbar-thumb {
    background: rgba(179, 51, 51, 0.5);
    border-radius: 10px;
}

#btnPrev, #btnNext {
    margin-left: 8px;
    padding: 8px 14px;
    font-size: 1em;
    background-color: #b33;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#btnPrev:hover, #btnNext:hover {
    background-color: #a22;
}