body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    /* Hogy a h2 és a konténer egymás alá kerüljön */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

.floorplan-wrapper {
    position: relative;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Kis árnyék az alaprajznak */
    border-radius: 8px;
    overflow: hidden;
    /* Hogy a kép sarkai ne lógjanak ki a lekerekítésnél */
}

.floorplan-image {
    display: block;
    /* Eltávolítja az extra margót a kép alól */
    max-width: 800px;
    /* Az alaprajz kép maximális szélessége, állítsd a sajátodhoz */
    height: auto;
}

.click-area {
    position: absolute;
    border: 2px dashed green;
    /* Piros, szaggatott vonal */
    cursor: pointer;
    opacity: 0.2;
    /* Alapértelmezetten félig áttetsző, hogy látszódjon az alaprajz alatta */
    background-color: #52ae30;
    /* Enyhén piros háttér, hogy jobban kivehető legyen */
    transition: opacity 0.3s ease, background-color 0.3s ease;
    /* Finom átmenet hoverre */
    box-sizing: border-box;
    /* A border ne növelje meg az elem méretét */
    /* A top, left, width, height a HTML-ben, inline style-ként lesz megadva */
}

.click-area:hover {
    opacity: 0.5;
    /* Hoverre jobban látszik */
    background-color: #52ae30;
    /* Hoverre intenzívebb háttér */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.modal-nav button {
    padding: 8px 12px;
    background-color: #52ae30;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close-button:hover {
    color: black;
}

.image-counter {
    text-align: center;
    margin-top: 8px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}
