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

/* Body & Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    background: #fff;
    padding: 20px 50px;
    color: #004080;
    position: absolute;
    width: 100%;
    top: 0;
    height: 120px; /* Adjust height to ensure proper centering */
    z-index: 1000;
}

/* Center the logo */
.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Default logo size */
.logo img {
    height: 120px; /* Slightly bigger than before */
    transition: all 0.3s ease-in-out; /* Smooth size transition */
}

/* Bigger logo on tablets */
@media screen and (min-width: 768px) {
    .logo img {
        height: 150px; /* Bigger on tablets */
    }
}

/* Even bigger logo on desktops */
@media screen and (min-width: 1024px) {
    .logo img {
        height: 200px; /* More prominent on larger screens */
    }
}

/* Massive logo on large screens */
@media screen and (min-width: 1440px) {
    .logo img {
        height: 250px; /* Even bigger for large desktops */
    }
}

/* Menu Toggle Button */
.menu-toggle {
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s ease;
    color: #CFB53B;
    position: absolute;  /* Position it freely */
    top: 10px;           /* Move it up */
    left: 20px;         /* Keep it on the left */
    z-index: 1200;       /* Ensure it's above other elements */
}

/* Sidebar Tray (MacVillas Colors Reversed) */
.sidebar {
  height: 100vh;
  width: 250px;
  position: fixed;
  top: 0;
  left: -250px;
  background: #FFD700; /* Dark blue background */
  overflow-x: hidden;
  transition: left 0.3s ease-in-out;
  padding-top: 60px;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  font-family: 'Segoe UI', sans-serif;
}

/* Menu Items */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.sidebar ul li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar ul li a {
  text-decoration: none;
  color: #000; /* Gold text */
  font-size: 17px;
  font-weight: 500;
  display: block;
  transition: all 0.3s ease;
}

.sidebar ul li a:hover {
  background-color: #fff; /* Gold background */
  color: #FFD700; /* Dark blue text */
}


/* Close Button - Compact and Visible */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 16px; /* smaller text */
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background-color: #CFB53B; /* solid gold */
  padding: 4px 8px; /* tighter padding */
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.close-btn:hover {
  background-color: #fff;
  color: #004080;
}

/* Dropdown */
.dropdown-container {
  display: none;
  list-style: none;
  padding-left: 20px;
}

.dropdown-btn:hover + .dropdown-container,
.dropdown-container:hover {
  display: block;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #FFD700;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
}

.close-btn {
    position: absolute;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.modal-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #FFD700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
}

.modal-btn:hover {
    background: #e0b800;
}

/* Hero Section */
.hero {
    background: url('images/Prem.jpg') no-repeat center center/cover;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 100px;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    color: #FFD700;
    text-align: center;
    border-radius: 10px;
}


.search-bar input, 
.search-bar button {
    height: 40px; /* Ensures both elements have the same height */
    font-size: 16px; /* Makes text inside both elements visually balanced */
}

.search-bar input {
    flex: 1; /* Makes input take available space while keeping button size fixed */
}

.search-bar button {
    padding: 0 15px; /* Adjust padding for even button size */
}




/* Responsive Design */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}


/* Why Choose Us Section */
.why-choose-us {
    background: #FFD700; /* gold background */
    padding: 60px 20px;
    text-align: center;
}

