html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-size: cover; 
}
header {
    background-color: transparent;
    color: rgb(255, 255, 255);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
    animation: fadeIn 1.5s ease-out;
}

header.scrolled {
    background-color: rgb(153, 185, 186);
    color:#000000 ;
    transform: translateY(-10px);
}
header.scrolled .right-nav ul li a h2{
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000000;
}
header.scrolled .menu-toggle{
    display: block;
    cursor: pointer;
    font-size: 30px;
    color: #000000;
    padding: 0 10px;
}
header.scrolled .left-nav{
    position: fixed;
    left: -500px; /* Hidden off-screen */
    top: 0;
    width: 250px;
    height: 100%;
    background-color: rgba(153, 185, 186, 0.9); /* Light transparent color */
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    transition: left 0.3s ease-in-out;
    z-index: 1000;/* Ensure navigation bar is on top */
}

header.scrolled .menu-toggle:hover {
    transform: rotate(90deg); 
    color: #ffffff;}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header h1 {
    display: inline-block;
    margin: 0;
    padding: 0 10px;
}

header .logo img {
    max-height: 70px;
}

.right-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.right-nav ul li {
    margin: 0;
    padding: 0;
}

.right-nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.tel-icon {
    margin-right: 10px; 
    /* Adjust this value to control spacing */
}
.tab{
    display: none;
}
#filter-toggle{
    display: none ;
}
 

@media (max-width: 600px) {
    /* General Styles */
    body,html {
        font-family: Arial, sans-serif; /* Clean and readable font */
        margin: 0;
        padding: 0;
        top: 0; /* Removed unnecessary scale transform */
        overflow-x: hidden !important; 
        scroll-behavior: smooth !important;
        /* Prevent horizontal overflow */
    }
    .fullscreen{
        display: none !important;
    }

    .header{
        background-color: rgb(153, 185, 186);
    }
    *{
        box-sizing: border-box !important;
    }
    nav ul li a:hover::before {
        visibility: hidden !important; /* Hide the pseudo-element */
        width: 0 !important;           /* Remove any width that could appear as an underline */
    }
    a:hover {
        text-decoration: none !important;
    }
    .left-nav ul li a {
        transition: none; /* Disable transitions */
        text-decoration: none; /* Ensure no underline */
        transform: none; /* Ensure no movement */
    }
    .left-nav ul li a.clicked {
        color: black; /* Change text color */
    }
    /* Optional: Change background on click (if needed) */
    .left-nav ul li a:active,
    .left-nav ul li a:hover {
        /* Background when clicked */
        transition: none; /* Disable transitions */
        text-decoration: none; /* Ensure no underline */
        transform: none;/* Text color when clicked */
    }
    /* Container for the main content */
    main {
        width: 100%; /* Full width for responsiveness */
        margin: 0; /* No margins to ensure full width */
        padding: 0; /* Remove padding to eliminate extra space */
    }
    .right-nav ul li a h2{
        display: none !important ;
    }


  /* Content sections with limited height */
  #content-section {
    width: 100%;
    margin: 0 0 15px 0; /* Reduced vertical margin */
    padding: 15px;
    display: block;
    box-sizing: border-box;
    background: #fff; /* Solid background for readability */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-height: 70vh; /* Limits section height */
    overflow-y: hidden; /* Scroll within section if needed */
  }


    .left-nav ul li a:hover {
        text-decoration: none;
        animation: none !important;
    }










.nav-arrow {
display: none !important; /* Adjust size for better visibility */
}

/* Make sure the project names are visible */
.nav-center {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow-x: scroll;
    z-index: 1000; /* Allow horizontal scrolling for long text */
}

.nav-center li {
    padding: 0 10px; /* Add space between the items */
    font-size: 1em; /* Adjust font size for readability */
}

/* Ensure the nav container is scrollable but fits the screen */
.nav-container {
    overflow-x: auto; /* Allow horizontal scrolling if content overflows */
    max-width: 100%; /* Make sure it fits within the screen */
}

/* Center and resize the project items */
#projects-nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* Align items to the start */
    flex-wrap: nowrap; 
    z-index: 1000;/* Prevent items from wrapping onto a new line */
}

/* Style the back button */
#back-btn a {
 
    color: black;
}

/* Units Section Styles */
/* Units Section Styles */
#units {
    width: 300px; /* Reduced width for a more compact card */
    height: 500px; /* Reduced height for a smaller appearance */
    position: fixed;
    left: 20px;
    padding: 3px; /* Reduced padding for a tighter layout */
    z-index: 8;
    overflow-y: auto; /* Enable scroll if content exceeds height */
    box-sizing: border-box;
    
}

#units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* Smaller grid items */
    gap: 2px; /* Reduced gap for a tighter grid */
    margin-top: -620px !important; /* Adjust position based on new height */
    padding-top: 5px !important; /* Reduced padding for spacing */
    max-height: 60vh !important;
    width: 100% !important; /* Limit height for scrolling */
}

#unit-details-modal {
    position: fixed; /* Fixed position to stay in view */
    z-index: 9999; /* High z-index to be on top */
    left: 0;
    top: 0;
    width: 100%; /* Cover the full screen width */
    height: 100%; /* Cover the full screen height */
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: flex; /* Use flexbox for centering */
    justify-content: center;
    align-items: center;
}
.unit-card {
    width: 85%; /* Keep the card width smaller */
    max-height: 350px; /* Decrease max-height to 300px */
    border-radius: 6px; /* Tighter border radius */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Softer shadow */
    padding: 5px; /* Smaller padding */
    margin-bottom: 10px; /* Space between cards */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack items vertically */
    justify-content: space-between; /* Distribute space evenly */
    overflow: hidden; /* Prevent overflow */
}

.unit-card img {
    height: 120px; /* Keep image smaller */
    object-fit: cover; /* Make sure image covers the area */
}

.overlay {
    font-size: 0.7rem; /* Smaller font size for overlay */
    padding: 4px 8px; /* Smaller padding */
    text-align: center; /* Align text in the center */
    position: absolute;
    top: 10px;
    left: 10px;
}

.unit-info {
    padding: 5px; /* Reduced padding to minimize space */
    text-align: center; /* Center-align the text */
    flex-grow: 0; /* Prevent section from growing */
    overflow: hidden; /* Prevent overflow */
}

.unit-info h3 {
    font-size: 0.9rem; /* Smaller title size */
    margin-top: 2px; /* Reduced margin-top to remove space above */
    margin-bottom: 3px; /* Reduced margin-bottom */
    text-align: center; /* Center-align the title */
    color: rgb(124,166,170); /* Bright blue color for title */
}

.unit-info p {
    font-size: 0.75rem; /* Smaller font size for description */
    margin: 2px 0; /* Reduced margin */
    text-align: center; /* Center-align description */
}

.location {
    font-size: 0.6rem; /* Even smaller font for location */
    margin-top: 2px; /* Smaller margin */
    text-align: center; /* Center-align location text */
}

