/* Newhouse / soldout-house table pages: shared table styles on top of existing V8 list/card styles. */
.newhouse-mobile-area #btn-area-select,
.soldout-house-mobile-area #btn-area-select {
  flex-shrink: 1;
  min-width: 0;
}

body.page-newhouse-table #desktop-sidebar .sb-link,
body.page-soldout-house-table #desktop-sidebar .sb-link {
  justify-content: space-between;
}

body.page-newhouse-table #desktop-sidebar .sb-link-count,
body.page-soldout-house-table #desktop-sidebar .sb-link-count {
  flex: 0 0 auto;
  margin-left: 0.75rem;
  color: #9ca3af;
  font-size: var(--ht-text-2xs-plus);
  font-weight: 500;
  line-height: 1.2;
}

body.page-newhouse-table #desktop-sidebar .sb-link.active .sb-link-count,
body.page-soldout-house-table #desktop-sidebar .sb-link.active .sb-link-count {
  color: var(--brand-600, #ff5722);
}

body.page-newhouse-table #desktop-sidebar .newhouse-city-panel .sb-link-sub,
body.page-soldout-house-table #desktop-sidebar .newhouse-city-panel .sb-link-sub {
  justify-content: space-between;
  gap: 0.75rem;
}

body.page-newhouse-table #desktop-sidebar .newhouse-city-panel.is-open,
body.page-soldout-house-table #desktop-sidebar .newhouse-city-panel.is-open {
  max-height: none;
}

.newhouse-results-toolbar,
.soldout-house-results-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.newhouse-print-summary,
.soldout-house-print-summary {
  display: none;
}

.newhouse-print-btn,
.soldout-house-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  padding: 0 1rem;
  color: #374151;
  font-size: var(--ht-text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}

.newhouse-print-btn:hover,
.soldout-house-print-btn:hover {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-600);
}

.newhouse-print-btn:disabled,
.soldout-house-print-btn:disabled,
.newhouse-print-btn.is-disabled,
.soldout-house-print-btn.is-disabled {
  cursor: not-allowed;
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #d1d5db;
}

.newhouse-print-btn.is-disabled:hover,
.soldout-house-print-btn.is-disabled:hover {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #d1d5db;
}

.newhouse-member-limit-reveal {
  position: relative;
}

.newhouse-member-limit-reveal::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 13rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .78) 38%, rgba(255, 255, 255, .96) 66%, #fff 100%);
}

.newhouse-member-limit-notice {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 0.75rem;
  left: 1rem;
  width: fit-content;
  max-width: min(28rem, calc(100% - 2rem));
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: #374151;
  transition: filter .18s;
}

.newhouse-member-limit-notice.is-highlighted {
  filter: drop-shadow(0 0 0.875rem rgba(255, 80, 35, .18));
}

