/* ZHI — listings: search bar overlapping the hero + live results */
.listings { position: relative; z-index: 3; padding-bottom: var(--section-y); }
.listings__bar {
	position: relative; margin-top: calc(var(--space-7) * -1); padding: var(--space-4);
	background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); border-radius: var(--radius-lg);
	box-shadow: 0 30px 70px -28px rgba(6, 21, 33, 0.55); border: 1px solid rgba(255, 255, 255, 0.08);
}
.listings__bar .search-panel { margin: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; }
.listings__results { padding-top: var(--space-8); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.listings__count { margin: 0 0 var(--space-5); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.listings__more { display: flex; justify-content: center; margin: var(--space-7) 0 0; }
.listings__empty { max-width: 560px; margin-inline: auto; text-align: center; padding: var(--space-6) 0; }
.listings__empty h3 { margin: 0 0 var(--space-3); }
@media (min-width: 960px) { .listings__bar { padding: var(--space-5); margin-top: calc(var(--space-8) * -1); } }
@media (min-width: 960px) { .listings__bar { margin-top: calc(var(--space-8) * -1.15); } }

/* Optional visible heading + text above the results (standard 4fr / 8fr head) */
.listings__head { margin-bottom: clamp(1.5rem, 1.25rem + 1.5vw, 2.75rem); }
@media (min-width: 900px) {
	.listings__head.section-head--split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8); align-items: start; }
	.listings__head .lede { max-width: 92ch; }
}

/* Results line with the sort control on the right */
.listings__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-5); }
.listings__toolbar .listings__count { margin: 0; }
.listings__sort { display: flex; align-items: center; gap: var(--space-3); margin: 0; }
.listings__sort label { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.listings__sortbox { position: relative; display: block; }
.listings__sort select { -webkit-appearance: none; appearance: none; min-height: 44px; min-width: 12.5rem; padding: 0.6rem 2.5rem 0.6rem 1rem; font: inherit; font-size: var(--fs-sm); color: var(--ink); background-color: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071B29' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 16px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.listings__sort select:hover { border-color: var(--ink); }
.listings__sort select:focus-visible { outline: none; border-color: var(--teal-500, #0b7580); box-shadow: 0 0 0 3px rgba(11, 117, 128, 0.2); }
@media (max-width: 599px) {
	.listings__sort { width: 100%; justify-content: space-between; }
	.listings__sort select { min-width: 0; width: 100%; }
	.listings__sortbox { flex: 1; }
}
.listings__results.is-loading .listings__grid { opacity: 0.45; transition: opacity var(--dur-fast); pointer-events: none; }
/* Optional text and button under the results */
.listings__after { display: grid; gap: var(--space-5); margin-top: var(--space-8, 4rem); max-width: none; }
.listings__after-text { color: var(--fg-muted); line-height: 1.7; overflow-wrap: break-word; }
.listings__after-text > * { margin: 0 0 var(--space-4); }
.listings__after-text > :last-child { margin-bottom: 0; }
.listings__after-text h2, .listings__after-text h3, .listings__after-text h4 { color: var(--fg); font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: var(--space-6) 0 var(--space-3); text-wrap: wrap; max-width: none; }
.listings__after-text > :first-child { margin-top: 0; }
.listings__after-text h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
.listings__after-text h3 { font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.75rem); }
.listings__after-text h4 { font-size: 1.15rem; }
.listings__after-text strong { color: var(--fg); font-weight: 500; }
.listings__after-text a { color: var(--accent, var(--teal-600)); text-decoration: underline; text-underline-offset: 3px; }
.listings__after-text ul, .listings__after-text ol { padding-left: 1.4em; list-style-position: outside; }
.listings__after-text ul { list-style-type: disc; }
.listings__after-text ol { list-style-type: decimal; }
.listings__after-text ul ul { list-style-type: circle; }
.listings__after-text li { display: list-item; margin: 0 0 var(--space-2); padding-left: 0.2em; }
.listings__after-text li::marker { color: var(--accent, var(--teal-600)); }
.listings__after-text ul ul, .listings__after-text ol ol, .listings__after-text ul ol, .listings__after-text ol ul { margin-top: var(--space-2); margin-bottom: 0; }
.listings__after-text blockquote { margin: var(--space-5) 0; padding-left: var(--space-5); border-left: 3px solid var(--accent, var(--teal-600)); color: var(--fg); }
.listings__after-btn { margin: 0; }