.top-new-projects-section-title {
    font-size:16px;
    font-weight: 400;
    color: rgba(51, 51, 51, 1);
    margin-bottom: 20px;
}

.top-new-projects-container {
    gap: 10px;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 800px;
    margin: 0 auto 10px;
}

.top-new-project-item {
    border-radius: 5px;
    position: relative;
    max-width: 260px;
    width: 260px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    cursor: pointer;
    background-color: white;
    border: 1px solid rgba(221, 221, 221, 1);
}

.top-new-project-photo {
    position: relative;
    height: 150px;
    border-radius: 5px 5px 0 0;
}

.top-new-project-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
}

.top-new-od-link {
    display: block;
    position: absolute !important;
    bottom: 0;
}

.top-new-od-badge {
    position: absolute;
    bottom: 0;
    left: -8px;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    background-color: rgba(0, 194, 0, 1);
    box-sizing: border-box;
    height: 22px;
    padding: 6px 10px 6px 4px;
    width: max-content;
}

.top-new-od-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    border-radius: 11px;
}

.top-new-project-info {
    padding: 10px;
}

.top-new-project-info-title-address {
    margin-bottom: 12px;
}

.top-new-project-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(51, 51, 51, 1);
    margin-bottom: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.top-new-project-address {
    font-size: 12px;
    color: rgba(119, 119, 119, 1);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.top-new-project-info-details {
    display: flex;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    height: 21px;
    justify-content: flex-start;
    column-gap: 20px;
}

.top-new-project-area {
    margin-top: 0;
    line-height: 16px;
}

.top-new-project-info-rooms-count,
.top-new-project-info-rooms-area {
    display: flex;
    align-items: end;
    gap: 6px;
    font-size: 12px;
    color: #666;
    flex-direction: row;
    flex-wrap: nowrap;
}

.top-new-project-info-rooms-count img {
    width: 16px;
    height: 16px;
}

.top-new-project-info-rooms-area img {
    width: 18px;
    height: 18px;
}

.top-new-project-info-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-new-project-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.top-new-project-price-from {
    font-size: 12px;
    color: rgba(51, 51, 51, 1);
    font-weight: normal;
    text-transform: lowercase;
}

.top-new-project-info-price a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.top-new-project-info-price a:hover {
    color: #c0392b;
}


/* The main link inside the title */
.stretched-link {
    text-decoration: none;
    color: inherit;
}

/* This pseudo-element is what makes the magic happen */
.stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.top-new-project-photo a,
.top-new-project-info-price a {
    position: relative;
    z-index: 2;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .top-new-projects-container {
        padding: 0 22px 10px 22px;
        overflow-x: scroll;
        margin: 0 -16px 20px;
        max-width: 768px;
        width: 786px;
    }

    .top-new-project-item {
        flex: 0 0 260px;
        min-width: 260px;
    }

    .top-new-project-photo {
    }

    .top-new-project-info {
    }

    .top-new-project-title {
        font-size: 16px;
    }

    .top-new-project-info-details {
    }

    .top-new-project-info-price {
    }

    .top-new-project-info-price a {
        align-self: flex-end;
    }
}

/* Very small mobile screens */
@media (max-width: 480px) {
    .top-new-projects-section-title {
        margin-left: 12px;
    }

    .top-new-projects-container {
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 0 20px 0;
    }

    .top-new-project-item {
        flex: 0 0 260px;
        min-width: 260px;
    }

    .top-new-project-photo {
    }

    .top-new-project-info {
    }

    .top-new-od-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Desktop enhancements */
@media (min-width: 1024px) {
    .top-new-project-item {
        flex: 0 0 260px;
    }

    .top-new-project-photo {
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .top-new-projects-container {
    }

    .top-new-project-item {
        flex: 0 0 260px;
    }

    .top-new-project-photo {
    }
}
