/**
 * PropertySooq - Mobile Responsive Styles
 * Global mobile responsive styles for the entire application
 */

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: #1d7247; /* Set to primary green, was white which made it invisible on white header */
    cursor: pointer;
    z-index: 1000;
}

/* Responsive Breakpoints */
@media screen and (max-width: 768px) {
    /* Header & Navigation */
    .header-content {
        position: relative;
        justify-content: space-between;
        padding: 15px 10px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1d7247 0%, #155a3a 100%);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        z-index: 999;
    }
    
    .nav.active {
        max-height: 500px;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav ul li a {
        display: block;
        padding: 10px;
        text-align: left;
        color: white; /* Ensure text is visible on the dark green background */
        border-bottom: none !important;
    }
    
    .nav ul li a:hover,
    .nav ul li a.active {
        background-color: rgba(255,255,255,0.1);
        border-radius: 4px;
    }
    
    /* Container Layouts */
    .container {
        padding: 0 15px;
    }
    
    /* Dashboard Layouts */
    .dashboard-container,
    .agent-container,
    .user-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar,
    .sidebar {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .dashboard-content,
    .content {
        width: 100% !important;
    }
    
    /* Property Listings */
    .listings-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .listings-grid {
        width: 100% !important;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }
    
    /* Property Detail Page */
    .property-detail-container {
        flex-direction: column;
    }
    
    .property-gallery {
        width: 100% !important;
    }
    
    .property-info {
        width: 100% !important;
    }
    
    /* Forms */
    .form-group {
        flex-direction: column;
    }
    
    input,
    select,
    textarea {
        width: 100% !important;
    }
    
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100% !important;
        margin-bottom: 20px;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .search-form-hero {
        flex-direction: column;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-dropdowns {
        flex-direction: column;
    }
    
    .property-card {
        min-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}
