/* List page layout */
body.page-list .list-page-shell {
  width: 100%;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  min-width: 0;
}

.listing-page-loading {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 24, 39, 0.34);
  -webkit-backdrop-filter: blur(0.625rem) saturate(115%);
  backdrop-filter: blur(0.625rem) saturate(115%);
}

.listing-page-loading[hidden] {
  display: none;
}

.listing-page-loading-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-width: 9.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1rem 2.75rem rgba(15, 23, 42, 0.2);
  color: #111827;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.listing-page-loading-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--page-brand-color, #ff5722);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--page-brand-color, #ff5722) 28%, transparent);
  animation: listing-filter-pulse 1.15s ease-out infinite;
}

@keyframes listing-filter-pulse {
  70% { box-shadow: 0 0 0 0.5rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .listing-page-loading-dot {
    animation: none;
  }
}

.list-grid > * {
  min-width: 0;
}

@media (min-width: 64rem) and (max-width: 79.9375rem) {
  body.page-list .list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.list-grid .ht-skeleton-card,
.list-grid .card-title,
.list-grid .project-card-price-line,
.list-grid .project-card-price-value-unit {
  min-width: 0;
}

.list-grid .project-card-price-line {
  max-width: 100%;
}

.list-results-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.list-empty-state {
  padding: 4rem 1.25rem;
  text-align: center;
  color: #6b7280;
}

.list-empty-title {
  margin: 0;
  font-size: var(--ht-text-base);
  line-height: 1.5;
  font-weight: 600;
  color: #374151;
}

.list-empty-copy {
  max-width: 20rem;
  margin: 0.5rem auto 0;
  font-size: var(--ht-type-meta);
  line-height: 1.6;
  color: #6b7280;
}

.list-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0.625rem 1rem;
  font-size: var(--ht-type-meta);
  font-weight: 600;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  text-decoration: none;
  transition: color .12s, border-color .12s, background .12s;
}

.list-empty-action:hover {
  color: var(--brand-600, #ff5722);
  border-color: var(--brand-600, #ff5722);
  background: var(--brand-50, #fef3ee);
}

.list-load-more-status {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: var(--ht-type-meta);
  line-height: 1.5;
  text-align: center;
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: .35rem .875rem;
  font-size: var(--ht-type-meta);
  font-weight: 500;
  color: #6b7280;
  background: #f9fafb;
  border: 1.5px solid transparent;
  border-radius: 99px;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
}

.cat-tag:hover {
  color: var(--brand-600);
  background: var(--brand-50);
}

.cat-tag.active,
.cat-tag[aria-current="page"],
.cat-tag[aria-selected="true"] {
  color: var(--state-active-text);
  background: var(--state-active-bg);
  border-color: var(--state-active-border);
  font-weight: var(--state-active-weight);
}

.fb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: .375rem .875rem;
  min-height: 2.75rem;
  font-size: var(--ht-text-base);
  font-weight: 500;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .18s;
  user-select: none;
}

.fb:hover {
  background: #e5e7eb;
  color: #111827;
}

.fb.active,
.fb[aria-pressed="true"] {
  color: var(--state-active-text);
  background: var(--state-active-bg);
  border-color: transparent;
  font-weight: var(--state-active-weight);
}

.fp {
  display: none;
  position: fixed;
  background: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.06);
  padding: 14px;
  z-index: 9999;
  min-width: 200px;
}

.fp.open {
  display: block;
}

.fg {
  position: relative;
  flex-shrink: 0;
}

.sopt {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-size: var(--ht-text-base);
  text-align: left;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
  appearance: none;
}

.sopt:hover {
  background: #f3f4f6;
  color: #111827;
}

.sopt.active,
.sopt[aria-selected="true"] {
  color: var(--state-active-text);
  font-weight: var(--state-active-weight);
}

.crow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  cursor: pointer;
  font-size: var(--ht-type-meta);
  color: #6b7280;
  border-radius: 6px;
  user-select: none;
  white-space: nowrap;
}

.crow:hover {
  background: #f9fafb;
}

.crow input {
  align-self: center;
  margin: 0;
  transform: translateY(1px);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--state-active-text);
}

