/* --- 1. Global Styles & Variables --- */
:root {
    --primary-color: #0d263b;
    --secondary-color: #1a9a7a;
    --accent-color: #e66a4d;
    --bg-color: #f7f7f7;
    --text-color: #333333;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    --container-width: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
}
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--heading-font); color: var(--primary-color); font-weight: 700; }
h2 { text-align: center; font-size: 2.8rem; margin-bottom: 40px; }
.btn { display: inline-block; padding: 10px 24px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; text-align: center; border: 2px solid transparent; }
.btn-primary { background-color: var(--accent-color); color: white; border-color: var(--accent-color); }
.btn-primary:hover { background-color: #e66a4d; border-color: #e66a4d; transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: white; }

/* --- 2. Header & Navigation --- */
.main-header { background: white; padding: 15px 0; position: sticky; top: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--heading-font); font-size: 1.8rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.main-nav { display: none; } /* Hidden on mobile by default */
.main-nav ul { list-style: none; display: flex; align-items: center; }
.main-nav ul li { margin-left: 30px; }
.main-nav ul li a { text-decoration: none; color: var(--text-color); font-weight: 500; position: relative; padding-bottom: 5px; }
.main-nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.main-nav ul li a:hover::after, .main-nav ul li a.active::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.header-buttons { display: none; } /* Hidden on mobile by default */
.mobile-menu-btn { display: block; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--primary-color); }

/* --- Header & Navigation Styles --- */
.main-header { 
    background: white; 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.main-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-family: var(--heading-font); 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    text-decoration: none; 
}

/* Desktop Navigation */
.main-nav { 
    display: none; /* Hidden on mobile by default */ 
}

.main-nav ul { 
    list-style: none; 
    display: flex; 
    align-items: center; 
}

.main-nav ul li { 
    margin-left: 30px; 
}

.main-nav ul li a { 
    text-decoration: none; 
    color: var(--text-color); 
    font-weight: 500; 
    position: relative; 
    padding-bottom: 5px; 
}

.main-nav ul li a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background-color: var(--accent-color); 
    transition: width 0.3s ease; 
}

.main-nav ul li a:hover::after, 
.main-nav ul li a.active::after { 
    width: 100%; 
}

/* Header Right Section */
.header-right { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-left: auto; 
}

/* Header Buttons - Desktop */
.header-buttons { 
    display: none; /* Hidden on mobile by default */ 
    gap: 15px; /* Space between buttons */
}

.header-buttons .btn { 
    padding: 10px 20px; 
    font-size: 0.9rem; 
}

.header-buttons .btn-secondary { 
    margin-right: 10px; /* Extra space between Login and Admin Login */
}

/* Mobile Menu Button */
.mobile-menu-btn { 
    display: block; 
    font-size: 1.5rem; 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--primary-color); 
}

/* --- Mobile Navigation Drawer --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    left: 0;
}

#mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
}

#mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Links */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 20px;
}

.mobile-nav ul li {
    position: relative;
    margin-bottom: 8px;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 38, 59, 0.1);
    border-radius: 8px;
    background-color: rgba(13, 38, 59, 0.02);
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a:focus {
    background-color: rgba(13, 38, 59, 0.05);
    color: var(--accent-color);
    border-color: rgba(255, 119, 87, 0.3);
}

/* Mobile Auth Links */
/* Find and replace the old #mobile-auth-links rules with this */

#mobile-auth-links {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid rgba(13, 38, 59, 0.1);
}

/* Style for the "Customer Login" button (first one) */
#mobile-auth-links .mobile-login-link:first-of-type {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Style for the "Admin Login" button (second one) */
#mobile-auth-links .mobile-login-link:last-of-type {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.mobile-login-link {
    display: block;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#mobile-auth-links a:first-of-type {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

#mobile-auth-links a:first-of-type:hover {
    background-color: #0a1f2f;
}

#mobile-auth-links a:last-of-type {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

#mobile-auth-links a:last-of-type:hover {
    background-color: #e66a4d;
    border-color: #e66a4d;
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    /* Show desktop navigation and buttons */
    .main-nav { 
        display: flex; 
    }
    
    .header-buttons { 
        display: flex; 
    }
    
    /* Hide mobile menu button on desktop */
    .mobile-menu-btn { 
        display: none; 
    }
    
    /* Adjust button spacing */
    .header-buttons .btn-secondary { 
        margin-right: 15px; /* More space between Login and Admin Login */
    }
}

@media (max-width: 767px) {
    /* Hide desktop buttons on mobile */
    .header-buttons { 
        display: none !important; 
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn { 
        display: block; 
    }
}

.mobile-login-link {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    margin-top: 0;
}
#mobile-auth-links a:first-of-type {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
#mobile-auth-links a:last-of-type {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
#mobile-logout-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    margin-top: 30px;
    width: 80%;
    background-color: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}