.why-choose-us h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Benefits Container */
.benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Individual Benefit Box */
.benefit {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover Effect */
.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Icons */
.benefit i {
    font-size: 40px;
    color: #FFD700;
    margin-bottom: 10px;
}

/* Benefit Titles */
.benefit h3 {
    color: #000;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Benefit Text */
.benefit p {
    color: #000;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {  /* Tablets */
    .why-choose-us h2 {
        font-size: 1.8rem;
    }
    .benefits {
        gap: 25px;
    }
    .benefit {
        max-width: 280px;
        padding: 18px;
    }
    .benefit h3 {
        font-size: 1.3rem;
    }
    .benefit p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {  /* Small Tablets & Large Phones */
    .why-choose-us {
        padding: 50px 15px;
    }
    .why-choose-us h2 {
        font-size: 1.6rem;
    }
    .benefits {
        flex-direction: column;
        align-items: center;
    }
    .benefit {
        max-width: 90%;
        padding: 16px;
    }
    .benefit h3 {
        font-size: 1.2rem;
    }
    .benefit p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {  /* Mobile Phones */
    .why-choose-us {
        padding: 40px 10px;
    }
    .why-choose-us h2 {
        font-size: 1.4rem;
    }
    .benefit {
        max-width: 95%;
        padding: 15px;
    }
    .benefit h3 {
        font-size: 1.1rem;
    }
    .benefit p {
        font-size: 0.85rem;
    }
}

/* Dream Home Section */
.dream-home {
    position: relative;
    height: 80vh; /* Takes 80% of the screen height */
    background: url('images/Stand.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Dark Overlay */
.dream-home .overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 50px 20px;
    border-radius: 10px;
    animation: fadeIn 1.5s ease-in-out; /* Smooth fade-in effect */
}

/* Heading Animation */
.dream-home h2 {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideUp 1s ease-out 0.5s forwards;
}

.dream-home p {
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease-out 0.7s forwards;
}

/* Explore Button */
.explore-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 18px;
    background: #FFD700;
    color: #000;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease-in 1s forwards;
}

.explore-btn:hover {
    background: #e0b800;
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Modal Active Animation */
.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Close Button */
.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Modal Button */
.modal-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #FFD700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
}

.modal-btn:hover {
    background: #e0b800;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media screen and (max-width: 768px) {
    .dream-home h2 {
        font-size: 32px;
    }

    .dream-home p {
        font-size: 16px;
    }

    .explore-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media screen and (max-width: 480px) {
    .dream-home {
        height: 70vh;
    }

    .dream-home h2 {
        font-size: 28px;
    }

    .dream-home p {
        font-size: 14px;
    }
}



.sign-in-icon {
  font-size: 26px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 22px;
  color: #FFD700;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Add a soft shadow for contrast */
}

/* Sign-In Text (Hidden on Mobile, Visible on Desktop) */
.sign-in-text {
    font-size: 16px;
    font-weight: bold;
    display: none;
}

/* Show "Sign In" Text on Desktop, Hide Icon */
@media screen and (min-width: 768px) {
    .sign-in-icon i {
        display: none;
    }
    .sign-in-text {
        display: inline;
    }
}

/* Login Popup */
.login-popup {
    display: none;
    position: fixed;
    top: 50px;
    right: 20px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 350px;
    border-radius: 8px;
    z-index: 1001;
}

/* Full-Screen Popup on Mobile */
@media screen and (max-width: 768px) {
    .login-popup {
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
        border-radius: 0;
        padding: 40px;
    }
}

/* Login Content */
.login-content {
    text-align: center;
}

.login-content h2 {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 22px;
}

/* Close Button */
.close-btn {
    font-size: 22px;
    cursor: pointer;
    float: right;
    color: #000;
    transition: color 0.3s ease-in-out;
}

.close-btn:hover {
    color: #FFD700;
}

/* Tabs */
.login-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
    cursor: pointer;
}

.login-tabs li {
    font-weight: bold;
    padding-bottom: 5px;
}

/* Active Tab */
.login-tabs li.active {
    border-bottom: 2px solid #FFD700;
    color: #FFD700;
    transition: all 0.3s ease-in-out;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Labels */
form label {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

/* Input Fields */
input {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #FFD700;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    outline: none;
}

/* Input Focus Effect */
input:focus {
    border-color: #FFD700;
    box-shadow: 0px 0px 5px rgba(207, 181, 59, 0.5);
}

/* Sign In Button */
button {
    background: #FFD700;
    color: #000;
    padding: 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

/* Button Hover Effect */
button:hover {
    background: #e0b800;
}

/* Forgot Password */
.forgot-password {
    text-align: center;
    display: block;
    color: #FFD700;
    font-size: 14px;
    margin-top: -5px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.forgot-password:hover {
    color: #e0b800;
}



.login-content {
    max-height: 80vh; /* Adjusts based on screen size */
    overflow-y: auto; /* Enables scrolling when content overflows */
    padding: 20px;
}

/* Style scrollbar for better appearance */
.login-content::-webkit-scrollbar {
    width: 6px;
}

.login-content::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 10px;
}

/* Container for the Forms */
.login-forms {
    position: relative;
    min-height: 300px; /* Ensures stable height */
    overflow: hidden;
}

/* Stacking Forms on Top of Each Other */
.login-forms form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Active Form - Visible */
.login-forms form.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* Prevents overlapping */
}

/* OR Divider */
.or-divider {
    margin: 20px 0;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    text-align: center;
    position: relative;
}

/* OR Divider Styling */
.or-divider::before,
.or-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}


.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  font-size: 14px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.social-btn i {
  font-size: 18px;
}

.social-btn.apple {
  background-color: #000;
}

.social-btn.facebook {
  background-color: #3b5998;
}

.social-btn.google {
  background-color: #db4437;
}

.social-btn:hover {
  opacity: 0.9;
}


/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Social Login Buttons */
.social-login button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

/* Individual Social Buttons */
.apple-login {
    background: black;
    color: white;
}

.facebook-login {
    background: #1877F2;
    color: white;
}

.google-login {
    background: #DB4437;
    color: white;
}

/* Hover Effects for Social Buttons */
.social-login button:hover {
    opacity: 0.85;
}

/* Font Awesome Icons inside buttons */
.social-login button i {
    font-size: 18px;
}


/* Containter for image sliders */
.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 auto;
    width: 250px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* Overlay Styles */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark transparent overlay */
    color: white;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

.overlay h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.overlay p {
    font-size: 14px;
    margin: 5px 0 0;
}

/* Optional: Hover effect to darken the overlay */
.card:hover .overlay {
    background: rgba(0, 0, 0, 0.8);
}

.section-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}


.property-options {
    padding: 40px 0;
    background-color: #f8f8f8; /* Light background to separate section */
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* Terms & Conditions Modal */
.terms-modal {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #CFB53B;
    padding: 30px;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow-y: auto;
}

/* Terms Content */
.terms-modal-content {
    text-align: left;
}

/* Close Button */
.terms-modal-content .close-terms-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #FFD700; /* Color for the close button */
}

/* Heading */
.terms-modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Subheading */
.terms-modal-content h3 {
    font-size: 18px;
    margin-top: 15px;
    color: #333;
}

/* Terms Text */
.terms-modal-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

/* Links */
.terms-modal-content a {
    color: #CFB53B;
    text-decoration: none;
    font-weight: bold;
}

.terms-modal-content a:hover {
    text-decoration: underline;
}

/* Footer Section */
.terms-modal-content .footer {
    margin-top: 30px;
    font-size: 12px;
    text-align: center;
    color: white;
}

/* Scrollable Content for Terms */
.terms-modal-content {
    max-height: 400px;
    overflow-y: auto;
}

/* Scrollbar */
.terms-modal-content::-webkit-scrollbar {
    width: 8px;
}

.terms-modal-content::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}

.terms-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Page Header */
.page-header {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
    background-color: #ffd700;
    color: white;
    z-index: 1;
    position: relative;
}

/* Property Grid */
.property-grid {
    margin-top: 40px; /* Add some margin to create space below the header */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Default grid setup */
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 10px;
}

/* Buy Properties Page Styling */
.buy-properties-page {
    padding: 20px;
    background-color: #f5f5f5;
}

/* Page Header */
.buy-properties-header {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
    background-color: #0077b6;
    color: white;
}

/* Banner Image - Separate from Header */
.property-banner {
    text-align: center;
    margin: 20px 0;
}

.property-banner img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* Property Card */
.property-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.property-card:hover {
    transform: scale(1.05);
}

.property-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Property Info Overlay */
.property-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
}

.property-info h2 {
    margin: 0;
    font-size: 18px;
}

.property-info p {
    margin: 5px 0;
}

.price {
    font-weight: bold;
    color: #ffcc00;
}

/* Purchase Form Popup */
.purchase-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.purchase-popup .close-btn {
    float: right;
    font-size: 20px;
    cursor: pointer;
}

/* Form Styling */
.purchase-popup form {
    display: flex;
    flex-direction: column;
}

.purchase-popup form label {
    margin-top: 10px;
    font-weight: bold;
}

.purchase-popup form input,
.purchase-popup form select {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.purchase-popup form button {
    margin-top: 15px;
    padding: 10px;
    background: #0077b6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* ==========================
   🔹 RESPONSIVE DESIGN
   ========================== */

/* Mobile (up to 768px) */
@media screen and (max-width: 768px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on small screens */
    }

    .property-card img {
        height: 180px;
    }

    .property-info {
        font-size: 12px;
        padding: 8px;
    }

    .purchase-popup {
        width: 95%; /* Full width for mobile */
    }

    .page-header {
        font-size: 24px; /* Adjust header size on small screens */
    }

    /* Adjust layout of Buy Properties header */
    .buy-properties-header {
        font-size: 24px;
    }

    .property-banner img {
        max-height: 300px; /* Reduce the banner size for mobile */
    }
}

/* Tablets (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

    .property-card img {
        height: 220px; /* Adjust image height for tablet */
    }

    .page-header {
        font-size: 26px;
    }

    .buy-properties-header {
        font-size: 26px;
    }

    .property-banner img {
        max-height: 350px; /* Adjust banner size for tablets */
    }
}

/* Desktop (above 1024px) */
@media screen and (min-width: 1025px) {
    .property-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on large screens */
    }

    .property-card img {
        height: 250px; /* Default image size for desktops */
    }

    .page-header {
        font-size: 30px; /* Larger font size for larger screens */
    }

    .buy-properties-header {
        font-size: 30px; /* Adjust header size for large screens */
    }

    .property-banner img {
        max-height: 400px; /* Set default banner size for large screens */
    }
} 

