/* ===== General Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* ===== Background ===== */
body {
    color: #333;
    background-color: #f7f7f7;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/bg.jpg") center/cover no-repeat;
    opacity: 0.08;
    z-index: -1;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #004aad;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 18px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffcc00;
}

.auth-buttons a {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.3s;
}

.login-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.signup-btn {
    background: #ffcc00;
    color: #004aad;
    margin-left: 10px;
}

.signup-btn:hover {
    background: #ffe066;
}

/* ===== Main Section ===== */
.listings-section {
    padding: 130px 60px 60px;
    max-width: 1300px;
    margin: auto;
}

.listings-section h1 {
    font-size: 2rem;
    text-align: center;
    color: #004aad;
    margin-bottom: 30px;
    font-weight: 600;
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #004aad;
}

.filter-bar button {
    background: #004aad;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.filter-bar button:hover {
    background: #00337f;
}

/* ===== Listings Grid ===== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ===== Card Design ===== */
.listing-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.listing-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.listing-card .info {
    padding: 15px 18px 20px;
}

.listing-card .info h3 {
    font-size: 1.2rem;
    color: #004aad;
    margin-bottom: 8px;
}

.listing-card .info p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.listing-card .details {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 15px;
}

.listing-card .details i {
    color: #004aad;
    margin-right: 5px;
}

.btn {
    display: inline-block;
    background: #004aad;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: 0.3s;
}

.btn:hover {
    background: #00337f;
}

/* ===== Animations ===== */
.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 25px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .listings-section {
        padding: 120px 25px;
    }
}