/* --- Profile Dropdown Styles --- */
.profile-dropdown { position: relative; display: inline-block; }
.profile-pic { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; object-fit: cover; border: 2px solid var(--primary-color); }
.dropdown-content { display: none; position: absolute; right: 0; background-color: white; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; border-radius: 5px; overflow: hidden; }
.dropdown-content a { color: rgb(255, 255, 255); padding: 12px 16px; text-decoration: none; display: block; font-size: 0.9rem; }
.dropdown-content a:hover { background-color: #000000; }
.profile-dropdown:hover .dropdown-content { display: block; }

/* --- Hero Section --- */
.hero { position: relative; color: white; padding: 120px 0; text-align: center; background: url('https://images.pexels.com/photos/106399/pexels-photo-106399.jpeg') no-repeat center center/cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(13, 38, 59, 0.6); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 3.5rem; color: white; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; }
.search-box { max-width: 600px; margin: 0 auto; }
.search-box form { display: flex; background: white; border-radius: 50px; padding: 5px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.search-box input { flex-grow: 1; border: none; background: transparent; padding: 15px 25px; font-size: 1rem; }
.search-box input:focus { outline: none; }

/* --- Featured Properties Section --- */
.featured-properties { padding: 80px 0; }
.properties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.property-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.property-card img { width: 100%; height: 220px; object-fit: cover; }
.property-badge { position: absolute; top: 15px; left: 15px; background: var(--secondary-color); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.property-details { padding: 25px; }
.property-details h3 { font-size: 1.3rem; margin-bottom: 10px; }
.property-details .location { color: #666; margin-bottom: 15px; }
.property-details .features { display: flex; gap: 20px; margin-bottom: 15px; color: #555; border-top: 1px solid #eee; padding-top: 15px; }
.features span i { color: var(--secondary-color); margin-right: 5px; }
.property-details .price { font-size: 1.5rem; font-weight: 700; color: var(--accent-color); margin-bottom: 20px; }
.property-actions { display: flex; gap: 10px; margin-top: 20px; }
.property-actions .btn { flex: 1; padding: 12px 10px; font-size: 0.9rem; }
.btn-whatsapp { background-color: #25D366; color: white; border-color: #25D366; }
.btn-whatsapp:hover { background-color: #1EBE57; border-color: #1EBE57; }
.btn-whatsapp i { margin-right: 5px; }

/* --- Testimonials Section --- */
.testimonials { padding: 80px 0; background-color: white; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.testimonial-card { background: #f7f7f7; padding: 30px; border-radius: 10px; border-left: 5px solid var(--secondary-color); }
.testimonial-card p { font-style: italic; margin-bottom: 20px; font-size: 1.1rem; }
.client-info { display: flex; align-items: center; gap: 15px; }
.client-info img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.client-info h4 { margin: 0; }
.client-info span { font-size: 0.9rem; color: #666; }

/* --- 5. CTA and Footer --- */
.cta-section { background: var(--primary-color); color: white; padding: 60px 0; text-align: center; }
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { margin-bottom: 30px; }
.main-footer { background: #111; color: #aaa; padding: 50px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-col h3 { color: white; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; text-decoration: none; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 0.9rem; }

/* --- Mobile Bottom Navigation --- */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1001; height: 65px; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none; color: #888; padding: 8px 0; transition: color 0.2s ease; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--accent-color); }
.bottom-nav a i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav a span { font-size: 0.7rem; font-weight: 500; }

/* --- 6. Responsive Design --- */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    body { padding-bottom: 65px; /* Add padding back for mobile view to prevent footer from being hidden */ }
    .header-right { margin-left: 0; }
    /* UPDATED RULE: This will hide the login buttons on mobile, overriding inline styles */
    .main-nav, .header-right .header-buttons, #profile-dropdown-container { display: none !important; }
    .mobile-menu-btn { display: block; }
    h2 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.2rem; }
    .search-box form { flex-direction: column; gap: 10px; background: none; box-shadow: none; }
    .search-box .btn-primary { width: 100%; }
    .search-box input { border-radius: 50px; background: white; text-align: center; }
    .bottom-nav { display: flex; }
}

/* --- 7. Login Page Styles --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    padding: 20px;
}
.login-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}
.login-card .logo {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
}
.login-card h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}
.login-card p {
    color: #666;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}
#phone-login-form button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #aaa;
}
.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}
.separator:not(:empty)::before {
    margin-right: .25em;
}
.separator:not(:empty)::after {
    margin-left: .25em;
}
.btn-google {
    background-color: #4285F4;
    color: white;
    width: 100%;
    padding: 14px;
}
.btn-google:hover {
    background-color: #357ae8;
}
.btn-google .fa-google {
    margin-right: 10px;
}
#recaptcha-container {
    margin-top: 15px;
}
.form-group input:read-only {
    background-color: #e9ecef;
    cursor: not-allowed;
}
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: '\\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
}
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* --- 8. All Properties Page Styles --- */

.main-content {
    padding-top: 20px;
}

.page-header {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
}

.properties-section {
    padding-bottom: 80px;
}

/* --- Filter Form Styles --- */
.filter-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 40px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-actions button {
    width: 100%;
}


/* --- Lead Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1010;
    display: none;
}
.modal-overlay.active { display: block; }

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1020;
    width: 90%;
    max-width: 450px;
    display: none;
}
.modal.active { display: block; }

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
}

.modal h3 {
    text-align: center;
    margin-bottom: 10px;
}
.modal p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}
.modal .form-group {
    margin-bottom: 15px;
}
.modal button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}
.phone-input {
    display: flex;
}
.phone-input input {
    flex-grow: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.btn-otp {
    padding: 0 15px;
    border: 1px solid #ddd;
    border-left: none;
    background: #f1f1f1;
    cursor: pointer;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

#recaptcha-container-lead {
    margin-top: 15px;
}

/* --- 9. Property Details Page Styles --- */
/* --- 9. Property Details Page Styles (Redesigned) --- */

.property-details-page {
    padding: 40px 0;
}

.details-section {
    background: rgb(0, 0, 0);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.landscape-title {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}
.landscape-title h1 {
    color: white;
    font-size: 2.8rem;
}
.landscape-title .location {
    color: #eee;
    font-size: 1.1rem;
}

/* --- Image Carousel --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 550px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 12px;
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    transition: background-color 0.3s;
}
.carousel-button:hover {
    background: rgba(0,0,0,0.8);
}
.carousel-button.prev { left: 15px; }
.carousel-button.next { right: 15px; }

/* --- Main Body Layout --- */
.property-detail-body { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: flex-start; }
.property-main-content h2 { text-align: left; font-size: 2rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #eee; }
.property-main-content p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; }
.video-container { margin-bottom: 0; border-radius: 10px; overflow: hidden; }
.mobile-details-first, .mobile-details-second, .mobile-details-third { display: block; }

/* --- Sidebar & Details Card --- */
.property-sidebar { position: sticky; top: 100px; }
/* The .details-card is now a wrapper inside the .details-section for mobile */
.details-card { background: none; padding: 0; box-shadow: none; }
.details-card .price-tag { font-size: 2rem; font-weight: 700; color: var(--accent-color); margin-bottom: 20px; }
.details-card h3 { font-size: 1.5rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.key-details-list { list-style: none; padding: 0; margin-bottom: 20px; }
.key-details-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f5f5f5; font-size: 1rem; }
.key-details-list li:last-child { border-bottom: none; }

/* --- Bottom Action Bar (Mobile & Desktop Sidebar Replacement) --- */
.bottom-action-bar { 
    display: flex; /* Changed from none to flex */
    background: white; 
    z-index: 1001; 
    height: 65px; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
/* Desktop Sidebar Actions */
.property-sidebar .bottom-action-bar {
    flex-direction: column;
    height: auto;
    box-shadow: none;
    gap: 15px;
}
.property-sidebar .action-btn {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-size: 1rem;
    flex-direction: row;
    gap: 10px;
}
.property-sidebar .action-btn i {
    margin-bottom: 0;
}

/* Mobile Bottom Bar */
.bottom-action-bar { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
}
.action-btn { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none; color: #555; background: none; border: none; font-size: 0.8rem; font-family: var(--body-font); cursor: pointer; }
.action-btn i { font-size: 1.2rem; margin-bottom: 4px; }
.action-btn.schedule { background-color: var(--accent-color); color: white; }


/* --- Tour Modal --- */
#tour-modal .form-group { margin-bottom: 15px; }
#tour-modal button { width: 100%; padding: 14px; margin-top: 10px; }

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .property-detail-body { grid-template-columns: 1fr; }
    .property-sidebar { display: none; }
    .bottom-action-bar { display: flex; } /* Show on tablet */
}
@media (min-width: 993px) {
    .bottom-action-bar { display: none; } /* Hide mobile bar on desktop */
    .property-sidebar .bottom-action-bar { display: flex; } /* Show sidebar actions on desktop */
}
@media (max-width: 768px) {
    body { padding-bottom: 65px; }
    .landscape-title h1 { font-size: 2rem; }
    .carousel-container { height: 300px; }
    .property-main-content {
        display: flex;
        flex-direction: column;
    }
    .mobile-details-first { order: 1; }
    .mobile-details-second { order: 2; }
    .mobile-details-third { order: 3; }
}

/* --- 10. About Us Page Styles --- */

.about-section {
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.leadership-section {
    text-align: center;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.director-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.director-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--bg-color);
}

.director-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.director-title {
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1; /* Move image to the top on smaller screens */
    }
}

/* --- 11. Contact Us Page Styles --- */

.contact-section {
    padding: 60px 0;
    background-color: rgb(0, 0, 0);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-form-container h3,
.contact-info-container h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-details i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these new styles to the end of your public/css/style.css file */

/* --- 9. Contact Page Styles --- */

.contact-section {
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgb(0, 0, 0);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.contact-form-container h3,
.contact-details-container h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* **FIX**: Styles for the message box */
#contact-message {
    width: 100%; /* Ensures it takes the full width of its container */
    resize: vertical; /* Allows user to resize vertically but not horizontally */
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-info-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.contact-info-item p {
    margin: 0;
    color: #ffffff;
    line-height: 1.6;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
}

/* Responsive adjustments for the contact page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        padding: 25px;
    }
}

/* --- 10. Floating Search Bar Styles --- */

.floating-search-bar {
    background: white;
    padding: 15px 0;
    position: fixed;
    top: -100px; /* Start hidden above the screen */
    left: 0;
    width: 100%;
    z-index: 999; /* Below the header but above content */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: top 0.3s ease-in-out; /* Smooth slide-down animation */
}

.floating-search-bar.active {
    top: 73px; /* Position it right below the main header */
}

.floating-search-bar form {
    display: flex;
    gap: 10px;
}

.floating-search-bar input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
}

.floating-search-bar input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.modal-close-btn {
    position: absolute;
    top: 5px;
    left: 120px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
}

/* --- 10. Floating Search Bar Styles --- */

.floating-search-bar {
    background: white;
    padding: 15px 0;
    position: fixed;
    top: -100px; /* Start hidden above the screen */
    left: 0;
    width: 100%;
    z-index: 999; /* Below the header but above content */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: top 0.3s ease-in-out; /* Smooth slide-down animation */
}

.floating-search-bar.active {
    top: 73px; /* Position it right below the main header */
}

.floating-search-bar form {
    display: flex;
    gap: 10px;
}

.floating-search-bar input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
}

.floating-search-bar input:focus {
    outline: none;
    border-color: var(--secondary-color);
}


/* Customer Login Button States */
#mobile-auth-links a:first-of-type {
    /* Default State */
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

#mobile-auth-links a:first-of-type:hover,
#mobile-auth-links a:first-of-type:active,
#mobile-auth-links a:first-of-type:focus {
    /* Active/Hover State */
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* --- Enhanced Profile Section --- */
.mobile-profile {
    padding: 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(13, 38, 59, 0.03) 0%, rgba(13, 38, 59, 0.01) 100%);
    border-bottom: 1px solid rgba(13, 38, 59, 0.1);
    margin-bottom: 20px;
}

.mobile-profile .profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.mobile-profile h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.mobile-profile .btn-secondary {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Mobile Menu Items */
.mobile-nav ul li {
    margin-bottom: 5px;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.mobile-nav ul li a:hover {
    background-color: rgba(13, 38, 59, 0.05);
}

/* Logout Button */
#mobile-logout-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 20px auto;
    padding: 12px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

#mobile-logout-btn:hover {
    background-color: #c82333;
}

.mobile-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.7;
    cursor: pointer;
    z-index: 1;
    transition: opacity 0.2s ease;
}

.mobile-close-btn:hover {
    opacity: 1;
}

/* --- 11. Customer Profile Page Styles --- */

.profile-section {
    padding-bottom: 80px;
}

.profile-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.profile-card .profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.profile-card .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.profile-card .profile-header h3 {
    margin: 0 0 5px 0;
    font-size: 2rem;
}

.profile-card .profile-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
}

.profile-card hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* Responsive adjustments for the profile page */
@media (max-width: 768px) {
    .profile-card {
        padding: 25px;
    }
    .profile-card .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

/* --- 11. Customer Profile Page Styles --- */

.profile-section {
    padding-bottom: 80px;
}

.profile-card {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.profile-card .profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.profile-card .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.profile-card .profile-header h3 {
    margin: 0 0 5px 0;
    font-size: 2rem;
}

.profile-card .profile-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
}

.profile-card hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* Styles for the phone input with verify button */
.phone-input-verify {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-input-verify input {
    flex-grow: 1;
}

.btn-verify {
    padding: 12px 20px;
    font-size: 0.9rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

#recaptcha-container-profile {
    margin-top: 15px;
}


/* Responsive adjustments for the profile page */
@media (max-width: 768px) {
    .profile-card {
        padding: 25px;
    }
    .profile-card .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

/* --- 12. Wishlist Feature Styles --- */

/* Wishlist Heart Icon on Property Cards */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: var(--accent-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.wishlist-btn .fas { /* Style for the filled heart */
    color: var(--accent-color);
}

.wishlist-btn .far { /* Style for the empty heart */
    color: var(--primary-color);
}


/* Wishlist Page Specifics */
.wishlist-section {
    padding-bottom: 80px;
}

/* Responsive adjustments for the wishlist page */
@media (max-width: 768px) {
    .wishlist-section {
        padding-bottom: 20px;
    }
}

/* Wishlist Page Specific Styles */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.loading-properties, .empty-wishlist, .auth-required, .error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-properties p {
    font-size: 1.2rem;
    color: #555;
}

.empty-wishlist i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.empty-wishlist p, .auth-required p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.error-message p {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.property-card.removing {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
}

.toast-success {
    background: #27ae60;
}

.toast-error {
    background: #e74c3c;
}

/* Wishlist Button States */
.wishlist-btn .fa-spinner {
    animation: fa-spin 1s infinite linear;
}

.wishlist-active {
    color: #e74c3c;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* Wishlist Heart Icon Styles */
.wishlist-btn i {
    font-size: 1.2rem;
    color: #ccc; /* Default unfilled color */
    transition: all 0.3s ease;
}

.wishlist-btn .fas.fa-heart {
    color: #e74c3c; /* Filled color - red */
}

.wishlist-btn:hover i {
    color: #e74c3c; /* Hover color */
}

.wishlist-active {
    color: #e74c3c !important;
}

/* Toast Notifications with Bottom Padding */
.toast-notification {
    position: fixed;
    bottom: 80px; /* Increased from 20px to account for bottom nav */
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
}

.toast-success {
    background: #27ae60;
}

.toast-error {
    background: #e74c3c;
}

.toast-info {
    background: #3498db;
}

/* Wishlist Heart Styles */
.wishlist-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Unfilled state */
.wishlist-btn .far {
    color: #ccc;
}

/* Filled state */
.wishlist-btn .fas {
    color: #e74c3c;
}

.wishlist-active {
    color: #e74c3c !important;
}

/* Toast Notification with Bottom Nav Padding */
.toast-notification {
    bottom: 80px !important; /* Adjust based on your nav height */
    /* rest of your toast styles */
}

/* Wishlist Button Styles */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.wishlist-btn i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.wishlist-btn .far {
    color: #555;
}

.wishlist-btn .fas {
    color: #e74c3c;
}

.wishlist-btn .fa-spinner {
    animation: fa-spin 1s infinite linear;
}

.wishlist-animate {
    animation: heartBeat 0.5s;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Toast Notifications with Bottom Nav Padding */
.toast-notification {
    position: fixed;
    bottom: 80px; /* Account for bottom nav */
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
}

.toast-success {
    background: #27ae60;
}

.toast-error {
    background: #e74c3c;
}

/* --- NEW: Phone Input with Static Prefix --- */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.phone-input-group:focus-within {
    border-color: var(--primary-color);
}
.phone-prefix {
    padding: 12px;
    background-color: #f7f7f7;
    color: #888;
    font-weight: 500;
    border-right: 1px solid #ddd;
}
.phone-input-group input {
    border: none;
    flex-grow: 1;
    padding: 12px;
}
.phone-input-group input:focus {
    outline: none;
}

/* --- NEW: OTP Input Boxes --- */
.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}
.otp-inputs input {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--text-color); /* This line might already be there */
    -moz-appearance: textfield; /* Firefox */
}
.otp-inputs input::-webkit-outer-spin-button,
.otp-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.otp-inputs input:focus {
    border-color: var(--primary-color); /* Dark blue border on focus */
    outline: none;
}

/* --- NEW: OTP Action Buttons --- */
.otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.edit-number-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}
.edit-number-btn i {
    margin-right: 5px;
}

/* --- FIX for OTP Input Spinners & Mobile Text Color --- */

/* This removes the up/down arrows from number inputs */
.otp-inputs input::-webkit-outer-spin-button,
.otp-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-inputs input[type=number] {
  -moz-appearance: textfield; /* This is for Firefox */
}

/* This is a more forceful rule to ensure the text color is dark */
.otp-inputs input {
    color: #333333 !important; 
}

/* --- FINAL FIX: Force OTP Input Style on All Devices --- */

/* Hide the up/down arrows from number inputs in Chrome/Safari */
.otp-inputs input::-webkit-outer-spin-button,
.otp-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide the up/down arrows in Firefox */
.otp-inputs input[type=number] {
  -moz-appearance: textfield;
}

/* Force the text color to be dark gray (#333) for all OTP inputs */
body .otp-inputs input {
    color: #333333 !important;
}

/* --- NEW: Phone Input with Static Prefix --- */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.phone-input-group:focus-within {
    border-color: var(--primary-color);
}
.phone-prefix {
    padding: 12px 15px;
    background-color: #f7f7f7;
    color: #555;
    font-weight: 500;
    border-right: 1px solid #ddd;
}
.phone-input-group input {
    border: none;
    flex-grow: 1;
    padding: 12px 15px;
}
.phone-input-group input:focus {
    outline: none;
}

/* --- NEW: Individual OTP Input Boxes --- */
.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.otp-inputs input {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    -moz-appearance: textfield; /* For Firefox */
}
.otp-inputs input::-webkit-outer-spin-button,
.otp-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.otp-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
}

@media (max-width: 400px) {
    .otp-inputs {
        gap: 5px;
    }
    .otp-inputs input {
        width: 38px;
        height: 45px;
    }
}

/* Customer Login */
#mobile-auth-links .mobile-login-link.customer {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

/* Admin Login */
#mobile-auth-links .mobile-login-link.admin {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

/* Fix for OTP input boxes */
.otp-inputs input {
    height: 50px;
    width: 45px;
    text-align: center;
    font-size: 1.5rem; /* Increased size for better visibility */
    border: 1px solid #ddd;
    border-radius: 8px;
    -moz-appearance: textfield;
}

@media (max-width: 400px) {
    .otp-inputs {
        gap: 5px;
    }
    .otp-inputs input {
        width: 38px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* --- FIX: Robust OTP Input Styling for All Devices --- */

.otp-inputs input.otp-input {
    height: 50px;       /* Set an explicit height */
    width: 45px;        /* Set an explicit width */
    line-height: 50px;  /* Vertically center text by matching the height */
    text-align: center; /* Horizontally center text */
    font-size: 1.5rem;  /* Make the font a bit larger for clarity */
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;         /* Remove any default browser padding */
    color: #333 !important; /* Force a dark color for the text */
    -moz-appearance: textfield; /* Hide number spinners in Firefox */
}

/* Hide number spinners in Chrome, Safari, Edge, Opera */
.otp-inputs input.otp-input::-webkit-outer-spin-button,
.otp-inputs input.otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 400px) {
    .otp-inputs {
        gap: 5px; /* Reduce space between boxes */
    }

    .otp-inputs input.otp-input {
        height: 45px;       /* Adjust height for smaller screens */
        width: 38px;        /* Adjust width for smaller screens */
        line-height: 45px;  /* Match line-height to new height */
        font-size: 1.2rem;
    }
}

/* --- UPDATED: Footer Alignment & Social Icon Colors --- */

/* 1. Aligns all footer columns to the top */
.footer-grid {
    align-items: start;
}

/* 2. Styles for the social icon container */
.footer-social-icons {
    margin-top: 20px;
    display: flex;
    gap: 18px; /* Slightly increased gap */
}

/* 3. General style for all icons */
.footer-social-icons a {
    font-size: 1.6rem; /* Slightly larger icons */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 4. Set the actual brand colors for each icon by default */
.footer-social-icons .fa-youtube { color: #FF0000; }
.footer-social-icons .fa-instagram { color: #E4405F; }
.footer-social-icons .fa-facebook { color: #1877F2; }
.footer-social-icons .fa-whatsapp { color: #25D366; }

/* 5. Add a subtle hover effect */
.footer-social-icons a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}


/* --- 13. Loan Calculator Styles --- */
.loan-calculator {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.loan-calculator .form-group {
    margin-bottom: 15px;
}

.loan-calculator .form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.loan-calculator input[type="range"] {
    width: 100%;
    cursor: pointer;
}

/* --- NEW: Changed input type from number to text for formatting --- */
.loan-calculator input[type="text"],
.loan-calculator input[type="number"] {
     width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#emi-chart {
    max-width: 250px;
    max-height: 250px;
    margin: 0 auto;
}

#emi-details {
    width: 100%;
}

#emi-details p {
    margin: 8px 0;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 500;
}

#emi-details p strong {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .loan-calculator {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* =========================================================
   Liquid Glass Theme + Dark Mode (Light = default)
   ---------------------------------------------------------
   HOW IT WORKS:
   - Light mode is the default (no attribute needed).
   - Add data-theme="dark" to the <html> (or <body>) to enable dark mode.
   - Uses your existing CSS variables. We override them for dark mode.
   - Provides glassmorphism utilities: .glass, .glass-card, .glass-nav
   - Provides gold-accent helpers: .gold, .btn--gold, .border-gold
   ========================================================= */

/* 1) Theme Variables: Light (default) */
:root {
    /* Keep your existing variables as-is if already defined.
       We only ensure they exist with sensible defaults. */
    --primary-color: #caa65b;
    --secondary-color: #6c757d;
    --accent-color: #caa65b; /* warm gold */
    --bg-color: #f7f7f9;
    --surface-color: rgba(255, 255, 255, 0.72);
    --text-color: #1a1a1a;
    --muted-text: #555;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-1: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-2: 0 12px 40px rgba(0,0,0,0.12);
    --backdrop-blur: 18px;
    --radius-2xl: 1.25rem;
    --radius-xl: 0.9rem;
    --transition-fast: 180ms ease;
    --transition-slow: 360ms ease;
    --gold-gradient: linear-gradient(135deg, #f7e7b5 0%, #e2c46d 25%, #caa65b 50%, #9a7939 75%, #f5e0a3 100%);
}

/* 2) Theme Variables: Dark (enable with [data-theme="dark"]) */
[data-theme="dark"] {
    --primary-color: #9ad0ff;
    --secondary-color: #949aa1;
    --accent-color: #f5c86d; /* shiny gold */
    --bg-color: #2c1a0f; /* near-black */
    --surface-color: rgba(20, 18, 22, 0.6); /* translucent for glass */
    --text-color: #f3f3f4;
    --muted-text: #b6b6b9;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-1: 0 10px 28px rgba(0,0,0,0.45);
    --shadow-2: 0 18px 60px rgba(0,0,0,0.55);
    --backdrop-blur: 22px;
    --radius-2xl: 1.25rem;
    --radius-xl: 0.9rem;
    --transition-fast: 180ms ease;
    --transition-slow: 380ms ease;
    /* Dark burgundy tint for subtle backgrounds */
    --burgundy-tint: radial-gradient(1200px 800px at 10% 0%,
        rgba(64, 0, 20, 0.25) 0%, rgba(10, 10, 11, 0) 55%),
        radial-gradient(900px 700px at 90% 100%,
        rgba(46, 0, 10, 0.28) 0%, rgba(10, 10, 11, 0) 60%);
}

/* 3) Page background & base text */
html, body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-slow), color var(--transition-fast);
}

/* Optional: atmospheric burgundy glow only in dark */
[data-theme="dark"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--burgundy-tint, transparent);
    pointer-events: none;
}

/* 4) Glass utilities */
.glass {
    background: var(--surface-color);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-1);
    border-radius: var(--radius-2xl);
}

.glass:hover {
    box-shadow: var(--shadow-2);
}

.glass-card {
    composes: glass;
    padding: clamp(16px, 2vw, 28px);
}

.glass-nav {
    composes: glass;
    padding: 10px 18px;
}

/* If your build doesn't support `composes`, fall back: */
.glass-card, .glass-nav {
    background: var(--surface-color);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-1);
    border-radius: var(--radius-2xl);
}

/* 5) Gold accents */
.gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.05));
}

.border-gold {
    border-image: var(--gold-gradient) 1;
    border-width: 1px;
    border-style: solid;
}

.btn--gold {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-xl);
    background-image: var(--gold-gradient);
    color: #1a1a1a;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    text-decoration: none;
    font-weight: 600;
}

.btn--gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    filter: saturate(1.05);
}

.btn--gold:active {
    transform: translateY(0);
}

/* 6) Buttons: primary/secondary using variables */
.btn, .button, button, input[type="submit"], .btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-xl);
    padding: 10px 18px;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: var(--shadow-1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn:hover, .button:hover, button:hover, input[type="submit"]:hover, .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

.btn-outline, .btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover, .btn-secondary:hover {
    background: var(--surface-color);
}

/* 7) Cards & containers */
.card, .container, .panel, .box, .section, .widget, .modal, .dropdown, .tooltip, .toast {
    background: var(--surface-color);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-1);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-slow);
}

.card:hover, .panel:hover, .box:hover, .section:hover, .widget:hover, .modal:hover, .dropdown:hover, .tooltip:hover, .toast:hover {
    box-shadow: var(--shadow-2);
}

/* 8) Forms */
input, select, textarea {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: rgba(32, 30, 34, 0.6);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(202, 166, 91, 0.2);
}

/* 9) Links */
a {
    color: var(--primary-color);
    text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

/* 10) Navbar example */
.navbar, .header, header.nav {
    background: var(--surface-color);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-1);
}

/* 11) Toggle switch (style only). Add a checkbox + label in HTML */
.theme-toggle {
    position: relative;
    width: 52px; height: 30px;
    border-radius: 999px;
    background: rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    display: inline-flex; align-items: center;
    padding: 3px;
    transition: background var(--transition-fast);
}
.theme-toggle::after {
    content: "";
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--gold-gradient);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transform: translateX(0);
    transition: transform var(--transition-fast);
}
/* Add .is-dark on the toggle element to reflect dark state (optional) */
.theme-toggle.is-dark { background: rgba(255,255,255,0.15); }
.theme-toggle.is-dark::after { transform: translateX(22px); }

/* =========================================================
   TPW — Liquid Glass + Dark Default + Polishing Overrides
   (Merged full file additions)
   ========================================================= */

/* ---- 1) Theme Variables (Light default values kept if ever switched) ---- */
:root {
  --primary-color: #caa65b;
  --secondary-color: #6c757d;
  --accent-color: #caa65b;            /* warm/dark gold */
  --bg-color: #2c1a0f;                /* dark default background */
  --surface-color: rgba(20, 18, 22, 0.6);
  --text-color: #f3f3f4;
  --muted-text: #b6b6b9;
  --border-color: rgba(255,255,255,0.08);
  --shadow-1: 0 10px 28px rgba(0,0,0,0.45);
  --shadow-2: 0 18px 60px rgba(0,0,0,0.55);
  --backdrop-blur: 22px;
  --radius-2xl: 1.25rem;
  --radius-xl: 0.9rem;
  --transition-fast: 180ms ease;
  --transition-slow: 360ms ease;
  --gold-gradient: linear-gradient(135deg,#f7e7b5 0%,#e2c46d 25%,#caa65b 50%,#9a7939 75%,#f5e0a3 100%);
}

/* Explicit light values if you ever flip to light */
:root:not([data-theme="dark"]) {
  --bg-color: #f7f7f9;
  --surface-color: rgba(255, 255, 255, 0.72);
  --text-color: #1a1a1a;
  --muted-text: #555;
  --border-color: rgba(0,0,0,0.08);
  --shadow-1: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-2: 0 12px 40px rgba(0,0,0,0.12);
  --backdrop-blur: 18px;
}

/* ---- 2) Dark-mode burgundy atmosphere ---- */
[data-theme="dark"] body::before,
:root body::before { /* dark is default */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(64,0,20,0.25) 0%, rgba(10,10,11,0) 55%),
    radial-gradient(900px 700px at 90% 100%, rgba(46,0,10,0.28) 0%, rgba(10,10,11,0) 60%);
  pointer-events: none;
}

/* ---- 3) Base ---- */
html, body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background-color var(--transition-slow), color var(--transition-fast);
}

/* ---- 4) Glass utilities ---- */
.glass,
.glass-card,
.glass-nav,
.main-header,
.profile-dropdown .dropdown-content,
.bottom-nav,
.floating-search-bar,
.card, .panel, .box, .section, .widget, .modal, .dropdown {
  background: var(--surface-color);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-1);
}
.glass:hover, .glass-card:hover, .card:hover, .panel:hover, .box:hover,
.section:hover, .widget:hover, .modal:hover, .dropdown:hover {
  box-shadow: var(--shadow-2);
}

/* ---- 5) Gold helpers ---- */
.gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.05));
}
[data-theme="dark"] .gold,
.gold { filter: drop-shadow(0 2px 6px rgba(245,200,109,0.15)); }

