/* --- Root Variables, General Styles, etc. --- */
:root {
    --midnight-blue: #001f3f;
    --charcoal-gray: #333333;
    --luxe-gold: #D4AF37;
    --warm-off-white: #F8F8F8;
    --light-gray: #e9ecef;
    --success-green: #25D366;
    --error-red: #dc3545;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-lato: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-lato); background-color: white; color: var(--charcoal-gray); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header & Navbar --- */
#main-header { position: sticky; top: 0; left: 0; width: 100%; z-index: 100; transition: all 0.4s ease; }
#main-header.scrolled { 
    background-color: rgba(248, 248, 248, 0.85);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

#main-header nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 150px; height: 150px; }
.logo span { font-family: var(--font-montserrat); font-size: 1.8rem; font-weight: 700; color: var(--midnight-blue); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.nav-btn) { text-decoration: none; color: var(--charcoal-gray); font-weight: 700; position: relative; padding: 5px 0; }
.nav-links a:not(.nav-btn)::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--luxe-gold); transition: width 0.3s ease; }
.nav-links a:not(.nav-btn):hover::after { width: 100%; }
.nav-btn { background-color: var(--luxe-gold); color: var(--midnight-blue); padding: 10px 20px; border-radius: 5px; transition: all 0.3s ease; display: inline-block; text-decoration: none; }
.nav-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4); }


