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

html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.1rem;
}

.tagline {
    font-size: 0.8rem;
    opacity: 0.8;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: white;
    color: #1e3c72;
}

.contact-quick {
    display: flex;
    gap: 0.5rem;
}

.whatsapp-btn,
.call-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.call-btn {
    background: #007bff;
}

.whatsapp-btn:hover,
.call-btn:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.main-menu {
    background: rgba(30, 60, 114, 0.95);
    padding: 0.5rem 2rem;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.main-menu a {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 20px;
    transition: background 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
}

.main-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 0;
    padding-top: 275px; /* Add padding to account for fixed header + removed badge */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fallback background while slideshow loads */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #f8f9fa;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
    display: block;
    background-color: transparent;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Remove forced first slide visibility to prevent conflicts */

/* Ensure first slide is immediately visible on page load */

/* Fix image loading issues */
img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo, .main-photo, .award-photo, .footer-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: cover;
    background-color: transparent;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: transparent;
    opacity: 1;
    display: block;
}

/* Preload critical images */
.critical-image {
    content: '';
    background-image: url('ABOUTMARCEGARCIA/Foto Premio Re_Max 2022_Primary.jpg');
    background-size: 0;
    background-repeat: no-repeat;
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
}

/* Ensure header and footer images are always visible */
.header .logo,
.footer .footer-logo,
.main-photo,
.award-photo {
    min-width: 60px;
    min-height: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Force load and maintain visibility for critical images */
.header .logo {
    background-image: url('ABOUTMARCEGARCIA/Foto Premio Re_Max 2022_Primary.jpg');
}

.main-photo {
    background-image: url('ABOUTMARCEGARCIA/Foto Premio Re_Max 2022_Primary.jpg');
}

.award-photo {
    background-image: url('ABOUTMARCEGARCIA/Foto Premio Re_Max 2022_Primary.jpg');
}

/* Fix space encoding in image URLs */
img[src*=" "] {
    content: attr(src);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Preload and optimize first image */
    image-rendering: optimizeQuality;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(30, 60, 114, 0.4) 0%,
        rgba(42, 82, 152, 0.3) 50%,
        rgba(30, 60, 114, 0.4) 100%
    );
    z-index: 2;
    transition: background 0.5s ease;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 1000px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: none;
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.title-sub {
    display: block;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    min-width: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
}


/* Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* YouTube Integration Styles */
.youtube-video {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.youtube-embed {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.youtube-embed img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-embed:hover img {
    transform: scale(1.05);
}

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

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

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.youtube-embed:hover .video-overlay {
    transform: translateY(0);
}

.video-overlay h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.video-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.youtube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.youtube-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 15px;
    overflow: hidden;
}

.close-youtube-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

.youtube-modal iframe {
    border-radius: 15px;
}

/* Enhanced Image Styles */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Enhanced Property Cards */
.property-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

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

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 60, 114, 0.1), rgba(42, 82, 152, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.property-card:hover::before {
    opacity: 1;
}

.property-info {
    position: relative;
    z-index: 2;
}

/* Modern Section Styling */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 2s ease;
}

section:hover::before {
    left: 100%;
}

/* Medium screen fixes for navigation */
@media (max-width: 1024px) {
    .main-menu ul {
        gap: 1rem;
    }
    
    .main-menu a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding-top: 120px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-scroll-indicator {
        bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .youtube-modal-content {
        margin: 1rem;
        max-width: none;
    }
}

/* Enhanced Contact Form Styles */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h4 {
    margin-bottom: 1.5rem;
    color: #1e3c72;
    text-align: center;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    transform: translateY(-2px);
}

.contact-form select {
    cursor: pointer;
}

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

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-buttons .btn {
    flex: 1;
    justify-content: center;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-status.sending {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.form-status.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-status.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.form-status.whatsapp {
    background: #e8f5e8;
    color: #25d366;
    border: 1px solid #c8e6c9;
}

/* Contact Form Mobile Optimization */
@media (max-width: 768px) {
    .contact-form-map {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-form,
    .contact-map {
        flex: none;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons .btn {
        width: 100%;
    }
}


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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Properties Section */
.properties {
    padding: 4rem 0;
    background: #f8f9fa;
}

.properties h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

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

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.property-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-info {
    padding: 1.5rem;
}

/* Property Price Styles */
.property-price {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

.property-price .price-usd {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 0.25rem;
}

.property-price .price-mxn {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.property-price-single {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2a5298;
    margin: 0.75rem 0;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

.property-price-large {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.property-price-large .property-price {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.property-price-large .price-usd {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.property-price-large .price-mxn {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.property-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e3c72;
}

.property-info p {
    color: #666;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.about-images {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.main-photo {
    width: 320px;
    height: 420px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid #1e3c72;
}

.awards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.award-photo {
    width: 280px;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border: 3px solid #2a5298;
}

.about-text h3 {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.about-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.certifications {
    margin: 2rem 0;
}

.cert-item {
    margin-bottom: 0.5rem;
    color: #1e3c72;
    font-weight: 500;
}

.media-coverage {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid #1e3c72;
}

.media-coverage h4 {
    margin-bottom: 1.5rem;
    color: #1e3c72;
    font-size: 1.3rem;
    text-align: center;
}

.media-images {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.media-images img {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #e9ecef;
}

.media-images img:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: #1e3c72;
}

.video-testimonial video {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.cta-whatsapp {
    margin-top: 2rem;
}

/* Radio Section */
.radio {
    padding: 4rem 0;
    background: #f8f9fa;
}

.radio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

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

.radio-images {
    text-align: center;
}

.radio-images img {
    width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #1e3c72;
}

.radio-info img {
    width: 100%;
    max-width: 350px;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.radio-description ul {
    margin: 1rem 0;
    padding-left: 1rem;
}

.radio-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Media Section */
.media {
    padding: 4rem 0;
    background: white;
}

.media h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.media h3 {
    margin-bottom: 2rem;
    color: #1e3c72;
    font-size: 1.5rem;
    text-align: center;
}

.media .media-coverage {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid #1e3c72;
}

.media .video-testimonial {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid #2a5298;
    text-align: center;
}

.media .video-testimonial video {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.media .property-videos {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid #667eea;
}

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

.video-item {
    text-align: center;
}

.video-item video {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.video-item h4 {
    color: #1e3c72;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.testimonials h3 {
    margin-bottom: 2rem;
    color: #1e3c72;
}

.video-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.video-wrapper video {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

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

.testimonial-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-item img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
}

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

.delivery-grid img,
.closing-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.delivery-grid img:hover,
.closing-grid img:hover {
    transform: scale(1.05);
}

/* Blog Section */
.blog {
    padding: 4rem 0;
    background: white;
}

.blog h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

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

.blog-preview {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-preview h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.blog-preview p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Zones Section */
.zones {
    padding: 4rem 0;
    background: #f8f9fa;
}

.zones h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.zones-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.zone-item {
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zone-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.zone-image {
    flex: 0 0 150px;
    height: 120px;
}

.zone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.zone-text {
    flex: 1;
    padding: 1.5rem;
}

.zone-text h3 {
    color: #1e3c72;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.zone-text p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Sell Section */
.sell {
    padding: 4rem 0;
    background: white;
}

.sell h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.sell-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sell-info ul {
    margin: 1rem 0;
    padding-left: 1rem;
}

.sell-cta {
    text-align: center;
}

.sell-cta .btn {
    display: block;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1e3c72;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.contact-form-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

.contact-map {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    background: #e9ecef;
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Footer */
.footer {
    background: #1e3c72;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-footer {
    margin-top: 1rem;
}

.lang-footer button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 20px;
    cursor: pointer;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .nav-brand {
        flex: 1;
    }

    .nav-controls {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .main-menu {
        display: none;
        width: 100%;
        padding: 1rem;
    }

    .main-menu.active {
        display: block;
    }

    .main-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-menu a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    .hero {
        margin-top: 120px;
        padding: 2rem 0;
    }

    .title-main {
        font-size: clamp(2rem, 6vw, 3rem) !important;
        line-height: 1.2;
    }
    
    .title-sub {
        font-size: clamp(1rem, 3vw, 1.5rem) !important;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .radio-content {
        grid-template-columns: 1fr;
    }

    .contact-form-map {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 2rem;
    }
    
    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact p {
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .footer-legal {
        text-align: center;
    }
    
    .footer-legal h4 {
        margin-bottom: 1rem;
    }
    
    /* Adjust floating WhatsApp for mobile */
    .floating-whatsapp {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }

    .sell-content {
        grid-template-columns: 1fr;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .main-photo {
        width: 250px;
        height: 300px;
    }

    .zones-content {
        grid-template-columns: 1fr;
    }

    .zone-item {
        flex-direction: column;
        text-align: center;
    }

    .zone-image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .zone-text {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 100px;
        min-height: 60vh;
        padding-top: 140px;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .title-main {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    
    .title-sub {
        font-size: clamp(1rem, 3vw, 1.3rem) !important;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 0.75rem 1rem;
        margin: 0.25rem;
        flex: 1;
        max-width: 120px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }

    .properties h2,
    .about h2,
    .radio h2,
    .media h2,
    .testimonials h2,
    .blog h2,
    .zones h2,
    .sell h2,
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.75rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 250px;
    }
    
    .footer-brand h3 {
        font-size: 1.2rem;
    }
    
    .footer-contact p {
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .nav-brand {
        gap: 0.75rem;
    }
    
    .brand-text h1 {
        font-size: 1.2rem;
    }
    
    .subtitle, .tagline {
        font-size: 0.75rem;
    }
}

/* Property Details Modal */
.property-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.property-details-content {
    background: white;
    border-radius: 15px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.property-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.property-details-header h2 {
    margin: 0;
    color: #1e3c72;
    font-size: 1.8rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: #f0f0f0;
}

.property-details-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.property-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.main-image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
}

.thumbnail-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail-gallery img:hover,
.thumbnail-gallery img.active {
    border-color: #1e3c72;
}

.image-counter {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.property-description {
    padding: 1rem;
}

.property-description h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.property-description p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.property-actions {
    text-align: center;
}

.property-videos {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #1e3c72;
}

.property-videos h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.property-videos .video-item video {
    width: 100%;
    height: 150px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .property-details-content {
        margin: 10px;
        max-height: 95vh;
    }

    .property-details-header {
        padding: 1rem;
    }

    .property-details-body {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .main-image-container img {
        height: 250px;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }

    .thumbnail-gallery img {
        height: 60px;
    }
}

/* Add error handling for missing images */
/* Guide Modal Styles */
.guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.guide-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.guide-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.guide-modal-header h2 {
    margin: 0;
    color: #1e3c72;
    font-size: 1.5rem;
}

.close-guide-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-guide-modal:hover {
    background: #e9ecef;
}

.guide-modal-body {
    padding: 2rem;
    line-height: 1.6;
}

.guide-modal-body h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.guide-modal-body h4 {
    color: #2a5298;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.guide-modal-body p {
    margin-bottom: 1rem;
    color: #555;
}

.guide-modal-body ul,
.guide-modal-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.guide-modal-body li {
    margin-bottom: 0.5rem;
    color: #555;
}

.guide-modal-body strong {
    color: #1e3c72;
}

.guide-modal-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .guide-modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .guide-modal-header {
        padding: 1rem;
    }

    .guide-modal-header h2 {
        font-size: 1.2rem;
    }

    .guide-modal-body {
        padding: 1rem;
    }
}

/* Specific anchor for property videos */
#property-videos-anchor {
    scroll-margin-top: 100px;
    padding-top: 20px;
}

/* Ensure all anchors account for fixed header */
[id] {
    scroll-margin-top: 100px;
}