/* ===================================
   RESPONSIVE STYLES
   Mobile-First Approach
   =================================== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-container {
        padding: 0.75rem 15px;
    }
    
    .logo-image {
        height: 80px !important;
        max-width: 200px !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile menu overlay */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        width: calc(100vw - 280px);
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }
    
    .nav-link {
        display: block;
        width: 100%;
    }
    
    /* Remove underline effect on mobile */
    .nav-link::after {
        display: none;
    }
    
    /* Dropdown Mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 300px;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu a {
        padding: 0.5rem 1rem;
    }
    
    /* Hero */
    .hero {
        padding: 80px 20px 60px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .hero .btn {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
    }
    
    /* Sections */
    .section {
        padding: 50px 20px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .card {
        margin: 0 auto;
        max-width: 500px;
    }
    
    .property-card {
        margin: 0 auto;
        max-width: 500px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* About Content */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-image {
        height: 300px !important;
        margin-bottom: 1.5rem;
    }
    
    /* Override inline styles */
    [style*="font-size: 2.5rem"] {
        font-size: 1.75rem !important;
    }
    
    [style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }
    
    /* Fix flex containers */
    [style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-logo-image {
        height: 100px !important;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links,
    .footer-contact {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Property Cards */
    .property-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Contact Page */
    .contact-container > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-info-item {
        flex-direction: row;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.3rem;
    }
    
    .cta-buttons-container {
        gap: 0.75rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .map-embed iframe {
        height: 300px !important;
    }
    
    /* Better button spacing on tablet */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Values grid */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Filter section */
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal improvements */
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    /* Logo */
    .logo-image {
        height: 70px !important;
        max-width: 180px !important;
    }
    
    .footer-logo-image {
        height: 80px !important;
    }
    
    .nav-container {
        padding: 0.5rem 10px;
    }
    
    .nav-menu {
        width: 85%;
        padding: 4rem 1.25rem 2rem;
    }
    
    .nav-menu.active::before {
        left: 85%;
        width: 15%;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
    
    /* Hero */
    .hero {
        padding: 60px 15px 50px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
    
    /* Section Titles */
    .section {
        padding: 50px 15px;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-title p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Cards */
    .card-title {
        font-size: 1.25rem;
    }
    
    .card-image {
        height: 200px;
        font-size: 2rem;
    }
    
    /* Property Cards */
    .property-image {
        height: 200px;
        font-size: 2rem;
    }
    
    .property-title {
        font-size: 1.25rem;
    }
    
    .property-price {
        font-size: 1.25rem;
    }
    
    /* About */
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-image {
        height: 250px !important;
        font-size: 3rem;
    }
    
    /* More aggressive inline style overrides */
    [style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }
    
    [style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }
    
    [style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
    }
    
    [style*="padding: 3rem"] {
        padding: 1rem !important;
    }
    
    [style*="max-width: 800px"] {
        padding: 0 10px !important;
    }
    
    /* Service Detail */
    .service-detail h3 {
        font-size: 1.5rem;
    }
    
    /* Form */
    .form-button {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 20px 1rem;
    }
    
    .social-icons a {
        font-size: 1.25rem;
    }
    
    /* Contact Page Mobile */
    .contact-info-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }
    
    .contact-label {
        font-size: 0.95rem;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .cta-button i {
        font-size: 1.1rem;
    }
    
    .map-embed iframe {
        height: 250px !important;
    }
    
    /* Stats on mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Testimonial improvements */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Feature boxes */
    .feature-box {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Carousel buttons */
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* WhatsApp and scroll buttons */
    .whatsapp-float {
        position: fixed !important;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 80px !important;
        right: 15px !important;
        z-index: 9997 !important;
    }
    
    .scroll-to-top {
        position: fixed !important;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 10px !important;
        left: 15px !important;
        right: auto !important;
        z-index: 9998 !important;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
    
    .footer-container {
        max-width: 1400px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .mobile-toggle,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