.ptab.active,
.ptab[aria-selected="true"] {
  color: var(--state-active-text);
  background: #fff;
  font-weight: var(--state-active-weight);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.fin {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: var(--ht-type-meta);
  outline: none;
  font-family: inherit;
  transition: border-color .15s;
}

.fin::placeholder {
  color: #9ca3af;
}

.stitle {
  font-size: var(--ht-type-meta);
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

#btn-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: var(--ht-type-meta);
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: color .12s, background .12s, border-color .12s;
}

#fp-sort {
  min-width: 10rem;
  padding: 0.375rem 0;
  right: 0;
  left: auto;
  border-radius: 0.625rem;
  box-shadow: 0 0.75rem 2.25rem rgba(0,0,0,.13);
}

#fp-sort .sopt {
  padding: 0.625rem 1.125rem;
  border-radius: 0;
  font-size: var(--ht-text-base);
  font-weight: 500;
}

#fp-sort .sopt.active {
  color: var(--state-active-text);
  font-weight: 600;
  background: none;
}

#btn-sort:hover,
#btn-sort.active,
#btn-sort[aria-expanded="true"] {
  color: var(--state-active-text);
  background: var(--state-active-bg);
  border-color: var(--state-active-border);
}

#fp-sort .sopt:hover {
  color: var(--state-active-text);
  background: var(--state-active-bg);
}

#fp-sort .sopt[aria-selected="true"] {
  color: var(--state-active-text);
}

.card-tag {
  font-size: var(--ht-type-meta);
}

.card-feat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: var(--ht-type-meta);
  font-weight: 600;
  color: #fff;
  letter-spacing: .03em;
  padding: 3px 10px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
}

.card-feat-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: feat-shine 4s ease-in-out infinite;
}

@keyframes feat-shine {
  0%, 55% {
    transform: translateX(-120%);
  }

  75%, 100% {
    transform: translateX(120%);
  }
}

.list-filter-col {
  width: 15rem;
  flex-shrink: 0;
  position: sticky;
  top: 6rem;
  align-self: flex-start;
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  scrollbar-width: none;
}

.list-filter-col::-webkit-scrollbar {
  display: none;
}

.list-filter-bar {
  position: sticky;
  top: 4rem;
  z-index: 470;
  overflow: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.75rem 1rem;
  margin: 0 -1rem 1rem;
}

.list-filter-bar::before,
.list-filter-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.list-filter-bar::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--page-brand-color, var(--brand-600, #ff5722)) 7%, transparent) 0%, color-mix(in srgb, var(--page-brand-color, var(--brand-600, #ff5722)) 3%, transparent) 68%, transparent 100%);
  opacity: 1;
}

.list-filter-bar--has-bg::before {
  background-image: var(--list-filter-bg);
  background-size: cover;
  background-position: center;
  filter: blur(4rem);
  opacity: 0.8;
  transform: scale(1.12);
}

.list-filter-bar::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.8) 72%, rgba(255,255,255,0.96) 100%);
}

.list-filter-bar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.list-filter-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

#btn-area {
  flex-shrink: 1;
  min-width: 0;
}

.btn-area-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-filter-bar .fb {
  min-width: 0;
}

