/* Apartment Floor Plan Interactive Map */
.floor-plan-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 1000px;
}

.floor-plan-container img {
    width: 100%;
    height: auto;
    display: block;
}

.floor-plan-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.room-area {
    fill: transparent;
    stroke: transparent;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.room-area:hover {
    fill: rgba(0, 255, 241, 0.3);
    stroke: #00fff1;
    stroke-width: 3;
}

.room-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
    white-space: nowrap;
    border: 1px solid #00fff1;
}

.room-tooltip.visible {
    opacity: 1;
}

.room-tooltip .room-name {
    font-weight: 700;
    color: #00fff1;
    font-size: 16px;
    margin-bottom: 5px;
}

.room-tooltip .room-size {
    font-size: 13px;
    color: #ccc;
}

/* Legend */
.floor-plan-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 5px 10px;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legend-item:hover {
    background: #00fff1;
    color: #000;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .floor-plan-legend {
        justify-content: center;
    }
    
    .room-tooltip {
        font-size: 12px;
        padding: 8px 12px;
    }
}
