.hm71-collection-page {
    --hm71-green: #0b8f3c;
    --hm71-green-dark: #087632;
    --hm71-navy: #0b1830;
    --hm71-text: #33405a;
    --hm71-muted: #748096;
    --hm71-line: #e2e8ef;
    max-width: 1480px;
    padding-top: 22px;
    padding-bottom: 64px;
    color: var(--hm71-navy);
}

.hm71-collection-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    margin-bottom: 18px;
    color: #8993a5;
    font-size: .78rem;
}

.hm71-collection-breadcrumb a {
    color: #69758b;
    text-decoration: none;
}

.hm71-collection-breadcrumb i {
    font-size: .55rem;
}

.hm71-collection-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.hm71-collection-title-row h1 {
    margin: 0 0 5px;
    color: var(--hm71-navy);
    font-size: clamp(1.65rem, 2vw, 2.2rem);
    font-weight: 720;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.hm71-collection-title-row p,
.hm71-collection-count {
    margin: 0;
    color: var(--hm71-muted);
    font-size: .92rem;
}

.hm71-listing-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm71-collection-sort {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 148px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--hm71-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 37, 65, .035);
}

.hm71-collection-sort i {
    color: #718096;
    font-size: .8rem;
}

.hm71-collection-sort select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #26334a;
    font: inherit;
    font-size: .82rem;
    font-weight: 620;
    cursor: pointer;
}

.hm71-grid-view-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--hm71-line);
    border-radius: 9px;
    background: #fff;
    color: #607089;
}

.hm71-collection-tabs {
    display: grid;
    grid-template-columns: .72fr 1fr 1fr 1.38fr 2.15fr;
    gap: 11px;
    margin-bottom: 20px;
}

.hm71-collection-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 45px;
    padding: 9px 13px;
    overflow: hidden;
    border: 1px solid var(--hm71-line);
    border-radius: 9px;
    background: #fff;
    color: #243149;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 630;
    line-height: 1.2;
    box-shadow: 0 3px 13px rgba(12, 30, 55, .025);
}

.hm71-collection-tabs a i {
    flex: 0 0 auto;
    color: #5c6980;
}

.hm71-collection-tabs a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm71-collection-tabs a:hover,
.hm71-collection-tabs a:focus-visible,
.hm71-collection-tabs a.active {
    border-color: #65b984;
    background: #f1fbf4;
    color: var(--hm71-green-dark);
}

.hm71-collection-tabs a.active i {
    color: var(--hm71-green);
}

.hm71-collection-count {
    margin-bottom: 17px;
    color: #627087;
    font-size: .83rem;
}

.hm71-collection-count strong {
    color: #26334a;
    font-weight: 700;
}

.hm71-request-grid,
.hm71-listing-grid {
    display: grid;
    gap: 15px;
}

.hm71-request-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hm71-listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hm71-request-card,
.hm71-listing-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--hm71-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(24, 42, 68, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hm71-request-card:hover,
.hm71-listing-card:hover {
    transform: translateY(-2px);
    border-color: #c9d7ce;
    box-shadow: 0 10px 28px rgba(24, 42, 68, .08);
}

.hm71-request-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0 14px;
    padding: 15px 15px 0;
}

.hm71-request-card-icon {
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 88px;
    height: 92px;
    border-radius: 12px;
    background: #effaf2;
    color: #07933c;
    text-decoration: none;
    font-size: 2.75rem;
}

.hm71-tone--estate .hm71-request-card-icon,
.hm71-tone--estate .hm71-listing-placeholder {
    background: #eef5ff;
    color: #176ed1;
}

.hm71-tone--machine .hm71-request-card-icon,
.hm71-tone--machine .hm71-listing-placeholder {
    background: #fff6e8;
    color: #d88900;
}

.hm71-tone--parts .hm71-request-card-icon,
.hm71-tone--parts .hm71-listing-placeholder {
    background: #f4efff;
    color: #6747bd;
}

.hm71-request-card-content {
    min-width: 0;
    padding-right: 28px;
}

