body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-item {
    flex: 1 1 calc(33.333% - 15px);
    box-sizing: border-box
}

.filter-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

.filter-button {
    height: 50%;
    padding: 10px 20px;
    padding-top: 10px;
    text-align: center;
    margin: 25px 58px 10px 58px;
    display: block;
    background-color: rgb(0, 53, 91);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-end;
    height: auto;
}

.filter-button:hover {
    background-color: rgb(0, 26, 45);
}

.reset-button {
    text-align: center;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.listing-grid a {
    text-decoration: none !important;
}

.listing-card {
    background: white;
    border: 1px solid #ddd;
    overflow: hidden;
    position: relative;
    min-height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.listing-card:hover {
    opacity: 0.66;
}

.listing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.price {
    position: absolute;
    top: 140px;
    left: 20px;
    background: rgba(0, 53, 91, 0.85);
    color: white;
    padding: 5px 10px;
    font-weight: bold;
}

.details {
    padding: 15px;
}

.details p {
    text-transform: capitalize;
}

.details h3 {
    font-weight: 700;
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #00355B;
    text-decoration: none;
}

.details p {
    margin: 5px 0 0;
    color: #474747;
    text-decoration: none;
}
