:root {
  --page: #f4f6f8;
  --surface: #fff;
  --surface-2: #f8fafb;
  --ink: #17202a;
  --muted: #667382;
  --soft: #919ba6;
  --line: #e1e6eb;
  --line-strong: #d2d9e0;
  --primary: #176b57;
  --primary-hover: #115746;
  --primary-soft: #e8f3ef;
  --accent: #d9f35f;
  --warning: #f1a735;
  --danger: #db5a53;
  --radius: 16px;
  --shadow: 0 10px 32px rgba(22, 35, 49, 0.08);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--page);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--page);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
}
button,
input,
select {
  font: inherit;
}
.app-header {
  height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand b {
  font-weight: 800;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}
.primary-nav {
  display: flex;
  height: 100%;
  gap: 24px;
}
.primary-nav button {
  position: relative;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0 2px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}
.primary-nav button:after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}
.primary-nav button.active {
  color: var(--primary);
}
.primary-nav button.active:after {
  background: var(--primary);
}
.primary-nav span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--primary-soft);
  font-size: 10px;
  margin-left: 4px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.manage {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 650;
  font-size: 12px;
}
.button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.mobile-filter {
  display: none;
}
main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.filters {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
}
.filters-head div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.filters-head strong {
  font-size: 15px;
}
.filters-head span {
  font-size: 11px;
  color: var(--muted);
}
.filters-head button {
  display: none;
  border: 0;
  background: none;
  font-size: 26px;
  color: var(--muted);
}
.field > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 7px;
}
.field input,
.field select {
  appearance: none;
  width: 100%;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
  font-size: 13px;
  transition: 0.18s;
}
.field input:hover,
.field select:hover {
  border-color: var(--line-strong);
}
.field input:focus,
.field select:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 87, 0.1);
}
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 18px,
    calc(100% - 12px) 18px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.search-field input {
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667382' stroke-width='1.7'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='m10.5 10.5 4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
}
.price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.check input {
  position: absolute;
  opacity: 0;
}
.check-ui {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.check input:checked + .check-ui {
  background: var(--primary);
  border-color: var(--primary);
}
.check input:checked + .check-ui:after {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.check > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.check b {
  font-size: 12px;
}
.check small {
  font-size: 10px;
  color: var(--muted);
}
.reset-button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.reset-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.source-note {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.source-note div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.source-note b {
  font-size: 11px;
}
.source-note small {
  font-size: 10px;
  color: var(--muted);
}
.live-dot,
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35a67a;
  box-shadow: 0 0 0 4px #e5f5ee;
  flex: 0 0 auto;
}
.content {
  padding: 34px clamp(20px, 3vw, 46px) 60px;
  min-width: 0;
}
.content-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
  margin: 0 0 7px;
}
.content-head h1 {
  font-size: 30px;
  letter-spacing: -0.04em;
  margin: 0 0 5px;
}
.catalog-status {
  font-size: 12px;
  color: var(--muted);
}
.view-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.view-switch button {
  width: 37px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--soft);
  font-size: 19px;
  cursor: pointer;
}
.view-switch button.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 18px;
}
.active-filters:empty {
  display: none;
}
.active-filters button {
  border: 0;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 7px 10px;
  font-size: 11px;
  cursor: pointer;
}
.active-filters b {
  font-size: 14px;
  margin-left: 4px;
}
.lot-grid {
  display: grid;
  gap: 16px;
}
.view-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.lot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  min-width: 0;
}
.lot:hover,
.lot:focus-visible {
  transform: translateY(-3px);
  border-color: #b9c8c2;
  box-shadow: var(--shadow);
  outline: none;
}
.lot-image {
  height: 176px;
  background: linear-gradient(145deg, #e9eeec, #dce5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.placeholder {
  font-size: 52px;
  color: #9baba4;
}
.source-badge,
.photo-count {
  position: absolute;
  top: 11px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(23, 32, 42, 0.76);
  color: #fff;
  font-size: 9px;
  backdrop-filter: blur(7px);
}
.source-badge {
  left: 11px;
}
.photo-count {
  right: 11px;
}
.lot-body {
  padding: 17px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 7px;
  background: #eef1f3;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
.tag.category {
  background: var(--primary-soft);
  color: var(--primary);
}
.tag.hot {
  background: #fff4dd;
  color: #9a6410;
}
.tag.accepting {
  background: #e5f5ee;
  color: #247a5d;
}
.lot h2 {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  min-height: 63px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.location {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 15px;
}
.location:before {
  content: "⌖";
  color: var(--primary);
  margin-right: 5px;
}
.lot-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.lot-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lot-meta span {
  font-size: 9px;
  color: var(--soft);
  text-transform: uppercase;
  font-weight: 750;
}
.lot-meta strong {
  font-size: 17px;
  white-space: nowrap;
}
.lot-meta div:last-child strong {
  font-size: 12px;
  font-weight: 700;
}
.lot-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #247a5d;
  font-size: 10px;
  font-weight: 700;
}
.lot-footer .score {
  margin-left: auto;
  width: auto;
  height: auto;
  padding: 5px 7px;
  border-radius: 7px;
  background: #eef1f3;
  color: var(--muted);
  font-size: 11px;
}
.lot-footer .score.good {
  background: var(--primary-soft);
  color: var(--primary);
}
.score small {
  font-size: 8px;
}
.view-list {
  grid-template-columns: 1fr;
}
.view-list .lot {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.view-list .lot-image {
  height: 100%;
  min-height: 190px;
}
.view-list .lot-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
  column-gap: 30px;
  align-content: center;
}
.view-list .tags,
.view-list h2,
.view-list .location {
  grid-column: 1;
}
.view-list .lot-meta {
  grid-column: 2;
  grid-row: 1/4;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 10px 0 10px 26px;
  align-self: stretch;
  align-items: center;
}
.view-list .lot-footer {
  grid-column: 1/3;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.view-list h2 {
  min-height: auto;
  font-size: 17px;
  -webkit-line-clamp: 2;
}
.view-compact {
  grid-template-columns: 1fr;
  gap: 8px;
}
.view-compact .lot {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  border-radius: 11px;
}
.view-compact .lot:hover {
  transform: none;
}
.view-compact .lot-image {
  height: 74px;
}
.view-compact .source-badge,
.view-compact .photo-count,
.view-compact .placeholder {
  display: none;
}
.view-compact .lot-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 150px;
  gap: 18px;
  align-items: center;
  padding: 11px 15px;
}
.view-compact .tags,
.view-compact .location {
  display: none;
}
.view-compact h2 {
  font-size: 13px;
  min-height: auto;
  margin: 0;
  -webkit-line-clamp: 2;
}
.view-compact .lot-meta {
  display: contents;
}
.view-compact .lot-meta div {
  padding: 0;
  border: 0;
}
.view-compact .lot-meta div:first-child {
  grid-column: 2;
  grid-row: 1;
}
.view-compact .lot-meta div:last-child {
  grid-column: 3;
  grid-row: 1;
}
.view-compact .lot-meta span {
  font-size: 8px;
}
.view-compact .lot-meta strong {
  font-size: 14px;
}
.view-compact .lot-footer {
  display: none;
}
.skeleton-card {
  height: 350px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-card i {
  height: 176px;
  margin: -16px -16px 4px;
  background: #e9edf0;
}
.skeleton-card span {
  height: 12px;
  border-radius: 6px;
  background: #e9edf0;
}
.skeleton-card span:nth-child(3) {
  width: 80%;
}
.skeleton-card span:nth-child(4) {
  width: 55%;
}
.skeleton-card i,
.skeleton-card span {
  animation: pulse 1.2s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.45;
  }
}
#map-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-head {
  height: 62px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.map-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.map-head b {
  font-size: 14px;
}
.map-head span {
  font-size: 10px;
  color: var(--muted);
}
#map {
  height: calc(100vh - 220px);
  min-height: 520px;
  background: #e9eeeb;
}
.lot-marker {
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 5px 14px #17382d55;
  color: #fff;
  display: grid !important;
  place-items: center;
  font-size: 17px;
}
.leaflet-popup-content-wrapper {
  border-radius: 13px;
  box-shadow: 0 12px 36px #16233133;
}
.map-popup {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.map-popup img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.map-popup > span {
  font-size: 9px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
}
.map-popup > b {
  font-size: 12px;
  line-height: 1.35;
}
.map-popup > strong {
  font-size: 16px;
}
.map-popup button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px;
  cursor: pointer;
}
.leaflet-container {
  font-family: inherit;
}
#empty {
  text-align: center;
  padding: 90px 20px;
  color: var(--muted);
}
.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: auto;
  font-size: 30px;
}
#empty h2 {
  font-size: 19px;
  color: var(--ink);
  margin: 16px 0 5px;
}
#empty p {
  font-size: 12px;
  margin: 0 0 16px;
}
dialog {
  width: min(1120px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 100px #17202a55;
  overflow: auto;
}
dialog::backdrop {
  background: #17202ab8;
  backdrop-filter: blur(5px);
}
.close {
  position: fixed;
  z-index: 5;
  margin: 15px 0 0 min(1065px, calc(100vw - 83px));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ffffff55;
  background: #17202acc;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.gallery {
  background: #17202a;
}
.gallery-main {
  height: 470px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-main > button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #17202acc;
  color: #fff;
  font-size: 29px;
  cursor: pointer;
}
.gallery-prev {
  left: 18px;
}
.gallery-next {
  right: 18px;
}
.gallery-counter {
  position: absolute;
  right: 18px;
  bottom: 16px;
  background: #17202acc;
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
}
.gallery-thumbs {
  height: 82px;
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  overflow: auto;
  background: #111820;
}
.gallery-thumbs button {
  width: 92px;
  flex: 0 0 92px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.6;
}
.gallery-thumbs button.active {
  border-color: var(--accent);
  opacity: 1;
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.empty-cover {
  height: 220px;
  background: linear-gradient(145deg, #e1e9e5, #edf2ef);
  display: grid;
  place-items: center;
  color: #9baba4;
  font-size: 64px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding: 34px;
}
.detail-main > h1 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.035em;
  margin: 10px 0 24px;
}
.detail-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-price-row > div,
.summary-card,
.side-facts,
.detail-section {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.detail-price-row > div {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.detail-price-row span,
.side-facts span,
.asset-facts span {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.detail-price-row strong {
  font-size: 23px;
}
.detail-section {
  margin-top: 18px;
  padding: 20px;
}
.detail-section h3 {
  font-size: 15px;
  margin: 0 0 13px;
}
.detail-section h3 span {
  color: var(--muted);
  font-weight: 500;
}
.description {
  font-size: 13px;
  line-height: 1.65;
  color: #44515e;
  white-space: pre-line;
  margin: 0;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}
.section-title > span {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.section-title small {
  font-size: 8px;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title h3 {
  margin: 2px 0 0;
}
.asset-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.asset-facts div {
  background: var(--surface-2);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.asset-facts b {
  font-size: 12px;
}
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.summary-card {
  padding: 18px;
  background: var(--primary-soft);
  border-color: #cfe3dc;
}
.summary-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.summary-score span {
  font-size: 11px;
  color: var(--primary);
  font-weight: 800;
}
.summary-score strong {
  font-size: 30px;
  color: var(--primary);
}
.summary-score small {
  font-size: 11px;
}
.score-bar {
  height: 6px;
  border-radius: 3px;
  background: #c9ddd6;
  margin: 9px 0 14px;
  overflow: hidden;
}
.score-bar i {
  display: block;
  height: 100%;
  background: var(--primary);
}
.summary-card p {
  font-size: 11px;
  line-height: 1.55;
  color: #41675c;
  margin: 0;
}
.side-facts {
  overflow: hidden;
}
.side-facts div {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.side-facts div:last-child {
  border: 0;
}
.side-facts b {
  font-size: 12px;
  line-height: 1.4;
}
.source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 11px;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 750;
}
.source:hover {
  background: var(--primary-hover);
}
.documents {
  display: flex;
  flex-direction: column;
}
.documents a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
}
.documents a:last-child {
  border: 0;
}
.documents i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-style: normal;
}
.documents b {
  color: var(--primary);
  font-size: 10px;
}
.market-check { background: var(--primary-soft); border-color: #cfe3dc; }
.market-summary { margin: 0 0 15px; color: #345f53; font-size: 12px; line-height: 1.55; }
.market-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid #cfe3dc; border-radius: 10px; background: #cfe3dc; }
.market-stats div { display: flex; flex-direction: column; gap: 5px; padding: 12px; background: #fff; }
.market-stats span { color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 750; }
.market-stats b { font-size: 12px; }
.market-warnings { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.market-warnings span { padding: 6px 8px; border-radius: 7px; background: #fff4dd; color: #84580f; font-size: 10px; }
.comparable-links { margin-top: 12px; border-top: 1px solid #cfe3dc; }
.comparable-links a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #cfe3dc; color: var(--ink); text-decoration: none; font-size: 10px; }
.comparable-links span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comparable-links b { flex: 0 0 auto; color: var(--primary); }
.detail-loading,
.detail-error {
  padding: 100px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 30px);
  opacity: 0;
  background: #17202a;
  color: #fff;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 12px;
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#scrim {
  display: none;
}
@media (max-width: 950px) {
  main {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .filters {
    padding: 24px 17px;
  }
  .view-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .view-list .lot {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-side {
    grid-row: 1;
  }
  .gallery-main {
    height: 380px;
  }
}
@media (max-width: 760px) {
  .app-header {
    height: 64px;
    padding: 0 14px;
    gap: 16px;
  }
  .brand {
    font-size: 16px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .primary-nav {
    position: fixed;
    z-index: 90;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #fff;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .primary-nav button:after {
    top: 0;
    bottom: auto;
  }
  .manage {
    display: none;
  }
  .mobile-filter {
    display: block;
  }
  main {
    display: block;
    padding-bottom: 62px;
  }
  .filters {
    position: fixed;
    z-index: 130;
    inset: 0 0 0 auto;
    width: min(90vw, 360px);
    transform: translateX(105%);
    transition: 0.23s;
    box-shadow: -20px 0 60px #17202a22;
    padding: 22px;
    overflow: auto;
  }
  .filters.open {
    transform: none;
  }
  .filters-head button {
    display: block;
  }
  .source-note {
    margin-top: 20px;
  }
  .content {
    padding: 24px 14px 40px;
  }
  .content-head {
    align-items: flex-start;
  }
  .content-head h1 {
    font-size: 25px;
  }
  .eyebrow {
    font-size: 8px;
    max-width: 230px;
  }
  .view-grid {
    grid-template-columns: 1fr;
  }
  .view-list .lot {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .view-list .lot-image {
    min-height: 180px;
  }
  .view-list .lot-body {
    display: block;
    padding: 14px;
  }
  .view-list .lot-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }
  .view-list .lot-footer {
    border: 0;
    padding: 0;
  }
  .view-compact .lot-body {
    grid-template-columns: minmax(0, 1fr) 110px;
    padding: 10px;
  }
  .view-compact .lot-meta div:last-child {
    display: none;
  }
  .view-compact .lot-meta div:first-child {
    grid-column: 2;
  }
  .lot-image {
    height: 190px;
  }
  #map {
    height: calc(100vh - 240px);
    min-height: 460px;
  }
  #scrim {
    position: fixed;
    z-index: 120;
    inset: 0;
    background: #17202a88;
  }
  #scrim.open {
    display: block;
  }
  dialog {
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .close {
    right: 12px;
    top: 0;
    margin: 12px;
    position: fixed;
  }
  .gallery-main {
    height: 290px;
  }
  .detail-layout {
    padding: 20px;
    gap: 18px;
  }
  .detail-main > h1 {
    font-size: 22px;
  }
  .detail-price-row {
    grid-template-columns: 1fr;
  }
  .asset-facts {
    grid-template-columns: 1fr;
  }
  .detail-side {
    grid-row: auto;
  }
  .summary-card {
    order: -1;
  }
}
@media (max-width: 390px) {
  .brand span {
    display: none;
  }
  .view-switch button {
    width: 34px;
  }
  .content-head {
    gap: 8px;
  }
  .view-grid .lot {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
  }
  .view-grid .lot-image {
    height: 100%;
    min-height: 205px;
  }
  .view-grid .source-badge {
    display: none;
  }
  .view-grid .lot-body {
    padding: 13px;
  }
  .view-grid .lot h2 {
    font-size: 13px;
    min-height: 55px;
  }
  .view-grid .lot-meta {
    grid-template-columns: 1fr;
  }
  .view-grid .lot-meta div:last-child {
    display: none;
  }
  .view-grid .lot-meta strong {
    font-size: 15px;
  }
}
.llm-verdict{display:inline-flex;margin:0 0 14px;padding:8px 12px;border-radius:9px;font-size:12px;font-weight:800;letter-spacing:.06em}.llm-verdict.positive{color:#62e6ad;background:rgba(41,190,132,.14);border:1px solid rgba(98,230,173,.3)}.llm-verdict.negative{color:#ff8f98;background:rgba(227,68,82,.13);border:1px solid rgba(255,143,152,.28)}.llm-verdict.neutral{color:#f4bf63;background:rgba(218,151,43,.13);border:1px solid rgba(244,191,99,.28)}.market-summary{white-space:pre-line}
@media (max-width: 760px) {
  .app-header {
    backdrop-filter: none;
  }
  .primary-nav {
    top: auto;
  }
  .content-head { align-items: flex-start; flex-wrap: wrap; }
  .catalog-tools { width: 100%; justify-content: space-between; align-items: end; }
  .sort-control { flex: 1; }
  .sort-control select { width: 100%; min-width: 0; }
  .pagination { gap: 4px; padding-bottom: 76px; }
  .pagination button { min-width: 34px; height: 36px; padding: 0 8px; }
}

/* Dark information-first interface */
:root {
  --page: #090b0e;
  --surface: #111419;
  --surface-2: #171b21;
  --surface-3: #1d2229;
  --ink: #f2f5f7;
  --muted: #929ca8;
  --soft: #68727e;
  --line: #252b33;
  --line-strong: #343c46;
  --primary: #69e0ae;
  --primary-hover: #86e9bf;
  --primary-soft: #152a23;
  --accent: #d5f56a;
  --warning: #f0bd63;
  --danger: #ff7d78;
  --radius: 12px;
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
html, body { background: var(--page); }
body { background-image: radial-gradient(circle at 70% -20%, rgba(64, 134, 106, .09), transparent 34rem); }
::selection { background: var(--primary); color: #07110d; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.catalog-tools { display: flex; align-items: end; gap: 12px; }
.sort-control { display: grid; gap: 5px; }
.sort-control span { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.sort-control select { height: 38px; min-width: 178px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 28px 0 8px; }
.pagination button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.pagination button:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); background: var(--surface-3); }
.pagination button.active { color: #07110d; background: var(--primary); border-color: var(--primary); font-weight: 800; }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination-gap { width: 22px; color: var(--soft); text-align: center; }
.app-header {
  height: 60px;
  padding: 0 clamp(16px, 2.5vw, 34px);
  gap: 34px;
  background: rgba(9, 11, 14, .88);
  border-color: var(--line);
  backdrop-filter: blur(20px) saturate(1.2);
}
.brand { gap: 9px; font-size: 16px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; filter: saturate(.75) contrast(1.08); }
.primary-nav { gap: 22px; }
.primary-nav button { color: var(--muted); font-size: 12px; }
.primary-nav button.active { color: var(--ink); }
.primary-nav button:after { height: 2px; }
.primary-nav span { background: var(--surface-3); color: var(--primary); }
.manage { color: var(--muted); font-size: 11px; }
.manage:hover { color: var(--ink); }
.button { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); border-radius: 8px; }
main { grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.filters {
  background: rgba(14, 17, 21, .78);
  border-color: var(--line);
  padding: 23px 18px;
  gap: 15px;
  position: sticky;
  top: 60px;
  align-self: start;
  height: calc(100vh - 60px);
  overflow: auto;
}
.filters-head { padding-bottom: 3px; }
.filters-head strong { font-size: 13px; }
.filters-head span { font-size: 10px; }
.field > span { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select {
  height: 40px;
  background-color: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
  border-radius: 8px;
  font-size: 12px;
}
.field input::placeholder { color: #5f6873; }
.field input:focus, .field select:focus { background: var(--surface-3); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(105, 224, 174, .08); }
.search-field input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23929ca8' stroke-width='1.7'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='m10.5 10.5 4 4'/%3E%3C/svg%3E"); }
.check-ui { background: var(--surface-2); border-color: var(--line-strong); }
.check input:checked + .check-ui { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check-ui:after { color: #07110d; }
.reset-button { background: transparent; border-color: var(--line); color: var(--muted); height: 36px; }
.source-note { border-color: var(--line); }
.live-dot, .status-dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(105,224,174,.12); }
.content { padding: 27px clamp(16px, 2.8vw, 40px) 60px; }
.content-head { margin-bottom: 15px; align-items: center; }
.eyebrow { color: var(--primary); font-size: 8px; letter-spacing: .14em; margin-bottom: 5px; }
.content-head h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 720; margin-bottom: 3px; }
.catalog-status { font-size: 11px; }
.view-switch { background: var(--surface); border-color: var(--line); border-radius: 9px; }
.view-switch button { width: 34px; height: 30px; color: var(--soft); font-size: 17px; }
.view-switch button.active { background: var(--surface-3); color: var(--primary); }
.catalog-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17,20,25,.72);
  margin-bottom: 17px;
  overflow: hidden;
}
.catalog-insights:empty { display: none; }
.catalog-insights > div { padding: 10px 13px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.catalog-insights > div:last-child { border: 0; }
.catalog-insights span { color: var(--soft); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; font-weight: 750; }
.catalog-insights b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-filters { margin: 0 0 14px; }
.active-filters button { background: var(--primary-soft); color: var(--primary); border: 1px solid rgba(105,224,174,.12); padding: 6px 9px; }
.lot-grid { gap: 12px; }
.view-grid { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.lot { background: var(--surface); border-color: var(--line); box-shadow: none; }
.lot:hover, .lot:focus-visible { transform: translateY(-2px); border-color: #43504d; box-shadow: var(--shadow); }
.lot-image { height: 155px; background: linear-gradient(145deg, #1c2225, #15191e); }
.lot-image:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.28)); pointer-events: none; }
.placeholder { color: #47524e; font-size: 44px; }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #59645f; text-align: center; }
.photo-placeholder i { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #343d39; border-radius: 14px; background: rgba(255,255,255,.025); font-style: normal; font-size: 27px; }
.photo-placeholder b { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #69746f; }
.photo-placeholder.small { min-height: 76px; width: 100%; gap: 4px; background: linear-gradient(145deg, #171d20, #101418); }
.photo-placeholder.small i { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; }
.photo-placeholder.small b { font-size: 8px; }
.source-badge, .photo-count { z-index: 1; background: rgba(7,9,11,.78); color: #dce2e5; border: 1px solid rgba(255,255,255,.09); border-radius: 6px; }
.lot-body { padding: 14px; }
.tags { gap: 5px; margin-bottom: 9px; }
.tag { padding: 5px 7px; border-radius: 5px; background: var(--surface-3); color: var(--muted); font-size: 8px; }
.tag.category { background: var(--primary-soft); color: var(--primary); }
.tag.hot { background: #2e2615; color: var(--warning); }
.tag.accepting, .tag.checked { background: #15262c; color: #77cde2; }
.lot h2 { font-size: 14px; line-height: 1.38; min-height: 58px; margin-bottom: 7px; }
.location { color: var(--muted); font-size: 10px; margin-bottom: 12px; }
.location:before { color: var(--primary); }
.lot-meta { padding: 12px 0; border-color: var(--line); }
.lot-meta span { color: var(--soft); font-size: 8px; }
.lot-meta strong { font-size: 16px; }
.lot-meta div:last-child strong { font-size: 11px; color: #d2d8dd; }
.lot-footer { color: var(--muted); font-size: 9px; }
.lot-footer .deadline.soon { color: var(--warning); }
.lot-footer .deadline.urgent { color: var(--danger); }
.lot-footer .score { background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); }
.lot-footer .score.good { background: var(--primary-soft); color: var(--primary); border-color: rgba(105,224,174,.15); }
.view-list .lot { grid-template-columns: 190px minmax(0, 1fr); }
.view-list .lot-image { min-height: 166px; }
.view-list .lot-body { grid-template-columns: minmax(0, 1.4fr) minmax(220px, .7fr); }
.view-list .lot-meta, .view-list .lot-footer { border-color: var(--line); }
.view-compact { gap: 6px; }
.view-compact .lot { grid-template-columns: 64px minmax(0, 1fr); border-radius: 8px; }
.view-compact .lot-image { height: 64px; }
.view-compact .lot-body { grid-template-columns: minmax(0,1fr) 160px 135px; padding: 8px 13px; }
.skeleton-card { background: var(--surface); border-color: var(--line); }
.skeleton-card i, .skeleton-card span { background: var(--surface-3); }
#map-panel { background: var(--surface); border-color: var(--line); }
.map-head { border-color: var(--line); }
#map { background: #15191d; filter: saturate(.72) brightness(.72) contrast(1.12); }
.lot-marker { background: var(--primary); border-color: #0d1114; color: #07110d; }
.lot-marker.precision-region { background: var(--warning); border-style: dashed; }
.lot-marker.precision-country { background: var(--soft); border-style: dashed; opacity: .72; }
.map-precision { color: var(--warning); font-size: 9px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface-2); color: var(--ink); }
.map-popup button { background: var(--primary); color: #07110d; font-weight: 800; }
.empty-icon { background: var(--primary-soft); }
dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 110px #000c; }
dialog::backdrop { background: rgba(0,0,0,.78); }
.close { background: rgba(9,11,14,.86); border-color: rgba(255,255,255,.18); }
.gallery { background: #07090b; }
.gallery-thumbs { background: #0b0d10; }
.gallery-thumbs button.active { border-color: var(--primary); }
.empty-cover { background: linear-gradient(145deg, #171d20, #101418); color: #46504d; }
.detail-layout { gap: 26px; padding: 28px; }
.detail-main > h1 { font-size: 25px; }
.detail-price-row > div, .summary-card, .side-facts, .detail-section { border-color: var(--line); background: var(--surface-2); }
.detail-price-row strong { font-size: 21px; }
.description { color: #bdc5cc; }
.section-title > span { background: var(--primary-soft); color: var(--primary); }
.asset-facts { background: var(--line); border-color: var(--line); }
.asset-facts div { background: var(--surface); }
.summary-card { background: var(--primary-soft); border-color: rgba(105,224,174,.16); }
.summary-score span, .summary-score strong { color: var(--primary); }
.score-bar { background: #263c34; }
.summary-card p { color: #a7c6b9; }
.side-facts div, .documents a { border-color: var(--line); }
.source { background: var(--primary); color: #07110d; }
.source:hover { background: var(--primary-hover); }
.documents a, .comparable-links a { color: var(--ink); }
.documents i { background: var(--primary-soft); }
.market-check { background: #111c19; border-color: #263c34; }
.market-summary { color: #b8d2c7; }
.market-stats { background: #263c34; border-color: #263c34; }
.market-stats div { background: var(--surface); }
.market-warnings span { background: #302817; color: var(--warning); }
.comparable-links { border-color: #263c34; }
.comparable-links a { border-color: #263c34; }
#toast { background: #e9f0ed; color: #111713; box-shadow: var(--shadow); }

@media (max-width: 950px) {
  main { grid-template-columns: 220px minmax(0,1fr); }
  .catalog-insights { grid-template-columns: repeat(2, 1fr); }
  .catalog-insights > div:nth-child(2) { border-right: 0; }
  .catalog-insights > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .app-header { height: 56px; background: #0b0e12; padding: 0 12px; backdrop-filter: none; }
  .brand img { width: 32px; height: 32px; }
  .primary-nav { height: calc(58px + env(safe-area-inset-bottom)); background: rgba(13,16,20,.96); border-color: var(--line); backdrop-filter: blur(18px); }
  main { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .filters {
    position: fixed;
    z-index: 130;
    inset: 0 0 0 auto;
    width: min(90vw, 360px);
    height: 100dvh;
    transform: translateX(105%);
    background: #101419;
    box-shadow: -20px 0 60px #0009;
  }
  .filters.open { transform: none; }
  .content { padding: 19px 12px 34px; }
  .content-head { margin-bottom: 12px; }
  .content-head h1 { font-size: 23px; }
  .eyebrow { display: none; }
  .catalog-status { max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .catalog-insights { margin-bottom: 12px; }
  .catalog-insights > div { padding: 8px 10px; }
  .catalog-insights span { font-size: 7px; }
  .catalog-insights b { font-size: 12px; }
  .view-list .lot { grid-template-columns: 102px minmax(0,1fr); }
  .view-list .lot-image { min-height: 172px; }
  .view-compact .lot { grid-template-columns: 54px minmax(0,1fr); }
  .view-compact .lot-image { height: 100%; min-height: 58px; }
  .view-compact .lot-body { grid-template-columns: minmax(0,1fr) 105px; }
  .lot-image { height: 175px; }
  #scrim { background: rgba(0,0,0,.72); }
  .gallery-main { height: 270px; }
  .detail-layout { padding: 16px 14px 28px; }
  .detail-main > h1 { font-size: 20px; margin-bottom: 18px; }
  .detail-side { grid-row: auto; }
  .summary-card { order: -1; }
  .detail-section { padding: 15px; }
}
@media (max-width: 390px) {
  .view-grid .lot { grid-template-columns: 104px minmax(0,1fr); }
  .view-grid .lot-image { min-height: 200px; }
  .view-grid .lot-body { padding: 11px; }
  .view-grid .tags { max-height: 20px; overflow: hidden; }
  .view-grid .lot-meta { padding-bottom: 9px; }
}
