﻿/* =========================================
   SHARED PROPERTY CARDS
   dùng chung cho:
   - _PropertyCardList.cshtml
   - _PropertyRowList.cshtml
   - Favorite / List / Home
   ========================================= */

.fa-heart_card {
    color: #fff !important;
}

/* ===== Shared small helpers ===== */
.property-view-count {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 0;
    font-size: 12px;
    color: #64748b;
}

    .property-view-count i {
        flex: 0 0 auto;
    }

    .property-view-count .js-view-count-text {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
        min-width: 0;
    }

    .property-view-count .js-view-count-number,
    .property-view-count .js-view-count-label {
        display: inline-block;
        white-space: nowrap;
    }

    .property-view-count > .property-view-count {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

.property-card-fav i,
.p-fav i {
    pointer-events: none;
}
/*====================================================*/


/*.property-card-title*/
.property-featured-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    /* margin-right: 5px; */
    border-radius: 999px;
    color: #d9480f;
    background: rgba(217, 72, 15, .10);
    font-size: 11px;
    line-height: 1;
    vertical-align: 3px;
    transform: rotate(-18deg);
}

/*.property-card-title*/ .property-featured-pin i {
    line-height: 1;
}

/*.property-card-title*/ .property-card-title-text {
    vertical-align: baseline;
}
/* =========================================
   VERTICAL CARD
   dùng cho:
   - _PropertyCardList.cshtml
   - card desktop ở Home
   ========================================= */

.property-card--hero {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: visible;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease;
    z-index: 1;
}

    .property-card--hero:hover,
    .property-card--hero:focus-within,
    .property-card--hero.is-meta-open {
        box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
        z-index: 300;
    }

    .property-card--hero .property-card-media {
        position: relative;
        aspect-ratio: 4 / 3;
        background: #e5e7eb;
        overflow: hidden;
        border-top-left-radius: inherit;
        border-top-right-radius: inherit;
    }

    .property-card--hero .property-card-link--image {
        display: block;
        width: 100%;
        height: 100%;
    }

        .property-card--hero .property-card-link--image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    .property-card--hero .property-card-fav {
        position: absolute;
        top: 4px;
        right: 10px;
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 999px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        background: rgba(15, 23, 42, .72);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
        cursor: pointer;
        z-index: 3;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .property-card--hero .property-card-link--body {
        display: flex;
        flex-direction: column;
        flex: 1;
        color: inherit;
        text-decoration: none;
        min-width: 0;
        position: relative;
        overflow: visible;
    }

        .property-card--hero .property-card-link--body,
        .property-card--hero .property-card-link--body:hover,
        .property-card--hero .property-card-link--body:focus,
        .property-card--hero .property-card-link--body:active {
            text-decoration: none;
        }

    .property-card--hero .property-card-body {
        padding: 14px 14px 12px;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
        position: relative;
        overflow: visible;
    }

    .property-card--hero .property-card-title {
        font-weight: 700;
        font-size: 14px;
        line-height: 1.35;
        color: #0f172a !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        min-height: calc(1.35em * 2);
        margin-bottom: 6px;
    }

    .property-card--hero .property-card-price {
        font-size: 17px;
        font-weight: 700;
        line-height: 1.2;
        color: #ef4444;
        margin-bottom: 8px;
    }

    .property-card--hero .property-card-address {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        color: #475569;
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 8px;
        min-width: 0;
    }

        .property-card--hero .property-card-address i {
            font-size: 12px;
            margin-top: 2px;
            opacity: .9;
            flex: 0 0 auto;
        }

        .property-card--hero .property-card-address span {
            min-width: 0;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
        }

    .property-card--hero .property-card-meta-inline {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 4px;
        color: #64748b;
        font-size: 12px;
        min-width: 0;
        position: relative;
        overflow: visible;
    }

    .property-card--hero .property-card-meta-item {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        font-weight: 500;
        font-size: 13px;
    }

    .property-card--hero .property-card-meta-item-area i {
        margin-right: 5px;
        font-size: 13px;
    }

    .property-card--hero .property-card-meta-sep {
        color: #cbd5e1;
        margin: 0 7px;
        font-weight: 700;
    }

    .property-card--hero .property-card-bottom {
        margin-top: auto;
        padding-top: 10px;
        border-top: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-between;
    }

    .property-card--hero .property-card-meta-more-wrap {
        display: inline-flex;
        align-items: center;
        position: relative;
        overflow: visible;
    }

    .property-card--hero .property-card-meta-more {
        display: inline-block;
        font-weight: 700;
        color: #64748b;
        white-space: nowrap;
        cursor: pointer;
        padding: 0 4px;
        border-radius: 6px;
        transition: all .18s ease;
        position: relative;
        z-index: 2;
    }

        .property-card--hero .property-card-meta-more:hover,
        .property-card--hero .property-card-meta-more:focus {
            color: #0f172a;
            background: #f1f5f9;
            outline: none;
        }

    .property-card--hero .property-card-meta-tooltip {
        position: absolute;
        left: 0;
        bottom: calc(100% + 10px);
        min-width: 240px;
        max-width: 320px;
        background: rgba(15, 23, 42, 0.96);
        color: #fff;
        border-radius: 14px;
        padding: 12px 14px;
        box-shadow: 0 14px 35px rgba(0,0,0,.20);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: all .2s ease;
        z-index: 9999;
        pointer-events: none;
        line-height: 1.7;
        font-size: 13px;
        white-space: normal;
    }

        .property-card--hero .property-card-meta-tooltip::after {
            content: "";
            position: absolute;
            left: 22px;
            top: 100%;
            border-width: 7px;
            border-style: solid;
            border-color: rgba(15, 23, 42, 0.96) transparent transparent transparent;
        }

    .property-card--hero .property-card-meta-tooltip-inner {
        display: block;
    }

    .property-card--hero .property-card-meta-tooltip-close {
        display: none;
    }

    .property-card--hero .property-card-meta-tooltip-item {
        display: inline;
    }

    .property-card--hero .property-card-meta-tooltip-sep {
        opacity: .55;
        margin: 0 2px;
    }

@media (hover: hover) and (pointer: fine) {
    .property-card--hero .property-card-meta-more-wrap:hover .property-card-meta-tooltip,
    .property-card--hero .property-card-meta-more-wrap:focus-within .property-card-meta-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* =========================================
   HORIZONTAL CARD
   dùng cho:
   - _PropertyRowList.cshtml
   - điện thoại / ipad / list ngang
   ========================================= */

.property-row-list {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    position: relative;
    overflow: visible;
    z-index: 1;
}

    .p-row.is-meta-open {
        z-index: 300;
    }

.p-media {
    position: relative;
    min-width: 0;
    line-height: 0;
}

.p-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: #f3f4f6;
    line-height: 0;
}

    .p-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Favorite button của row card */
.p-fav {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 999px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, .72);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    z-index: 8;
    transform: none;
}

    .p-fav i {
        display: block;
        margin: 0;
        padding: 0;
        color: white;
        font-size: 13px;
        line-height: 1;
    }

    .p-fav.is-fav {
        background: #ef4444;
    }

        .p-fav.is-fav i {
            color: #fff !important;
        }

