.property-location-row {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 0;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
}

.property-card,
.listing-item {
    position: relative;
}

.shared-property-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shared-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 31, 73, 0.14);
}

.shared-property-card__image-container {
    position: relative;
    flex: 0 0 180px;
    width: 100%;
    min-height: 180px;
    overflow: hidden;
}

.shared-property-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shared-property-card:hover .shared-property-card__image {
    transform: scale(1.04);
}

.shared-property-card__status {
    position: absolute;
    z-index: 2;
    top: 0.85rem;
    left: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    min-height: 3.4rem;
    padding: 0.45rem;
    border-radius: 50%;
    background: #00aeef;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.shared-property-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 0;
    padding: 1rem;
}

.shared-property-card__type {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #001f49;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.shared-property-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: #001f49;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shared-property-card__price {
    color: #00aeef;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}

.shared-property-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.shared-property-card__specs > span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    white-space: nowrap;
}

.shared-property-card__content > .property-owner-footer {
    margin-top: auto;
}

.shared-property-card--compact {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 150px;
    transform: none;
}

.shared-property-card--compact:hover {
    transform: translateX(3px);
}

.shared-property-card--compact .shared-property-card__content {
    gap: 0.25rem;
    padding: 0.75rem;
}

.shared-property-card--compact .shared-property-card__type {
    padding: 0.22rem 0.5rem;
    font-size: 0.58rem;
}

.shared-property-card--compact .property-location-row {
    font-size: 0.68rem;
}

.shared-property-card--compact .property-location-line {
    padding: 0.2rem 0.45rem;
}

.shared-property-card--compact .shared-property-card__title {
    font-size: 0.85rem;
}

.shared-property-card--compact .shared-property-card__price {
    font-size: 0.85rem;
}

.shared-property-card--compact .property-owner-footer {
    padding-top: 0.4rem;
}

.featured-properties-section .shared-property-card__image-container,
.new-properties-section .shared-property-card__image-container {
    flex: 0 0 120px;
    min-height: 120px;
    max-height: 120px;
}

@media (min-width: 768px) {
    .featured-properties-section .featured-properties-scroll-wrapper .property-card-wrapper,
    .new-properties-section .featured-properties-scroll-wrapper .property-card-wrapper {
        height: 460px !important;
        min-height: 460px !important;
    }

    .featured-properties-section .property-card-wrapper .property-link,
    .new-properties-section .property-card-wrapper .property-link,
    .featured-properties-section .property-card-wrapper .property-card,
    .new-properties-section .property-card-wrapper .property-card {
        height: 100% !important;
        min-height: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .featured-properties-section .property-card-wrapper,
    .new-properties-section .property-card-wrapper,
    .featured-properties-section .property-card-wrapper .property-link,
    .new-properties-section .property-card-wrapper .property-link,
    .featured-properties-section .property-card-wrapper .property-card,
    .new-properties-section .property-card-wrapper .property-card {
        height: auto !important;
        min-height: 460px !important;
    }
}

.property-location-row .property-location-icon {
    flex: 0 0 auto;
    margin-top: 0.35rem;
    color: #00aeef;
    font-size: 0.85rem;
    line-height: 1;
}

.property-location-row .property-location-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
    max-width: 100%;
}

.property-location-row .property-location-line {
    display: inline-flex;
    max-width: 100%;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background-color: #001f49;
    color: #fff;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.property-owner-footer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding-top: 0.6rem;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.property-card .property-specs {
    border-top: 0;
}

.property-owner-footer .property-owner-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.property-owner-footer .property-owner-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.property-owner-footer .property-owner-avatar {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid rgba(0, 174, 239, 0.3);
    border-radius: 50%;
    object-fit: cover;
}

.property-owner-footer .property-owner-label {
    color: #64748b;
    font-size: 0.6rem;
}

.property-owner-footer .property-owner-name {
    overflow: hidden;
    color: #001f49;
    font-size: 0.72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-owner-footer .property-owner-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid #001f49;
    border-radius: 999px;
    background-color: transparent;
    color: #001f49;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.property-owner-footer .property-owner-profile-button:hover,
.property-owner-footer .property-owner-profile-button:focus-visible {
    background-color: #001f49;
    color: #fff;
    text-decoration: none;
}

.property-card-main-link::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
}

.property-card-main-link:focus-visible::after {
    border-radius: inherit;
    outline: 3px solid #00aeef;
    outline-offset: -3px;
}

@media (max-width: 575.98px) {
    .featured-properties-section .shared-property-card__image-container,
    .new-properties-section .shared-property-card__image-container {
        flex-basis: 120px;
        min-height: 120px;
        max-height: 120px;
    }

    .property-location-row {
        gap: 0.35rem;
        font-size: 0.7rem;
    }

    .property-owner-footer {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .property-owner-footer .property-owner-avatar {
        width: 1.6rem;
        height: 1.6rem;
    }

    .property-owner-footer .property-owner-profile-button {
        min-width: 5.75rem;
        min-height: 2.75rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
}
