/* Core Variables & Reset */
:root {
    --primary-color: #2A2A2A;
    --secondary-color: #F9F9F9;
    --accent-color: #C5A059; /* Brushed Gold */
    --text-color: #444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* General Section Formatting */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
    color: #666;
}

/* Portfolio Section & Tabs */
.portfolio-section {
    padding: 80px 5%;
    background-color: var(--secondary-color);
}

.tab-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 30px;
    font-size: 1.1rem;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    color: #888;
}

.tab-btn:hover, .tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}

.tab-content {
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active-tab {
    display: block; /* Shown when active */
}

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

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 250px;
    background-color: #ddd; /* Placeholder for actual images */
    background-size: cover;
    background-position: center;
}

/* You can add real images inline in HTML or via CSS classes later */
.placeholder-img {
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=600&q=80');
}

.card-details {
    padding: 20px;
}

.card-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.location {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 700;
}

/* About Section */
.about-section {
    padding: 80px 5%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.footer-brand h3 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* Hero Header Section */
.hero-header {
    height: 60vh;
    background: linear-gradient(rgba(42, 42, 42, 0.5), rgba(42, 42, 42, 0.7)), url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #eaeaea;
}

/* =========================================
   Individual Property Page Styles
========================================= */

/* Property Hero */
.property-hero {
    height: 65vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 60px 5%;
}

.hero-text-container {
    color: #fff;
    max-width: 800px;
}

.property-badge {
    background-color: var(--accent-color);
    color: #fff;
    padding: 6px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

.property-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.1;
}

.property-location {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

/* Property Layout Grid */
.property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .property-layout {
        grid-template-columns: 1fr;
    }
}

/* Property Details Block */
.property-details h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.property-details p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.quick-specs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
}

.spec-item {
    font-size: 1.1rem;
}

.spec-item strong {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.amenities-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.amenities-list li {
    font-size: 1.1rem;
    position: relative;
    padding-left: 25px;
}

.amenities-list li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Sidebar Inquiry Card */
.property-sidebar {
    position: sticky;
    top: 100px; /* Keeps the form visible as users scroll down */
    align-self: start;
}

.inquiry-card {
    background: #fff;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-top: 5px solid var(--primary-color);
}

.inquiry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.price-tag {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
}

/* Form Elements */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background-color: #fafafa;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
}

.submit-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-color);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: block;
    background-color: #25D366; /* Official WhatsApp Green */
    color: #fff;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: #fff;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #ddd;
    z-index: 1;
}

.divider span {
    background: #fff;
    padding: 0 15px;
    color: #888;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 50px; /* Adjust this number to make your logo bigger or smaller */
    width: auto;
    object-fit: contain;
}
/* =========================================
   Logo Sizing Fix
========================================= */
.main-header .logo img {
    width: 500px !important; /* Adjust this number to make it horizontally longer or shorter */
    height: auto !important; /* Keeps the image from stretching weirdly */
    max-height: 100px !important; /* Ensures it doesn't break your header height */
    object-fit: contain !important;
}

/* For mobile screens, make sure it fits nicely */
@media (max-width: 768px) {
    .main-header .logo img {
        width: 200px !important; 
    }
}

/* ==========================================================================
   GLOBAL FIX FOR MOBILE HORIZONTAL SCROLLING
   ========================================================================== */

/* 1. Force all elements to include padding and borders in their total width */
*, *::before, *::after {
    box-sizing: border-box !important;
}

/* 2. Prevent the body and html from ever scrolling sideways */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 3. Ensure no images or videos can break out of their containers */
img, video {
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   MOBILE NAVIGATION MENU FIX
   ========================================================================== */

/* Hide hamburger icon on desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
    }

    .mobile-menu-toggle span {
        width: 30px;
        height: 3px;
        border-radius: 2px;
        display: block;
    }

    /* Override the header's inline styles for mobile */
    nav.main-nav {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #050505 !important;
        flex-direction: column !important; /* Stacks links vertically */
        align-items: center !important;
        gap: 0 !important;
        
        /* Hides the menu by default */
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s ease-in-out !important;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5) !important;
    }

    /* Class added by JavaScript to open the menu */
    nav.main-nav.menu-open {
        max-height: 300px !important; /* Expands to show all links */
    }

    /* Style the individual links for mobile tapping */
    nav.main-nav a {
        width: 100% !important;
        text-align: center !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid #222222 !important;
        margin: 0 !important;
        display: block !important;
    }
    
    nav.main-nav a:last-child {
        border-bottom: none !important;
    }
}


/* ==========================================================================
   MOBILE CONTENT PROTECTION & TEXT SELECTION BLOCK
   ========================================================================== */

body {
    /* Prevents users from highlighting/selecting text on the site */
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
}

img {
    /* Disables the "Tap and Hold" menu on iOS/Android to prevent image saving */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}