/* ---- 6) Buttons ---- */
.btn, .button, button, input[type="submit"], .btn-primary {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-xl);
  padding: 10px 18px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.btn:hover, .button:hover, button:hover, input[type="submit"]:hover, .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* Gold buttons (View Details, CTA, etc.) */
.btn-gold, .cta-section .btn.btn-primary, .property-card .card-actions a:last-child {
  background: #caa65b !important;
  color: #000 !important;
  border: none !important;
}
.btn-gold:hover, .cta-section .btn.btn-primary:hover, .property-card .card-actions a:last-child:hover {
  background: #9a7939 !important;
  color: #000 !important;
}

/* WhatsApp button */
.btn-whatsapp, .property-card .card-actions a:first-child {
  background: #25D366 !important;
  color: #000000 !important;
  border: none !important;
}
.btn-whatsapp:hover, .property-card .card-actions a:first-child:hover {
  background: #1EBC57 !important;
}

/* Secondary/outline */
.btn-outline, .btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

/* ---- 7) Search bars (remove flat gray fill) ---- */
.search-box form,
#mobile-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.search-box input[type="text"],
#mobile-search-form input[type="text"] {
  flex: 1;
  background: transparent !important;
  color: var(--text-color);
  border: none !important;
  outline: none;
  padding: 14px 16px;
}
.search-box input::placeholder,
#mobile-search-form input::placeholder {
  color: var(--muted-text);
  opacity: 1;
}
.search-box .btn, #mobile-search-form .btn { border-radius: 999px; }

