/* ===========================
   Responsive Design (Mobile-first)
   =========================== */

@media (max-width: 768px) {

    /* 🔹 Navbar container */
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 10px 15px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        position: relative;
        z-index: 1000;
    }

    /* 🔹 Logo styling */
    .logo {
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
        margin-right: 15px;
    }

    /* 🔹 Nav links: horizontal & scrollable */
    .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
        flex: 1;
        scrollbar-width: none;
        /* Firefox */
    }

    .nav-links::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .nav-links a {
        flex: 0 0 auto;
        color: white;
        text-decoration: none;
        font-size: 14px;
        padding: 8px 12px;
        border-radius: 20px;
        transition: background 0.3s ease;
    }

    .nav-links a.active,
    .nav-links a:hover {
        background: #00c37a;
        color: #fff;
    }

    /* 🔹 Login / Sign Up buttons inline */
    .auth-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex-shrink: 0;
        margin-left: 10px;
    }

    .auth-buttons a {
        background: #00c37a;
        color: white;
        text-decoration: none;
        font-size: 13px;
        padding: 8px 16px;
        border-radius: 20px;
        transition: background 0.3s ease;
    }

    .auth-buttons a:hover {
        background: #009a62;
    }

    /* 🔹 Make entire top bar scrollable if needed */
    .navbar-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }

    /* 🔹 Hero / page content responsiveness */
    .hero {
        padding: 0 15px;
        text-align: center;
        margin-top: 70px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .explore-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    

    /* 🔹 General content adjustments for all pages */
    .content,
    .listing-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 10px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .auth-buttons a {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}