:root {
  --navy: #061d3b;
  --teal: #008d8d;
  --green: #16b827;
  --bg: #f7f9fb;
  --panel: #fff;
  --muted: #66758c;
  --line: #e4e9ef;
  --shadow: 0 8px 24px rgba(9, 35, 65, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}
button, input, select { font: inherit; }
button { font-weight: 600; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: Sora, Inter, sans-serif; }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  display: flex;
  height: 84px;
  align-items: center;
  gap: 50px;
  padding: 0 max(4vw, 32px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand { flex: 0 0 310px; }
.brand img {
  display: block;
  width: 285px;
  max-height: 70px;
}
.main-nav {
  display: flex;
  flex: 1;
  align-self: stretch;
  align-items: center;
  gap: 42px;
}
.main-nav a {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a.active { color: var(--teal); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  height: 3px;
  border-radius: 4px;
  background: var(--teal);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.export-action {
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1.5px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  cursor: pointer;
}
.export-action:disabled { opacity: .5; }
.export-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.account-action {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}

.menu-toggle { display: none; }

/* Hero search */
.page {
  max-width: 1600px;
  margin: auto;
  padding: 20px max(3.5vw, 26px) 40px;
}
.hero {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding: 28px 40px 24px;
  border-radius: 20px;
  background: linear-gradient(112deg, #06264a 0%, #003b59 54%, #005d66 100%);
  box-shadow: var(--shadow);
  color: #fff;
}
.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.hero-radar {
  position: absolute;
  top: -200px;
  right: -30px;
  width: 480px;
  height: 480px;
  opacity: .27;
}
.hero-copy,
.hero-fields {
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  font-size: 25px;
  line-height: 1.25;
}
.hero-copy p {
  margin-top: 8px;
  color: #c4d8e6;
  font-size: 16px;
}
.hero-fields {
  display: grid;
  grid-template-columns: 118px minmax(320px, 1.8fr) minmax(250px, .95fr) minmax(230px, .8fr) 210px;
  gap: 12px;
  margin-top: 18px;
}
.hero-fields label,
.hero-category {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 66px;
  border: 1px solid #d9e1e9;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
}
.hero-fields .field-invalid {
  border-color: #c94b53;
  background: #fff8f8;
  box-shadow: 0 0 0 3px #c94b5333;
}
.icon-field > img {
  position: absolute;
  top: 32px;
  left: 18px;
  z-index: 2;
  width: 19px;
  height: 19px;
  object-fit: contain;
}
.hero-location img { display: none; }
.hero-fields label > span:not(.sr-only),
.hero-category > span {
  position: absolute;
  top: 10px;
  left: 18px;
  z-index: 1;
  color: #718096;
  font-size: 13px;
}
.hero-city > span,
.hero-radius > span { left: 64px; }
.hero-category span { left: 19px; }
.hero-fields input,
.hero-fields select {
  width: 100%;
  height: 64px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  outline: none;
  padding: 26px 16px 8px 64px;
  font-weight: 600;
}
.hero-city input {
  font-size: 17px;
  font-weight: 600;
}
.hero-city input:disabled {
  color: #7f8da0;
  cursor: not-allowed;
}
.hero-city input:disabled::placeholder {
  color: #7f8da0;
  opacity: 1;
}

.state-toggle,
.category-toggle {
  display: flex;
  width: 100%;
  height: 64px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.state-toggle {
  justify-content: center;
  padding: 26px 34px 8px 16px;
  text-align: center;
}
.category-toggle {
  justify-content: space-between;
  padding: 26px 18px 8px 16px;
  text-align: left;
}
.state-toggle span,
.category-toggle span {
  min-width: 0;
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.state-toggle span { font-size: 16px; }
#state-toggle #state-value {
  position: relative;
  left: -18px;
}
#category-toggle #category-value {
  position: static;
}
.state-toggle svg,
.category-toggle svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.state-toggle svg {
  position: absolute;
  top: 32px;
  right: 10px;
}
.state-options,
.city-options,
.category-menu {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 75;
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.state-options { display: none; }
.state-options.open { display: block; }
.city-options { z-index: 70; max-height: 260px; }
.city-options:empty { display: none; }
.category-menu {
  z-index: 80;
  display: none;
  gap: 4px;
  padding: 10px;
}
.category-menu.open { display: grid; }
.category-menu[hidden] { display: none; }
.state-option,
.city-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.state-option:hover,
.state-option.selected,
.city-option:hover { background: #eef8f8; }
.hero-radius output {
  position: absolute;
  top: 32px;
  left: 43px;
  font-weight: 600;
}
.hero-radius input {
  position: absolute;
  top: 26px;
  right: 16px;
  width: min(42%, 132px);
  padding: 0;
  height: 28px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.hero-radius input::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--teal) 0%,
    var(--teal) var(--radius-progress, 4%),
    #dce4ec var(--radius-progress, 4%),
    #dce4ec 100%
  );
}
.hero-radius input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), 0 2px 5px rgba(10, 32, 55, .2);
}
.hero-radius input::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 3px;
  background: #dce4ec;
}
.hero-radius input::-moz-range-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--teal);
}
.hero-radius input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), 0 2px 5px rgba(10, 32, 55, .2);
}
.hero-radius input:focus-visible {
  outline: 2px solid rgba(0, 145, 150, .35);
  outline-offset: 3px;
}
.hero-radius input:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.hero-radius input:disabled::-webkit-slider-thumb {
  background: #8493a5;
  box-shadow: 0 0 0 1px #8493a5;
}
.hero-radius input:disabled::-moz-range-thumb {
  background: #8493a5;
  box-shadow: 0 0 0 1px #8493a5;
}
.primary-action {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1fc423, #0fac22);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
.primary-action:hover { filter: brightness(.96); }
.primary-action:disabled { opacity: .65; }
.primary-action img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Summary cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}
.summary-cards[hidden] { display: none; }
.summary-card {
  display: flex;
  min-width: 0;
  min-height: 94px;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--navy);
  font-family: Inter, Arial, sans-serif;
  text-align: left;
}
.summary-card:is(button) {
  cursor: pointer;
  transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s;
}
.summary-card:is(button):hover {
  border-color: #b9dede;
  transform: translateY(-1px);
}
.summary-card:is(button):focus-visible {
  outline: 3px solid rgba(0, 141, 141, .2);
  outline-offset: 2px;
}
.summary-card.selected {
  border-color: #5ebaba;
  background: #edfafa;
  box-shadow: 0 8px 24px rgba(0, 141, 141, .13), inset 0 0 0 1px rgba(0, 141, 141, .16);
}
.summary-card > img {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.summary-card > span {
  display: grid;
  min-width: 0;
}
.summary-card strong {
  font-family: Sora, Inter, sans-serif;
  font-size: 21px;
  line-height: 1.05;
}
.summary-card b {
  margin-top: 4px;
  font-size: 14px;
  white-space: nowrap;
}
.summary-card small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.summary-vehicles strong { color: #e23310; }
.summary-properties strong { color: #9255cf; }
.summary-computers strong { color: #f28a00; }
.summary-white strong { color: #0b7de7; }
.summary-scrap strong { color: #a85b2a; }
.summary-others strong { color: var(--teal); }

/* Layout, filters and results */
.content-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.workspace {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.filters {
  align-self: start;
  display: grid;
  gap: 16px;
}
.filter-section {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.filter-section h2,
.filter-section legend {
  position: relative;
  top: 18px;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: var(--navy);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.filter-section h2 img,
.filter-section legend img {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.site-summary,
.site-empty {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.site-search-label input {
  width: 100%;
  min-height: 44px;
  margin: 14px 0 12px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.site-list {
  display: grid;
  max-height: 250px;
  margin-top: 8px;
  gap: 4px;
  overflow: auto;
  padding-right: 4px;
}
#site-list .check-row {
  margin-bottom: 0;
}
.price-filter-section[disabled] {
  opacity: .55;
}
.price-filter-section {
  padding-bottom: 16px;
}
.price-filter-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.price-filter-inputs label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 46px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.money-input:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(0, 145, 150, .12);
}
.money-input small {
  padding-left: 11px;
  color: #6d7d91;
  font-size: 13px;
  font-weight: 700;
}
.money-input input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 9px 0 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.price-filter-reset {
  min-height: 36px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.price-filter-reset:disabled {
  color: var(--muted);
  cursor: default;
}
.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  color: #33445e;
  font-weight: 500;
}
.check-row input[type="checkbox"] {
  appearance: none;
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  inline-size: 20px;
  block-size: 20px;
  min-width: 20px;
  min-height: 20px;
  min-inline-size: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #cad3de;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  place-items: center;
}
.check-row input[type="checkbox"]:checked {
  border-color: var(--teal);
  background: var(--teal);
}
.check-row input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.check-row input[type="checkbox"]:disabled { opacity: .85; }
.category-menu .check-row {
  display: flex;
  grid-template-columns: none;
  min-height: 42px;
  align-items: center;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}
.hero-fields .category-menu input[type="checkbox"] {
  position: static;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 0;
}
.category-menu .check-row:hover { background: transparent; }

.workspace {
  min-width: 0;
  padding: 14px;
}
.filters-open,
.filters-mobile-header { display: none; }
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px 12px;
}
.results-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.eyebrow {
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.results-heading h2 {
  margin-top: 3px;
  font-size: 20px;
}
.page-size-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.page-size-label > select,
.sort-select-label > select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.sort-select-label {
  position: relative;
  display: inline-flex;
  min-width: 160px;
}
.results-select-toggle {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 600;
  outline: none;
  box-shadow: 0 6px 18px rgba(9, 35, 65, .04);
}
.page-size-label .results-select-toggle {
  min-width: 100px;
}
.sort-select-label .results-select-toggle {
  min-width: 200px;
}
.results-select-toggle svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #65758c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.results-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  overflow: auto;
  max-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.results-select-options.open {
  display: block;
}
.results-select-option {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}
.results-select-option:hover,
.results-select-option.selected {
  background: #eef8f8;
}
.notice {
  padding: 10px 14px;
  border-radius: 8px;
  background: #f4f8fa;
  color: var(--muted);
  font-size: 12px;
}
.results-toolbar {
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
}
.results-search-wrap {
  display: block;
  margin: 0 0 12px;
}
.results-search-wrap[hidden] { display: none; }
.results-search-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  outline: none;
}
.results-search-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 141, 141, .13);
}
.status-band { padding: 0; }
.status-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
  padding: 1px 0 6px;
}
.status {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #4c5d73;
  font-size: 13px;
  font-weight: 600;
}
.status-button {
  cursor: pointer;
}
.status-button:hover,
.status-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.status span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f2f5f8;
  color: #8a96a8;
  font-size: 11px;
}
.status.active span {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.status-all {
  background: var(--teal);
  color: #fff;
}
.status-more {
  border-color: transparent;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.status-more:hover {
  color: var(--teal);
}
.status.erro,
.status.bloqueado { color: #a33a3a; }
.status.nao_suportado { color: #9a620d; }

/* Result cards */
.results-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.lot-card {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  align-items: center;
  min-height: 136px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.lot-card:last-child { border-bottom: 0; }
.lot-media {
  min-width: 0;
}
.result-link {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.result-link:hover { color: var(--teal); }
.lot-thumb-button,
.no-photo {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 13 / 8;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6f8;
}
.lot-thumb-button { cursor: zoom-in; }
.lot-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.no-photo {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.lot-category {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}
.lot-category-veiculos { background: #ffe4dd; color: #e23310; }
.lot-category-imoveis { background: #f0ddff; color: #9255cf; }
.lot-category-informatica { background: #fff0d8; color: #e27a00; }
.lot-category-linha_branca { background: #e0efff; color: #0b7de7; }
.lot-category-sucata { background: #f6e7dc; color: #9b4f23; }
.lot-category-outros { background: #e0f7f7; color: var(--teal); }
.lot-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  color: #5e6e86;
  font-size: 13px;
  font-weight: 600;
  flex-wrap: wrap;
}
.lot-main .lot-meta {
  row-gap: 14px;
  transform: translateX(0) translateY(-8px);
}
.lot-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lot-meta-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #8290a4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.lot-values {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.15fr) minmax(0, .65fr);
  min-height: 92px;
  align-items: center;
  padding: 20px 12px;
  border-radius: 9px;
  background: #f7f9fb;
}
.lot-values div {
  min-width: 0;
  padding: 0 12px;
  border-right: 1px solid #dfe6ee;
}
.lot-values div:last-child {
  border-right: 0;
}
.lot-values small {
  display: block;
  margin-bottom: 8px;
  color: #8491a5;
  font-size: 13px !important;
  font-weight: 700;
}
.lot-values strong {
  display: block;
  color: var(--navy);
  font-size: clamp(12px, 1.25vw, 17px) !important;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
#results-body .lot-card {
  margin-bottom: -6px;
}
.empty-row {
  padding: 50px;
  color: var(--muted);
  text-align: center;
}
.result-controls {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #34445c;
  font-size: 12px;
  font-weight: 600;
}
.secondary-action {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.secondary-action:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Overlays */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: start center;
  padding-top: 100px;
  background: rgba(6, 29, 59, .25);
}
.loading-overlay[hidden],
.photo-modal[hidden],
.future-modal[hidden] { display: none; }
.loading-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #d7e0e7;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(4, 17, 34, .88);
}
.photo-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 9px;
  object-fit: contain;
}
.photo-modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
}
.future-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 17, 34, .58);
  backdrop-filter: blur(3px);
}
.future-modal > section {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 32px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 17, 34, .28);
  text-align: center;
}
.future-modal h2 {
  margin: 14px 0 9px;
  font-size: 22px;
}
.future-modal p {
  color: var(--muted);
  line-height: 1.55;
}
.future-modal button {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 28px;
}
.future-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-family: Sora, Inter, sans-serif;
  font-size: 18px;
}
.future-pages { height: 0; overflow: hidden; }

/* Responsive */
@media (max-width: 1300px) and (min-width: 1151px) {
  .hero-fields {
    grid-template-columns: 112px minmax(270px, 1.5fr) minmax(220px, .9fr) minmax(210px, .75fr) 185px;
  }
  .hero-radius input { width: min(38%, 105px); }
  .category-toggle { padding-right: 30px; }
}

@media (max-width: 1250px) {
  .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1150px) {
  .site-header { gap: 22px; }
  .brand { flex-basis: 210px; }
  .brand img { width: 205px; }
  .main-nav { gap: 20px; }
}

@media (max-width: 1150px) and (min-width: 901px) {
  .hero-fields { grid-template-columns: 120px minmax(0, 1fr); }
  .hero-location,
  .hero-city { grid-row: 1; }
  .hero-category,
  .hero-radius { grid-row: 2; }
  .hero-category { grid-column: 1 / 2; }
  .hero-radius { grid-column: 2; }
  .primary-action {
    grid-column: 1 / -1;
    min-height: 66px;
  }
  .hero-radius input { width: min(55%, 220px); }
}

@media (max-width: 900px) {
  .site-header {
    height: 72px;
    min-height: 72px;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 8px 18px;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand img { width: min(205px, 100%); }
  .header-actions { margin-left: auto; }
  .header-actions .export-action,

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    place-content: center;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: .2s;
  }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    height: auto;
    overflow: visible;
    padding: 10px 18px 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 28px rgba(6, 29, 59, .12);
  }
  .main-nav.open { display: grid; }
  .main-nav a {
    display: flex;
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    border-bottom: 1px solid #f0f3f6;
  }
  .main-nav a.active::after { display: none; }

  .page { padding: 14px; }
  .hero { padding: 24px 18px; }
  .hero-copy h1 { font-size: 21px; }
  .hero-fields { grid-template-columns: 120px minmax(0, 1fr); }
  .hero-location,
  .hero-city { grid-row: 1; }
  .hero-category,
  .hero-radius { grid-row: 2; }
  .hero-category { grid-column: 1; }
  .hero-radius { grid-column: 2; }
  .primary-action {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .category-menu {
    right: auto;
    width: min(320px, calc(100vw - 44px));
  }
  .content-grid { grid-template-columns: 1fr; }
  .filters-open {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 16px;
    border: 1px solid var(--teal);
    border-radius: 8px;
    background: #fff;
    color: var(--teal);
    cursor: pointer;
  }
  .filters {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 42;
    display: block;
    width: min(360px, 88vw);
    padding: 0 12px 18px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #f5f7fa;
    box-shadow: 10px 0 35px rgba(6, 29, 59, .2);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .filters.open { transform: translateX(0); }
  .filters-mobile-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    margin: 0 -12px 12px;
  }
  .filters .filter-section {
    margin-bottom: 12px;
    border-radius: 12px;
  }
  .filters-mobile-header h2 { font-size: 18px; }
  .filters-mobile-header button {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    font-size: 28px;
  }
  .filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 41;
    background: rgba(4, 17, 34, .5);
  }
  .filters-backdrop[hidden] { display: none; }
  .workspace { padding: 10px; }
  .site-list { max-height: 300px; }
  .lot-card {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
  }
  .lot-values {
    grid-column: 1 / -1;
  }
  .lot-thumb-button,
  .no-photo { height: 100%; }
  .results-heading { align-items: flex-start; }
}

@media (max-width: 700px) {
  .summary-cards {
    grid-template-columns: repeat(6, 210px);
    gap: 10px;
    margin-right: -14px;
    margin-left: -14px;
    overflow-x: auto;
    padding: 2px 14px 10px;
    scroll-snap-type: x proximity;
  }
  .summary-card { scroll-snap-align: start; }
}

@media (max-width: 560px) {
  .brand img { width: 180px; }
  .hero-radar {
    right: -180px;
    width: 360px;
  }
  .hero-fields { grid-template-columns: 1fr; }
  .hero-location,
  .hero-city,
  .hero-category,
  .hero-radius,
  .primary-action {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .category-menu {
    right: 0;
    left: 0;
    width: auto;
  }
  .hero-radius { height: 52px; }
  .hero-radius input { width: min(58%, 210px); }
  .results-heading { flex-direction: column; }
  .results-actions {
    width: 100%;
    justify-content: space-between;
  }
  .sort-select-label {
    flex: 1 1 160px;
  }
  .page-size-label { align-self: flex-end; }
  .lot-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  .lot-values {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lot-values div {
    padding: 0;
    border-right: 0;
  }
  .pagination-controls { gap: 8px; }
}

/* Final small type adjustments */
.pagination-controls #pagination-summary{
	font-size: 14px;
}

/* Button */
.pagination-controls .secondary-action{
	font-size: 16px;
}

/* Heading */
.results-heading #result-title{
	font-size: 18px;
}

/* Paragraph */
.results-heading .eyebrow{
	font-size: 13px;
}

/* Account navigation, favorites and shared footer */
.account-action{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;text-decoration:none;overflow:hidden;font-weight:700}.account-action img{display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;object-fit:cover;object-position:center;border-radius:inherit}
.site-footer{width:100%;padding:26px 22px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;text-align:center;line-height:1.7;margin-top:auto}
body{min-height:100vh;display:flex;flex-direction:column}.page{flex:1}
.favorite-toggle{align-self:flex-start;display:inline-flex;align-items:center;padding:8px 12px;margin-top:12px;border:1px solid #d7e8e7;border-radius:8px;background:white;color:var(--teal);font-size:12px;cursor:pointer}.favorite-toggle[aria-pressed=true]{background:#e6f5f0;border-color:var(--teal)}.favorite-toggle:disabled{opacity:.55;cursor:wait}
.account-feedback{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:14px 20px;border:1px solid #d7e8e7;border-radius:10px;background:#fff;color:var(--navy);box-shadow:var(--shadow);font-size:13px;z-index:100;max-width:calc(100vw - 32px);width:max-content}
[hidden]{display:none!important}

.profile-dropdown{position:relative;flex-shrink:0}
.profile-menu{position:absolute;right:0;top:calc(100% + 12px);width:280px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #e4e9ef;border-radius:16px;box-shadow:0 10px 30px rgba(9,35,65,.12);overflow:hidden;z-index:40;color:#374151;text-align:left}
.profile-menu-actions{padding:6px 0}
.profile-menu-actions a,.profile-menu-actions button{display:flex;align-items:center;gap:15px;width:100%;padding:13px 20px;border:0;background:#fff;color:#475467;text-decoration:none;font-size:15px;font-weight:400;line-height:1.5;cursor:pointer;text-align:left}
.profile-menu-actions a:hover,.profile-menu-actions button:hover{background:#f7f9fb}
.profile-menu-actions svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:#98a2b3;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profile-menu-actions .profile-menu-logout,.profile-menu-logout svg{color:#ff2424;stroke:currentColor}
.profile-menu-logout:disabled{opacity:.5;cursor:wait}
.profile-menu-actions a:focus-visible,.profile-menu-actions button:focus-visible{outline:2px solid var(--teal);outline-offset:-4px}
