.hhi-wrap {
    margin: 0.75rem 0;
}

.hhi-wrap p {
    margin: 0;
}

.hhi-wrap .hhi-card > p,
.hhi-wrap .hhi-content > p,
.hhi-wrap .hhi-top > p,
.hhi-wrap .hhi-meta > p,
.hhi-wrap .hhi-meta-item > p {
    display: contents;
    margin: 0;
}

.hhi-wrap br {
    display: none;
}

.hhi-list-shell {
    width: 100%;
}

.hhi-list {
    --hhi-columns: 3;
    --hhi-gap: 0.85rem;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--hhi-gap);
}

.hhi-wrap--grid .hhi-list {
    display: grid;
    align-items: start;
}

.hhi-wrap--scroll {
    position: relative;
}

.hhi-wrap--scroll .hhi-list-shell {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
}

.hhi-wrap--scroll .hhi-list-shell::-webkit-scrollbar {
    display: none;
}

.hhi-wrap--scroll .hhi-list-shell:focus {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
    border-radius: 18px;
}

.hhi-wrap--scroll .hhi-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.hhi-item {
    margin: 0;
}

.hhi-wrap--grid .hhi-item {
    min-width: 0;
}

.hhi-wrap--scroll .hhi-item {
    flex: 0 0 calc((100% - (var(--hhi-columns) - 1) * var(--hhi-gap)) / var(--hhi-columns));
    min-width: 0;
    max-width: none;
    scroll-snap-align: start;
}

.hhi-card {
    display: block;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hhi-card:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.hhi-thumb {
    width: 100%;
    aspect-ratio: 4 / 2.6;
    background: #f8fafc;
    padding: 0.45rem;
    box-sizing: border-box;
}

.hhi-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.hhi-thumb--placeholder {
    position: relative;
    background-color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Cpath d='M28 62.5L80 22l52 40.5' fill='none' stroke='%23d1d5db' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M44 56.5V97h72V56.5' fill='none' stroke='%23d1d5db' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M70 97V72h20v25' fill='none' stroke='%23d1d5db' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(52%, 210px);
}

.hhi-content {
    padding: 0.7rem 0.8rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hhi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hhi-price {
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hhi-type {
    background: #f1f5f9;
    color: #334155;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.hhi-location {
    font-size: 0.98rem;
    line-height: 1.3;
}

.hhi-title {
    font-size: 0.92rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hhi-description {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.hhi-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.75rem;
}

.hhi-meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.16rem;
    min-height: 0;
}

.hhi-meta-item span {
    display: block;
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.2;
}

.hhi-meta-item strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 1024px) {
}

@media (max-width: 640px) {
    .hhi-price {
        font-size: 1.2rem;
    }
}
