.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}

.card {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 20px);
    margin: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(53, 125, 249, 0.3);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.code-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc400;
    color: #000000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    margin: 0;
    color: #333333;
}

.card-header .price {
    font-weight: 600;
    color: #333333;
    font-size: 16px;
}

.location-text {
    color: #777777;
    font-size: 14px;
    margin: 0;
}

.card-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #555555;
    background: #f9fafb;
    padding: 8px;
    border-radius: 8px;
}

.card-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #555555;
}

.card-icons .metric {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-icons .metric i {
    color: #555555;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    text-decoration: none;
    color: #ffffff;
    background-color: #042C66;
    border-radius: 5px;
    border: 1px solid #042C66;
    position: relative;
    transition: filter 0.3s, color 0.3s;
}

.pagination a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease, left 0.3s ease;
}

.pagination a:hover {
    filter: brightness(1.3);
    color: #ffffff;
}

.pagination a:hover::after {
    width: calc(100% - 16px);
    left: 8px;
}

@media screen and (max-width: 1060px) {
    .container {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 767px) {
    .card {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 500px) {
    .card {
        width: 80%;
    }

    .container {
        justify-content: center;
    }
}

.page-title {
    font-family: 'Arial', sans-serif;
    color: #1a365d;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-title span {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #555555;
}