/* --- Hamburger Menu Styles --- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 24px;
    height: 24px;
    padding: 0;
    flex-direction: column;
    justify-content: space-around;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--midnight-blue);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.close-menu-btn { display: none; }

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-family: var(--font-montserrat);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--luxe-gold);
    color: var(--midnight-blue);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* --- Modal & Alert Dialogs --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; transition: opacity 0.5s ease; }
.modal-content { background-color: white; padding: 40px; border-radius: 10px; text-align: center; position: relative; max-width: 500px; width: 90%; box-shadow: 0 5px 25px rgba(0,0,0,0.2); }
.modal-content h2 { font-family: var(--font-montserrat); color: var(--midnight-blue); margin-bottom: 10px; }
.modal-content p { margin-bottom: 20px; }
.modal-content form { display: flex; flex-direction: column; gap: 15px; }
.modal-content input, .modal-content select { padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-lato); font-size: 1rem; -webkit-appearance: none; appearance: none; background-color: white; }
.modal-content select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23333333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 1em; }
.close-button { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #aaa; cursor: pointer; }
.alert-dialog { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 1001; opacity: 0; transition: opacity 0.3s ease; }
.alert-dialog.show { opacity: 1; }
.alert-dialog .alert-content { background-color: white; padding: 30px 40px; border-radius: 10px; text-align: center; position: relative; max-width: 400px; width: 90%; box-shadow: 0 5px 25px rgba(0,0,0,0.2); transform: scale(0.9); transition: transform 0.3s ease; }
.alert-dialog.show .alert-content { transform: scale(1); }
.alert-icon { width: 60px; height: 60px; margin: 0 auto 20px auto; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.alert-icon.success { background-color: var(--success-green); }
.alert-icon.error { background-color: var(--error-red); }
.alert-icon svg { width: 30px; height: 30px; stroke: white; stroke-width: 4; }
.alert-content h3 { font-family: var(--font-montserrat); color: var(--midnight-blue); font-size: 1.5rem; margin-bottom: 10px; }
.alert-close-button { position: absolute; top: 10px; right: 15px; font-size: 1.8rem; color: #aaa; cursor: pointer; }

/* --- Property Details Page Specific Styles --- */
.property-details-page { padding-top: 40px; }
.property-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 30px; border-bottom: 1px solid var(--light-gray); margin-bottom: 40px; }
.property-header h1 { font-family: var(--font-montserrat); font-size: 2.8rem; color: var(--midnight-blue); margin: 0; }
.property-header .location { font-size: 1.1rem; color: #6c757d; }
.property-price-status { text-align: right; }
.price-container { display: flex; align-items: center; gap: 15px; justify-content: flex-end; margin-bottom: 15px; }
.price { font-family: var(--font-montserrat); font-size: 2rem; font-weight: 700; color: var(--luxe-gold); }
.currency-switch { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 22px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--midnight-blue); }
input:checked + .slider:before { transform: translateX(18px); }
.status-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.status-btn { background-color: var(--light-gray); color: #6c757d; border: none; padding: 8px 15px; border-radius: 20px; font-family: var(--font-montserrat); font-weight: 600; cursor: default; }
.status-btn.active { background-color: var(--midnight-blue); color: white; }
.image-gallery { margin-bottom: 60px; }
.featured-image-wrapper { position: relative; margin-bottom: 15px; }
.featured-image { position: relative; width: 100%; padding-top: 62.5%; background-color: var(--light-gray); border-radius: 10px; overflow: hidden; }
.featured-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease-in-out; }
.featured-image img.active { opacity: 1; }
.gallery-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.8); border: none; border-radius: 50%; width: 45px; height: 45px; font-size: 1.2rem; color: var(--charcoal-gray); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.15); transition: all 0.3s ease; z-index: 10; }
.gallery-nav-btn:hover:not(:disabled) { background-color: white; transform: translateY(-50%) scale(1.1); }
.gallery-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
#prev-btn { left: 15px; }
#next-btn { right: 15px; }
.thumbnail-container { overflow-x: auto; padding-bottom: 15px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.thumbnail-container::-webkit-scrollbar { display: none; }
.thumbnails { display: flex; gap: 10px; }
.thumbnail { width: 120px; height: 80px; object-fit: cover; border-radius: 5px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s ease; flex-shrink: 0; }
.thumbnail.active { border-color: var(--luxe-gold); }
.overview-section, .map-section { margin-bottom: 60px; }
.overview-section h2, .map-section h2 { font-family: var(--font-montserrat); font-size: 2rem; color: var(--midnight-blue); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; }
.overview-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.overview-item i { font-size: 2rem; color: var(--luxe-gold); margin-bottom: 10px; }
.overview-item span { font-size: 0.9rem; color: #6c757d; }
.overview-item strong { font-size: 1.1rem; font-weight: 700; }
.map-address { text-align: center; font-size: 1.1rem; margin-bottom: 20px; }
.map-container { border-radius: 10px; overflow: hidden; }

/* --- Footer --- */
/* --- Footer --- */

footer {
    background-color: var(--midnight-blue);
    color: white;
    padding: 60px 0; /* Increased padding */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* Adjusted gap */
}

.footer-logo span {
    color: var(--warm-off-white);
}

.footer-logo .logo-img {
    filter: brightness(0) invert(1);
}
/* ========== UPDATE: SOCIAL ICON STYLES CHANGED ========== */
.social-media {
    display: flex;
    gap: 25px; /* Adjusted gap */
    margin-top: 5px;
}

.social-icon {
    /* REMOVED background, width, height, border-radius */
    color: var(--warm-off-white);
    text-decoration: none;
    font-size: 1.5rem; /* Adjusted icon size */
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--luxe-gold);
    transform: translateY(-3px);
}

/* ========== UPDATE: NEW STYLES FOR FOOTER LINKS ========== */
.footer-links a, .footer-legal a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem; /* Smaller font size */
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--luxe-gold);
}

.footer-legal {
    color: #a9a9a9; /* Lighter color for separators */
}

.copyright {
    font-size: 0.8rem; /* Smaller font size */
    color: #a9a9a9;
    margin-top: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        padding: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
    
    .nav-links .nav-btn {
        font-size: 1.2rem;
        display: inline-block;
        width: auto;
    }

    .hamburger-menu {
        display: flex;
    }

    .property-header { flex-direction: column; align-items: center; text-align: center; }
    .property-price-status { text-align: center; margin-top: 20px; }
    .price-container, .status-buttons { justify-content: center; }
    .property-header h1 { font-size: 2.2rem; }
    .price { font-size: 1.8rem; }
    .thumbnail { width: 100px; height: 70px; }
}

/* --- Floating WhatsApp Button --- */
#whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: transform 0.3s ease;
}

#whatsapp-fab:hover {
    transform: scale(1.1);
}

#whatsapp-fab svg {
    width: 32px;
    height: 32px;
}

.fab-label {
    position: absolute;
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--charcoal-gray);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;
}

#whatsapp-fab:hover .fab-label {
    visibility: visible;
    opacity: 1;
}