/* Search result cards (home page + portal Search Results screen). */
.hx-results { margin-top: 2.5rem; margin-bottom: 3rem; }
.hx-results-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.hx-results-head h2 { margin: 0; font-size: 1.75rem; }
.hx-results-sub { color: #7b809a; font-size: .9rem; }
.hx-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.hx-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(18, 38, 84, .10), 0 2px 6px rgba(18, 38, 84, .06); transition: transform .2s ease, box-shadow .2s ease; }
.hx-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18, 38, 84, .16), 0 4px 10px rgba(18, 38, 84, .08); }

.hx-card-cover { position: relative; display: block; height: 150px; background-size: cover; background-position: center; overflow: hidden; }
.hx-cover-pattern { position: absolute; inset: 0; opacity: .18;
    background-image: radial-gradient(circle at 20% 20%, #fff 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, #fff 0 1.5px, transparent 2.5px);
    background-size: 46px 46px, 31px 31px; }
.hx-cover-icon { position: absolute; right: -10px; bottom: -22px; font-size: 120px; color: rgba(255, 255, 255, .22); transform: rotate(-12deg); }

.hx-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 500;
    background: #f0f2f8; color: #344767; line-height: 1.2; }
.hx-chip i { font-size: .7rem; opacity: .8; }
.hx-chip-glass { position: absolute; top: 12px; left: 12px; display: block; background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); color: #1f2a44;
    max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-chip-glass i { margin: 0 .2rem; }
.hx-chip-glass + .hx-chip-right { top: 44px; }
.hx-chip-right { left: auto; right: 12px; max-width: none; }
.hx-chip-badge { background: #fff4df; color: #8a5a00; }

.hx-card-logo-row { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 1.25rem; margin-top: -34px; position: relative; z-index: 1; }
.hx-logo { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; background: #fff; border: 4px solid #fff;
    box-shadow: 0 6px 16px rgba(18, 38, 84, .18); }
.hx-logo-initials { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.35rem; letter-spacing: .5px; }
.hx-fav-form { margin: 0; }
.hx-fav.btn { margin: 0 0 4px; padding: .35rem .75rem; border-radius: 999px; font-size: .75rem; text-transform: none; box-shadow: 0 2px 6px rgba(18, 38, 84, .12); }
.hx-fav.btn-light { background: #fff; color: #e91e63; border: 1px solid #f3c1d3; }

.hx-card-body { display: flex; flex-direction: column; gap: .7rem; padding: .85rem 1.25rem 1.25rem; flex: 1; }
.hx-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.hx-title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.hx-title a { color: #1f2a44; text-decoration: none; }
.hx-title a:hover { color: #e91e63; }
.hx-price { text-align: right; white-space: nowrap; }
.hx-price-amount { display: block; font-size: 1.25rem; font-weight: 800; color: #0b8a5f; line-height: 1.1; }
.hx-price-unit { display: block; font-size: .72rem; color: #7b809a; }
.hx-price-label { display: inline-block; font-size: .75rem; font-weight: 600; color: #6f42c1; background: #f1ebfb; padding: .3rem .6rem; border-radius: 8px; white-space: normal; max-width: 130px; text-align: center; }
.hx-desc { margin: 0; color: #67748e; font-size: .88rem; line-height: 1.5; }
.hx-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.hx-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .82rem; color: #344767; }
.hx-stars { color: #f5a623; letter-spacing: 1px; font-size: .75rem; }

.hx-provider { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 12px; background: #f7f8fc; text-decoration: none; color: inherit; }
.hx-provider:hover { background: #eef1fa; }
.hx-provider img, .hx-provider-initials { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; }
.hx-provider-initials { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; }
.hx-provider-text { display: flex; flex-direction: column; min-width: 0; }
.hx-provider-text strong { color: #1f2a44; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-provider-text small { color: #7b809a; font-size: .75rem; }

.hx-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 12px; background: #f7f8fc; padding: .6rem 0; }
.hx-stats div { display: flex; flex-direction: column; align-items: center; }
.hx-stats div + div { border-left: 1px solid #e3e7f1; }
.hx-stats strong { color: #1f2a44; font-size: 1.05rem; }
.hx-stats small { color: #7b809a; font-size: .72rem; }

.hx-service-list { list-style: none; margin: 0; padding: 0; border-top: 1px dashed #e3e7f1; }
.hx-service-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px dashed #e3e7f1; font-size: .85rem; }
.hx-service-list a { color: #344767; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-service-list a:hover { color: #e91e63; }
.hx-service-list span { color: #0b8a5f; font-weight: 600; white-space: nowrap; flex: none; }
.hx-service-list a { min-width: 0; }

.hx-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .25rem; }
.hx-actions .btn { flex: 1; margin: 0; border-radius: 10px; font-size: .78rem; padding: .6rem .8rem; }
.hx-btn-primary { background: linear-gradient(135deg, #044061, #1f6f9e); color: #fff; }
.hx-btn-primary:hover { color: #fff; filter: brightness(1.1); }
.hx-btn-ghost { background: #fff; color: #044061; box-shadow: inset 0 0 0 1px #cfd8e6 !important; }
.hx-btn-ghost:hover { background: #f4f7fb; color: #044061; }

@media (max-width: 575px) {
    .hx-results-grid { grid-template-columns: 1fr; }
    .hx-results-head h2 { font-size: 1.4rem; }
}

/* Portal Search Results screen: the form is hidden, so use the full width. */
html.hx-results-only .hx-results { margin-top: 1rem; max-width: none; padding-left: 1.25rem; padding-right: 1.25rem; }
