/* Listing shell — the parts of the design's programme-search-styles.css and
   assets/listing-shell.css that the listing pages share (44 DL Programme
   Listing, 45 Course Listing; 03 and 21 load the same files). Every rule
   either page's markup or scripts use, in the design's cascade order, scoped
   under .listing-shell — the class both listing blocks put on their root.

   Registered as the `hkmu-listing-shell` style in blocks/register.php and
   named FIRST in each listing block's block.json "style", so it prints before
   the block's own stylesheet, exactly where the design loads it. The block
   stylesheet then holds the page's own <head> rules, and
   `hkmu-listing-schools` (listing-schools.css) the design's <body> styles —
   see that file for why its print order is not relied on. Generated from the design files: change the design, then
   regenerate rather than editing by hand. */

/* ── programme-search-styles.css ── */
.listing-shell .container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 clamp(24px, 9.375vw, 180px);
}

.listing-shell .hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0D3870 0%, #144F9D 40%, #1a6bc4 100%);
  min-height: clamp(180px, 15vw + 50px, 300px);
  display: flex;
  align-items: flex-end;
}

.listing-shell .hero__content {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) clamp(24px, 9.375vw, 180px) clamp(20px, 2.5vw, 40px);
  width: 100%;
}

.listing-shell .hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, var(--text-3xl));
  font-weight: var(--fw-regular);
  color: var(--color-white);
  line-height: var(--lh-heading);
  max-width: 600px;
}

.listing-shell .hero-search-wrap {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 clamp(24px, 9.375vw, 180px);
  position: relative;
  z-index: 3;
  margin-top: -28px;
}

.listing-shell .hero-search {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  border: none;
  background: #fff;
  box-shadow: 0 0 16.7px 0 rgba(0, 0, 0, .15);
}

.listing-shell .hero-search:focus-within {
  box-shadow: 0 0 0 3px rgba(20, 79, 157, .25), 0 0 16.7px rgba(0, 0, 0, .08);
}

.listing-shell .hero-search__input {
  flex: 1;
  height: 69px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-ink);
  border: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  outline: none;
  background: transparent;
}

.listing-shell .hero-search__input::placeholder {
  color: #626262;
}

.listing-shell .hero-search__input:focus {
  outline: none;
}

.listing-shell .programme-layout {
  display: grid;
  grid-template-columns: clamp(220px, 15vw + 40px, 300px) 1fr;
  gap: clamp(24px, 2vw + 12px, 48px);
  padding: clamp(20px, 2.5vw, 40px) 0;
}

.listing-shell .results-area {
  min-width: 0;
  width: 100%;
}

@media(max-width:1024px) {
  .listing-shell .programme-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

.listing-shell .filter-sidebar {
  align-self: start;
}

.listing-shell .filter-group {
  margin-bottom: var(--sp-5);
}

.listing-shell .filter-group__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-ink);
  margin-bottom: var(--sp-2);
  display: block;
}

.listing-shell .programme-table-section {
  margin-bottom: 0;
}

.listing-shell .programme-table-section:last-child {
  margin-bottom: var(--sp-10);
}

.listing-shell .programme-table-section+.programme-table-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #E6E6E6;
}

.listing-shell .programme-table-section.is-collapsed .programme-table-section__header {
  margin-bottom: 0;
}

.listing-shell .programme-table-section.is-collapsed+.programme-table-section {
  margin-top: 24px;
  padding-top: 24px;
}

.listing-shell .programme-table-section__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  cursor: pointer;
  user-select: none;
}

.listing-shell .programme-table-section__header:hover .programme-table-section__title {
  color: #144F9D;
}

.listing-shell .programme-table-section__collapse-toggle {
  flex-shrink: 0;
  min-width: 40px;
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
  border: none;
  background: none;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
  color: #144F9D;
  margin-left: auto;
}

.listing-shell .programme-table-section__header:hover .programme-table-section__collapse-toggle {
  background: none;
  border: none;
  color: #144F9D;
}

