/* RESPONSIVE DESIGN */

/* Logo responsiva */
@media (max-width: 768px) {
    \.navbar-brand .logo-img {
        height: var(--logo-h-mobile, 35px);
    }
    
    \.navbar.scrolled .logo-img {
        height: var(--logo-h-scrolled-mobile, 30px);
    }
    
    \.footer-logo {
        height: var(--footer-logo-h, 35px);
    }
}

@media (max-width: 575.98px) {
    \.logo-img {
        height: var(--logo-h-mobile, 30px);
    }
    
    \.footer-logo {
        height: var(--footer-logo-h, 30px);
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
}

/* Desktop */
@media (max-width: 1199.98px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .display-5 {
        font-size: 2.25rem;
    }
}

/* Tablet Landscape */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 3.5rem;
        min-height: 4rem;
    }
    
    .hero-content {
        padding: 0 2rem;
    }
    
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        margin-top: 1rem;
    }
    
    .nav-link {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .search-glass {
        padding: 1.5rem;
    }
    
    .section-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.5rem;
    }
    
    .property-img-wrapper {
        height: 220px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-image {
        border-right: none;
        border-bottom: 5px solid var(--gold);
        margin-bottom: 2rem;
    }
}

/* Tablet Portrait */
@media (max-width: 767.98px) {
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        min-height: 3.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .search-glass-wrapper {
        margin-top: -30px;
    }
    
    .search-glass {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .search-glass .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-glass .col-md-3,
    .search-glass .col-md-4,
    .search-glass .col-md-2 {
        width: 100%;
    }
    
    .property-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .feature {
        justify-content: flex-start;
        text-align: left;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
    }
    
    .btn-lg {
        padding: 0.8rem 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .search-glass {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .property-card .card-body {
        padding: 1.5rem;
    }
    
    .contact-info .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .section-properties,
    .section-about,
    .section-testimonials,
    .contact-form-wrapper {
        background: #1e1e1e;
    }
    
    .property-card,
    .testimonial-card,
    .info-item {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .form-control,
    .form-select {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .form-control:focus,
    .form-select:focus {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: var(--gold);
    }
    
    /* Logo em dark mode */
    .logo-img {
        filter: brightness(0) invert(1);
    }
    
    .navbar.scrolled .logo-img {
        filter: brightness(0) invert(1);
    }
}

/* Print */
@media print {
    .navbar,
    .search-glass-wrapper,
    .whatsapp-float,
    .back-to-top,
    .footer,
    .section-newsletter,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        color: #000;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero-content {
        color: #000;
    }
    
    .hero h1 {
        color: #000;
        font-size: 24pt;
    }
    
    .property-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}