.area {
    font-size: 0.7rem; /* Smaller font size */
    padding: 3px 6px; /* Smaller padding */
    text-align: center; /* Center-align the area text */
    position: absolute;
    bottom: 10px;
    right: 10px;
}
#unit-details-modal {
    position: fixed; /* Fixed position to stay in view */
    z-index: 9999; /* High z-index to be on top */
    left: 0;
    top: 0;
    width: 100%; /* Cover the full screen width */
    height: 100%; /* Cover the full screen height */
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: flex; /* Use flexbox for centering */
    justify-content: center;
    align-items: center;
}





    .modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 999; /* Sit on top */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgba(0, 0, 0, 0.7); /* Black background with opacity */
    }
    
    .modal-content {
        background-color: #fefefe; /* White background */
        margin: 15% auto; /* Centered */
        padding: 20px;
        border: 1px solid #888;
        width: 80%; /* Could be more or less, depending on screen size */
    }
    
    .slideshow-container {
        position: relative;
    }
    
    .slides {
        display: none; /* Hidden by default */
    }
    
    .modal-image {
        width: 100%; /* Full width for the image */
        height: auto; /* Maintain aspect ratio */
    }
    


    /* Fixed positioning styles */
    .tab {
        position: fixed;
        display: block;
        top: 60%; /* Center the tab vertically */
        left: 0; /* Stick the tab to the left edge of the screen */
        transform: translateX(-40.5%) rotate(-90deg); /* Adjust the tab to perfectly center it */
        padding: 10px 20px;
        background-color: #333; /* Background color of the button */
        color: white; /* Text color */
        cursor: pointer;
        font-size: 16px; /* Font size of the text */
        border-radius: 0 5px 5px 0; /* Rounded corners on the right side */
        text-align: center;
        text-transform: uppercase; /* Make the text uppercase */
        letter-spacing: 1px; /* Add some spacing between letters */
        transition: background-color 0.3s ease; 
        z-index: 20;/* Smooth transition */
    }

    /* Styling for left-nav2 */
    .left-nav2 {
        position: fixed; /* Change to fixed for better positioning */
        top: 20%; /* Adjust to your desired vertical position */
        left: 10px; /* Adjust as necessary */
        width: 200px; 
        background: rgba(153, 185, 186, 0.8); /* Background color */
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        display: none; /* Initially hidden */
        z-index: 1000; /* Ensure it appears above other content */
    }

    .left-nav2.open {
        display: block; /* Show when 'open' class is added */
    }
    .bottom-nav {
        position: fixed; /* Keep it fixed at the bottom */
        bottom: 0;
        left: 0;
        width: 100% !important; /* Full width */
        z-index: 5;
        font-size: 0.7rem; /* Smaller font size for city names */
        font-weight: normal; /* Normal font weight */
        background-color: rgba(153, 185, 186, 0.8); /* Lighter background */
        display: flex; /* Use flex to align items in a row */
        align-items: center; /* Vertically center the content */
        justify-content: flex-start; /* Align items to the left */
        overflow-x: auto; /* Enable horizontal scrolling */
        white-space: nowrap; /* Prevent text from wrapping onto the next line */
        height: 30px; /* Adjust height */
        box-sizing: border-box; /* Ensure proper box sizing */
        scroll-behavior: smooth; /* Smooth scrolling */
    }
    
    .bottom-nav a {
        color: white; /* Make sure links are visible */
        text-decoration: none;
        left: 0 !important; /* Remove underline */
        margin: 0; /* Remove margin between links */
        padding: 0 5px; /* Add a small padding to make the city names readable */
        font-size: 0.7rem; /* Smaller font size */
        text-align: center; /* Center align text */
        white-space: nowrap; /* Prevent wrapping */
    }
    .bottom-nav ul {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bottom-nav ul li {
        margin: 0 8px;
    }

    .bottom-nav ul li a {
        padding: 8px 15px;
        white-space: nowrap;
    }
    
    
    

    /* Tree Navigation Styles */
    .tree-nav {
        list-style-type: none;
        margin: 0;
        padding: 0;
        position: relative;
    }
    
    .tree-nav li {
        position: relative;
        padding-left: 20px;
        margin-bottom: 10px; /* Reduced margin for tighter spacing */
    }
    
    .tree-nav li:before {
        content: "";
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #ffffff; /* Line color */
    }
    
    .icon-circle {
        width: 15px;
        height: 15px;
        background-color: transparent; /* Hollow background */
        border-radius: 50%;
        display: inline-block;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        border: 2px solid #ffffff; /* Border color */
    }
    
    .tree-nav li a {
        color: white;
        text-decoration: none;
        font-size: 12px;
        font-family: Arial, sans-serif;
        display: flex;
        align-items: center;
    }

    /* Reduce font size for all sections */
    .header, .left-nav, .left-nav2, .bottom-nav, .top-nav, main, .content-section {
        font-size: 0.9em; /* Reduce font size */
    }

    .get-in-touch-container {
        display: none !important;
    }
}



.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 24px;
    color: rgb(250, 250, 250);
    padding: 0 10px;
}

.left-nav {
    position: fixed;
    left: -500px; /* Hidden off-screen */
    top: 0;
    width: 250px;
    height: 100%;
    background-color: rgba(153, 185, 186, 0.9); /* Light transparent color */
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    transition: left 0.3s ease-in-out;
    z-index: 1000;/* Ensure navigation bar is on top */
}
.left-nav.open {
    left: 0;
}
.left-nav .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}
.left-nav .close-btn:hover {
    color: #000000;
    transform: rotate(-90deg); /* Rotates the icon on hover */
}
.left-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    position: relative;
    transition: color 0.3s, transform 0.3s;
    z-index: 1000; /* Ensure links are on top */
}

nav ul li a:hover {
    color: #000000;
    transform: translateX(5px); /* Slide in from left */
}

nav ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: black; /* Change to black */
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

nav ul li a:hover::before {
    visibility: visible;
    width: 100%;
    color: #000000;
}

.left-nav > ul > li {
    position: relative;
    overflow: hidden;
    color: #000000;
    /* Ensure the sub-nav doesn't overflow the parent item */
    transition: margin-bottom 0.3s ease-in-out; /* Smooth margin adjustment */
}

/* Styling for the 'Our Projects' nav item */
.left-nav > ul > li:nth-child(3).expanded {
    margin-bottom: 20px; /* Adjust to create space for sub-nav */
}

/* Initial styles for sub-nav */
.sub-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0; /* Hide sub-nav initially */
    overflow: hidden; /* Ensure no overflow is visible */
    opacity: 0; /* Hide sub-nav initially */
    background-color: rgba(153, 185, 186, 0.9); /* Match the parent menu's color */
    transition: max-height 0.5s ease, opacity 0.3s ease;
    z-index: 1000; /* Ensure it appears above other elements */
    width: 100%;/* Ensure it matches the width of the parent item */
}

/* Show sub-nav with sliding effect */
.left-nav > ul > li.expanded .sub-nav {
    max-height: 200px; /* Adjust according to your content height */
    opacity: 1;
    display:contents; 
}

