body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

html {
    scroll-behavior: smooth;
}

h1, p {
    color: #333;
}

/* Navbar styling */
header {
    background-color: white;
    padding: 10px 20px;
}

.navbar {
    display: flex;
    justify-content: flex-start; /* Align all items to the left */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    margin-right: auto; /* Pushes the logo to the right */
}

.logo img {
    max-height: 60px;  /* Adjust according to your logo size */
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 10px; /* Small margin to space the links */
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px; /* Uniform padding for all items */
}

.nav-links a:hover {
    color: #4CAF50;  /* Change color on hover */
}

.cta-button {
    background-color: #8BC34A;
    color: white;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px; /* Same padding as the links */
    margin-left: 10px; /* Small margin to align with other links */
}

.cta-button:hover {
    background-color: #7CB342;
}

/* Footer styling */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer .social-icons a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

footer .social-icons a:hover {
    text-decoration: underline;
}


/* Building image and apartments */
.building {
    position: relative;
    width: 100vw;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.building-foto {
    position: relative;
    width: 100%;   /* Ensures full width for the building image */
    height: auto;  /* Maintains the aspect ratio */
    overflow: hidden; /* This ensures that the extra part is hidden */

}


.building-plan {
    flex: 1;
    max-width: 50%; /* Use 50% of the width for the plan */
}

.plan-and-table {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Ensures both the plan and table stretch to the same height */
    width: 100%; /* Stretch to full width of the viewport */
    margin: 0; /* Remove margins to ensure it's stretched */
}

.building-image {
    width: 100%; /* Ensure image takes full width */
    height: auto; /* Maintain aspect ratio */
    
}

.apartment {
    position: absolute;
    background-color: rgba(0, 255, 0, 0.4);
    cursor: pointer;
    transition: background-color 0.3s;
}

.apartment.available:hover {
    background-color: rgba(0, 255, 0, 0.7);
}

.apartment.reserved {
    background-color: rgba(255, 165, 0, 0.4);
}

.apartment.reserved:hover {
    background-color: rgba(255, 165, 0, 0.7);
}

.apartment.sold {
    background-color: rgba(255, 0, 0, 0.4);
}

.apartment.sold:hover {
    background-color: rgba(255, 0, 0, 0.7);
}

#apartment1 {
    top: 26%;
    left: 12%;
    width: 23%;
    height: 25%;
    clip-path: polygon(0% 52%, 30% 28%, 44% 33%, 85% 4%, 98.3% 11%, 98.3% 50%, 85% 57%, 85% 77%, 65% 86%, 50% 83%, 15% 100%, 0% 95%);
}

#apartment2 {
    top: 5%; 
    left: 31.5%;
    width: 51.5%;
    height: 40.2%;
    clip-path: polygon(0% 100%, 0% 88%, 6% 83%, 6% 59.5%, 32% 35%, 38.5% 40.5%, 80% 5%, 99% 40%, 99% 90%, 80% 70.5%, 60.5% 80%, 55.5% 76%, 19% 96%, 13% 92.6%, 0% 100%);
}

#apartment2_1 {
    top: 30%;
    left: 8%;
    width: 33%;
    height: 65%;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

#apartment2_2 {
    top: 45%;
    left: 42%;
    width: 50%;
    height: 50%;
    clip-path: polygon(0% 30%, 47% 30%, 47% 0%, 100% 0%, 96.5% 14%, 40% 100%, 0% 100%);
}

#tooltip {
    position: absolute;
    padding: 10px;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    display: none;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    max-width: 200px;
}

.tooltip .title {
    font-size: 16px;
    font-weight: bold;
}

.tooltip .available {
    color: #00FF00;
}

.tooltip .price {
    font-size: 14px;
    margin-top: 5px;
    color: #FFD700;
}

.tooltip::after {
    content: '';
    position: absolute;
    border: 5px solid transparent;
    border-top-color: #000;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Table container styling */
.table-container {
    flex: 1;
    max-width: 50%;
    background-color: #679E32;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center only the table */
    height: auto;
    position: relative; /* Allow h2 to be positioned freely */
}

/* Ensure h2 is at the top */
.table-container h2 {
    font-size: 40px;
    color: white;
    text-align: left; /* Align the text to the left */
    padding: 50px 40px; /* Add padding for distance from the left edge */
    display: inline-block;
    border-radius: 5px;
    margin: 0 0 10px 0; /* Zero margin on top, small margin below */
    position: absolute;
    top: 0;
    left: 0; /* Align the heading with the left edge */
    transform: translateX(0); /* No centering needed */
}




#apartment-table {
    color: white;
    width: 100%;
    text-align: left; /* Ensure text inside the table is aligned left */
    padding-left: 40px; /* Padding for spacing from the left edge */
    border-collapse: collapse; /* Collapses borders so there is no grid */
}