/* ---- 8) Property cards & meta ---- */
.properties-grid .property-card,
.testimonial-card,
.cta-section .container {
  background: var(--surface-color) !important;
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-1);
}

/* icons and meta text = white */
.property-card .fa, .property-card .fa-solid, .property-card .fa-regular,
.property-card p, .property-card small, .property-card .meta, .property-card .meta * {
  color: #fff !important;
}

/* ---- 9) Forms (dark) ---- */
input, select, textarea {
  background: rgba(32,30,34,0.6);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
input::placeholder, textarea::placeholder { color: var(--muted-text); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(202,166,91,0.2);
}

/* ---- 10) Navbar/footer/bottom-nav already glass via .glass ---- */
.navbar, .header, header.nav { /* if present */
  background: var(--surface-color);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-1);
}

/* ---- 11) Testimonials/CTA refinements ---- */
.testimonial-card { color: var(--text-color); }
.testimonial-card:hover { box-shadow: var(--shadow-2); }
[data-theme="dark"] .cta-section { background: transparent !important; }

/* ---- 12) Mobile: hide header toggle, use sidebar slider ---- */
@media (max-width: 768px) {
  #themeToggleBtn { display: none !important; }
}

/* ---- 13) Sidebar theme slider ---- */
.sidebar-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin-top: 16px;
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}
.theme-toggle-slider {
  position: relative;
  width: 52px;
  height: 28px;
  background: #2f2f32;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.theme-toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.theme-toggle-slider.is-dark { background: #5a5a60; }
.theme-toggle-slider.is-dark::after { transform: translateX(24px); }

/* ---- 14) Theme toggle pill (desktop header) ---- */
.theme-toggle {
  position: relative;
  width: 52px; height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--border-color);
  display: inline-flex; align-items: center;
  padding: 3px;
  transition: background var(--transition-fast);
}
.theme-toggle::after {
  content: "";
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transform: translateX(0);
  transition: transform var(--transition-fast);
}
.theme-toggle.is-dark { background: rgba(255,255,255,0.18); }
.theme-toggle.is-dark::after { transform: translateX(22px); }