/* Style for sub-nav links */
.sub-nav a {
    padding: 10px;
    text-decoration: none;
    display:list-item;
    color: white;
    transition: background-color 0.3s;
    z-index: 1001; /* Ensure links are above other content */
}


/* Hamburger Menu Hover Animation */
.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 1000; /* Ensure menu toggle is on top */
}

.menu-toggle:hover {
    transform: rotate(90deg); 
    color: #000000;/* Rotates the icon on hover */
}

/* Close Button Animation */
.close-btn {
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    z-index: 1000; /* Ensure close button is on top */
}

.close-btn:hover {
    color: rgb(153, 185, 186);
    transform: rotate(-90deg); /* Rotates the icon on hover */
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease; /* Smooth transition for rotation */
    margin-left: 5px; /* Space between the text and the arrow */
    cursor: pointer; /* Indicate that the arrow is clickable */
    vertical-align: middle; /* Align vertically with the text */
    transform: rotate(0deg); /* Default state - arrow points to the right */
}




/* Arrow rotates to point down on hover */
#projects-link:hover .arrow {
    transform: rotate(90deg); /* Rotate 90 degrees to point down */
}
/* Adjust alignment and spacing if needed */
#left-nav.expanded .arrow {
    transform: rotate(90deg); /* Arrow points down when sub-nav is expanded */
}
#projects-nav-item .arrow {
    /* Adjust these values based on your specific design */
    position: absolute; /* Positioning if you need to fine-tune */
    right: 10px; /* Distance from the right edge */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Center the arrow vertically */
}
/* Navigation Bar Style */


.nav-east button.active,
.nav-west button.active {
    background-color: rgb(153, 185, 186); /* Change this to your desired active color */
    color: #fff; /* Optional: Change text color */
}



.left-nav ul li {
    margin: 20px 0;
}



.left-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}


.left-nav ul li a:hover {
    color: #000000;

}

.rtl .right-nav ul {
    flex-direction: row-reverse; /* Aligns items right-to-left */
}

.rtl .tel-icon {
    margin-left: 10px; /* Inverts the margin for RTL */
    margin-right: 0;
}

.rtl .left-nav {
    left: unset;
    right: -500px;
    z-index:1000; /* Hidden off-screen on the right for RTL */
}

.rtl .left-nav.open {
    right: 0; /* When open, slide in from the right */
}

.rtl .left-nav .close-btn {
    left: 20px; /* Invert the position of the close button for RTL */
    right: unset;
}

.rtl .left-nav ul li a {
    text-align: right;
    padding-left: 0;
    padding-right: 20px;
}

.rtl .left-nav ul li a:hover {
    padding-right: 30px; /* Animate padding-right when hovered in RTL */
   /* Change background color on hover */
}

/* Animation on hover for links in LTR */
.left-nav ul li a:hover {
    padding-left: 30px; /* Move text slightly to the right on hover in LTR */
    transition: padding-left 0.3s ease-in-out;
}

/* Animation on hover for links in RTL */
.rtl .left-nav ul li a:hover {
    padding-right: 30px; /* Move text slightly to the left on hover in RTL */
    transition: padding-right 0.3s ease-in-out;
}




.left-nav ul li {
    margin: 20px 0;
}



.left-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}


.left-nav ul li a:hover {
    color: #000000;

}


  
  /*============ TESTIMONY =========*/
  .wrapper{
      width: 100%;
      height: 480px;
      margin: 7.5rem 0;
      position: relative;
  }
  
  .wrapper .text{
      background: rgb(153, 185, 186);
      padding: 50px;
      width: 40%;
      height: 600px;
      position: absolute;
      top: -13%;
      right: 10%;
      padding-top: 10%;
      color: #fff;
  }
  
  .wrapper .content{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-row-gap: 30px;
  }
  
  .wrapper h2{
      font-weight: 400;
  }
  
  .wrapper p{
      margin: 20px 0 50px 0;
      line-height: 30px;
  }
  
  .wrapper2{
      background: url('property-6.jpg') fixed;
      background-repeat: no-repeat;
      background-size: cover;
  }
  
  .wrapper2 .text{
      left: 10%;
  }
  
  .wrapper2 h5,
  .wrapper2 h2{
      color: #fff;
  }
  
  .wrapper2 img{
      width: 50px;
      height: 50px;
      border-radius: 50%;
      margin-top: 5px;
  }
  
  .wrapper2 .para{
      margin-left: 10%;
  }
  #nav {
    display: none; /* Default hidden */
}

#nav.show {
    display: block; /* Display when 'show' class is added */
}

.allow-interaction {
    pointer-events: auto; /* Enable pointer events */
}
/* Prevent scrolling */
.no-scroll {
    overflow: hidden; /* Prevent scrolling */
    position: fixed; /* Fix the position */
    width: 100%; /* Ensure the width covers the full page */
    height: 100%; /* Ensure the height covers the full page */
    top: 0;
    left: 0;
}

/* Disable interactions */
.no-interaction {
    pointer-events: none;
}

/* Fade out effect */
.fade-out {
    opacity: 0.7; /* or any other style that hides or deactivates the content */
    pointer-events: none; /* Prevent interactions with the element */
}

/* Ensure the navigation bar is displayed correctly */
.left-nav.open {
    display: block; /* or any other style to make the nav visible */
}

#main-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#main-content.visible {
    opacity: 1;
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px; /* Space between items */
    max-width: 1600px; /* Increase max width for the main container */
    margin: 0 auto; /* Center the grid container */
    padding: 20px; /* Optional padding for better spacing */
    padding: 100px;
    transition: margin-left 0.3s;
    align-content: center; /* Adjust as needed */
}
  @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}  
.section-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}
  
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading-screen video {
    width: 100%;
    height: auto;
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

#loading-screen {
    /* Other styles */
    opacity: 1; /* Ensure the initial opacity is set to 1 */
    transition: opacity 1s; /* This can be for smoothness */
}
.get-in-touch-container {
    position: fixed;
    right: 20px;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.get-in-touch-tab {
    background-color: rgb(153, 185, 186);
    color: white;
    padding: 15px 30px; /* Increased padding */
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    font-size: 1.2em; /* Increased font size */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.get-in-touch-tab:hover {
    background-color: rgb(153, 185, 186); /* Darker blue on hover */
    transform: scale(1.1); /* Slightly bigger on hover */
}

.contact-form {
    display: none;
    background-color: white;
    padding: 25px; /* Increased padding */
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 350px; /* Increased width */
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
}

.contact-form.show {
    transform: translateY(0);
    opacity: 1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    margin-bottom: 10px;
    padding: 12px; /* Increased padding */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em; /* Increased font size */
}

.contact-form button {
    color: #ffffff;
    background-color: #454f50;
    padding: 12px; /* Increased padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em; /* Increased font size */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: rgb(153, 185, 186);
    transform: scale(1.05); /* Slightly bigger on hover */
}
#main-content {
    min-height: calc(100vh - 200px); /* Adjust 200px to the footer height */
    padding-bottom: 200px; /* This keeps footer at bottom when content is short */
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #454f50;
    color: #f0ecec;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}


.footer-contact a {
    color: #fff;
    text-decoration: none;
    padding-bottom: 5%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links ul li {
    margin: 0 15px;
}

.footer-links ul li a {
    color: #f0ecec;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ccc;
}

.footer-social h3 {
    margin-bottom: 10px;
}

.footer-social a {
    margin: 0 10px;
    display: inline-block;
}

.footer-social img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.footer-social img:hover {
    transform: scale(1.1);
}

.footer-copy {
    margin-top: 20px;
}

.footer-copy p {
    margin: 0;
}

/* Fade-in Animation for Footer */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Slide up from below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Final position */
    }
}

/* Bottom Navigation */
.bottom-nav {
    background: rgba(153, 185, 186, 0.8);
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: center;
    bottom:0;
    left: 0;
    right: 0;
    z-index:1000;


}

.bottom-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.bottom-nav ul li {
    display: inline-block;
    margin: 0 15px;
}

.bottom-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
}