/* === Responsive Optimization Add-on (Only) === */

/* Ensure padding adjusts on smaller screens */
@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }

  header {
    padding: 15px 20px;
    height: 100px;
  }

  .logo img {
    height: 90px;
  }

  .buy-container {
    padding: 15px;
  }

  .property-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-content {
    padding: 15px;
  }

  .card-content h3 {
    font-size: 18px;
  }

  .card-content .price {
    font-size: 16px;
  }

  .card-content p {
    font-size: 14px;
  }

  .card-content .btn {
    padding: 8px 14px;
    font-size: 14px;
  }

  .gallery-container {
    height: 200px;
  }

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

  .nav-btn {
    font-size: 16px;
    padding: 8px 10px;
  }

  footer {
    padding: 40px 15px 20px;
  }

  .footer-grid {
    gap: 30px;
  }

  .footer-col h4 {
    font-size: 16px;
  }

  .footer-col p,
  .footer-col ul li a {
    font-size: 13px;
  }

  .footer-bottom {
    padding-top: 20px;
    margin-top: 30px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .social-icons a {
    font-size: 16px;
    padding: 8px;
  }
}

/* For ultra-wide screens */
@media (min-width: 1600px) {
  .buy-container,
  .footer-wrapper {
    max-width: 1400px;
  }

  .card-content h3 {
    font-size: 24px;
  }

  .card-content .price {
    font-size: 20px;
  }

  .card-content p {
    font-size: 16px;
  }

  .card-content .btn {
    font-size: 16px;
  }

  .footer-col h4 {
    font-size: 20px;
  }

  .footer-col p,
  .footer-col ul li a {
    font-size: 16px;
  }

  .footer-bottom p {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 20px;
  }
}