.listing-shell .programme-table-section__collapse-toggle svg {
  width: 18px;
  height: 18px;
}

.listing-shell .programme-table-section.is-collapsed .programme-table-section__collapse-toggle {
  transform: rotate(0deg);
}

.listing-shell .programme-table-section:not(.is-collapsed) .programme-table-section__collapse-toggle {
  transform: rotate(180deg);
}

.listing-shell .programme-table-section .programme-table-section__body {
  overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease, margin .25s ease;
}

.listing-shell .programme-table-section.is-collapsed .programme-table-section__body {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.listing-shell .programme-table-section__title {
  font-family: var(--font-body);
  font-size: clamp(18px, 1rem + 0.6vw, 28px);
  font-weight: var(--fw-bold);
  color: var(--color-ink);
  line-height: var(--lh-heading);
}

.listing-shell .programme-table-section__info {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-circle);
  background: var(--color-surface);
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 12px;
  cursor: pointer;
  transition: background var(--ease-fast), color var(--ease-fast);
}

.listing-shell .programme-table-section__info:hover {
  background: var(--brand-blue);
  color: #fff;
}

.listing-shell .prog-table {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.listing-shell .prog-table table {
  width: 100%;
  border-collapse: collapse;
}

.listing-shell .prog-table thead th {
  padding: var(--sp-3) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: #fff;
  text-align: center;
  white-space: pre-line;
  line-height: 1.35;
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.listing-shell .prog-table thead th:first-child {
  text-align: left;
  padding-left: var(--sp-5);
}

.listing-shell .prog-table thead th:last-child {
  border-right: none;
}

.listing-shell .prog-table--dl thead {
  background: var(--mode-dl-color);
}

.listing-shell .prog-table tbody tr {
  border-top: none;
}

.listing-shell .prog-table tbody tr:nth-child(even) {
  background: #F6F6F6;
}

.listing-shell .prog-table tbody td {
  padding: var(--sp-3) var(--sp-3);
  font-size: var(--text-base);
  color: var(--color-body);
  text-align: center;
  vertical-align: middle;
  height: 68px;
}

.listing-shell .prog-table tbody td:first-child {
  text-align: left;
  padding-left: var(--sp-5);
  font-weight: var(--fw-bold);
  color: var(--color-ink);
}

.listing-shell .prog-table tbody td a {
  color: var(--brand-blue);
  font-weight: var(--fw-bold);
  text-decoration: none;
  font-size: var(--text-base);
}

.listing-shell .prog-table tbody td a:hover {
  text-decoration: underline;
}

.listing-shell .prog-mobile-meta {
  display: none;
}

@media(max-width:768px) {
  .listing-shell .prog-mobile-meta {
    display: block;
    font-size: 12px;
    font-weight: var(--fw-regular);
    color: var(--color-muted);
    margin-top: 4px;
    line-height: 1.4;
  }
}

.listing-shell .prog-table tbody td:not(:first-child) a {
  font-size: 13px;
  font-weight: var(--fw-regular);
}

@media(max-width:1024px) {
  .listing-shell .prog-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .listing-shell .prog-table table {
    min-width: 700px;
  }

  .listing-shell .filter-sidebar {
    position: static;
  }
}

@media(max-width:768px) {
  .listing-shell .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .listing-shell .hero__content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .listing-shell .hero-search-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .listing-shell .hero-search {
    flex-direction: row;
    border-radius: 30px;
    overflow: hidden;
    height: 45.5px;
    border: 1px solid #E6E6E6;
    box-shadow: none;
    padding: 0;
  }

  .listing-shell .hero-search:focus-within {
    box-shadow: 0 0 0 2px rgba(20, 79, 157, .2);
  }

  .listing-shell .hero-search__input {
    height: 45.5px;
    padding: 0 0 0 16px;
    font-size: 14px;
    border-radius: 30px 0 0 30px;
    flex: 1;
    min-width: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .listing-shell .prog-mobile-meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-muted);
    line-height: 1.5;
    font-weight: 400;
    width: 100%;
  }

  .listing-shell .prog-mobile-wrap {
    flex: 1;
    min-width: 0;
  }

  .listing-shell .prog-table tbody td:not(:first-child) {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden;
  }

  .listing-shell .prog-table tbody tr.is-open td:not(:first-child) {
    display: flex !important;
    height: auto !important;
    padding: var(--sp-2) var(--sp-3) !important;
    border-bottom: 1px dashed var(--color-border) !important;
  }

  .listing-shell .prog-table {
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .listing-shell .prog-table table,
  .listing-shell .prog-table thead,
  .listing-shell .prog-table tbody,
  .listing-shell .prog-table tr,
  .listing-shell .prog-table td,
  .listing-shell .prog-table th {
    display: block;
    width: auto;
    min-width: 0;
  }

  .listing-shell .prog-table thead {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .listing-shell .prog-table tbody tr {
    background: var(--color-white) !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--sp-3);
    margin-bottom: var(--sp-3);
    box-shadow: var(--shadow-xs);
  }

  .listing-shell .prog-table tbody tr:hover {
    background: var(--color-white) !important;
  }

  .listing-shell .prog-table tbody td {
    border: none;
    padding: var(--sp-2) var(--sp-3);
    text-align: left !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--text-xs);
    border-bottom: 1px dashed var(--color-border);
    height: auto !important;
  }

  .listing-shell .prog-table tbody td:last-child {
    border-bottom: none;
  }

  .listing-shell .prog-table tbody td:first-child {
    padding: 0 var(--sp-3);
    border-bottom: none;
    margin-bottom: 0;
    font-size: var(--text-sm);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px var(--sp-3);
    cursor: pointer;
    position: relative;
  }

  .listing-shell .prog-table tbody td:first-child::after {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--color-surface);
    border-radius: var(--radius-circle);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23144F9D' stroke-width='1.75' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform var(--ease-base), background-color var(--ease-fast);
  }

  .listing-shell .prog-table tbody tr.is-open td:first-child {
    padding-bottom: var(--sp-3);
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--sp-2);
  }

  .listing-shell .prog-table tbody tr.is-open td:first-child::after {
    transform: rotate(180deg);
    background-color: var(--color-blue-surface);
  }

  .listing-shell .prog-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: var(--fw-bold);
    color: var(--color-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: .03em;
    flex-shrink: 0;
  }

  .listing-shell .programme-table-section__header {
    flex-wrap: wrap;
  }

  .listing-shell .programme-table-section__title {
    font-size: var(--text-lg);
    max-width: 330px;
  }

  .listing-shell .programme-table-section__header {
    gap: var(--sp-2);
  }

  .listing-shell .programme-table-section__collapse-toggle {
    min-width: 36px;
    width: 36px;
    height: 36px;
  }
}

