/* 
* Immo Elite - Responsive Stylesheet
* Author: Cascade
* Version: 1.0
*/

/* ======= Responsive Styles ======= */

/* Large Devices (Desktops) */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Medium Devices (Tablets) */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    .header-content {
        height: 70px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-slider {
        height: 500px;
        margin-top: 70px;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-text, .about-image {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (Mobile Landscape) */
@media screen and (max-width: 768px) {
    .header-contact {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transition: all 0.4s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 30px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        width: 100%;
    }
    
    .btn-search {
        width: 100%;
        margin-top: 10px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Extra Small Devices (Mobile Portrait) */
@media screen and (max-width: 576px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        height: 60px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .hero-slider {
        height: 350px;
        margin-top: 60px;
    }
    
    .slide-content {
        padding: 0 15px;
    }
    
    .slide-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        margin-bottom: 15px;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul,
    .footer-services ul,
    .footer-contact ul {
        display: inline-block;
        text-align: left;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}

/* Height-based Media Queries */
@media screen and (max-height: 600px) {
    .hero-slider {
        height: 300px;
    }
    
    .slide-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        margin-bottom: 15px;
    }
}