.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background-color: #FFD700;
  color: #000;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 20px;
}

.sticky-cta a:hover {
  background-color: #e0b800;
  transform: scale(1.1);
}

/* Smaller screen adjustments */
@media (max-width: 480px) {
  .sticky-cta a {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
}



















.counters-section {
  position: relative;
  /* Animated black-gold gradient background */
  background: linear-gradient(135deg, #000000, #111111, #1a1a1a, #2a1b00, #d4af37);
  background-size: 400% 400%;
  animation: goldFlow 15s ease infinite;

  color: #fff;
  padding: 120px 20px;
  text-align: center;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Animate gradient flow */
@keyframes goldFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Subtle overlay to soften the gold */
.counters-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15), rgba(0, 0, 0, 0.8) 80%);
  z-index: 1;
}

/* Layout */
.footer-counters {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Glassy Gold Cards === */
.counter.glass-card {
  flex: 1 1 220px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 50px 25px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease, transform 1s ease;
  opacity: 0;
  transform: translateY(60px);
}

/* Gold reflective frame */
.counter.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #d4af37, #ffffff20, #d4af37);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Hover with gold glow */
.counter.glass-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 60px rgba(212, 175, 55, 0.3);
  background: rgba(255, 215, 0, 0.1);
}

/* === Slide-in Animation === */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delayed entrance for each card */
.counter.glass-card:nth-child(1) {
  animation: slideInUp 1s ease forwards;
  animation-delay: 0.2s;
}
.counter.glass-card:nth-child(2) {
  animation: slideInUp 1s ease forwards;
  animation-delay: 0.4s;
}
.counter.glass-card:nth-child(3) {
  animation: slideInUp 1s ease forwards;
  animation-delay: 0.6s;
}
.counter.glass-card:nth-child(4) {
  animation: slideInUp 1s ease forwards;
  animation-delay: 0.8s;
}

