@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(90, 204, 225, 0.7); /* Light blue glow, transparent */
        border-color: #90cce1; /* Lighter blue border */
    }
    50% {
         box-shadow: 0 0 8px 10px rgba(90, 204, 225, 0); /* Glow expands and fades */
         border-color: #ffffff; /* White border at peak */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(90, 204, 225, 0); /* Glow fully faded */
        border-color: #90cce1; /* Back to lighter blue */
    }
}

.room.current-room {
    border-color: #90cce1; /* Start with a brighter border */
    /* Apply the animation */
    animation: pulse-border 2s ease-in-out infinite;
    /* Ensure it's visually distinct even without animation */
    box-shadow: 0 0 5px rgba(90, 204, 225, 0.5);
}

/* Popup Styles */
#room-popup {
    position: absolute; /* Positioned by JavaScript */
    display: none; /* Hidden by default */
    min-width: 250px;
    max-width: 350px;
    background-color: rgba(22, 33, 62, 0.95); /* Dark blue, mostly opaque */
    border: 1px solid #53a8b6; /* Blue border */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Ensure it's on top */
    color: #e0e0e0;
    font-size: 0.9em;
}

#room-popup h4 {
    margin: 0 0 10px 0;
    color: #90cce1; /* Lighter blue heading */
    font-size: 1.1em;
    border-bottom: 1px solid #53a8b6;
    padding-bottom: 5px;
}

#room-popup p {
    margin: 5px 0;
    line-height: 1.4;
}

#room-popup strong {
    color: #ffffff;
}

#room-popup a, #room-popup button {
    display: inline-block; /* Allow margin */
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #0f3460;
    color: #e0e0e0;
    border-radius: 4px;
    border: 1px solid #53a8b6;
    text-decoration: none;
    pointer-events: auto; /* Re-enable pointer events specifically for the link */
}

#room-popup a:hover, #room-popup button:hover {
    background-color: #53a8b6;
    color: #16213e;
    text-decoration: none;
}