/* ── assets/listing-shell.css ── */
.listing-shell .hero--deco {
  position: relative;
  display: flex;
  align-items: center;
  height: auto;
  aspect-ratio: auto;
  min-height: 300px;
  overflow: hidden;
  background-color: #fff;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.listing-shell .hero--deco::before {
  display: none;
}

.listing-shell .hero-deco-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(36px, 3.5vw, 56px) clamp(24px, 9.375vw, 180px);
  text-align: center;
}

.listing-shell .hero-deco-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #626262;
  letter-spacing: .2px;
}

.listing-shell .hero-deco-breadcrumb a {
  color: #626262;
  text-decoration: none;
}

.listing-shell .hero-deco-breadcrumb a:hover {
  color: var(--listing-accent-dark);
  text-decoration: underline;
}

.listing-shell .hero-deco-breadcrumb .sep {
  opacity: .55;
}

.listing-shell .hero-deco-title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  color: var(--color-ink);
  font-size: clamp(28px, 2.6vw + 8px, 48px);
  line-height: 1.14;
  margin: 0;
  max-width: 1100px;
  text-align: center;
  text-wrap: pretty;
}

@media(max-width:768px) {
  .listing-shell .hero--deco {
    min-height: 200px;
  }

  .listing-shell .hero-deco-content {
    padding: 28px 20px;
    gap: 12px;
  }

  .listing-shell .hero-deco-breadcrumb {
    font-size: 12px;
    gap: 6px;
  }

  .listing-shell .hero-deco-title {
    font-size: clamp(22px, 5.6vw, 30px);
  }
}

