/* General Body & Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.popup-container {
  display: none; /* Initially hide the div */
  position: fixed; /* Stay in place */
  z-index: 1002; /* Sit on top */
  left: 0;
  top: 10%;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.8); /* Black background with opacity */
}

.popup-container img {
  width: 90%; /* Adjust as needed */
  margin: auto; /* Center the image */
  display: block; /* Required for centering */
}

.close {
  color: white;
  position: fixed;
  top: 5%;
  right: 25px;
  font-size: 35px;
  cursor: pointer;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative; /* ADD THIS: Essential for positioning absolute children correctly */
}

.rent {
    color: #39b628;
    font-size: 1.5em;
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 15px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navigation Bar */
#navbar {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    position: sticky; /* Keeps the nav bar at the top */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease; /* For potential JS-driven shrinking */
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-header h1 { /* Target h1 inside the new header div */
    margin: 0;
    color: #fff;
    font-size: 28px;
    padding-left: 0; /* Reset for desktop */
}

/* Nav links for desktop */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping on desktop */
    justify-content: flex-end;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links li a {
    color: #fff;
    font-weight: bold;
    font-size: 17px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Hamburger Menu - Hidden on Desktop */
.nav-toggle {
    display: none; /* Hide the actual checkbox */
}

.nav-toggle-label {
    display: none; /* Hide the label (hamburger icon) by default on desktop */
    cursor: pointer;
    width: 30px; /* Size of the hamburger icon */
    height: 30px;
    position: relative; /* Position relative for the spans inside */
    z-index: 1001; /* Ensure it's above other elements if needed */
    flex-shrink: 0; /* Prevent it from shrinking */
}

.nav-toggle-label span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.nav-toggle-label span:nth-child(1) { top: 0; }
.nav-toggle-label span:nth-child(2) { top: 10px; }
.nav-toggle-label span:nth-child(3) { top: 20px; }

/* Hamburger Menu - Animation (Optional but nice) */
.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* Hero Section */
.hero {
    background: url('images/exterior/001s.jpg') no-repeat center center/cover;
    color: #fff;
    height: 600px;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #eee;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
}

.btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Room and Section Styling */
.room-section {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-out; /* Simple animation */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.room-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #007bff;
}

.room-section .description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.03);
}

/* Contact Section */
.contact-section {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5em;
    color: #007bff;
}

.contact-info {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* ------------------------------------------- */
/* Mobile Responsiveness - Media Queries */
/* ------------------------------------------- */

@media (max-width: 1280px) {
    /* Make nav bar compact on mobile */
    #navbar {
        padding: 10px 0; /* Reduced vertical padding */
    }

    #navbar .container {
        flex-direction: row; /* Keep logo and hamburger on one row */
        justify-content: space-between; /* Push logo left, hamburger right */
        align-items: center;
    }

    .nav-header {
        order: 1; /* Ensure header is first */
        margin-right: auto; /* Push title to the left */
        padding-left: 10px; /* Add some padding on left */
    }

    .nav-header h1 {
        font-size: 24px;
    }

    /* Display hamburger icon */
    .nav-toggle-label {
        display: block; /* Show hamburger icon */
        order: 2; /* Position it correctly */
        margin-right: 10px; /* Add some space on right */
    }

    /* Hide navigation links by default on mobile */
    .nav-links {
        position: absolute;
        top: 100%; /* Position below the compact nav bar, relative to .container */
        left: 0;
        width: 100%;
        background-color: #444; /* Slightly different background for expanded menu */
        flex-direction: column; /* Stack links vertically */
        align-items: center;
        transform: translateY(-100%); /* Start hidden above the viewport */
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
        pointer-events: none; /* Prevent clicks when hidden */
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        z-index: 999; /* Ensure menu appears above content, but below the active toggle */
    }

    /* Show navigation links when hamburger is checked */
    .nav-toggle:checked ~ .nav-links {
        transform: translateY(0); /* Slide down into view */
        opacity: 1;
        pointer-events: all; /* Allow clicks when visible */
    }

    .nav-links li {
        margin: 0; /* Reset margin */
        width: 100%; /* Full width for list items */
        text-align: center;
        border-bottom: 1px solid #555; /* Separator lines */
    }

    .nav-links li:last-child {
        border-bottom: none; /* No border on last item */
    }

    .nav-links li a {
        padding: 15px 0; /* Generous padding for touch targets */
        display: block;
        font-size: 1.1em;
    }

    .hero-content h1 {
        font-size: 3.5em;
    }

    .hero-content p {
        font-size: 1.3em;
    }

    .room-section h2, .contact-section h2 {
        font-size: 2.2em;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


/* Adjustments for screens smaller than 768px (e.g., typical tablets and larger phones) */
@media (max-width: 768px) {
    .container {
        width: 95%;
        /* position: relative; was moved globally, but ensure it's there */
    }

    .nav-header h1 {
        font-size: 22px; /* Smaller title */
    }

    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .room-section {
        padding: 25px;
    }

    .room-section h2, .contact-section h2 {
        font-size: 2em;
    }

    .room-section .description {
        font-size: 1em;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .image-gallery img {
        height: 200px;
    }

    .contact-form {
        padding: 0 10px;
    }
}

/* Adjustments for screens smaller than 480px (e.g., most smartphones) */
@media (max-width: 480px) {
    .nav-header h1 {
        font-size: 20px; /* Even smaller title */
    }

    .nav-toggle-label {
        width: 25px; /* Slightly smaller icon */
        height: 25px;
    }
    .nav-toggle-label span:nth-child(1) { top: 0; }
    .nav-toggle-label span:nth-child(2) { top: 8px; } /* Adjust bar positions */
    .nav-toggle-label span:nth-child(3) { top: 16px; }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
        transform: rotate(-45deg) translate(-4px, 5px); /* Adjust transform */
    }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
        transform: rotate(45deg) translate(-4px, -5px); /* Adjust transform */
    }

    .nav-links li a {
        padding: 12px 0; /* Reduce padding slightly */
        font-size: 1em;
    }

    .hero {
        height: 350px; /* Further reduce hero height */
    }

    .hero-content h1 {
        font-size: 1.8em; /* Even smaller hero title */
    }

    .hero-content p {
        font-size: 0.9em; /* Even smaller hero description */
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }

    .room-section {
        padding: 15px; /* Further reduce padding */
    }

    .room-section h2, .contact-section h2 {
        font-size: 1.6em; /* Smallest section titles */
    }

    .image-gallery img {
        height: 160px; /* Even smaller image height */
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 8px; /* Reduce input padding */
        font-size: 0.9em;
    }

    .contact-form .btn {
        padding: 10px;
        font-size: 1em;
    }
}
