/*
Theme Name: Aggarwal Realty Group
Theme URI: https://aggarwalrealtygroup.com
Author: Aggarwal Realty Group
Author URI: https://aggarwalrealtygroup.com
Description: Premium real estate theme for property builders and developers. Features property listings, search functionality, modern design, and SEO optimization for Bahadurgarh, Gurgaon, and surrounding areas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aggarwal-realty
Tags: real-estate, property, business, custom-menu, featured-images, threaded-comments, translation-ready, modern, premium

Aggarwal Realty Group is a premium real estate theme designed for property builders and developers.
*/

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --primary-color: #1a5490;
    --primary-dark: #0f3a6b;
    --primary-light: #2d6fb8;
    --secondary-color: #d4af37;
    --secondary-dark: #b8941f;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
}

.header-top {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-top a {
    color: var(--bg-white);
    margin-left: 20px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.header-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.site-branding {
    flex: 0 0 auto;
    min-width: 0;
    z-index: 1;
}

/* Desktop - hide mobile menu toggle */
@media (min-width: 769px) {
    #mobile-menu-toggle,
    .mobile-menu-toggle {
        display: none !important;
    }
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.custom-logo-link {
    display: inline-block;
    line-height: 1;
}

.custom-logo {
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
}

/* Desktop Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Desktop - underline effect */
@media (min-width: 769px) {
    .main-navigation a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }
    
    .main-navigation a:hover::after {
        width: 100%;
    }
}

.mobile-menu-toggle,
#mobile-menu-toggle {
    display: none;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    z-index: 1001;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    position: relative;
    transition: var(--transition);
    margin-left: auto;
    flex-shrink: 0;
}

/* Mobile - show toggle button */
@media (max-width: 768px) {
    .mobile-menu-toggle,
    #mobile-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-menu-toggle .menu-icon {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    height: 600px;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* Hero Video Background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.hero-video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    object-fit: cover;
    /* Ensure video covers entire container */
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
}

/* Desktop - ensure proper coverage */
@media (min-width: 769px) {
    .hero-video-background iframe {
        width: 100vw;
        height: 56.25vw;
        min-height: 100%;
        min-width: 177.77vh;
    }
}

/* Video Overlay */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.property-search-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.4s both;
    width: 100%;
    box-sizing: border-box;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-field {
    position: relative;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    width: 100%;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   Featured Properties
   ============================================ */
.featured-properties {
    padding: 80px 20px;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.property-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.property-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--border-color);
}

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.property-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.property-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.property-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   Projects Section (Keywords)
   ============================================ */
.projects-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 20px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.7);
    padding: 0 20px;
    font-size: 0.9rem;
}

/* ============================================
   Property Listing Page
   ============================================ */
.property-listing-page {
    padding: 40px 20px;
}

.listing-filters {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* ============================================
   Single Property Page
   ============================================ */
.single-property {
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
}

.site-main.single-property {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.single-property .container-full {
    width: 100%;
    max-width: 100%;
    padding: 40px 20px;
    margin: 0;
    box-sizing: border-box;
}

.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    width: 100%;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.thumbnails {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail:hover {
    opacity: 0.8;
}

.property-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure all child elements respect full width */
.property-details > * {
    box-sizing: border-box;
    width: 100%;
}

.property-info h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.property-info {
    width: 100%;
}

.property-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.property-description {
    margin-bottom: 2rem;
}

.property-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-sidebar {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
    width: 100%;
}

.contact-form-sidebar {
    margin-top: 2rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Mobile First - Small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 0.75rem 15px;
        position: relative;
        flex-wrap: wrap;
    }
    
    .site-logo {
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle,
    #mobile-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 1.5rem;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        margin-left: auto;
        flex-shrink: 0;
        order: 2;
        background: var(--bg-white);
        border: 2px solid var(--border-color);
        border-radius: 5px;
        cursor: pointer;
        z-index: 1002;
    }
    
    .main-navigation {
        width: 100%;
        order: 3;
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow);
        z-index: 1000;
    }
    
    .main-navigation.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-section {
        padding: 40px 15px;
        min-height: 500px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .property-search-form {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .property-card {
        margin-bottom: 1rem;
    }
    
    .property-price {
        font-size: 1.25rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .property-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
}

/* Tablets and small desktops (481px to 768px) */
@media (max-width: 768px) {
    .header-main {
        flex-wrap: wrap;
        position: relative;
        justify-content: space-between;
        align-items: center;
        display: flex !important;
    }
    
    .site-branding {
        flex: 1 1 auto;
        min-width: 0;
        order: 1;
    }
    
    .mobile-menu-toggle,
    #mobile-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 1.8rem;
        padding: 0.5rem 1rem;
        min-width: 44px;
        min-height: 44px;
        position: relative;
        z-index: 1002;
        margin-left: auto;
        flex-shrink: 0;
        order: 2;
        background: var(--bg-white) !important;
        border: 2px solid var(--border-color) !important;
        border-radius: 5px;
        cursor: pointer;
        color: var(--text-dark) !important;
    }
    
    .main-navigation {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: var(--shadow);
        z-index: 1000;
        margin-top: 0;
        padding: 0;
        flex: none;
        visibility: hidden !important;
        opacity: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        order: 3;
    }
    
    .main-navigation.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 1000px !important;
        overflow: visible !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: var(--bg-white) !important;
        box-shadow: var(--shadow) !important;
        z-index: 1000 !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        width: 100%;
        padding: 1rem;
        margin: 0;
        list-style: none;
        display: flex !important;
    }
    
    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation ul li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 0.75rem 0;
        width: 100%;
    }
    
    /* Mobile - no underline */
    .main-navigation a::after {
        display: none;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .header-top a {
        margin: 0 10px;
        display: inline-block;
    }
    
    .header-social {
        display: none;
    }
    
    h1 { 
        font-size: 2rem; 
        line-height: 1.2;
    }
    
    h2 { 
        font-size: 1.75rem; 
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 60px 20px;
        min-height: 550px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .property-search-form {
        padding: 1.5rem;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .property-card {
        width: 100%;
    }
    
    .property-image {
        height: 220px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .property-details {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .single-property .container-full {
        padding: 20px 15px;
    }
    
    .property-details {
        max-width: 100%;
        width: 100%;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .property-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .main-image {
        height: 300px;
        width: 100%;
    }
    
    .thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .thumbnail {
        height: 80px;
    }
    
    .property-meta {
        flex-direction: column;
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .property-amenities {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .property-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .featured-properties,
    .projects-section,
    .about-section,
    .contact-section {
        padding: 60px 15px;
    }
    
    /* Responsive video background */
    .hero-video-background iframe {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .custom-logo {
        width: var(--logo-mobile-width, 200px) !important;
        max-width: var(--logo-mobile-width, 200px) !important;
    }
}

/* Medium devices (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-details {
        max-width: 1200px;
    }
    
    .container {
        max-width: 1000px;
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

/* Ensure all containers respect viewport */
.container,
.container-full,
.site-header,
.site-footer,
.site-main {
    max-width: 100vw;
    overflow-x: hidden;
}

#main.single-property,
#main.site-main.single-property {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