/* ==========================================
   TPW Final Polishing Overrides
   ========================================== */

/* Property titles – light golden-blue */
.property-card h3, 
.property-card h2, 
.property-card .title a {
  color: #caa65b !important; /* soft light blue */
}

/* Property meta (beds/baths/area/location) – white */
.property-card .fa, 
.property-card .fa-solid, 
.property-card .fa-regular,
.property-card p, 
.property-card small, 
.property-card .meta, 
.property-card .meta * {
  color: #fff !important;
}

/* Divider line under location → white */
.property-card hr {
  border-color: #fff !important;
  opacity: 0.3;
}

/* Buttons → Gold (Search, Send OTP, Verify OTP, Get in Touch, View Details) */
.btn-primary, 
.search-box .btn, 
#mobile-search-form .btn,
#send-otp-btn, 
#submit-lead-btn,
.cta-section .btn.btn-primary,
.property-card .card-actions a:last-child {
  background: #caa65b !important;   /* dark gold */
  color: #000 !important;
  border: 1px solid #caa65b !important;
  border-radius: 999px !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.btn-primary:hover, 
.search-box .btn:hover, 
#mobile-search-form .btn:hover,
#send-otp-btn:hover, 
#submit-lead-btn:hover,
.cta-section .btn.btn-primary:hover,
.property-card .card-actions a:last-child:hover {
  background: #9a7939 !important;   /* deeper gold on hover */
  border-color: #9a7939 !important;
}

/* Modal (Express Interest) – border gold, divider white */
#lead-modal {
  border: 1px solid #caa65b !important;
}
#lead-modal hr, 
#lead-modal .divider {
  border-color: #fff !important;
}

