
.ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 280px;
    max-width: 400px;
    /* Limit width for very long content */
}

.ol-popup:after,
.ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 8px;
    right: 8px;
}

.ol-popup-closer:after {
    content: "✖";
}

#popup-content-wrapper {
    max-height: 300px;
    /* Adjust based on your needs */
    overflow-y: auto;
    /* This makes it scrollable */
    margin-right: -15px;
    /* Compensates for the padding */
    padding-right: 15px;
    /* Prevents content from touching the scrollbar */
}

#popup-content {
    margin-top: 10px;
    /* Space for the close button */
}

/* ! edit these------------------------------------------- */
.popup-section {
    margin-bottom: 15px;
}

.popup-section h4 {
    margin-bottom: 5px;
    color: #333;
}

.popup-section p {
    margin: 0;
    line-height: 1.4;
}

/* ! edit these------------------------------------------- */

.map-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-loader.hidden {
    display: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ba0c2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}