.newhouse-member-limit-notice p {
  margin: 1rem;
  font-size: var(--ht-text-sm);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.newhouse-member-limit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.newhouse-member-limit-actions .mem-btn-login,
.newhouse-member-limit-actions .mem-btn-register {
  flex: 0 0 auto;
  min-width: 5.5rem;
  padding-right: 0.875rem;
  padding-left: 0.875rem;
}

.newhouse-table-wrap,
.soldout-house-table-wrap {
  display: none;
}

.newhouse-table,
.soldout-house-table {
  width: 100%;
  min-width: 68rem;
  border-collapse: collapse;
  font-size: var(--ht-text-sm);
}

.newhouse-table th,
.newhouse-table td,
.soldout-house-table th,
.soldout-house-table td {
  border-bottom: 1px solid #f3f4f6;
  padding: 0.875rem;
  text-align: left;
  vertical-align: top;
}

.newhouse-table thead th,
.soldout-house-table thead th {
  background: #f9fafb;
  color: #9ca3af;
  font-size: var(--ht-type-meta);
  font-weight: 600;
  white-space: nowrap;
}

.newhouse-table tbody th,
.newhouse-table tbody td,
.soldout-house-table tbody th,
.soldout-house-table tbody td {
  color: #374151;
  line-height: 1.55;
}

.newhouse-table th:nth-child(4),
.newhouse-table td:nth-child(4),
.newhouse-table th:nth-child(6),
.newhouse-table td:nth-child(6),
.soldout-house-table th:nth-child(4),
.soldout-house-table td:nth-child(4),
.soldout-house-table th:nth-child(6),
.soldout-house-table td:nth-child(6) {
  min-width: 5rem;
  white-space: nowrap;
}

.newhouse-table tbody tr:hover,
.soldout-house-table tbody tr:hover {
  background: color-mix(in srgb, var(--brand-600, #ff5722) 7%, transparent);
}

.newhouse-table tbody tr:last-child th,
.newhouse-table tbody tr:last-child td,
.soldout-house-table tbody tr:last-child th,
.soldout-house-table tbody tr:last-child td {
  border-bottom: 0;
}

.newhouse-project-link,
.newhouse-project-name,
.newhouse-mobile-card-head a,
.newhouse-mobile-card-head span,
.soldout-house-project-link,
.soldout-house-project-name,
.soldout-house-mobile-card-head a,
.soldout-house-mobile-card-head span {
  color: #111827;
  transition: color .15s;
}

.newhouse-project-link:hover,
.newhouse-mobile-card-head a:hover,
.soldout-house-project-link:hover,
.soldout-house-mobile-card-head a:hover {
  color: var(--brand-600);
}

.newhouse-empty-cell,
.newhouse-mobile-empty,
.soldout-house-empty-cell,
.soldout-house-mobile-empty {
  padding: 3rem 1rem;
  color: #6b7280;
  text-align: center;
}

.newhouse-mobile-cards,
.soldout-house-mobile-cards {
  display: grid;
  gap: 0.875rem;
}

.newhouse-mobile-card,
.soldout-house-mobile-card {
  padding: 1rem 1rem 0.875rem;
  transition: border-color .15s, box-shadow .15s;
}

.newhouse-mobile-card:hover,
.soldout-house-mobile-card:hover {
  border-color: #e5e7eb;
  box-shadow: 0 0.625rem 1.625rem rgba(15, 23, 42, .07);
}

.newhouse-mobile-card-head,
.soldout-house-mobile-card-head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.newhouse-mobile-card-head p,
.soldout-house-mobile-card-head p {
  margin: 0;
  color: #9ca3af;
  font-size: var(--ht-text-sm);
}

.newhouse-mobile-data,
.soldout-house-mobile-data {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.newhouse-mobile-data div,
.soldout-house-mobile-data div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  border-top: 1px solid #f3f4f6;
  padding: 0.5rem 0;
}

.newhouse-mobile-data dt,
.soldout-house-mobile-data dt {
  color: #6b7280;
  font-size: var(--ht-text-sm);
}

.newhouse-mobile-data dd,
.soldout-house-mobile-data dd {
  margin: 0;
  color: #374151;
  font-size: var(--ht-text-sm);
  line-height: 1.55;
}

.newhouse-pagination,
.soldout-house-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.newhouse-page-link,
.newhouse-page-current,
.soldout-house-page-link,
.soldout-house-page-current {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1rem;
  font-size: var(--ht-text-sm);
}

.newhouse-page-link,
.soldout-house-page-link {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-weight: 600;
  transition: color .15s, border-color .15s, background .15s;
}

.newhouse-page-link:not(.is-disabled):hover,
.soldout-house-page-link:not(.is-disabled):hover {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-600);
}

.newhouse-page-link.is-disabled,
.soldout-house-page-link.is-disabled {
  color: #d1d5db;
}

.newhouse-page-current,
.soldout-house-page-current {
  color: #6b7280;
}

@media (max-width: 63.9375rem) {

  body.page-newhouse-table,
  body.page-soldout-house-table {
    padding-bottom: 0;
  }
}

@media (min-width: 80rem) {

  body.page-newhouse-table .page-footer-full,
  body.page-soldout-house-table .page-footer-full {
    margin-left: 0;
  }

  body.page-newhouse-table .page-footer-full .footer-inner,
  body.page-soldout-house-table .page-footer-full .footer-inner {
    padding-left: 1.5rem;
  }
}

@media (min-width: 40rem) {

  .newhouse-mobile-area,
  .soldout-house-mobile-area {
    margin-right: -1.5rem;
    margin-left: -1.5rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (min-width: 45rem) and (max-width: 63.9375rem) {
  .newhouse-mobile-area,
  .soldout-house-mobile-area {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

}

@media (min-width: 64rem) {

  .newhouse-mobile-area,
  .soldout-house-mobile-area {
    margin-right: -2rem;
    margin-left: -2rem;
    padding-right: 2rem;
    padding-left: 2rem;
  }
}

@media (min-width: 64rem) {
  .newhouse-table-wrap,
  .soldout-house-table-wrap {
    display: block;
  }

  .newhouse-mobile-cards,
  .soldout-house-mobile-cards {
    display: none;
  }
}

@media (min-width: 80rem) {
  .newhouse-page-shell,
  .soldout-house-page-shell {
    padding-top: 2rem;
  }

  body.page-newhouse-table .proj-breadcrumb,
  body.page-newhouse-table .proj-breadcrumb > a,
  body.page-soldout-house-table .proj-breadcrumb,
  body.page-soldout-house-table .proj-breadcrumb > a {
    min-height: 0;
  }

  .newhouse-mobile-area,
  .soldout-house-mobile-area {
    display: none;
  }
}

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

@media (max-width: 47.9375rem) {

  .newhouse-member-limit-reveal {
    padding-bottom: 10rem;
  }

  .newhouse-member-limit-reveal::after {
    height: 22rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .94) 30%, #fff 58%, #fff 100%);
  }

  .newhouse-page-heading,
  .soldout-house-page-heading {
    margin-bottom: 0.75rem;
  }

  .newhouse-pagination,
  .soldout-house-pagination {
    gap: 0.5rem;
  }

  .newhouse-page-link,
  .newhouse-page-current,
  .soldout-house-page-link,
  .soldout-house-page-current {
    padding: 0 0.75rem;
  }

  .newhouse-member-limit-reveal .newhouse-mobile-card:nth-of-type(n+7),
  .newhouse-member-limit-reveal .soldout-house-mobile-card:nth-of-type(n+7) {
    display: none;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    width: auto !important;
    min-width: 0 !important;
    background: #fff !important;
    color: #111827 !important;
  }

  body.page-newhouse-table,
  body.page-soldout-house-table {
    font-size: 9pt;
  }

  body.page-newhouse-table #site-header,
  body.page-newhouse-table #desktop-sidebar,
  body.page-newhouse-table #mobile-overlay,
  body.page-newhouse-table #member-overlay,
  body.page-newhouse-table #bs-overlay,
  body.page-newhouse-table #bs-area,
  body.page-newhouse-table .newhouse-print-hidden,
  body.page-newhouse-table [role="dialog"],
  body.page-newhouse-table [aria-modal="true"],
  body.page-newhouse-table .bs-overlay,
  body.page-newhouse-table .bs-sheet,
  body.page-newhouse-table .modal-overlay,
  body.page-newhouse-table [class*="backdrop"],
  body.page-newhouse-table .page-footer-full,
  body.page-newhouse-table>footer,
  body.page-newhouse-table .newhouse-breadcrumb,
  body.page-newhouse-table .newhouse-page-heading,
  body.page-newhouse-table .newhouse-mobile-area,
  body.page-newhouse-table .newhouse-mobile-cards,
  body.page-newhouse-table .newhouse-pagination,
  body.page-newhouse-table .newhouse-print-btn,
  body.page-newhouse-table .newhouse-member-limit-notice,
  body.page-newhouse-table .newhouse-member-limit-actions,
  body.page-soldout-house-table #bs-overlay,
  body.page-soldout-house-table #bs-area,
  body.page-soldout-house-table [role="dialog"],
  body.page-soldout-house-table [aria-modal="true"],
  body.page-soldout-house-table .bs-overlay,
  body.page-soldout-house-table .bs-sheet,
  body.page-soldout-house-table .modal-overlay,
  body.page-soldout-house-table [class*="backdrop"],
  body.page-soldout-house-table #site-header,
  body.page-soldout-house-table #desktop-sidebar,
  body.page-soldout-house-table #mobile-overlay,
  body.page-soldout-house-table #member-overlay,
  body.page-soldout-house-table .page-footer-full,
  body.page-soldout-house-table .soldout-house-breadcrumb,
  body.page-soldout-house-table .soldout-house-page-heading,
  body.page-soldout-house-table .soldout-house-mobile-area,
  body.page-soldout-house-table .soldout-house-mobile-cards,
  body.page-soldout-house-table .soldout-house-pagination,
  body.page-soldout-house-table .soldout-house-print-btn {
    display: none !important;
  }

  body.page-newhouse-table .newhouse-member-limit-reveal::after {
    display: none !important;
    content: none !important;
  }

  body.page-newhouse-table .newhouse-page-shell,
  body.page-soldout-house-table .soldout-house-page-shell {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.page-newhouse-table .newhouse-results-toolbar,
  body.page-soldout-house-table .soldout-house-results-toolbar {
    display: block !important;
    margin: 0 0 6mm !important;
  }

  body.page-newhouse-table .newhouse-print-summary,
  body.page-soldout-house-table .soldout-house-print-summary {
    display: block !important;
    color: #111827 !important;
  }

  body.page-newhouse-table .newhouse-print-summary h2,
  body.page-soldout-house-table .soldout-house-print-summary h2 {
    margin: 0 0 3mm !important;
    color: #111827 !important;
    font-size: 16pt !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  body.page-newhouse-table .newhouse-print-summary dl,
  body.page-soldout-house-table .soldout-house-print-summary dl {
    display: grid !important;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 2mm 7mm;
    margin: 0 !important;
    color: #374151 !important;
    font-size: 9pt !important;
  }

  body.page-newhouse-table .newhouse-print-summary div,
  body.page-soldout-house-table .soldout-house-print-summary div {
    display: inline-flex !important;
    gap: 1.5mm;
  }

  body.page-newhouse-table .newhouse-print-summary dt,
  body.page-soldout-house-table .soldout-house-print-summary dt {
    color: #6b7280 !important;
    font-weight: 600 !important;
  }

  body.page-newhouse-table .newhouse-print-summary dd,
  body.page-soldout-house-table .soldout-house-print-summary dd {
    margin: 0 !important;
    color: #111827 !important;
  }

  body.page-newhouse-table .newhouse-table-wrap,
  body.page-soldout-house-table .soldout-house-table-wrap {
    display: block !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  body.page-newhouse-table .newhouse-table,
  body.page-soldout-house-table .soldout-house-table {
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
    color: #111827 !important;
    font-size: 8pt !important;
    line-height: 1.35 !important;
  }

  body.page-newhouse-table .newhouse-table thead,
  body.page-soldout-house-table .soldout-house-table thead {
    display: table-header-group;
  }

  body.page-newhouse-table .newhouse-table tr,
  body.page-soldout-house-table .soldout-house-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.page-newhouse-table .newhouse-table th,
  body.page-newhouse-table .newhouse-table td,
  body.page-soldout-house-table .soldout-house-table th,
  body.page-soldout-house-table .soldout-house-table td {
    border: 1px solid #9ca3af !important;
    background: #fff !important;
    padding: 2.2mm 1.8mm !important;
    color: #111827 !important;
    vertical-align: top !important;
  }

  body.page-newhouse-table .newhouse-table th,
  body.page-soldout-house-table .soldout-house-table th {
    font-weight: 700 !important;
  }

  body.page-newhouse-table .newhouse-table a,
  body.page-soldout-house-table .soldout-house-table a {
    color: inherit !important;
    text-decoration: none !important;
  }
}