/* Container below hero (search container padding) */
.hero .search-box {
  margin-top: 20px;
  padding: 12px;
}

/* Testimonials container – add padding bottom */
.testimonials .container {
  padding-bottom: 60px;
}

/* "What Our Clients Say" heading → gold */
.testimonials h2 {
  color: #caa65b !important;
}

/* Login/Admin Login buttons match theme */
.header-buttons .btn-primary,
.header-buttons .btn-secondary {
  padding: 10px 20px;
  border-radius: 999px;
}

/* Hero section container adjustments */
.hero .container {
  padding: 20px 0px;}

  /* Make Login button same style as Admin Login (gold theme) */
.header-buttons .btn,
.header-buttons .btn-secondary,
.header-buttons .btn-primary {
  background: #caa65b !important;   /* gold */
  color: #000 !important;
  border: 1px solid #caa65b !important;
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 20px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.header-buttons .btn:hover,
.header-buttons .btn-secondary:hover,
.header-buttons .btn-primary:hover {
  background: #9a7939 !important;   /* darker gold on hover */
  border-color: #9a7939 !important;
  color: #000 !important;
}

/* === FIX: Font Awesome icons showing as squares in property meta === */
/* Keep text in Poppins but restore FA font on the <i> tags */
.property-card .meta,
.property-card .property-meta,
.property-card .details,
.property-card .features {
  color: #ffffff !important;
  opacity: 1 !important;
  font-family: 'Poppins', sans-serif; /* ok for text */
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* DO NOT inherit Poppins on icons — force FA back */
.property-card .meta i,
.property-card .property-meta i,
.property-card .details i,
.property-card .features i {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal !important;
  font-weight: 900 !important;              /* solid icons */
  line-height: 1;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* If any icons use the regular style */
.property-card .meta i.far,
.property-card .meta i.fa-regular,
.property-card .property-meta i.far,
.property-card .details i.far,
.property-card .features i.far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;              /* regular icons */
  color: #ffffff !important;
}

/* Explicitly target common icons too (belt-and-suspenders) */
.property-card .fa,
.property-card .fa-solid,
.property-card .fa-bed,
.property-card .fa-bath,
.property-card .fa-ruler-combined,
.property-card .fa-map-marker-alt {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* In case a parent applies opacity/filter */
.property-card .meta,
.property-card .property-meta,
.property-card .details,
.property-card .features {
  filter: none !important;
}

/* === Force View Details button → gold like Admin Login === */
.property-card .card-actions a.btn,
.property-card .card-actions a.view-details,
.property-card .card-actions a:nth-child(2) {
  background-color: #caa65b !important;   /* gold */
  color: #000 !important;                 /* black text */
  border: 1px solid #caa65b !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  text-align: center;
}
.property-card .card-actions a.btn:hover,
.property-card .card-actions a.view-details:hover,
.property-card .card-actions a:nth-child(2):hover {
  background-color: #9a7939 !important;   /* darker gold on hover */
  border-color: #9a7939 !important;
  color: #000 !important;
}

/* === Force WhatsApp button → green with black text === */
.property-card .card-actions a.btn-whatsapp,
.property-card .card-actions a.whatsapp,
.property-card .card-actions a:first-child {
  background-color: #25D366 !important;   /* WhatsApp green */
  color: #000 !important;                 /* black text */
  border: 1px solid #25D366 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  text-align: center;
}
.property-card .card-actions a.btn-whatsapp:hover,
.property-card .card-actions a.whatsapp:hover,
.property-card .card-actions a:first-child:hover {
  background-color: #1EBC57 !important;   /* darker green on hover */
  border-color: #1EBC57 !important;
  color: #000 !important;
}

.testimonials {
  background: transparent !important;   /* kill the white section bg */
  padding: 70px 0;                      /* breathing space */
  position: relative;
}

/* ==== Lead Modal Heading & Subline Fix ==== */
#lead-modal h3 {
  color: #ffffff !important;        /* white heading */
  font-weight: 600;
  margin-bottom: 8px;
}

#lead-modal p {
  color: #b6b6b9 !important;        /* muted gray for subline */
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* ==== Lead Modal Form Field Styling ==== */
#lead-modal input,
#lead-modal select,
#lead-modal textarea {
  background: rgba(20, 20, 22, 0.6);
  color: #ffffff;
  border: 1px solid #caa65b !important;   /* gold border */
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

#lead-modal input::placeholder,
#lead-modal textarea::placeholder {
  color: #b6b6b9;
}

/* Hover + Focus → darker gold */
#lead-modal input:hover,
#lead-modal select:hover,
#lead-modal textarea:hover,
#lead-modal input:focus,
#lead-modal select:focus,
#lead-modal textarea:focus {
  border-color: #9a7939 !important;
  box-shadow: 0 0 0 2px rgba(154,121,57,0.4);
  outline: none;
}

/* === Phone Input Group Fix === */
#lead-modal .phone-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #caa65b;
  border-radius: 8px;
  overflow: hidden;
}

#lead-modal .phone-prefix {
  background: #caa65b;       /* gold background */
  color: #000;               /* black text */
  padding: 10px 12px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

#lead-modal .phone-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 12px;
  color: #fff;
}

/* Remove browser blue outline and replace with gold glow */
#lead-modal input:focus,
#lead-modal select:focus,
#lead-modal textarea:focus {
  outline: none !important;
  border: 1px solid #9a7939 !important;
  box-shadow: 0 0 6px rgba(202,166,91,0.7) !important;
}

