* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: black;
    color: white;
    overflow-x: hidden; /* Added to hide horizontal scrollbar */
}

.main-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
}

.left-side {
    flex: 1;
    padding: 20px;
    color: white;
    font-size: 1em;
    background-color: #222;
    border-radius: 8px;
    margin-right: 10px;
}


/* Navigation Styles */
nav {
    background-color: black;
    padding: 10px;
    position: relative;
    z-index: 5;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
}

nav ul li a:hover {
    background-color: #555;
    border-radius: 4px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
    position: absolute;
    left: 20px;
    top: 12px;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* Responsive Layout */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 50px;
        right: 0;
        width: 100%;
        display: none;
    }

    nav ul.active {
        display: block;
    }

    .hamburger {
        display: block;
    }
}

.h-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100vw;
    box-sizing: border-box;
    padding: 0 20px;
}


.heighlight-container {
    width: 40vw;
    margin: 10px;
    padding: 5px;
    font-size: 1rem;
}
@media (max-width: 768px) {
    .heighlight-container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        gap: 20px; /* Add spacing between items */
        padding-top: 48px;
    }
}
@media (max-width: 768px) {
    .h-container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        gap: 20px; /* Add spacing between items */
        padding-top: 48px;
    }
}

.heighlight-container ul {
    margin-left: 16px;
    margin-top: 16px;
}

.heighlight-container ul li {
    margin-top: 8px;
}

.heighlight-container ul li p {
    display: none;
}

.heighlight-container ul li h3:hover + p {
    display: block;
    color: white;
}

/* Footer */
footer {
    position: fixed;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

footer p {
    margin: 0;
    flex: 1;
    text-align: center;
}


.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}



/* Impressum Button */
.impressum-button {
    background-color: #555;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    margin-right: 20px;
}

.impressum-button:hover {
    background-color: #777;
}

@media (max-width: 768px) {
    .h-container {
        flex-direction: column;
        justify-content: flex-start;
        width: 100vw;
    }
    .heighlight-container {
        width: 90vw;
        height: auto;
        margin-top: 32px;
        order: 2;
    }
    .heighlight-container ul {
        margin-left: 8px;
    }
  
   
}


.right-side {
    align-self: flex-start;
}

.right-side-img {
    display: block;
    width: 30vw;
    position: relative;
}


    /* General Styles */
    .apartment {
        position: absolute;
        border: 2px solid transparent;
        cursor: pointer;
    }

    .apartment:hover {
        border: 2px solid rgb(255, 3, 3);
    }

    .apartment-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:black;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 20px;
        overflow-y: auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 6;
    }
    .apartment-popup > * {
    max-width: 100%;
    margin-bottom: 20px; /* Space between elements */
}

    .apartment-popup.visible {
        display: flex;
    }

    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        background: white;
        color:black;
        border: none;
        padding: 10px 15px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }

    .popup-content {
        text-align: center;
        width: 90%;
        max-width: 800px;
    }

    .popup-content h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .popup-content h4 {
        font-size: 0.8rem;
        margin-bottom: 10px;
        font-weight: normal;
        color: gray;
    }

    .popup-content p {
        font-size: 0.8rem;
        margin-bottom: 6px;
       
    }

    .slideshow-container img {
        max-width: 100%;
        height: 800px;
        margin: 6px 0;
    }

    /* Responsive Styles */
    @media (max-width: 768px) {
        .right-side {
            padding: 5px;
        }

        .popup-content h3 {
            font-size: 1rem;
        }

        .popup-content h4 {
            font-size: 0.8rem;
        }

        .popup-content p {
            font-size: 0.8rem;
        }
    }

    @media (max-width: 768px) {
        .popup-content h3 {
            font-size: 1rem;
        }

        .popup-content h4 {
            font-size: 0.8rem;
        }

        .popup-content p {
            font-size: 0.8rem;
        }

        .close-button {
            font-size: 14px;
            padding: 8px 12px;
        }
    }

    .extra-button {
 
    padding: 5px 10px;
    font-size: 12px;
    background-color:white;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.extra-button:hover {
    background-color: white;
}





/* Style for the container and responsive image */
.right-side {
  position: relative;
  /* width: 100%; Full width of the parent */
  /* max-width: 1200px; Optional: set max width */
  /* aspect-ratio: 16/9; Match image aspect ratio */
  /* margin: auto; Center on the page */
  overflow: hidden; /* Ensure no overflow */
  /* margin-bottom: 150px; */
  margin: 10px;
  padding: 5px;
  width: 50vw;

}

.right-side-img {
  width: 100%; /* Image fills the width of the container */
  height: 100%; /* Maintain aspect ratio */
  object-fit: contain; /* Ensures no image distortion */
  display: block;
}

/* Clickable areas */
.apartment {
  position: absolute;
  cursor: pointer;
  /* Clickable areas are positioned with percentages to scale correctly */
}

/* Optional: For small devices, adjust proportions if necessary */
@media (max-width: 768px) {
  .right-side {
    width: 100%; /* Fit smaller screens */
  }
}

