/* Popups */

.leaflet-popup-content-wrapper {
    border-radius: 0.2rem !important;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.rm-icon-popup-container {
    display: flex;
    position: absolute;
    right: 0;
    left: 0;
    margin-top: 0.2rem;
}

.rm-popup-edit-controls {
    display: none;
    position: absolute;
    right: 0;
    left: 0;
    margin-top: 0.2rem;
}

.rm-edit-control {
    display: none;
}

.rm-edit-mode-on .rm-edit-control {
    display: flex;
}

.rm-pu-img,
.rm-pu-img-placeholder {
    border-radius: 0.2rem 0.2rem 0 0;
    background: #e5e5e5;
    object-fit: cover;
    width: 88vh;
    height: 70vh;
    max-width: 50rem;
    max-height: 40rem;
}

@media (max-aspect-ratio: 2 / 3) {
    .rm-pu-img,
    .rm-pu-img-placeholder {
        width: 95vw;
        height: 76vw;
        max-width: 50rem;
        max-height: 40rem;
    }
}

.rm-pu-name {
    font-weight: bold;
}

.rm-pu-grade {
    font-weight: bold;
    color: #333;
    max-width: fit-content;
}

.rm-pu-description {
    background-color: rgba(255, 255, 255, 0.95);
    min-width: 99%;
}

.rm-pu > .row > * {
    margin: auto 0.25em;
}

.hidden-input {
    display: none;
}

.rm-icon-editable-editing {
    position: relative;
    display: flex !important;
    flex-grow: 1;
    border: 1px solid blue;
    outline: none;
    min-height: 1.3rem;
}

.rm-icon-editable-editing:empty:before {
    content: attr(data-before);
    font-weight: normal;
    color: #666;
    position: absolute;
    right: 0;
}

/* Map annotations */
.rm-map-line-track {
    color: white;
    stroke: white;
    stroke-dasharray: 0.25rem;
    stroke-width: 1px;
    filter: drop-shadow(0 0 2px black);
}

.rm-map-icon-problem,
.rm-map-icon-landmark {
    background-color: white;
    text-align: center;
    line-height: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 1px white;
    border-radius: 3px;
}

.rm-map-icon-track {
    text-align: center;
    line-height: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 1px white;
    padding: 4px;
    width: 0;
    height: 0;
    background-color: orange;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
}