.bottom-nav ul li a:hover {
    background-color: #555;
}

/* Top Navigation for Projects */
.top-nav {
    background: rgba(153, 185, 186, 0.8);
    position: fixed;
    width: 100%;
    justify-content: space-between;
    display: flex;
    align-items: center;
    top:11vh;
    padding: 10px;
    left: 0;
    right: 0;

}

.top-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.top-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.top-nav ul li a:hover {
    background-color: #555;
    color: #ffffff;
}
/* Active link styles in the center navigation */
.top-nav .nav-center a.active {
    background-color: #555; /* Highlight color */
    color: white; /* Text color */
    font-weight: bold;
    padding: 8px 25px;
    text-decoration: none; /* Remove underline */
}



/* Prevent hover effects for the left navigation links */
.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    position: relative; /* Ensure it does not affect sibling items */
}

.nav-left ul {
    display: flex; /* Ensure items are inline and do not stretch */
}

.top-nav ul li a:hover {
    background-color: #555;
}

/* Adjust width if necessary to prevent overlap */
.nav-center {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease; /* Smooth scrolling */
}
.nav-center li {
    padding: 0 15px;
    white-space: nowrap;
    width: 200px; /* Each project item has a width of 200px */
    box-sizing: border-box;
}
.tree-nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.tree-nav li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

.tree-nav li:before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ffffff; /* Line color */
}

.icon-circle {
    width: 20px;
    height: 20px;
    background-color: transparent; /* Hollow background */
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid #ffffff; /* Border color */
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px; /* Adjust to fit the logo */
}

.tree-nav li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
}

.tree-nav li.active .icon-circle {
    border-color: #000000; /* Active border color */
    background-image: url('overview.svg'); /* Example for Overview icon */
}

/* Set custom icons for each li item */
#side-nav li:nth-child(1) .icon-circle {
    background-image: url('overview.svg'); /* Custom icon for Overview */
}

#side-nav li:nth-child(2) .icon-circle {
    background-image: url('area.svg'); /* Custom icon for Master Plan */
}

#side-nav li:nth-child(3) .icon-circle {
    background-image: url('all-projects.svg'); /* Custom icon for Units */
}

#side-nav li:nth-child(4) .icon-circle {
    background-image: url('amenities.svg'); /* Custom icon for Amenities */
}

#side-nav li:nth-child(5) .icon-circle {
    background-image: url('construction-updates.svg'); /* Custom icon for Construction Updates */
}

#side-nav li:nth-child(6) .icon-circle {
    background-image: url('brochure.png'); /* Custom icon for Download Brochure */
}
#amenities{
    position: fixed;
    max-width: 50%;
    max-height: 50%;
    top:25%;
}
#construction{
    position: fixed;
    max-width: 50%;
    max-height: 50%;
    top:25%;
    z-index: 1;


}


/* Optional: Additional styling for the links */
.tree-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.tree-nav li.active a {
    font-weight: bold;
    color: #000000; /* Active text color */
}

.left-nav2 {
    position: fixed;
    top:19vh;
    left: 0;
    width: 250px;
    height: 83%;
    background: rgba(153, 185, 186, 0.8);
    color: white;
    padding: 20px;

}

.left-nav2 ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    visibility: visible;
}

.left-nav2 ul li {
    margin: 15px 0;
}

.left-nav2 ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 30px;
    display: block;
    font-weight: bold;
}

.left-nav2 ul li a:hover {
    background-color: #555;
}

/* Main Content */
main {
    padding: 20px;
    margin-top: 180px;
    margin-left: 300px;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0);
    border-radius: 8px;
    box-shadow: none;
}

/* General Section Styling */
.content-section {
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0);
    border-radius: 8px;
    box-shadow: none;
    
}

/* Responsive Media Queries */


#filter, #units {
    display: none;
}

#filter.show, #units.show {
    display: block; 

}
/* Filter Section Styling */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    position: fixed; 
    max-width: 90%;
    width: 800px;
    max-height: 50%;
    top: 18%;
    background-color: rgba(153, 185, 186, 0.8);
    
    /* Add curved borders */
    border-radius: 15px;
    
    /* Increase space inside around filters */
    padding: 20px;  /* Adjust as needed */
    
    /* Optional: Increase space outside the section */
    margin: 20px auto;  /* Centers the section horizontally and adds spacing */
    
    /* Optional: Add box shadow for a nicer look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.filter-item select,
.filter-item input[type="range"] {
    width: 90%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.filter-item select:focus,
.filter-item input[type="range"]:focus {
    border-color: rgb(153, 185, 186);
    outline: none;
}

#area-value {
 
    margin-left: 10px;
    font-weight: bold;
    color: rgb(255, 255, 255);

}

.filter-item input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s ease;
}

.filter-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgb(153, 185, 186);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-item input[type="range"]::-webkit-slider-thumb:hover {
    background: rgb(153, 185, 186);
}

.filter-item input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: rgba(153, 185, 186, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-item input[type="range"]::-moz-range-thumb:hover {
    background: rgb(153, 185, 186);
}

/* Container for the unit cards */
.units-grid {
    display: flex;
    flex-wrap: wrap;
    position: fixed;
    gap: 20px; /* Spacing between cards */
    max-height: 390px;
    overflow-y: auto; /* Scroll if content overflows */
    justify-content: center;
    top:38%;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: red;
    transition: color 0.3s, transform 0.3s;
    z-index: 1;
}
.modal-content .close:hover {
    color: rgb(153, 185, 186);
    transform: rotate(-90deg); /* Rotates the icon on hover */
}
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.slides {
    display: none;
}

.modal-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.8);
}
.prev:hover, .next:hover {
    background-color: #2c3e50;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev15, .next15 {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.8);
}
.prev15:hover, .next15:hover {
    background-color: #2c3e50;
}

.next15 {
    right:20px;
    border-radius: 3px 0 0 3px;
    
}
.fullscreen {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px;
    background-color: rgb(153, 185, 186);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.fullscreen:hover {
    background-color: rgb(153, 185, 186);
}


#overview-content {
    font-size: 46px; /* Adjust the size of the overall paragraph */
}