.listing-shell .hero-deco-content .hero-search-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 4px auto 0;
  padding: 0;
  position: relative;
  z-index: 3;
}

.listing-shell .hero-deco-content .hero-search {
  max-width: 100%;
  border: 1px solid #E1E1E1;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .10);
}

@media(max-width:768px) {
  .listing-shell .hero-deco-content .hero-search-wrap {
    margin-top: 4px;
  }
}

.listing-shell .hero-search:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--listing-accent) 30%, transparent), 0 0 16.7px rgba(0, 0, 0, .08);
}

.listing-shell .hero-search__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 14px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #F0F0F0;
  color: #626262;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  transition: background .15s ease, color .15s ease;
}

.listing-shell .hero-search__clear:hover {
  background: #E2E2E2;
  color: #333;
}

.listing-shell .hero-search__clear[hidden] {
  display: none;
}

.listing-shell .kw-hl {
  background: #FFE68A;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

@media(max-width:768px) {
  .listing-shell .hero-search {
    flex-direction: row;
    border-radius: 30px;
    overflow: hidden;
    height: 45.5px;
    border: 1px solid #E6E6E6;
    box-shadow: none;
    padding: 0;
  }

  .listing-shell .hero-search__input {
    height: 45.5px;
    padding: 0 0 0 16px;
    font-size: 14px;
    border-radius: 30px 0 0 30px;
    flex: 1;
    min-width: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .listing-shell .hero-search__clear {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }

  .listing-shell .hero-search-wrap {
    margin-top: 20px;
  }
}

.listing-shell .listing-intro {
  padding: clamp(32px, 3vw, 48px) 0 0;
  max-width: 1100px;
}

.listing-shell .listing-intro p {
  font-size: var(--text-base);
  color: var(--color-body);
  line-height: var(--lh-loose);
  margin: 0;
  text-wrap: pretty;
}

.listing-shell .listing-intro p+p {
  margin-top: var(--sp-3);
}

.listing-shell .listing-intro strong {
  color: var(--color-ink);
  font-weight: var(--fw-bold);
}

.listing-shell .programme-layout {
  padding: clamp(28px, 3vw, 48px) 0 clamp(48px, 5vw, 80px);
}

.listing-shell .filter-sidebar {
  position: sticky;
  top: var(--listing-sticky-top, 150px);
  align-self: start;
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 12px;
  padding: 20px;
  max-height: calc(100vh - var(--listing-sticky-top, 150px) - 30px);
  overflow-y: auto;
}

.listing-shell .sbf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #EDEDED;
}

.listing-shell .sbf-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  font-weight: 800;
  color: #1A1A1A;
}

.listing-shell .sbf-title svg {
  color: var(--listing-accent);
  flex-shrink: 0;
}

.listing-shell .sbf-clear {
  background: none;
  border: none;
  color: #626262;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  white-space: nowrap;
  transition: color .15s ease;
}

.listing-shell .sbf-clear:hover {
  color: #333;
}

.listing-shell .sbf-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid #E0E0E0;
  border-radius: 50%;
  background: #fff;
  color: var(--listing-accent);
  transition: transform .25s ease, background .15s ease;
}

.listing-shell .sbf-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--listing-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.listing-shell .filter-sidebar .filter-group {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F2F2F2;
}