.list-filter-bar .filter-btn-text {
  display: inline-block;
  max-width: 5em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.mobile-filter-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 40rem) {
  .list-filter-bar {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .list-filter-bar {
    margin-left: -2rem;
    margin-right: -2rem;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 80rem) {
  body.page-list .listing-shell {
    padding-top: 2rem;
  }

  body.page-list .proj-breadcrumb,
  body.page-list .proj-breadcrumb > a {
    min-height: 0;
  }
}

@media (min-width: 80rem) {
  .list-filter-bar {
    display: none;
  }
}

@media (max-width: 79.9375rem) {
  body.page-list .list-filter-bar .mobile-topbar-btn:not(.active):not([aria-expanded="true"]) {
    color: #374151;
  }

  body.page-list #site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
  }

  body.page-list {
    padding-top: var(--mob-header-h, 4rem);
  }

  body.page-list .list-page-shell {
    padding-top: 0;
  }

  body.page-list .list-filter-bar {
    position: relative;
    top: auto;
    transition: top 0.25s ease, padding 0.25s ease;
  }

  body.page-list .list-filter-bar.is-floating {
    position: fixed;
    top: var(--mob-header-h, 4rem);
    left: 0;
    right: 0;
    z-index: 470;
    margin: 0;
    will-change: transform, opacity;
    animation: list-filter-float-in 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  body.page-list .list-filter-bar-placeholder {
    display: block;
    width: 100%;
    height: 0;
  }

  body.page-list.mob-header-hidden .list-filter-bar.is-floating {
    top: 0;
  }
}

@media (min-width: 64rem) and (max-width: 79.9375rem) {
  body.page-list {
    padding-top: 5rem;
  }

  body.page-list .list-filter-bar.is-floating {
    top: 5rem;
    padding: 1rem 2rem;
  }
}

@media (max-width: 51.25rem) {
  body.page-list .list-filter-bar,
  body.page-list .list-filter-bar.is-floating {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 45rem) and (max-width: 63.9375rem) {
  body.page-list .list-filter-bar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  body.page-list .list-filter-bar.is-floating {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@keyframes list-filter-float-in {
  from {
    opacity: 0;
    transform: translate3d(0, -0.5rem, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-list .list-filter-bar.is-floating {
    animation: none;
  }
}

.no-scrollbar {
  scrollbar-width: none;
}

.filter-badge {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  color: var(--brand-600);
}

.list-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.list-h1 {
  margin: 0;
  font-size: var(--ht-type-section-title);
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.list-total {
  font-weight: 500;
  font-size: var(--ht-text-base);
  line-height: 1.4;
  color: #6b7280;
  white-space: nowrap;
}

@media (min-width: 64rem) {
  .list-h1 {
    font-size: var(--ht-text-2xl);
    line-height: 1.28;
  }

  .list-total {
    font-size: var(--ht-text-base-plus);
  }
}

.list-breadcrumb {
  font-size: var(--ht-type-meta);
  color: #9ca3af;
}

@media (max-width: 79.9375rem) {
  body.page-list .list-breadcrumb,
  body.page-list .proj-breadcrumb {
    display: none;
  }
}

.dist-market-cell {
  display: flex;
  flex-direction: column;
  transition: border-color .15s;
}

.dist-market-grid {
  grid-auto-rows: 1fr;
}

.dist-market-cell-price,
.market-value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  line-height: 1.3;
}

.market-meta-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.market-price-main {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
}

.market-price-fallback {
  font-size: var(--ht-text-base);
  line-height: 1.3;
  color: #6b7280;
}

.market-empty-price-mark {
  font-size: var(--ht-type-market-value);
  font-weight: 700;
  line-height: 1.3;
  color: #6b7280;
}

.market-change-tag {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: fit-content;
  min-height: 1.5rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  font-size: var(--ht-text-2xs-plus);
  font-weight: 600;
  line-height: 1.2;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.72);
}

.market-change-tag--flat {
  color: #6b7280;
  background: rgba(255, 255, 255, 0.72);
}

.market-change-tag--none {
  color: #6b7280;
  background: rgba(255, 255, 255, 0.72);
}

.market-change-tag--up {
  color: #b45309;
  background: rgba(254, 243, 199, 0.8);
}

.market-change-tag--down {
  color: #047857;
  background: rgba(209, 250, 229, 0.8);
}

.market-change-tag--mobile {
  display: none;
}

.market-change-tag--desktop {
  display: inline-flex;
}

#btn-area.active,
#btn-area[aria-expanded="true"] {
  color: var(--state-active-text);
  background: var(--state-active-bg);
  border-color: var(--state-active-border);
  font-weight: var(--state-active-weight);
}

.mobile-topbar-btn.active,
.mobile-topbar-btn[aria-expanded="true"] {
  color: var(--state-active-text);
  background: var(--state-active-bg);
  border-color: var(--state-active-border);
}

.dist-market-cell:hover {
  border-color: var(--brand-600);
}

@media (max-width: 39.9375rem) {
  .dist-market-cell-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.375rem;
  }

  .dist-market-cell-name > span:first-child {
    min-width: 0;
  }

  .dist-market-cell {
    padding: 0.875rem;
  }

  .dist-market-cell-price {
    gap: 0.25rem 0.375rem;
  }

  .dist-market-num,
  .market-empty-price-mark {
    font-size: var(--ht-text-market-mobile);
  }

  .dist-market-unit {
    font-size: var(--ht-text-xs);
  }

  .market-change-tag {
    min-height: 1.375rem;
    padding: 0.1875rem 0.4375rem;
    font-size: var(--ht-text-2xs);
  }

  .market-change-tag--mobile {
    display: inline-flex;
  }

  .market-change-tag--desktop,
  .dist-market-cell-price .market-meta-line {
    display: none;
  }
}