.p-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.p-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.p-title {
    flex: 1;
    min-width: 0;
    color: #0f172a;
    text-decoration: none;
    font-size: clamp(18px, 1.4vw, 18px);
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

    .p-title:hover {
        text-decoration: none;
    }

.p-price {
    flex: 0 0 auto;
    color: #c24141;
    font-size: clamp(20px, 1.4vw, 20px);
    line-height: 1.1;
    font-weight: 600;
    white-space: nowrap;
}

.p-spec {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    position: relative;
    overflow: visible;
}

.p-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: clamp(14px, 1.35vw, 16px);
    line-height: 1.4;
}

    .p-spec-item i {
        font-size: clamp(14px, 1.25vw, 18px);
        opacity: .8;
    }

.p-spec-sep {
    color: #cbd5e1;
    font-weight: 700;
}

.p-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
    font-size: clamp(13px, 0.45vw, 15px);
    line-height: 1.45;
    min-width: 0;
}

    .p-address i {
        margin-top: 4px;
        flex: 0 0 auto;
        opacity: .8;
    }

    .p-address span {
        min-width: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

.p-bottom {
    margin-top: auto;
    padding-top: 7px;
    display: flex;
    justify-content: space-between;
}

    .p-bottom .property-view-count {
        gap: 8px;
        font-size: 12px;
        color: #64748b;
    }

        .p-bottom .property-view-count i {
            font-size: clamp(14px, 1.2vw, 18px);
        }

/* ===== Shared favorite visual ===== */
.property-card-fav,
.p-fav {
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .14) !important;
}

    .property-card-fav i,
    .property-card-fav .fa-heart_card,
    .p-fav i {
        color: #64748b !important;
    }

    .property-card-fav:hover,
    .p-fav:hover {
        background: #f8fafc !important;
    }

    .property-card-fav.is-fav,
    .p-fav.is-fav {
        background: #fff1f2 !important;
        border-color: #fecdd3 !important;
        box-shadow: 0 10px 22px rgba(239, 68, 68, .14) !important;
    }

        .property-card-fav.is-fav i,
        .property-card-fav.is-fav .fa-heart_card,
        .p-fav.is-fav i {
            color: #ef4444 !important;
        }