.listing-shell .filter-sidebar .filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.listing-shell .filter-sidebar .filter-group__label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  user-select: none;
}

.listing-shell .filter-sidebar .filter-group__label::after {
  content: '\2212';
  font-size: var(--text-md);
  font-weight: 600;
  color: #626262;
  line-height: 1;
  flex-shrink: 0;
}

.listing-shell .filter-sidebar .filter-group__label:hover::after {
  color: #333;
}

.listing-shell .filter-sidebar .filter-group.is-collapsed .filter-group__label {
  margin-bottom: 0;
}

.listing-shell .filter-sidebar .filter-group.is-collapsed .filter-group__label::after {
  content: '\002B';
}

.listing-shell .filter-sidebar .filter-group.is-collapsed .sbf-list {
  display: none;
}

.listing-shell .ms__opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: #333;
  line-height: 1.3;
}

.listing-shell .ms__opt:hover {
  background: #F5F5F5;
}

.listing-shell .ms__opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.listing-shell .ms__box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #C4C4C4;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}

.listing-shell .ms__box::after {
  content: "";
  width: 10px;
  height: 8px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity .1s ease;
}

.listing-shell .ms__opt input:checked+.ms__box {
  background: var(--listing-accent);
  border-color: var(--listing-accent);
}

.listing-shell .ms__opt input:checked+.ms__box::after {
  opacity: 1;
}

.listing-shell .filter-sidebar .ms__txt {
  font-size: 14px;
  line-height: 1.35;
}

@media(max-width:1024px) {
  .listing-shell .programme-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .listing-shell .filter-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .listing-shell .filter-sidebar .sbf-head {
    margin: 0;
    padding: 14px 16px;
    border-bottom: none;
    cursor: pointer;
  }

  .listing-shell .filter-sidebar .sbf-body {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 86vw);
    z-index: 1200;
    background: #fff;
    padding: 0 18px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -10px 0 34px rgba(0, 0, 0, .18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility .3s;
  }

  .listing-shell .filter-sidebar.is-open .sbf-body {
    transform: none;
    visibility: visible;
  }

  .listing-shell .sbf-drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 12px;
    margin-bottom: 8px;
    background: #fff;
    border-bottom: 1px solid #EDEDED;
  }

  .listing-shell .sbf-drawer-head .sbf-title {
    font-size: 17px;
  }

  .listing-shell .sbf-drawer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .listing-shell .sbf-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #E0E0E0;
    background: #fff;
    color: #333;
    cursor: pointer;
    flex-shrink: 0;
  }

  .listing-shell .sbf-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1199;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .listing-shell .sbf-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .listing-shell .sbf-toggle {
    display: inline-flex;
  }

  .listing-shell .filter-sidebar.is-open .sbf-toggle {
    transform: none;
  }

  .listing-shell .sbf-count.is-visible {
    display: inline-flex;
  }

  .listing-shell .filter-sidebar>.sbf-head .sbf-clear {
    display: none;
  }
}

@media(min-width:1025px) {

  .listing-shell .sbf-drawer-head,
  .listing-shell .sbf-backdrop {
    display: none;
  }
}

.listing-shell .listing-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--color-border);
}

.listing-shell .listing-results-head__title {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--color-ink);
  margin: 0;
}

.listing-shell .listing-results-head__count {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0 0 0 auto;
}

.listing-shell .listing-results-head__count:only-child {
  margin-left: 0;
}

.listing-shell .listing-results-head__count strong {
  color: var(--listing-accent-dark);
  font-weight: var(--fw-extrabold);
}

@media(max-width:768px) {
  .listing-shell .listing-results-head {
    gap: 6px;
  }

  .listing-shell .listing-results-head__title {
    font-size: var(--text-base);
  }

  .listing-shell .listing-results-head__count {
    font-size: 14px;
    margin-left: 0;
  }
}