.bold-large {
    font-weight: bold;
    font-size: 24px; /* Make the first two words bigger */
}
/* Overview Section Styling */
#overview {
    background-color: rgba(153, 185, 186, 0.9);
    top: 25%;
    position: fixed;
    display: none;
    right: 0; /* Dark blue background with some transparency */
    padding: 20px; /* Add space inside the section */
    color: white; /* White text for contrast */
    font-family: 'Arial', sans-serif; /* Clean sans-serif font */
    border-radius: 8px; /* Optional rounded corners for a smooth look */
    width: 500px; /* Adjust the width as needed */
    margin: 0 auto; /* Center the section horizontally */
    text-align: left; /* Align text to the left */
}

/* Overview Box Styling */
#overview .overview-box {
    max-width: 800px;
    margin: 0 auto;
}

/* Paragraph Styling inside Overview */
#overview .overview-box p {
    font-size: 1.8rem !important; /* Force the size using !important */
    line-height: 1.6;
    margin: 0;
}

/* Optional Responsive Styling */

/* Optional Responsive Styling */
#masterplan {
    position: fixed;
    width: 35%; /* Reduced width for a smaller masterplan section */
    height: auto; /* Allow height to adjust automatically based on content */
    max-height: 70%; /* Adjusted maximum height to prevent overflow */
    top: 18%; /* Position from the top */
    overflow: hidden; /* Hide overflow content */
}

/* Master Plan Section Styling */
.masterplan-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.masterplan-image-container {
    width: 90%; /* Reduced width for the image container */
    max-width: 1500px; /* Reduced maximum width */
    max-height: 500px; /* Adjusted maximum height for better fit */
    overflow: hidden; /* Ensure overflow is hidden */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 10px; /* Added a little margin for spacing */
}

.masterplan-image-container img {
    width: 100%; /* Set width to 100% to scale with container */
    height: auto; /* Maintain aspect ratio */
    max-height: 300px; /* Further reduced height for smaller display */
    object-fit: cover; /* Crop the image if it doesn't fit, keeping the center */
    transition: transform 0.6s ease-out;
}

/* Stylish zoom and slight rotation effect on hover */
.masterplan-image-container img:hover {
    transform: scale(1.1) rotate(1deg);
}

.social-media-buttons {
    position: fixed;
    right: 20px; /* Adjust spacing from the right edge */
    top: 50%; /* Position at the center vertically */
    transform: translateY(-50%); /* Center the buttons vertically */
    z-index: 900; /* Ensure they are above other content */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between buttons */
}

/* Social Media Button Styling */
.social-button {
    background-color: rgb(153, 185, 186); /* White background for buttons */
    border-radius: 50%; /* Circular buttons */
    padding: 10px; /* Space inside the button */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Add shadow */
    transition: transform 0.3s, background-color 0.3s; /* Smooth transition */
}

/* Icon Styling */
.social-button img {
    width: 24px; /* Adjust size as needed */
    height: 24px;
}

/* Hover Effect */
.social-button:hover {
    background-color: rgb(153, 185, 186); /* Light grey background on hover */
    transform: translateX(5px); /* Move the button slightly to the right */
}
.nav-wrapper {
    display: flex;
    justify-content: center; /* Center everything in the wrapper */
    align-items: center;
    position: relative;
    width: 80%;

}

/* Container that holds the scrollable project list */
.nav-container {
    overflow: hidden; /* Hide overflowing content */
    width: calc(100px * 5); /* Show only 5 items at a time */
    display: flex;
    justify-content: flex-start; /* Ensure items start from the left */
    scroll-behavior: smooth; /* Smooth scrolling effect */
}

/* List of projects (scrollable) */
.nav-center {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease; /* Smooth scrolling */
}

/* Individual project items */
.nav-center li {
    padding: 0 15px;
    white-space: nowrap;
    width: 200px; /* Each project item has a width of 200px */
    box-sizing: border-box;
}

/* Arrow styles */
.nav-arrow {
    background-color: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
}

/* Positioning the left and right arrows */
.left-arrow {
    margin-right: 10px; /* Keep space between the arrow and the project list */
}

.right-arrow {
    margin-left: 20px; 
    right:20px;
    margin-right: 50px;/* Keep space between the arrow and the project list */
}

/* Focus outline removal for accessibility */
.nav-arrow:focus {
    outline: none;
}

/* Ensure arrows are visible even when fewer than 5 projects */
.nav-container, .nav-center {
    width: auto;
}