/* ===== compact meta / tooltip for row ===== */
.p-spec-compact {
    display: none;
}

.p-spec-compact,
.p-row .property-card-meta-more-wrap {
    position: relative;
    overflow: visible;
}

.p-row .property-card-meta-more-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.p-row .property-card-meta-more {
    display: inline-block;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 6px;
    transition: all .18s ease;
    position: relative;
    z-index: 2;
}

    .p-row .property-card-meta-more:hover,
    .p-row .property-card-meta-more:focus {
        color: #0f172a;
        background: #f1f5f9;
        outline: none;
    }

.p-row .property-card-meta-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    min-width: 240px;
    max-width: 320px;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 14px 35px rgba(0,0,0,.20);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .2s ease;
    z-index: 9999;
    pointer-events: none;
    line-height: 1.7;
    font-size: 13px;
    white-space: normal;
}

    .p-row .property-card-meta-tooltip::after {
        content: "";
        position: absolute;
        left: 22px;
        top: 100%;
        border-width: 7px;
        border-style: solid;
        border-color: rgba(15, 23, 42, 0.96) transparent transparent transparent;
    }

.p-row .property-card-meta-tooltip-inner {
    display: block;
}

.p-row .property-card-meta-tooltip-close {
    display: none;
}

.p-row .property-card-meta-tooltip-item {
    display: inline;
}

.p-row .property-card-meta-tooltip-sep {
    opacity: .55;
    margin: 0 2px;
}

@media (hover: hover) and (pointer: fine) {
    .p-row .property-card-meta-more-wrap:hover .property-card-meta-tooltip,
    .p-row .property-card-meta-more-wrap:focus-within .property-card-meta-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* =========================================
   VR BADGE
   ========================================= */

.property-card--hero .property-card-media,
.p-media {
    position: relative;
}

.property-vr-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    bottom: auto;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgb(59, 164, 255);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    pointer-events: none;
}

    .property-vr-badge span {
        display: inline-block;
        letter-spacing: 0;
    }

    .property-vr-badge i {
        display: none;
    }

.property-vr-badge--top,
.property-vr-badge--row {
    top: 8px;
    left: 8px;
    bottom: auto;
}

    .property-vr-badge--row i {
        font-size: 10px;
    }

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
    .p-row {
        grid-template-columns: 145px minmax(0, 1fr);
        gap: 18px;
        padding: 16px;
    }

        .p-row .p-fav {
            width: 25px;
            height: 25px;
            min-width: 25px;
            min-height: 25px;
            top: 6px;
            right: 6px;
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            line-height: 1;
        }

            .p-row .p-fav i {
                font-size: 12px;
                line-height: 1;
            }

    .p-title {
        font-size: 18px;
    }

    .p-price {
        font-size: 20px;
    }

    .p-spec-item {
        font-size: 13px;
    }

    .p-address {
        font-size: 12px;
    }

    .property-view-count {
        font-size: 12px;
        color: #64748b;
    }
}

