#map {
    cursor: crosshair;
    height: 100%;
    width: 100%;
    border-radius: 1rem;
}

.room {
    position: relative;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(24px);
    transform: translateY(-100%);
    z-index: 1000;
    border-radius: 15px;
}

.room-back {
    background-color: white;
    position: fixed;
    border: 2px outset #1a5f3a;
    border-radius: 15px;
    font-size: 2rem;
    width: 5rem;
    height: 3rem;
    cursor: pointer;
    z-index: 1001;
    margin: 0.75rem;
    transition: all 0.2s;
}

.room-back::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-25%) translateY(-50%) rotateZ(-45deg);
    content: '';
    border: 4px solid #1a5f3a;
    border-bottom: none;
    border-right: none;
    border-radius: 2px;
    height: 16px;
    width: 16px;
}

.room-back:hover {
    background-color: #e1ede1;
    scale: 1.1;
}

.room-bg {
    position: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    border-radius: 15px;
}

.r-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 96px;
    height: 96px;
    border: 4px outset #1a5f3a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.leaflet-control-attribution {
    opacity: 0.25;
    transition: opacity 0.3s ease-in-out;
}

.leaflet-control-attribution:hover {
    opacity: 1;
}

.marker-img {
    background-color: green;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.marker-popup {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(50%) scale(0%);

    background: white;
    padding: 8px 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 14px;
    width: 12rem;

    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
}

.marker-popup h4 {
    text-align: center;
}

.marker-popup span.mapa-link {
    display: flex;
    overflow: hidden;
    & a {
        color: #4B87FF;
        text-decoration: underline;
    }
    & a:hover {
        opacity: 0.75;
    }
}

.r-marker:hover .marker-popup,
.marker-popup:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(50%) scale(100%);
    pointer-events: all;
}

.lm-red {
    --text-color: #FF4B4B;
}

.lm-green {
    --text-color: #55BD2F;
}

.lm-blue {
    --text-color: #4B87FF;
}

.l-marker {
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: sans-serif;
    font-weight: bolder;
    font-size: 1.5rem;
    color: var(--text-color);

    text-shadow:
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
}

.legend-title {
    font-size: 2rem;
}

.mapa-hr {
    margin-block: 1rem;
}

.legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 16px;
}

.legend div {
    color: var(--text-color);
    grid-column: span 1;
    grid-row: span 1;
    display: flex;
    align-items: center;
    border: 2px solid;
    border-color: var(--text-color);
    border-radius: 16px;
    flex-direction: column;
    padding: 0.5rem;
}

.legend div h4 {
    font-size: large;
    font-weight: bolder;
}

.legend div li {
    display: flex;
    align-items: center;
    gap:10px;
    color: black;
    line-height: 2.5rem;
    width: 100%;
}

.details {
    font-size: 0.75rem;
    color: gray;
}