@media (max-width: 600px) {
    /* --- General Mobile Optimizations --- */
    body, html {
        font-size: 15px; /* Base font for mobile */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        background-color: #e9e9e9; /* A light fallback background for the page */
    }

    * {
        box-sizing: border-box !important;
        -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    }



    /* --- Header --- */
    header.header {
        padding: 8px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(0) !important; /* Override desktop scrolled effect */
    }

    header.header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }
    header.header .menu-toggle {
        font-size: 26px;
        color: #333; /* Darker for better visibility on light bg */
        padding: 5px;
        background: transparent;
        border: none;
    }

    header.header .logo img {
        max-height: 40px; /* Adjust logo size */
        display: block; /* Helps with alignment */
    }
    header.header .right-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    header.header .right-nav ul li a {
        display: flex;
        align-items: center;
        text-decoration: none;

    }
    header.header .right-nav ul li a h2 {
        display: inline; /* Show number */
        font-size: 0.9rem;
        margin-left: 5px;
        font-weight: 600;

    }

    header.header .tel-icon {
        height: 22px;
        filter: invert(20%); /* Make icon darker if it's light by default */
    }

    /* --- Main Side Navigation (Left Nav) --- */
    nav.left-nav {
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 85%;
        max-width: 300px;
        height: 100%;
        z-index: 1005;
        transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 20px;
        padding-top: 60px; /* Space for close button and header */
        overflow-y: auto;
    }

    nav.left-nav.open {
        left: 0;
    }
    nav.left-nav .close-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 30px;

        background: none;
        border: none;
    }
    nav.left-nav .language-switcher {
        display: flex !important;
        justify-content: center;
        margin-bottom: 25px;
        gap: 8px;
    }
    nav.left-nav .lang-button {
        padding: 6px 12px;
        font-size: 0.9rem;
        border-width: 1px;
        border-radius: 6px;
    }
    nav.left-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    nav.left-nav ul li a {
        display: block;
        padding: 12px 10px;
        text-decoration: none;

        font-size: 1rem;
        font-weight: 500;
        border-radius: 6px;
        transition: background-color 0.2s ease, padding-left 0.2s ease;
    }
    nav.left-nav ul li a:hover,
    nav.left-nav ul li a:active {
   
        padding-left: 15px;
      /* Override potential inline styles from JS */
    }

    /* RTL Specific for Main Nav */
    html[dir="rtl"] nav.left-nav {
        left: auto;
        right: -100%;
    }
    html[dir="rtl"] nav.left-nav.open {
        right: 0;
        left: auto;
    }
    html[dir="rtl"] nav.left-nav .close-btn {
        right: auto;
        left: 20px;
    }
    html[dir="rtl"] nav.left-nav ul li a:hover,
    html[dir="rtl"] nav.left-nav ul li a:active {
        padding-left: 10px;
        padding-right: 15px;
    }





    /* Adjust main content when side navs are open */
    body.left-nav-open #main-content{
        /* Could add margin-left here if content shouldn't be overlaid */
        /* filter: blur(3px); /* Optional: blur background content */
    }


    /* --- Bottom Nav (City Selection) --- */
    nav.bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 8px 0;

        z-index: 890;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    nav.bottom-nav ul {
        display: flex;
        list-style: none;
        padding: 0 10px;
        margin: 0;
        overflow-x: auto; /* Horizontal scroll */
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        scrollbar-width: none; /* Firefox */
    }
    nav.bottom-nav ul::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    nav.bottom-nav ul li {
        flex-shrink: 0; /* Prevent items from shrinking */
        margin-right: 8px;
    }
    html[dir="rtl"] nav.bottom-nav ul li {
        margin-right: 0;
        margin-left: 8px;
    }
    nav.bottom-nav ul li:last-child {
        margin-right: 0;
        html[dir="rtl"] & { margin-left: 0; }
    }
    nav.bottom-nav ul li a {
        display: block;
        padding: 8px 15px;
        text-decoration: none;

        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 20px; /* Pill shape */
        font-size: 0.8rem;
        font-weight: 500;
        white-space: nowrap;
        transition: background-color 0.2s ease, color 0.2s ease;
    }



    /* --- Top Nav (Projects) --- */
    nav.top-nav {
        position: fixed;
        top: 60px; /* Below header (adjust based on header height) */
        left: 0;
        width: 100%;
        padding: 8px 0px;

        z-index: 880;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    nav.top-nav .nav-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0 10px; /* Padding for arrows */
    }
    nav.top-nav .nav-arrow {
 
        border: none;
       
        font-size: 1.6rem;
        padding: 0 5px;
        cursor: pointer;
    }
    nav.top-nav .nav-container {
        flex-grow: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 5px; /* Space between arrows and list */
        scrollbar-width: none; /* Firefox */
    }
    nav.top-nav .nav-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    nav.top-nav .nav-center { /* The actual list of projects */
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        flex-wrap: nowrap; /* Keep items in one line */
    }
    nav.top-nav .nav-center li {
        flex-shrink: 0;
        margin-right: 8px;
    }
    html[dir="rtl"] nav.top-nav .nav-center li {
        margin-right: 0;
        margin-left: 8px;
    }
    nav.top-nav .nav-center li a {
        display: block;
        padding: 7px 14px;
        text-decoration: none;
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 18px; /* Pill shape */
        font-size: 0.85rem;
        font-weight: 500;
        white-space: nowrap;
        transition: background-color 0.2s ease, color 0.2s ease;
    }



    /* --- Main Content Area --- */
    main {
        padding-top: 115px; /* Space for header + top-nav */
        padding-bottom: 60px; /* Space for bottom-nav */
        margin-left: 0; /* Full width */
        min-height: calc(100vh - 175px); /* Ensure it takes up available height */
    }




    /* --- Filter Section --- */
    section#filter {
        
        padding: 2px;
        z-index: 500;
        /* transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; */
        /* transform: translateY(-10px); */ /* Initial state for animation */
        /* opacity: 0; */
         max-height: 10vh; 
        /* overflow-y: auto; */margin-bottom: 10vh;

        margin: 0 2px 5px 2px; /* Adjust to be part of flow */
    }


    .filter-section { /* Inner container */
        display: flex;
        flex-direction: row;
        gap: 10px;
        z-index:500;

    }
    .filter-item {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
    .filter-item label {
        font-size: 0.75rem;
        font-weight: 200;
        color: #555;
        margin-bottom: 4px;
    }
    html[dir="rtl"] .filter-item label {
        text-align: right;
    }
    .filter-item select,
    .filter-item input[type="range"] {
        width: 100%;
        padding: 17px;
        font-size: 0.7rem;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 4px;
        background-color: rgba(255, 255, 255, 0.8);
    }
    .filter-item input[type="range"] {
        padding: 4px; /* Range inputs are styled differently */
        margin-top:21px;
    }
    .filter-item #area-value {
        font-size: 0.55rem;
        color: #555;
        margin-top: 15px;
        text-align: center;
    }
    html[dir="rtl"] .filter-item #area-value {
        text-align: center; /* Still center for RTL */
    }


    /* --- Units Section & Cards --- */
section#units {
    padding: 15px;
    position: relative;
    z-index: 1;
    min-height: 100vh; /* Base height */
    margin-bottom: 200px; /* Adds scrollable space below grid */
}