@media (max-width: 767px), (hover: none), (pointer: coarse) {
    .property-card--hero .property-card-meta-tooltip {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 18px;
        top: auto;
        min-width: 0;
        max-width: none;
        width: auto;
        border-radius: 16px;
        padding: 14px 16px 16px 16px;
        transform: translateY(14px);
        box-shadow: 0 18px 44px rgba(0,0,0,.28);
        pointer-events: auto;
    }

        .property-card--hero .property-card-meta-tooltip::after {
            display: none;
        }

    .property-card--hero .property-card-meta-more-wrap.is-open .property-card-meta-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .property-card--hero .property-card-meta-tooltip-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 999px;
        background: rgba(255,255,255,.12);
        color: #fff;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
    }

        .property-card--hero .property-card-meta-tooltip-close:active {
            transform: scale(.96);
        }

    .property-card--hero .property-card-meta-tooltip-inner {
        padding-right: 28px;
    }

    .p-row {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
        border-radius: 18px;
    }

    .p-img {
        border-radius: 14px;
    }

    .p-row .p-fav {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        top: 6px;
        right: 6px;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        line-height: 1;
    }

        .p-row .p-fav i {
            font-size: 12px;
            line-height: 1;
        }

    .p-head {
        gap: 10px;
        margin-bottom: 10px;
    }

    .p-title {
        font-size: 15px;
        line-height: 1.28;
        -webkit-line-clamp: 3;
    }

    .p-price {
        font-size: 17px;
    }

    .p-spec {
        gap: 6px 8px;
        padding-bottom: 0;
        margin-bottom: 4px;
    }

    .p-spec-item {
        font-size: 12px;
        gap: 5px;
    }

    .p-address {
        font-size: 12px;
        gap: 8px;
    }

    .p-bottom {
        padding-top: 6px;
        display: flex;
        justify-content: space-between;
    }

        .p-bottom .property-view-count {
            font-size: 12px;
            gap: 6px;
        }

    .property-vr-badge,
    .property-vr-badge--top,
    .property-vr-badge--row {
        min-width: 40px;
        height: 22px;
        padding: 0 8px;
        font-size: 12px;
        top: 6px;
        left: 6px;
    }

        .property-vr-badge i {
            font-size: 10px;
        }
}

@media (max-width: 520px) {
    .p-spec-full {
        display: none;
    }

    .p-spec-compact {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
        position: relative;
        overflow: visible;
    }

    .p-row {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        overflow: visible;
        z-index: 1;
    }

        .p-row.is-meta-open {
            z-index: 350;
        }

        .p-row .property-card-meta-more-wrap {
            position: relative;
            display: inline-flex;
            align-items: center;
            overflow: visible;
            z-index: 20;
        }

        .p-row .property-card-meta-more {
            appearance: none;
            -webkit-appearance: none;
            border: 0;
            background: #f8fafc;
            color: #475569;
            font-weight: 700;
            font-size: 11px;
            line-height: 1;
            padding: 4px 8px;
            border-radius: 999px;
            cursor: pointer;
            box-shadow: inset 0 0 0 1px rgba(148,163,184,.28);
        }

            .p-row .property-card-meta-more:active {
                transform: scale(.98);
            }

        .p-row .property-card-meta-tooltip {
            position: absolute;
            right: 0;
            left: auto;
            top: calc(100% + 8px);
            bottom: auto;
            min-width: 180px;
            max-width: min(260px, calc(100vw - 32px));
            width: max-content;
            border-radius: 14px;
            padding: 10px 12px;
            background: rgba(15, 23, 42, 0.98);
            color: #fff;
            box-shadow: 0 16px 34px rgba(15, 23, 42, .22);
            transform: translateY(6px);
            pointer-events: auto;
            white-space: normal;
            line-height: 1.6;
            font-size: 12px;
        }

            .p-row .property-card-meta-tooltip::after {
                content: "";
                position: absolute;
                right: 14px;
                top: -12px;
                left: auto;
                border-width: 6px;
                border-style: solid;
                border-color: transparent transparent rgba(15, 23, 42, 0.98) transparent;
                display: block;
            }

        .p-row .property-card-meta-more-wrap.is-open .property-card-meta-tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .p-row .property-card-meta-tooltip-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 6px;
            right: 6px;
            width: 24px;
            height: 24px;
            border: 0;
            border-radius: 999px;
            background: rgba(255,255,255,.1);
            color: #fff;
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
        }

        .p-row .property-card-meta-tooltip-inner {
            padding-right: 22px;
        }

    .p-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .p-title {
        font-size: 11px;
        -webkit-line-clamp: 3;
    }

    .p-price {
        font-size: 13px;
        white-space: normal;
    }

    .p-spec-item {
        font-size: 11px;
    }

    .p-address {
        font-size: 11px;
    }

    .p-bottom .property-view-count {
        font-size: 11px;
    }

    .p-spec-sep {
        padding: 0 5px;
    }

    .property-vr-badge,
    .property-vr-badge--row {
        left: 6px;
        bottom: 6px;
        min-height: 22px;
        padding: 0 7px;
        font-size: 10px;
        gap: 4px;
    }

        .property-vr-badge i,
        .property-vr-badge--row i {
            font-size: 9px;
        }
}

