body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

.floorplan-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1017 / 829;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.floorplan-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* Kattintható zónák */
.click-area {
    position: absolute;
    border: 2px dashed green;
    cursor: pointer;
    opacity: 0.1;
    background-color: #52ae30;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.click-area:hover {
    opacity: 0.3;
    background-color: #52ae30;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 5px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#panoramaViewer {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-color: #000;
}