/* === Dropdown Styling === */
#lead-modal select {
  background: #000 !important;    /* black background */
  color: #fff !important;         /* white text */
  border: 1px solid #caa65b !important;
  border-radius: 6px;
  padding: 10px;
  font-family: 'Poppins', sans-serif;
}

/* Options inside dropdown */
#lead-modal select option {
  background: #000 !important;    /* black dropdown items */
  color: #fff !important;         /* white text */
  padding: 8px;
}

/* Highlight on hover/selection */
#lead-modal select option:checked,
#lead-modal select option:hover {
  background: #caa65b !important;  /* gold highlight */
  color: #000 !important;
}

/* === OTP Input Fix === */
#lead-modal .otp-inputs .otp-input {
  background: transparent;
  border: 1px solid #caa65b;
  border-radius: 6px;
  width: 40px;
  height: 45px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff !important;   /* white digits */
  outline: none;
}

/* Focus effect → golden glow */
#lead-modal .otp-inputs .otp-input:focus {
  border-color: #9a7939;
  box-shadow: 0 0 6px rgba(202,166,91,0.7);
}

/* === OTP inputs: prevent digit clipping, center perfectly === */
#lead-modal .otp-inputs {
  display: flex;
  gap: 10px;
}

#lead-modal .otp-inputs .otp-input {
  width: 48px;
  height: 56px;                 /* a bit taller */
  box-sizing: border-box;
  padding: 0;                   /* avoid extra vertical padding */
  text-align: center;

  /* Make the digit sit exactly in the middle */
  line-height: 56px;            /* = height */
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #fff;

  background: transparent;
  border: 1px solid #caa65b;
  border-radius: 8px;
  outline: none;
}

/* Gold focus glow */
#lead-modal .otp-inputs .otp-input:focus {
  border-color: #9a7939;
  box-shadow: 0 0 6px rgba(202,166,91,0.7);
}

/* Remove number spinners so layout doesn't shift */
#lead-modal .otp-inputs .otp-input::-webkit-outer-spin-button,
#lead-modal .otp-inputs .otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#lead-modal .otp-inputs .otp-input[type="number"] {
  -moz-appearance: textfield;
}

/* === Mobile header adjustments === */
@media (max-width: 768px) {
  /* Logo smaller so it fits in one line */
  .main-header .logo {
    font-size: 1.2rem !important;    /* smaller than desktop */
    line-height: 1.3;
    white-space: nowrap;             /* force one line */
  }

  /* Hamburger icon → gold */
  .mobile-menu-btn i {
    color: #caa65b !important;       /* gold */
    font-size: 1.5rem;
  }
  .mobile-menu-btn:hover i {
    color: #9a7939 !important;       /* darker gold on hover */
  }
}

/* ================================
   Mobile Drawer — Liquid Glass v2
   ================================ */

/* Overlay */
#mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 999; /* just below the drawer */
}
#mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  height: 100dvh;
  width: min(86vw, 360px);
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;

  background: linear-gradient(180deg,
              rgba(20,18,22,0.7) 0%,
              rgba(20,18,22,0.62) 45%,
              rgba(20,18,22,0.75) 100%);
  border: 1px solid var(--border-color);
  border-right: 1px solid rgba(202,166,91,0.25);
  border-radius: 0 20px 20px 0;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: translateX(-110%);
  transition: transform 260ms ease;
  z-index: 1000;
}
.mobile-nav.is-open { transform: translateX(0); }

/* Close button */
.mobile-close-btn {
  align-self: flex-end;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.06);
  color: #caa65b;
  box-shadow: var(--shadow-1);
  transition: background 180ms ease, transform 120ms ease;
}
.mobile-close-btn:hover { background: rgba(255,255,255,0.12); }
.mobile-close-btn:active { transform: scale(0.96); }

/* Menu list */
.mobile-nav ul {
  list-style: none;
  margin: 0; padding: 8px 6px;
  display: flex; flex-direction: column; gap: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.03);
}
.mobile-nav ul li a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}
.mobile-nav ul li a i {
  width: 20px; text-align: center;
  color: #caa65b;                       /* icons gold */
}
.mobile-nav ul li a:hover {
  background: rgba(202,166,91,0.12);    /* soft gold hover */
}
.mobile-nav ul li a.active {
  color: #caa65b;                        /* active link gold */
  background: rgba(202,166,91,0.16);
  border: 1px solid rgba(202,166,91,0.35);
}

/* Auth buttons in drawer */
#mobile-auth-links {
  display: grid; gap: 10px;
  padding: 10px 6px 0;
}
#mobile-auth-links .mobile-login-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  justify-content: center;
  font-weight: 600;
  border: 1px solid #caa65b;
  background: #caa65b;        /* gold background */
  color: #000;                 /* black text */
  transition: background 180ms ease, border-color 180ms ease, transform 120ms ease;
}
#mobile-auth-links .mobile-login-link:hover {
  background: #9a7939; border-color: #9a7939;
}
#mobile-auth-links .mobile-login-link i { color: #000; }

/* Logout (if visible) styled as outline */
#mobile-logout-btn {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  justify-content: center;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  transition: background 180ms ease, transform 120ms ease;
}
#mobile-logout-btn:hover { background: rgba(255,255,255,0.06); }

/* Theme switch block in drawer */
.sidebar-switch {
  margin-top: auto; /* push to bottom */
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 10px 12px;
}
.sidebar-switch span { color: var(--text-color); font-weight: 500; }
.theme-toggle-slider {
  width: 54px; height: 28px;
  background: #2e2d31;
  border: 1px solid rgba(255,255,255,0.06);
}
.theme-toggle-slider::after {
  width: 24px; height: 24px; left: 2px; top: 2px;
  background: var(--gold-gradient);
}
.theme-toggle-slider.is-dark { background: #5a5a60; }

/* Small helpers for tighter header on mobile */
@media (max-width: 768px) {
  .main-header .logo {
    font-size: 1.2rem !important;
    white-space: nowrap;
  }
  .mobile-menu-btn i {
    color: #caa65b !important; /* hamburger gold */
    font-size: 1.4rem;
  }
}

/* --- Mobile Drawer Auth Buttons --- */
.mobile-nav #mobile-auth-links a {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 12px; /* spacing between buttons */
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: #caa65b;  /* gold background */
  color: #000 !important; /* black text */
  border: none;
}

/* Hover effect (darker gold) */
.mobile-nav #mobile-auth-links a:hover {
  background: #a8843a;
  color: #000 !important;
}

/* Remove the ugly old blue outline */
.mobile-nav #mobile-auth-links a:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(202, 166, 91, 0.5);
}

/* --- Mobile Drawer Auth Buttons (Customer & Admin Login) --- */
.mobile-nav #mobile-auth-links a {
  display: block;
  width: 100%;
  margin: 10px 0;              /* spacing between buttons */
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background: #caa65b !important;   /* gold background */
  color: #000 !important;           /* black text */
  border: none !important;          /* remove border */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* Hover = darker gold */
.mobile-nav #mobile-auth-links a:hover {
  background: #a8843a !important;
  color: #000 !important;
  transform: translateY(-2px);
}

/* Remove blue focus outline */
.mobile-nav #mobile-auth-links a:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(202, 166, 91, 0.6) !important;
}



#themeToggleSlider,
.theme-toggle-slider,
#themeToggleBtn,
.theme-toggle {
  display: none !important;
}