/* =========================================
   FINAL LIST/HOME MOBILE ROW CARD
   Mục tiêu:
   - Card list/mobile giống Home: title full-width ở trên
   - Ảnh bên trái, thông tin bên phải
   - Không lặp title, không bị chia cột sai trên máy Trung/font khác
   - Không ảnh hưởng desktop
   ========================================= */

.p-title-mobile {
    display: none !important;
}

.p-title-desktop {
    display: -webkit-box;
}

@media (max-width: 1025px) {
    .property-row-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .p-row {
        display: grid !important;
        grid-template-columns: clamp(110px, 30vw, 145px) minmax(0, 1fr) !important;
        grid-template-areas:
            "title title"
            "media main" !important;
        row-gap: 8px !important;
        column-gap: 12px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

        .p-row > .p-title-mobile {
            grid-area: title !important;
            display: -webkit-box !important;
            -webkit-box-orient: vertical !important;
            -webkit-line-clamp: 2 !important;
            overflow: hidden !important;
            width: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            color: #0f172a !important;
            font-size: clamp(13px, 3.2vw, 16px) !important;
            line-height: 1.3 !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            text-decoration: none !important;
            overflow-wrap: anywhere !important;
            word-break: break-word !important;
        }

        .p-row .p-title-desktop {
            display: none !important;
        }

        .p-row .p-media {
            grid-area: media !important;
            min-width: 0 !important;
            width: 100% !important;
            position: relative !important;
            line-height: 0 !important;
        }

        .p-row .p-main {
            grid-area: main !important;
            min-width: 0 !important;
            width: 100% !important;
            display: flex !important;
            flex-direction: column !important;
            overflow: visible !important;
        }

        .p-row .p-img {
            display: block !important;
            width: 100% !important;
            aspect-ratio: 4 / 3 !important;
            overflow: hidden !important;
            background: #f3f4f6 !important;
            border-radius: 0 !important;
            color: transparent !important;
            font-size: 0 !important;
            line-height: 0 !important;
        }

            .p-row .p-img img {
                display: block !important;
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
                color: transparent !important;
                font-size: 0 !important;
                line-height: 0 !important;
                text-indent: -9999px !important;
            }

        .p-row .p-fav {
            position: absolute !important;
            top: 6px !important;
            right: 6px !important;
            width: 24px !important;
            height: 24px !important;
            min-width: 24px !important;
            min-height: 24px !important;
            padding: 0 !important;
            margin: 0 !important;
            box-sizing: border-box !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            line-height: 1 !important;
            border-radius: 999px !important;
            z-index: 8 !important;
            transform: none !important;
        }

            .p-row .p-fav i {
                display: block !important;
                margin: 0 !important;
                padding: 0 !important;
                font-size: 12px !important;
                line-height: 1 !important;
            }

        .p-row .p-head {
            display: block !important;
            margin: 0 0 6px !important;
            min-width: 0 !important;
        }

        .p-row .p-price {
            display: block !important;
            white-space: normal !important;
            font-size: clamp(13px, 3vw, 17px) !important;
            line-height: 1.25 !important;
            margin: 0 0 4px !important;
        }

        .p-row .p-spec {
            margin-bottom: 4px !important;
            min-width: 0 !important;
        }

        .p-row .p-address {
            min-width: 0 !important;
        }

            .p-row .p-address span {
                min-width: 0 !important;
                overflow-wrap: anywhere !important;
                word-break: break-word !important;
            }

        .p-row .p-bottom {
            min-width: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 8px !important;
            padding-top: 6px !important;
        }
}

@media (max-width: 770px) {
    .p-row {
        border-radius: 0 !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .08) !important;
    }
}

@media (max-width: 391px) {
    .p-row {
        grid-template-columns: 120px minmax(0, 1fr) !important;
        column-gap: 12px !important;
    }

        .p-row > .p-title-mobile {
            font-size: 13px !important;
            line-height: 1.25 !important;
        }

        .p-row .p-price {
            font-size: 13px !important;
        }

        .p-row .p-fav {
            top: 5px !important;
            right: 5px !important;
            width: 22px !important;
            height: 22px !important;
            min-width: 22px !important;
            min-height: 22px !important;
        }

            .p-row .p-fav i {
                font-size: 11px !important;
            }
}
