.jslocations {
    overflow: hidden;
    border-radius: 8px;
}

.jslocations-map {
    position: relative;
    width: 100%;
    height: 600px;
}

#gmap {
    width: 100%;
    height: 100%;
}

/* ── Panel ── */
.jslocations-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    max-height: calc(100% - 40px);
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(-16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

@media (max-width: 768px) {
    .jslocations-panel {
        max-width: 300px;
    }
}

.jslocations-panel.is-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

#locationPanel {
    padding: 20px;
    font-size: 0.875rem;
    hr {
        color: #F0F0F0;
        margin: 16px 0;
    }

    .jslocations-panel-scroll {
        overflow-y: auto;
        flex: 1 1 auto;
        min-height: 0;
    }

    .jslocations-panel-references {
        flex: 1 0 auto;

        .jslocations-panel-bottom {
            overflow-x: auto;
            display: flex;
            flex-direction: row;
            justify-content: space-evenly;
            gap: 1rem;

            .jslocations-panel-reference {
                flex: 1 0 128px;
                min-width: 0;

                .jslocations-panel-reference-text {
                    margin-bottom: 1rem;
                    color: var(--color-text);

                    .jslocations-panel-reference-title {
                        font-size: 12px;
                        font-weight: bold;
                        color: var(--color-blue-alt);
                    }

                }

                .jslocations-panel-reference-source {
                    font-size: 10px;
                    opacity: 0.5;
                }

                img {
                    max-height: 190px;
                    max-width: 173px;
                    width: 100%;
                    object-fit: contain;
                }
            }
        }
    }

    .jslocations-panel-close {
        position: absolute;
        top: 10px;
        right: 12px;
        background: none;
        border: none;
        font-size: 20px;
        color: #888;
        cursor: pointer;
        z-index: 1;
        transition: color 0.15s;
    }

    .jslocations-panel-close:hover {
        color: var(--color-blue-alt);
    }

    .jslocations-panel-title,
    .jslocations-panel-subtitle {
        font-size: 1rem;
        font-weight: 300;
        color: var(--color-blue-alt);
    }

    .jslocations-panel-content {
        margin-top: 1.5rem;
        color: #444;
    }

    .jslocations-panel-content p {
        margin-bottom: 0.5em;
    }

    .jslocations-panel-content p:last-child {
        margin-bottom: 0;
    }
}