/* Remove borders between table cells */
thead th, tbody td {
    padding: 12px;
    font-size: 18px;
    border: none; /* Remove the borders to hide the grid */
    border-bottom: 1px solid rgba(255, 255, 255, 1);
    text-align: left; /* Align the table cells and headers to the left */
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 1); /* Slight white hover effect */
}

.price {
    font-weight: bold;
    white-space: nowrap; /* To prevent price text from wrapping */
}

.status-badge {
    background-color: #00a000;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
}

.status-badge:hover {
    background-color: #009000;
}

/* Style for the external link */
.external-link {
    text-decoration: none;
    color: white; /* Default color is white */
    font-size: inherit;
}

/* Adjust the icon displayed after the link */
.external-link::after {
    content: '\2197'; /* External link symbol */
    padding-left: 5px;
    color: white; /* Default icon color is white */
    font-size: 2em; /* Icon size */
    font-weight: bold;
    vertical-align: middle;
}

/* Hover effect for the entire section or row (e.g., tr) */


/* On hover change text and icon color */


/* Remove underline on hover as well */
.external-link:hover {
    text-decoration: none; /* No underline even when hovering */
}

/* Row highlighting when clicked */
#apartment-table tr.selected {
    background-color: white;
    color: black; 
}

#apartment-table tr.selected .external-link::after {
    color: black; /* Light green highlight */
}



/* Hero section styling */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-image: url('https://rezidencesusicka.cz/wp-content/uploads/1_9_1_1.webp'); /* Update path as necessary */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dark overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Adjust opacity as needed */
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 20px;
    z-index: 2; /* Ensures content is above the overlay */
}

.hero h1 {
    font-size: 3em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Shadow for readability */
}

.hero p {
    font-size: 1.5em;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-button {
    padding: 15px 30px;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
}

.hero-button.primary {
    background-color: #8BC34A;
    color: white;
}

.hero-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero-button.primary:hover {
    background-color: #7CB342;
}

.hero-button.secondary:hover {
    background-color: white;
    color: #333;
}

/* Split Screen Section */
.split-screen-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.split-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 5%;
}

.split-left, .split-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; /* Left-align text */
}

.split-left img, .split-right img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border: 5px solid #8BC34A;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Text Block Styling */
.split-left h2, .split-right h2 {
    font-size: 1.8em;
    color: #333; /* Black heading */
    margin-bottom: 20px;
}

.split-left p, .split-right p {
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Button Styling */
.split-right .cta-button, .split-left .cta-button {
    display: inline-block;
    padding: 8px 15px;                /* Reduced padding for smaller width */
    font-size: 1em;                 /* Slightly smaller font size */
    border-radius: 25px;              /* Rounded corners */
    color: black;                     /* White text */
    border: 2px solid black;          /* White border */
    background-color: transparent;    /* Transparent background */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 150px;                 /* Optional: limit button width */
    text-align: center;               /* Center text within button */
}

.split-right .cta-button:hover, .split-left .cta-button:hover {
    background-color: black; /* Black background on hover */
    color: white;            /* White text on hover */
    border-color: black;     /* Black border on hover */
}

.split-left {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically if needed */
}

.split-left img {
    width: 350px; /* Set the width of the square */ /* Match height to make it a square */
    object-fit: cover; /* Ensures the image fills the square without distortion */
    border-radius: 10px; /* Optional: add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add shadow */
}



/* Responsive Design */
@media (max-width: 768px) {
    .split-row {
        flex-direction: column;
    }

    .split-left, .split-right {
        text-align: left; /* Left-align text on smaller screens as well */
    }

    .split-left img, .split-right img {
        max-height: 250px;
    }
}


@media (max-width: 1000px) {
    .podlazi {
       display: none !important;
   }
}

@media (max-width: 1000px) {
    .plan-and-table {
        flex-direction: column;
    }

    .building-plan, .table-container {
        max-width: 100%;
    }
}
