/* Latest Listings Section */
.latest-listings-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

.latest-listings-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.latest-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.latest-listings-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.latest-listings-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff8f5e);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.latest-listings-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.2;
}

.latest-listings-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff6b35;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.latest-listings-view-all:hover {
    background: rgba(255, 107, 53, 0.08);
    gap: 10px;
}

.latest-listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.latest-listing-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.latest-listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Image */
.latest-listing-image {
    position: relative;
    width: 100%;
    padding-top: 65%;
    background: #e9ecef;
    overflow: hidden;
}

.latest-listing-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-listing-card:hover .latest-listing-image img {
    transform: scale(1.05);
}

.latest-listing-no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #adb5bd;
    font-size: 48px;
}

/* Badges */
.latest-listing-badge-premium {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b35, #ffc107);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.latest-listing-badge-type {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.latest-listing-badge-rent {
    background: rgba(33, 150, 243, 0.9);
}

.latest-listing-badge-sell {
    background: rgba(76, 175, 80, 0.9);
}

.latest-listing-badge-service {
    background: rgba(156, 39, 176, 0.9);
}

/* Body */
.latest-listing-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.latest-listing-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-listing-category {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-listing-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.latest-listing-price {
    font-size: 20px;
    font-weight: 800;
    color: #ff6b35;
}

.latest-listing-price.on-request {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
}

.latest-listing-period {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
}

.latest-listing-location {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Responsive */
@media (max-width: 992px) {
    .latest-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .latest-listings-title {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .latest-listings-section {
        padding: 40px 0 60px;
    }
    .latest-listings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .latest-listings-title {
        font-size: 22px;
    }
    .latest-listings-header {
        margin-bottom: 24px;
    }
}
