/* Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
        flex-direction: column;
        gap: 0;
        border-top: 2px solid #f59e0b;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a::after {
        display: none;
    }

    .btn-login {
        margin: 1rem 1.5rem;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 6rem 1.5rem 5rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .search-bar {
        flex-direction: column;
        padding: 1rem;
    }

    .search-bar input,
    .search-bar button {
        width: 100%;
    }

    .filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        white-space: nowrap;
    }

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

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

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

    .stats-section {
        padding: 4rem 0;
    }

    .stats-section .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .stat-card p {
        font-size: 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        max-height: 400px;
        overflow-y: auto;
    }

    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .menu-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 150px;
    }

    .dashboard-main {
        padding: 1.5rem;
    }

    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .messages-container {
        grid-template-columns: 1fr;
    }

    .messages-list {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .hero {
        padding: 5rem 1rem 4rem;
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }

    .hero h2 {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }

    .hero-trust {
        margin-top: 1.5rem;
    }

    .trust-badges {
        gap: 0.5rem;
    }

    .trust-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .search-bar {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .search-bar input {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }

    .search-bar button {
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
    }

    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .property-card {
        border-radius: 15px;
    }

    .property-image {
        height: 200px;
    }

    .property-details {
        padding: 1.2rem;
    }

    .stats-section {
        padding: 3.25rem 0;
    }

    .stats-section .container {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .stat-card {
        padding: 1.35rem 1rem;
        border-radius: 14px;
    }

    .stat-card p {
        font-size: 0.75rem;
        letter-spacing: 0.4px;
    }

    .property-title {
        font-size: 1.1rem;
    }

    .property-price {
        font-size: 1.4rem;
    }

    .stats-section {
        padding: 3rem 0;
        margin: 2rem 0;
    }

    .stats-section .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .stat-card {
        padding: 1.2rem 1rem;
        border-radius: 12px;
    }

    .stat-card h3 {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }

    .stat-card p {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card h3 {
        font-size: 1.8rem;
    }

    .stat-card p {
        font-size: 0.95rem;
    }

    .about-section h2,
    .contact-section h2,
    .listings-section h2 {
        font-size: 1.8rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .property-card {
        margin-bottom: 1rem;
    }

    .property-image {
        height: 200px;
    }

    .contact-form,
    .profile-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
    }

    .sidebar-menu {
        flex-direction: column;
    }

    .menu-item {
        flex: none;
        width: 100%;
    }

    .stats-dashboard {
        grid-template-columns: 1fr;
    }

    .stat-box {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.2rem;
        border-radius: 15px;
    }

    .dashboard-section h2 {
        font-size: 1.5rem;
    }

    table th,
    table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .documents-list,
    .viewings-grid,
    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .messages-container {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h4 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .contact-section h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .info-item {
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer p {
        font-size: 0.9rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

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

    .property-actions {
        width: 100%;
    }

    .btn-view {
        width: 100%;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .nav-container {
        padding: 0 10px;
    }

    .logo h1 {
        font-size: 0.95rem;
    }

    .hero {
        padding: 4rem 0.8rem 3rem;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat-number {
        font-size: 1.3rem;
    }

    .hero-stat-label {
        font-size: 0.6rem;
    }

    .search-bar {
        padding: 0.6rem;
    }

    .search-bar input {
        font-size: 0.85rem;
        padding: 0.8rem;
    }

    .search-bar button {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .stat-card h3 {
        font-size: 1.4rem;
    }

    .stat-card p {
        font-size: 0.6rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .property-title {
        font-size: 1rem;
    }

    .property-location {
        font-size: 0.8rem;
    }

    .property-price {
        font-size: 1.2rem;
    }

    .spec-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn-primary,
    .btn-secondary,
    .filter-btn {
        display: none !important;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .property-card,
    .dashboard-card {
        page-break-inside: avoid;
    }
}