/* === Gold Counter Text === */
.counter .count {
  display: block;
  font-size: 3.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #d4af37, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

/* White-gold Label Text */
.counter p {
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}







































/* ===========================
   FOOTER (COMPACT SAME FOR ALL SCREENS)
=========================== */
footer {
  background-color: #FFD700;
  color: #111;
  padding: 12px 10px; 
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px; 
  position: relative;
  overflow: hidden;
}

/* Footer Grid */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px; 
  margin-bottom: 8px; 
  padding-bottom: 10px;
  position: relative;
}

/* Sleek black divider below grid with pointed ends */
.footer-grid::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.8) 10%,
    rgba(0,0,0,1) 50%,
    rgba(0,0,0,0.8) 90%,
    rgba(0,0,0,0) 100%
  );
  opacity: 1;
}

/* Newsletter Section */
.footer-col.newsletter {
  flex: 1 1 220px;
  min-width: 140px;
  margin: 4px 0; 
  text-align: left;
  padding-bottom: 12px;
  position: relative;
}

/* Sleek black divider below newsletter with pointed ends */
.footer-col.newsletter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.8) 10%,
    rgba(0,0,0,1) 50%,
    rgba(0,0,0,0.8) 90%,
    rgba(0,0,0,0) 100%
  );
  opacity: 1;
}

/* Headings & text */
.footer-col h4 {
  font-size: 16px; 
  margin-bottom: 6px;
  color: #111; 
}

.footer-col p,
.footer-col ul li a {
  font-size: 14px; 
  line-height: 1.6; 
  color: #111; 
  margin-bottom: 6px; 
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 4px; 
}

.footer-col ul li a {
  text-decoration: none;
  color: #111; 
}

/* Explore + Contact wrapper */
.explore-contact-wrapper {
  display: flex;
  gap: 8px; 
  flex: 1 1 380px;
  flex-wrap: wrap; 
  margin: 4px 0; 
}

.explore-contact-wrapper .footer-col {
  flex: 1 1 48%;
  min-width: 140px;
}

/* Newsletter form default (mobile) */
.footer-col.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.footer-col.newsletter input {
  width: 100%;
  padding: 10px 12px; 
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px; 
  box-sizing: border-box;
  outline: none;
  text-align: left; 
  color: #111;
}

.footer-col.newsletter button {
  width: 100%;
  padding: 10px 0;
  background-color: #111;
  color: #FFD700;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px; 
  transition: background 0.3s, color 0.3s;
  text-align: center;
}

.footer-col.newsletter button:hover {
  background-color: #fff;
  color: #111;
}

/* ===========================
   FOOTER BOTTOM
=========================== */
.footer-bottom {
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  gap: 10px; 
  padding-top: 10px;
  margin-top: 12px;
  text-align: center; 
  position: relative;
}

/* No extra shimmer at end */
.footer-bottom::before {
  display: none;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px; 
  color: #111;
}

.social-icons {
  display: flex;
  gap: 10px; 
  justify-content: center; 
}

.social-icons a {
  color: #111; 
  font-size: 20px; 
  padding: 6px; 
  border-radius: 50%;
  transition: background 0.3s, color 0.3s;
}

.social-icons a:hover {
  background-color: #fff;
  color: #111;
}