div#units-list.units-grid {
    margin-top: 55px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 60px; /* Ensures space is part of scroll */
}
    .unit-card { /* Define this class for dynamically created cards */
        display: flex;
        flex-direction: column;
        border-radius: 12px; /* Consistent with glass effect */
        overflow: hidden; /* To clip image corners */
        box-shadow: 0 3px 15px rgba(0,0,0,0.08);
        position: relative; /* For overlays */
    }

    .unit-card img.unit-image { /* Assuming class .unit-image on card images */
        width: 100%;
        height: 180px; /* Adjust height as needed */
        object-fit: cover;
        display: block;
    }
    .unit-card .image-overlay-rooms { /* For "X ROOMS" text on image */
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 4px 8px;
        border-radius: 5px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    html[dir="rtl"] .unit-card .image-overlay-rooms {
        left: auto;
        right: 10px;
    }
    .unit-card .unit-info {
        padding: 15px;
        color: #333;
    }
    .unit-card .unit-info h3 { /* Unit Title */
        font-size: 1.15rem;
        font-weight: 600;
        margin: 0 0 8px 0;
        color: #222;
    }
    .unit-card .unit-info p { /* Unit details like location/type */
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0 0 5px 0;
        color: #555;
    }
    .unit-card .area-badge { /* For the area (e.g., 120m²) */
        position: absolute;
        bottom: 15px; /* Position inside padding or adjust based on button */
        right: 15px;
        background-color: #555;
        color: white;
        padding: 5px 10px;
        border-radius: 15px; /* Pill shape */
        font-size: 0.75rem;
        font-weight: 500;
    }
     html[dir="rtl"] .unit-card .area-badge {
        right: auto;
        left: 15px;
    }
    .unit-card .view-details-btn { /* Button style */
        display: block;
        width: calc(100% - 30px); /* Full width within padding */
        margin: 15px 15px 15px 15px; /* Adjust to be above area badge or integrate */
        padding: 10px;
        text-align: center;
        background-color: #333;
        color: white;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 500;
        font-size: 0.9rem;
        transition: background-color 0.2s;
    }
    .unit-card .view-details-btn:hover {
        background-color: #555;
    }

    /* --- Overview, Masterplan, Amenities, Construction Sections --- */
    .content-section.overview-section,
    section#masterplan,
    section#amenities,
    section#construction {
        position: relative !important;
        width: auto !important; /* Let it be natural width inside main padding */
        max-width: 100% !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        padding: 20px !important; /* Consistent padding */
        margin: 0 2px 4px 2px; /* Consistent margin with filter section */
        z-index: 1 !important;
        border-radius: 12px; /* Match glass effect */
    }

    section#overview .overview-box p, section#overview #overview-content p {
        font-size: 1.1rem !important;
        line-height: 1.6;
        color: #444; /* Adjust text color for readability on glass */
    }

    section#masterplan .masterplan-image-container img {
        max-width: 100%;
        height: auto;
        max-height: 300px; /* Adjust image height */
        border-radius: 8px;
        display: block;
        margin: 0 auto;
    }

    /* --- Modal for Unit Images (Basic Styling) --- */
    #unit-details-modal .modal-content {
        width: 90%;
        max-width: 450px;
        margin: 10% auto; /* Adjust margin */
        padding: 15px;
        border-radius: 12px;
    }
    #unit-details-modal .modal-content.dark-glass-effect { /* Apply dark glass to modal */
        background-color: rgba(30, 30, 30, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    #unit-details-modal .modal-image {
        max-height: 60vh; /* Limit image height */
        border-radius: 8px;
    }
    #unit-details-modal .close {
        color: #fff; /* Ensure close button is visible on dark modal */
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    #unit-details-modal .prev, #unit-details-modal .next {
        padding: 10px;
        font-size: 1rem;
        color: #fff;
        background-color: rgba(0,0,0,0.3);
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
    }
    #unit-details-modal .prev { left: 10px; }
    #unit-details-modal .next { right: 10px; }
    #unit-details-modal .fullscreen { display: none !important; }

    /* --- Get In Touch Form (Consider Hiding or Simplifying) --- */
    .get-in-touch-container {
        display: none !important; /* Hidden as per landscape, good for portrait too to simplify */
    }

    /* --- Login/Register Modal --- */
    .modal-content1 {
        width: 90%;
        padding: 20px;
        margin: 20% auto;
        border-radius: 12px;
    }
    .modal-content1.dark-glass-effect { /* Apply dark glass to login modal */
         background-color: rgba(30, 30, 30, 0.9);
         backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .modal-content1 h2 {
        font-size: 1.3rem;
        color: #fff;
    }
    .modal-content1 label {
        color: #e0e0e0;
        font-size: 0.9rem;
    }
    .modal-content1 input[type="text"],
    .modal-content1 input[type="password"] {
        padding: 12px;
        font-size: 0.95rem;
        background-color: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        color: #fff;
        border-radius: 8px;
    }
    .modal-content1 .button22 {
        padding: 12px;
        font-size: 1rem;
        background-color: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.3);
        color: #fff;
        border-radius: 8px;
    }
    .modal-content1 .button22:hover {
         background-color: rgba(255,255,255,0.3);
    }
    .modal-content1 .close {
         color: #fff;
    }

    /* --- Hide Desktop/Tablet specific elements if any were missed --- */
    /* e.g., .desktop-only-element { display: none !important; } */
}
@media (orientation: landscape) and (max-width: 768px) {
    .left-nav {
        max-height: 100vh; /* Or set a smaller height if needed */
        overflow-y: auto;
        padding-right: 10px; /* Optional spacing for scrollbar */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .left-nav ul {
        display: block;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .left-nav ul li {
        margin-bottom: 10px; /* Optional: space between items */
    }
}
/* --- Landscape Mobile Adjustments --- */
@media (orientation: landscape) and (max-width: 768px) { /* Wider max-width for landscape */
    body {
        overflow: auto !important; /* Allow scroll in landscape if content exceeds
    } 

    nav.left-nav {
        max-width: 280px;
        padding-top: 50px;
    }


    nav.top-nav {
        top: 50px; /* Adjust if header is smaller in landscape */
    }



    #unit-details-modal .modal-content {
        margin: 5% auto; /* Less vertical margin */
    }
    #unit-details-modal .modal-image {
        max-height: 75vh;
    }

    main {
        padding-top: 100px; /* Re-evaluate based on header+top-nav actual height */
        padding-bottom: 50px; /* Re-evaluate based on bottom-nav actual height */
    }
}    
.lang-button {
     /* Green background */
     background-color: transparent; 
     border: 2px solid white; /* Optional: Add a border */
     color: white; /* Green text */
     padding: 5px 10px; /* Padding */
     text-align: center;
     text-decoration: none;
     display: inline-block !important;
     z-index: 1300;
     font-size: 18px; /* Font size */
     font-weight: bold;
     margin: 4px 5px;
     cursor: pointer; /* Pointer cursor on hover */
     border-radius: 5px; /* Rounded corners */
     transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}
#form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}
.checkmark {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}
.error-icon {
    margin-right: 6px;
}
#form-message {
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    display: none;
}
#form-message.success {
    background-color: #dff0d8;
    color: #3c763d;
    display: block;
}
#form-message.error {
    background-color: #f2dede;
    color: #a94442;
    display: block;
}
#form-message.success {
    background-color: #d4edda;
    color: #155724;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}
.lang-button.active {
    background-color: #000000;
    color: #fff;
    border-color: #fff;
}

.lang-button:hover {
    background-color: black ;
}

.language-switcher {
    display: flex !important;
    align-items: center;
    margin-left: 20px;
}



    

        /* Base RTL styling for text elements */
/* Set the default RTL direction for the page */
        [dir="rtl"] {
            direction: rtl;
            text-align: right;
        }

        /* Force specific elements to remain LTR */
        .ltr-exclude {
            direction: ltr !important;
            text-align: left !important;
        }
        /* Default styling for main section and its contents */


/* Style adjustments for RTL layout */
html[dir="rtl"] main {
    direction: rtl; /* Set the main section's text and layout direction */
}

/* Adjustments for the filter section */
html[dir="rtl"] #filter {
    text-align: right; /* Align filter section to the right in RTL */
}
  
html[dir="rtl"] #overview {
    text-align: right; /* Align filter section to the right in RTL */
}
html[dir="rtl"] #masterplan {
    text-align: right; /* Align filter section to the right in RTL */
}
html[dir="rtl"] #amenities {
    text-align: right; /* Align filter section to the right in RTL */
}
html[dir="rtl"] #construction {
    text-align: right; /* Align filter section to the right in RTL */
}
/* Units grid section adjustment */


/* Units grid cards */
html[dir="rtl"] .units-grid {
    flex-direction: row-reverse; /* Ensure cards are displayed in reverse order */
    justify-content: flex-start; /* Adjust alignment of cards */
    max-width: 100%;
    margin-left: 40%; /* Ensure grid doesn't overflow */
    gap: 20px;
}

/* Adjust other sections based on RTL */
html[dir="rtl"] .content-section {
    direction: rtl; /* Apply RTL direction to all content sections */
}

/* Adjust modal for RTL */
html[dir="rtl"] #unit-details-modal {
    direction: rtl; /* Ensure modal content respects RTL */
}