/* Property Title Section Fix */
.landscape-title {
  background-color: #000 !important;   /* black background */
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.landscape-title h1 {
  color: #caa65b !important;          /* golden title */
  font-weight: 700;
}

.landscape-title .location {
  color: #caa65b !important;          /* golden location text */
  font-size: 1rem;
}

/* Property Page Headings → Golden */
.property-main-content h2,
.details-card h3,
.property-sidebar h3 {
  color: #caa65b !important;    /* golden */
  font-weight: 700;
}

/* Optional: underline divider in gold instead of blue/gray */
.property-main-content h2,
.details-card h3,
.property-sidebar h3 {
  border-bottom: 2px solid #caa65b !important;
  padding-bottom: 8px;
}

/* Force Key Details heading → Golden */
.key-details-list::before,
.key-details-title,
.details-card h3,
.property-sidebar .details-card h3 {
  color: #caa65b !important;      /* golden */
  font-weight: 700 !important;
  border-bottom: 2px solid #caa65b !important;
  padding-bottom: 6px !important;
}

/* === Force WhatsApp buttons consistent === */
.btn-whatsapp,
.property-card .btn-whatsapp,
.property-actions .btn-whatsapp {
  background-color: #25D366 !important;  /* WhatsApp green */
  color: #000000 !important;             /* WHITE text */
  border: 1px solid #25D366 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}

.btn-whatsapp:hover,
.property-card .btn-whatsapp:hover,
.property-actions .btn-whatsapp:hover {
  background-color: #1EBC57 !important;  /* darker green */
  border-color: #1EBC57 !important;
  color: #000000 !important;             /* keep white on hover too */
}

/* === Loan Calculator Chart Legend Fix === */
#emi-chart, #emi-chart canvas,
#emi-chart + .chartjs-legend, 
#emi-chart .chartjs-legend, 
#emi-chart ~ .chartjs-legend,
#emi-details, 
.loan-calculator {
  color: #ffffff !important; /* force white text */
}

/* === Mobile search bar: keep inline like desktop === */
@media (max-width: 768px){
  .search-box form{
    flex-direction: row !important;     /* stop stacking */
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--surface-color) !important;
    box-shadow: var(--shadow-1) !important;
    border: 1px solid var(--border-color);
    border-radius: 999px;
  }

  .search-box input{
    min-width: 0;                       /* allow shrink */
    flex: 1 1 auto;
    background: transparent !important;
    text-align: left !important;
    border-radius: 999px;
    padding: 12px 14px;
  }

  .search-box .btn,
  .search-box .btn-primary{
    width: auto !important;             /* no full-width */
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    white-space: nowrap;
  }
}

/* Property card titles – change font style */
.property-card .property-details h3 {
  font-family: 'Poppins', sans-serif !important;  /* modern font */
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  line-height: 1.4;
  color: #caa65b !important; /* keep golden */
}

.sidebar-switch,
#themeToggleSlider {
  display: none !important;
}
/* === Force "View Details" button → Gold === */
.property-card .card-actions a,
.property-actions .btn:not(.btn-whatsapp) {
  background-color: #caa65b !important;   /* gold */
  color: #000 !important;                 /* black text */
  border: 1px solid #caa65b !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  text-align: center;
  font-size: 1rem !important;      
  transition: background 0.25s ease, border-color 0.25s ease;
}

.property-card .card-actions a:hover,
.property-actions .btn:not(.btn-whatsapp):hover {
  background-color: #9a7939 !important;   /* darker gold hover */
  border-color: #9a7939 !important;
  color: #000 !important;
}

/* Drawer must be the top-most layer */
.mobile-nav{
  position: fixed;           /* ensure it's on its own layer */
  z-index: 5000 !important;  /* higher than any bottom bar */
}
#mobile-nav-overlay{
  position: fixed;
  z-index: 4990 !important;  /* just under the drawer */
}

/* Keep bottom bars below the drawer */
.bottom-nav,
.bottom-action-bar,
.bottom-dock,
.bottom-dock-wrap{
  z-index: 3000 !important;  /* lower than the drawer */
}

/* Optional: when overlay is open, block clicks to bars underneath */
#mobile-nav-overlay.is-open ~ .bottom-nav,
#mobile-nav-overlay.is-open ~ .bottom-action-bar,
#mobile-nav-overlay.is-open ~ .bottom-dock-wrap{
  pointer-events: none;
}

/* ===== FINAL OTP COLOR OVERRIDES (dark theme) ===== */
html[data-theme="dark"] .otp-inputs input,
html[data-theme="dark"] input.otp-input,
html[data-theme="dark"] .otp-inputs .otp-input {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important; /* Chrome/Safari */
  caret-color: #ffffff !important;
  background: rgba(32,30,34,0.6);              /* matches your dark inputs */
  border: 1px solid #caa65b;
  text-align: center;
  font-weight: 700;
}

/* focus glow */
html[data-theme="dark"] .otp-inputs input:focus,
html[data-theme="dark"] .otp-inputs .otp-input:focus {
  outline: none !important;
  border-color: #caa65b !important;
  box-shadow: 0 0 6px rgba(202,166,91,0.7);
}

/* ===== Responsive OTP Modal Fix ===== */

/* Keep the sheet inside the viewport and scrollable if needed */
.modal {
  box-sizing: border-box;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);        /* never exceed viewport width */
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 16px;
  z-index: 6000 !important;       /* over bottom nav */
}

/* Overlay above nav as well */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 5990 !important;
}

/* Lay out OTP boxes in a responsive grid that shrinks on tiny screens */
.modal .otp-inputs{
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));  /* 6 boxes, shrink gracefully */
  gap: 10px;
  align-items: center;
  justify-items: center;
  margin-top: 6px;
}

/* Each box fills its grid cell; no fixed width that causes overflow */
.modal .otp-inputs input{
  width: 100%;
  max-width: 40px;                /* cap on large screens */
  height: 48px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  background: rgba(32,30,34,0.85);
  border: 1px solid #caa65b;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #caa65b;
}

/* Focus glow */
.modal .otp-inputs input:focus{
  outline: none;
  border-color: #caa65b;
  box-shadow: 0 0 8px rgba(202,166,91,.6);
}

/* Tighten spacing + box size on very narrow phones */
@media (max-width: 360px){
  .modal{ width: 94vw; padding: 16px; }
  .modal .otp-inputs{
    grid-template-columns: repeat(6, minmax(36px, 1fr));
    gap: 8px;
  }
  .modal .otp-inputs input{
    height: 42px;
    font-size: 1.05rem;
    border-radius: 8px;
  }
}

/* Ensure bottom bars sit below modal */
.bottom-nav,
.bottom-action-bar,
.bottom-dock,
.bottom-dock-wrap { z-index: 3000 !important; }


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 5990 !important;  /* just below modal */
}

.view-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;   /* Same as WhatsApp */
  font-weight: 600;     /* Bold text like WhatsApp */
  border-radius: 25px;  /* Rounded same as WhatsApp */
  font-size: 14px;      /* Adjust size */
  min-width: 120px;     /* Ensures same button width */
  text-align: center;
}

.price-tag .label,
.deposit-tag .label { 
  font-weight: 700; 
  letter-spacing: .3px; 
  margin-right: 6px;
  text-transform: uppercase;
}
.price-note{
  margin-top: 6px;
  font-size: .92rem;
  color: var(--muted-text);
}

/* Mobile adjustments for price cards */
@media (max-width: 600px) {
  .price-tag {
    font-size: 1.3rem !important;   /* keep main price same */
    line-height: 1.3;
  }

  .deposit-tag {
    font-size: 1rem !important;   /* deposit amount */
    margin-top: 4px;
  }

  .deposit-tag .label {
    font-size: 1rem !important;   /* match deposit amount size */
    font-weight: 700;             /* keep bold */
  }

  .price-note {
    font-size: 0.75rem !important;  /* smaller note text */
    line-height: 1.2;
  }

  .details-card {
    padding: 14px 16px !important;  /* compact card */
  }
}