/* ===========================
   FOOTER POPUP MODAL
=========================== */
.footer-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.footer-popup.show {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.footer-popup-content {
  background: #fff; 
  padding: 18px 16px; 
  width: 90%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  position: relative;
  text-align: left;
  line-height: 1.6;
  color: #111; 
}

.footer-popup-content h2 {
  margin-bottom: 8px;
  font-size: 20px; 
  color: #FFD700;
}

.footer-popup-content p {
  margin-bottom: 8px;
  font-size: 15px; 
  color: #111; 
}

.close-footer-popup {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 22px; 
  font-weight: bold;
  color: #111; 
  cursor: pointer;
}

.close-footer-popup:hover { color: #FFD700; }

/* Animations */
@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .footer-grid,
  .explore-contact-wrapper,
  .footer-counters,
  .footer-bottom {
    flex-direction: initial !important; 
    flex-wrap: wrap;
    gap: 8px !important;
  }

  .explore-contact-wrapper .footer-col {
    flex: 1 1 48% !important; 
  }

  .footer-counters .counter {
    flex: 1 1 calc(45% - 10px) !important;
  }

  .footer-col.newsletter {
    text-align: left;  
  }

  .footer-col.newsletter form { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 6px; 
    width: 100%;
  }

  .footer-col.newsletter input {
    width: 100%; 
    height: 36px;      
    text-align: left;
    padding: 6px 10px;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px; 
    color: #111;
  }

  .footer-col.newsletter button {
    width: 100%;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column !important; 
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px; 
  }

  .social-icons {
    gap: 12px;
  }

  .social-icons a {
    font-size: 22px; 
    padding: 8px;
  }
}

/* ===========================
   DESKTOP / TABLET FIX
=========================== */
@media (min-width: 769px) {
  .footer-col.newsletter {
    text-align: left;
  }

  .footer-col.newsletter form {
    display: flex;
    flex-direction: row;
    gap: 6px;
    max-width: 600px;
    width: 100%;
    margin: 0;
  }

  .footer-col.newsletter input {
    flex: 1 1 70%;
    height: 40px;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #111;
  }

  .footer-col.newsletter button {
    flex: 1 1 30%;
    height: 40px;
    padding: 0 12px;
    background-color: #111;
    color: #FFD700;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
  }

  .footer-col.newsletter button:hover {
    background-color: #fff;
    color: #111;
  }
}

/* Sleek pointed divider after MacVillas description */
.footer-divider {
  width: 100%;
  height: 3px;
  margin: 10px 0 12px 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.8) 10%,
    rgba(0,0,0,1) 50%,
    rgba(0,0,0,0.8) 90%,
    rgba(0,0,0,0) 100%
  );
  opacity: 1;
  border: none;
}





































/* ===============================
   TERMS & CONDITIONS TRAY STYLES
   =============================== */

/* Overlay */
.tc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9998;
}

/* Tray */
.tc-tray {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 1000px;
  max-height: 90%;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  z-index: 9999;
  display: none;
  box-sizing: border-box;
}

.tc-tray.active {
  display: block;
}

/* Header */
.tc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tc-header h2 {
  color: #000;
  font-size: 28px;
}

.tc-close {
  font-size: 28px;
  cursor: pointer;
  color: #000;
}

/* Content Cards */
.tc-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tc-card {
  background: rgba(255, 215, 0, 0.2); /* FFD700 glassy gold */
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  color: #000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  box-sizing: border-box;
  word-wrap: break-word;
}

.tc-card h3, .tc-card h4 {
  color: #000;
  margin-bottom: 10px;
}

.tc-card p, .tc-card ul {
  color: #111;
  font-size: 14px;
  line-height: 1.5;
}

.tc-card ul {
  padding-left: 20px;
}

/* Scrollbar */
.tc-tray::-webkit-scrollbar {
  width: 8px;
}

.tc-tray::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

/* ===============================
   MOBILE RESPONSIVENESS
   =============================== */
@media (max-width: 768px) {
  .tc-tray {
    width: 95%;
    padding: 20px;
  }

  .tc-header h2 {
    font-size: 22px;
  }

  .tc-card {
    padding: 15px;
  }

  .tc-card p, .tc-card ul {
    font-size: 13px;
  }
}