/* Adjust top and bottom padding for RTL */
html[dir="rtl"] .filter-item {
    text-align: right; /* Align filter options to the right */
}
html[dir="rtl"] .left-nav .close-btn {
    left: 20px; /* Invert the position of the close button for RTL */
    right: unset;
}
html[dir="rtl"] .right-nav ul {
    flex-direction: row-reverse; /* Aligns items right-to-left */
}

html[dir="rtl"] .tel-icon {
    margin-left: 10px; /* Inverts the margin for RTL */
    margin-right: 0;
}

html[dir="rtl"] .left-nav {
    left: unset;
    right: -500px;
    z-index:1000; /* Hidden off-screen on the right for RTL */
}

html[dir="rtl"] .left-nav.open {
    right: 0; /* When open, slide in from the right */
}

html[dir="rtl"] .left-nav .close-btn {
    left: 20px; /* Invert the position of the close button for RTL */
    right: unset;
}

html[dir="rtl"] .left-nav ul li a {
    text-align: right;
    padding-left: 0;
    padding-right: 20px;
}

html[dir="rtl"] .left-nav ul li a:hover {
    padding-right: 30px; /* Animate padding-right when hovered in RTL */
   /* Change background color on hover */
}

/* Animation on hover for links in LTR */
.left-nav ul li a:hover {
    padding-left: 30px; /* Move text slightly to the right on hover in LTR */
    transition: padding-left 0.3s ease-in-out;
}

/* Animation on hover for links in RTL */
html[dir="rtl"] .left-nav ul li a:hover {
    padding-right: 30px; /* Move text slightly to the left on hover in RTL */
    transition: padding-right 0.3s ease-in-out;
}
.right-nav ul li a {
            display: flex;
            align-items: center;
            direction: ltr; /* Forces LTR layout for the tel link */
        }

.modal {
    display: none;
    position: fixed;
    z-index: 1200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(131, 165, 165, 0.4); /* Semi-transparent background */
  }
  
  /* Modal Content */
  .modal-content1 {
    position: relative;
    background-color: rgba(131, 165, 165, 0.4); /* Semi-transparent window */
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    color: white;
    width: 80%;
    max-width: 400px;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px); /* Blur effect for background */
  }
  .modal-content h2{
    color: white;
    text-align: center;
  }
  /* Close Button */
  .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #420505;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }

  
  /* Form Styles */
  form {
    display: flex;
    flex-direction: column;
  }
  
  label {
    margin-top: 10px;

  }
  
  input[type="text"],
  input[type="password"] {
    padding: 10px;
    margin-top: 5px;
    width: 95%;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  .button22 {
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    background-color: transparent; /* Transparent background */
    border: 2px solid white; /* Optional: Add a border */
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .button22:hover {
    background-color: rgb(153, 185, 186);
  }

  
  .hidden {
    display: none;
  }
  @media (max-width: 600px) {
    .close-btn {
        top: 10px;
        right: 10px; /* Adjust position for mobile */
    }

    .language-switcher {
        margin-top: 20px; /* Ensure it's under the X button */
    }
}

/* Added Landscape-Specific Styles for Mobile Phones */
@media (orientation: landscape) and (max-device-width: 850px) and (max-device-height: 500px) {
    /* More specific landscape styles for phones */

    header.header {
        padding: 5px 0;
    }
    header.header .logo img {
        max-height: 30px; /* Smaller logo */
    }
    header.header .menu-toggle {
        font-size: 22px;
    }
    header.header .right-nav .tel-icon {
        height: 18px;
    }
    header.header .right-nav ul li a h2 {
        font-size: 0.8rem;
    }

    nav.left-nav {
        padding-top: 45px; /* If header is smaller */
        width: 220px; /* Can be narrower if needed */
    }
    nav.left-nav ul li a {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    nav.top-nav {
        top: 40px; /* If header is smaller */
        padding: 5px 0;
    }
    nav.top-nav .nav-arrow {
        font-size: 1.4rem;
    }
    nav.top-nav .nav-center li a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    nav.bottom-nav {
        padding: 5px 0;
    }
    nav.bottom-nav ul li a {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    main {
        padding-top: 80px;  /* header + top_nav approx */
        padding-bottom: 40px; /* bottom_nav approx */
    }

    .hero-slideshow .hero-slide img {
        max-height: 60vh; /* Limit height */
        object-fit: cover;
    }
    .hero-slideshow .hero-slide h1 {
        font-size: 1.2em; /* Smaller text on slides */
        padding: 5px;
    }
    .hero-slideshow .prev2, .hero-slideshow .next2 {
        font-size: 14px;
        padding: 8px;
        top: 45%;
    }

    section#filter {
        margin-bottom: 5px; /* Reduce bottom margin */
    }
    .filter-section {
        flex-wrap: nowrap; /* Try to keep filters in one line */
        overflow-x: auto; /* Allow horizontal scroll if they don't fit */
        padding: 8px;
        gap: 8px;
    }
    .filter-item {
        min-width: 150px; /* Allow items to be a bit smaller */
    }
    .filter-item select, .filter-item input[type="range"] {
        padding: 8px;
        font-size: 0.65rem;
    }
    .filter-item input[type="range"] {
        margin-top: 15px; /* Adjust alignment */
    }
    .filter-item #area-value {
        font-size: 0.5rem;
        margin-top: 12px;
    }

    div#units-list.units-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Allow more cards per row if width permits */
        gap: 15px;
        margin-top: 10px; /* Reduce top margin */
    }
    .unit-card img.unit-image {
        height: 140px; /* Adjust image height */
    }
    .unit-card .unit-info {
        padding: 10px;
    }
    .unit-card .unit-info h3 {
        font-size: 1rem;
    }
    .unit-card .unit-info p {
        font-size: 0.8rem;
    }
    .unit-card .view-details-btn {
        padding: 8px;
        font-size: 0.85rem;
        margin: 10px;
    }

    .content-section.overview-section,
    section#masterplan,
    section#amenities,
    section#construction {
        padding: 15px !important;
        margin-bottom: 10px;
    }
    section#overview .overview-box p, section#overview #overview-content p {
        font-size: 1rem !important;
    }
    section#masterplan .masterplan-image-container img {
        max-height: 250px;
    }

    #unit-details-modal .modal-content {
        padding: 10px;
        max-height: 80vh;
        overflow-y: auto;
    }
    #unit-details-modal .modal-image {
        max-height: 70vh;
    }

    .footer {
        padding: 10px; /* Smaller padding */
    }
    .footer-logo img {
        max-height: 30px;
        margin-bottom: 10px;
    }
    .footer-links ul {
        margin-bottom: 10px;
    }
    .footer-links ul li {
        margin: 0 8px;
    }
    .footer-links ul li a {
        font-size: 0.8rem;
    }
    .footer-social img {
        width: 20px;
        height: 20px;
    }
    .footer-copy p {
        font-size: 0.7rem;
    }

    #loading-screen video {
        object-fit: cover; /* Ensure it covers landscape screen */
    }

    .social-media-buttons {
        gap: 8px;
        right: 10px; /* Closer to edge */
    }
    .social-button {
        padding: 8px;
    }
    .social-button img {
        width: 20px;
        height: 20px;
    }
}