.hm71-card-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-bottom: 7px;
}

.hm71-card-pills span,
.hm71-card-pills b,
.hm71-listing-category {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 20px;
    padding: 3px 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaf8ee;
    color: #178442;
    font-size: .65rem;
    font-weight: 650;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm71-card-pills b {
    flex: 0 0 auto;
    background: #fff4dc;
    color: #c27400;
}

.hm71-request-card h2,
.hm71-listing-card h2 {
    margin: 0;
    color: var(--hm71-navy);
    font-size: 1rem;
    font-weight: 680;
    letter-spacing: -.02em;
    line-height: 1.32;
}

.hm71-request-card h2 a,
.hm71-listing-card h2 a {
    color: inherit;
    text-decoration: none;
}

.hm71-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: #66748a;
    font-size: .73rem;
    line-height: 1.25;
}

.hm71-card-location i {
    flex: 0 0 auto;
    color: #6b7890;
    font-size: .7rem;
}

.hm71-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: var(--hm71-green);
    font-size: .88rem;
    font-weight: 720;
    line-height: 1.25;
}

.hm71-card-favorite {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #dbe3eb;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #52627a;
    text-decoration: none;
    font-size: .92rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.hm71-card-favorite.active {
    border-color: #f3b6bd;
    color: #df3044;
}

.hm71-request-card-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 14px;
    padding: 11px 2px;
    border-top: 1px solid #edf1f5;
}

.hm71-request-card-meta span {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 2px 5px;
    color: #4e5d73;
    font-size: .7rem;
}

.hm71-request-card-meta i {
    color: #718198;
}

.hm71-request-card-meta small {
    grid-column: 1 / -1;
    color: #97a0af;
    font-size: .58rem;
    text-align: center;
}

.hm71-card-action {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin: 0 -15px;
    border-top: 1px solid #e9eef3;
    color: var(--hm71-green-dark);
    text-decoration: none;
    font-size: .75rem;
    font-weight: 680;
}

.hm71-card-action:hover {
    background: #f4fbf6;
}

.hm71-listing-card {
    display: flex;
    flex-direction: column;
}

.hm71-listing-card-media {
    position: relative;
    aspect-ratio: 1.52 / 1;
    overflow: hidden;
    background: #eef2f5;
}

.hm71-listing-card-media > a:first-child,
.hm71-listing-card-media img,
.hm71-listing-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.hm71-listing-card-media img {
    object-fit: cover;
    transition: transform .25s ease;
}

.hm71-listing-card:hover .hm71-listing-card-media img {
    transform: scale(1.025);
}

.hm71-listing-placeholder {
    display: grid;
    place-items: center;
    background: #effaf2;
    color: var(--hm71-green);
    font-size: 3rem;
}

.hm71-listing-category {
    position: absolute;
    left: 10px;
    bottom: 9px;
    max-width: calc(100% - 20px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.hm71-listing-card .hm71-card-favorite {
    border-color: rgba(255, 255, 255, .75);
    background: rgba(12, 24, 44, .28);
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.hm71-listing-card .hm71-card-favorite.active {
    background: rgba(255, 255, 255, .95);
    color: #df3044;
    text-shadow: none;
}

.hm71-listing-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 13px 13px 0;
}

.hm71-listing-card h2 {
    min-height: 2.65em;
    font-size: .94rem;
}

.hm71-listing-card .hm71-card-price {
    margin: 10px 0 0;
    font-size: .97rem;
}

.hm71-listing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-top: 11px;
    color: #606e84;
    font-size: .65rem;
}

.hm71-listing-features span {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.hm71-listing-features i {
    color: #8793a5;
    font-size: .58rem;
}

.hm71-listing-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 12px 0;
    color: #69778c;
    font-size: .64rem;
}

.hm71-listing-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hm71-listing-card .hm71-card-action {
    margin: 0 -13px;
}

.hm71-collection-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.hm71-collection-pagination a,
.hm71-collection-pagination span {
    display: grid;
    place-items: center;
    min-width: 35px;
    height: 35px;
    padding: 0 8px;
    border: 1px solid var(--hm71-line);
    border-radius: 8px;
    background: #fff;
    color: #425168;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 630;
}

.hm71-collection-pagination a.active {
    border-color: var(--hm71-green);
    background: var(--hm71-green);
    color: #fff;
}

.hm71-pagination-summary {
    margin: 10px 0 0;
    color: #7c8798;
    font-size: .7rem;
    text-align: center;
}

.hm71-collection-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 32px;
    border: 1px dashed #cfd9e4;
    border-radius: 12px;
    background: #fff;
    color: #78869a;
    text-align: center;
}

