/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

body {
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link.whatsapp {
    background: #25D366;
    color: white;
}

.social-link.whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.instagram:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.logo-image.loaded {
    opacity: 1;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-circle {
    width: 24px;
    height: 24px;
    background: #6B46C1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-house {
    font-size: 0.8rem;
    color: white;
}

.nav-logo h2 {
    color: #333333;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', 'Arial', sans-serif;
    letter-spacing: 0;
    margin: 0;
}

/* === Clean Modern Navigation Design === */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.logo-circle {
    width: 36px;
    height: 36px;
    background: #6B46C1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
    transition: all 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(107, 70, 193, 0.4);
}

.logo-house {
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.nav-logo h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', 'Arial', sans-serif;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 6px;
    border: 1px solid #e2e8f0;
}

[dir="rtl"] .nav-menu {
    flex-direction: row;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', 'Arial', sans-serif;
    transition: all 0.3s ease;
    padding: 10px 20px;
    position: relative;
    display: block;
    border-radius: 8px;
    margin: 0 2px;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: #6B46C1;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.15);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #6B46C1;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.2);
}

/* Special styling for different menu items */
.nav-link:nth-child(1) {
    color: #6B46C1;
}

.nav-link:nth-child(2) {
    color: #7C3AED;
}

.nav-link:nth-child(3) {
    color: #EC4899;
}

.nav-link:nth-child(4) {
    color: #059669;
}

.nav-link:nth-child(1):hover,
.nav-link:nth-child(2):hover,
.nav-link:nth-child(3):hover,
.nav-link:nth-child(4):hover {
    color: #6B46C1;
}

/* Mobile menu toggle - REMOVED (using bottom navigation) */

/* Removed Rent Section - no longer needed */

/* Mobile Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: none; /* Hidden by default, shown on mobile */
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 0.6rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.bottom-nav a.active {
    color: #6B46C1;
}

.bottom-nav a i {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        padding: 0 20px;
    }
    
    .bottom-nav {
        display: flex; /* Show bottom navigation on mobile */
    }
    
    /* Mobile social icons - smaller size */
    .social-icons {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Add bottom padding to body to account for bottom nav */
    body {
        padding-bottom: 80px;
    }
    
    /* Hide top navigation completely on mobile */
    .nav-menu {
        display: none !important;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .logo-circle {
        width: 36px;
        height: 36px;
    }
}

/* Removed conflicting nav-link styles - using modern design above */
.nav-link:hover,
.nav-link:focus{color:#E4002B;} /* subtle red hover */

/* Mobile Menu Toggle - REMOVED (using bottom navigation) */

/* Hamburger menu - REMOVED (using bottom navigation) */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Video loading state */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.video-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide video initially until loaded */
.hero-video video {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-video video.loaded {
    opacity: 1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.8), rgba(212, 175, 55, 0.6));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #6B46C1;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #6B46C1, #D4AF37);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Properties Section */
.properties {
    padding: 100px 0;
    background: #f8f9fa;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Responsive grid for different image sizes */
@media (min-width: 768px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (min-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* uniform box */
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
}

.property-image img,
.property-image video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* show full video/image */
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #6B46C1, #D4AF37);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.property-content {
    padding: 1.5rem;
}

.property-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6B46C1;
    margin-bottom: 1rem;
}

.property-link {
    display: inline-block;
    background: linear-gradient(135deg, #6B46C1, #D4AF37);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.property-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.4);
}

.view-all {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #6B46C1;
    color: #6B46C1;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #6B46C1;
    color: white;
    transform: translateY(-2px);
}

/* Video Gallery Section */
.video-gallery {
    padding: 100px 0;
    background: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Responsive video grid for different video sizes */
@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (min-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

.video-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(107, 70, 193, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(107, 70, 193, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
}

.video-actions {
    margin-top: 1rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: white;
    text-decoration: none;
}

.whatsapp-btn i {
    font-size: 1.1rem;
}

/* Property WhatsApp Button */
.property-actions {
    margin-top: 1rem;
}

.whatsapp-property-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
}

.whatsapp-property-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.whatsapp-property-btn i {
    font-size: 1.1rem;
}

/* Image Gallery Section */
.image-gallery {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #6B46C1;
    background: transparent;
    color: #6B46C1;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.filter-btn.active,
.filter-btn:hover {
    background: #6B46C1;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    align-items: start;
}

/* Responsive gallery grid for different image sizes */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.8), rgba(212, 175, 55, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Responsive services grid */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #6B46C1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6B46C1, #D4AF37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

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

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

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: #6B46C1;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: bold;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}


/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6B46C1, #D4AF37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6B46C1;
}

.btn-primary {
    background: linear-gradient(135deg, #6B46C1, #D4AF37);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.4);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        height: 70px;
        position: fixed;
        width: 100%;
        z-index: 1000;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    /* Mobile menu removed - using bottom navigation */
    /* Removed conflicting nav-link styles - using modern design above */
    
    /* Fix mobile body padding */
    body {
        padding-top: 70px;
    }
    
    /* Extra small phones - ensure horizontal layout */
    @media (max-width: 480px) {
        .nav-menu {
            flex-direction: row;
            flex-wrap: nowrap;
            gap: 0.8rem;
            padding: 0.8rem;
        }
        
        .nav-menu a {
            font-size: 0.8rem;
            padding: 0.4rem 0.6rem;
        }
    }
    
    /* Very small screens - still horizontal */
    @media (max-width: 360px) {
        .nav-menu {
            gap: 0.5rem;
            padding: 0.6rem;
        }
        
        .nav-menu a {
            font-size: 0.75rem;
            padding: 0.3rem 0.4rem;
        }
    }
    
    /* Fix mobile container */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Fix mobile sections */
    .hero, .properties, .video-gallery, .gallery, .services, .about, .contact {
        padding: 50px 0;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1rem 0;
        z-index: 1000;
        max-height: 350px;
        overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
        left: 0;
    }
    
    .nav-menu .nav-item {
        margin: 0.2rem 0;
        width: 100%;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
        background: transparent;
        margin: 0.1rem 0;
        border-radius: 0;
        border: none;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu .nav-link:hover {
        color: #6B46C1;
        background: rgba(107, 70, 193, 0.05);
        transform: none;
    }
    
    .hero {
        padding-top: 70px; /* Adjust for mobile header height */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
        margin: 2rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    /* Fix mobile property cards */
    .property-card {
        margin-bottom: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .property-image {
        min-height: 200px;
    }
    
    .property-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
    
    /* Fix mobile video cards */
    .video-card {
        margin-bottom: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .video-thumbnail {
        min-height: 200px;
    }
    
    .video-thumbnail img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
    
    /* Fix mobile gallery items */
    .gallery-item {
        margin-bottom: 0.5rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .gallery-item img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: contain;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-filters {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
    
    .hero-content {
        padding: 80px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        position: relative;
        overflow: hidden;
    }
    
    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .hero-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    
    .hero-video img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    
    .hero-content {
        padding: 60px 15px 40px;
        position: relative;
        z-index: 2;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Extra small mobile fixes */
    .property-card, .video-card, .gallery-item {
        margin-bottom: 0.5rem;
    }
    
    .property-image img, .video-thumbnail img, .gallery-item img {
        max-height: 200px;
    }
}

/* Additional mobile fixes for hero section */
@media (max-width: 360px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        position: relative;
        overflow: hidden;
    }
    
    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .hero-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    
    .hero-video img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    
    .hero-content {
        padding: 50px 10px 30px;
        position: relative;
        z-index: 2;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
}

/* Ensure hero video covers full screen on mobile */
@media (max-width: 768px) {
    .hero {
        position: relative;
        overflow: hidden;
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .hero-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    
    /* Fallback image for mobile */
    .hero-video img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Fix property cover images on mobile */
@media (max-width: 768px) {
    .property-image img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (max-width: 480px) {
    .property-image img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (max-width: 360px) {
    .property-image img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}
    
    /* Fix text sizes */
    .property-content h3 {
        font-size: 1.2rem;
    }
    
    .video-info h3 {
        font-size: 1.2rem;
    }
    
    /* Fix buttons */
    .btn-primary, .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Property cards should be visible by default */
.property-card {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6B46C1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Property grid: pack items tightly and force exactly 2 columns on desktop */
.properties-grid{
  display:grid;
  gap:2rem;
  grid-template-columns: 1fr;  /* mobile: 1 per row */
  grid-auto-flow: row dense;   /* fills holes if heights differ */
  align-items:start;
}
@media (min-width:1024px){
  .properties-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)); /* desktop: 2 columns */
  }
}

/* Uniform media box, no cropping (portrait videos stay centered) */
.property-image{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background:#f8f9fa;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:12px;
}
.property-image img,
.property-image video{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

/* keep play button centered */
.video-play-button{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:2;
}