.hm71-collection-empty > i {
    color: #9eb0c1;
    font-size: 2.2rem;
}

.hm71-collection-empty h2 {
    margin: 12px 0 3px;
    color: #2f3e55;
    font-size: 1.05rem;
}

.hm71-collection-empty p {
    margin: 0;
    font-size: .82rem;
}

@media (max-width: 1180px) {
    .hm71-request-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm71-listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hm71-collection-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    .hm71-collection-tabs a {
        flex: 0 0 auto;
        justify-content: flex-start;
        max-width: 290px;
    }
}

@media (max-width: 760px) {
    .hm71-collection-page {
        width: 100%;
        padding: 14px 14px calc(105px + env(safe-area-inset-bottom));
    }

    .hm71-collection-breadcrumb {
        margin-bottom: 12px;
        font-size: .7rem;
    }

    .hm71-collection-title-row {
        align-items: center;
        margin-bottom: 16px;
    }

    .hm71-collection-title-row h1 {
        font-size: 1.55rem;
    }

    .hm71-collection-title-row p {
        font-size: .78rem;
    }

    .hm71-collection-sort {
        min-width: 118px;
        height: 39px;
        padding: 0 9px;
    }

    .hm71-grid-view-button {
        display: none;
    }

    .hm71-collection-tabs {
        margin: 0 -14px 14px;
        padding: 0 14px 6px;
        scroll-snap-type: x proximity;
    }

    .hm71-collection-tabs a {
        min-height: 41px;
        padding: 8px 12px;
        scroll-snap-align: start;
        font-size: .72rem;
    }

    .hm71-request-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .hm71-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hm71-request-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 0 11px;
        padding: 12px 12px 0;
    }

    .hm71-request-card-icon {
        width: 76px;
        height: 82px;
        font-size: 2.2rem;
    }

    .hm71-request-card h2 {
        font-size: .9rem;
    }

    .hm71-card-pills span {
        max-width: 165px;
    }

    .hm71-card-action {
        margin-right: -12px;
        margin-left: -12px;
    }

    .hm71-listing-card-body {
        padding: 10px 10px 0;
    }

    .hm71-listing-card h2 {
        min-height: 2.6em;
        font-size: .82rem;
    }

    .hm71-listing-card .hm71-card-location {
        font-size: .65rem;
    }

    .hm71-listing-card .hm71-card-price {
        font-size: .83rem;
    }

    .hm71-listing-features {
        gap: 4px 7px;
        font-size: .58rem;
    }

    .hm71-listing-meta {
        align-items: flex-start;
        flex-direction: column;
        padding: 9px 0;
    }

    .hm71-listing-card .hm71-card-action {
        margin-right: -10px;
        margin-left: -10px;
        font-size: .68rem;
    }
}

@media (max-width: 420px) {
    .hm71-collection-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .hm71-listing-toolbar,
    .hm71-collection-sort {
        width: 100%;
    }

    .hm71-listing-grid {
        grid-template-columns: 1fr;
    }

    .hm71-listing-card-media {
        aspect-ratio: 1.7 / 1;
    }

    .hm71-request-card {
        grid-template-columns: 66px minmax(0, 1fr);
    }

    .hm71-request-card-icon {
        width: 66px;
        height: 75px;
        font-size: 1.9rem;
    }

    .hm71-card-pills span {
        max-width: 125px;
    }
}
