:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --panel: #ffffff;
  --ink: #0d1e3f;
  --muted: #4d5970;
  --line: #d8dee9;
  --accent: #9a611e;
  --accent-strong: #945a19;
  --gold: #9a611e;
  --navy-deep: #0b1b3d;
  --navy-bar: #0f203c;
  --shadow: 0 18px 46px rgba(13, 30, 63, 0.12);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(13, 30, 63, 0.08), transparent 320px),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  padding: 24px 14px 14px;
  overflow-x: clip;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--ink);
}

.title-line {
  display: inline;
}

.intro {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.intro a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
}

.metrics div {
  min-width: 0;
  border: 1px solid rgba(154, 97, 30, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 11px 10px;
}

.metrics strong {
  display: block;
  color: var(--accent);
  font-size: 20px;
  line-height: 1.1;
}

.metrics span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 14px 72px;
  overflow-x: clip;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 -14px;
  padding: 10px 14px;
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: blur(12px);
}

.filter-box,
.sort-box {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.filter-box span,
.sort-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-box select,
.sort-box select {
  width: 100%;
  height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 16px;
  outline: none;
}

.filter-box select,
.sort-box select {
  padding: 0 32px 0 11px;
  text-overflow: ellipsis;
}

.filter-box select:focus,
.sort-box select:focus {
  border-color: rgba(154, 97, 30, 0.82);
  box-shadow: 0 0 0 3px rgba(154, 97, 30, 0.14);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 10px 0 12px;
}

.section-head h2,
.note h2 {
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1.25;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.property-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(13, 30, 63, 0.08);
}

.property-card:focus-visible {
  outline: 3px solid rgba(154, 97, 30, 0.24);
  outline-offset: 2px;
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf1f7;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 10px 10px 11px;
}

.district {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.title {
  display: block;
  overflow: visible;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.price-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin-top: auto;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  line-height: 1.2;
}

.price-line span {
  flex: none;
  font-size: 12px;
  font-weight: 800;
}

.price-line strong {
  min-width: 0;
  font-weight: 900;
}

.start-line {
  color: var(--accent);
}

.start-line strong {
  font-size: 22px;
  line-height: 1.05;
  white-space: nowrap;
}

.estimate-line {
  color: var(--muted);
  font-size: 12px;
}

.estimate-line span,
.estimate-line strong {
  font-size: 12px;
}

.auction-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.detail-cue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid #d8dee9;
  padding-top: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.detail-cue span:last-child {
  font-size: 16px;
  line-height: 1;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed #cfd5e2;
  border-radius: 8px;
  background: #fff;
  padding: 28px 14px;
  color: var(--muted);
  text-align: center;
}

.note {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.note a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.contact-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--navy-deep), var(--navy-bar));
  color: #fff;
  padding: 7px 12px;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(13, 30, 63, 0.28);
}

.contact-bar span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.contact-bar strong {
  color: #f0c172;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 62px;
  z-index: 40;
  transform: translateX(-50%);
  max-width: calc(100vw - 28px);
  border-radius: 999px;
  background: rgba(13, 30, 63, 0.94);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(13, 30, 63, 0.24);
  white-space: nowrap;
}

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

  .toolbar {
    grid-template-columns: 1fr;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 360px) and (max-width: 420px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 28px;
  }

  .metrics {
    gap: 7px;
  }

  .metrics div {
    padding: 10px 8px;
  }

  .metrics strong {
    font-size: 18px;
  }

  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-box select,
  .sort-box select {
    font-size: 14px;
    padding-left: 9px;
    padding-right: 28px;
  }
}

@media (min-width: 720px) {
  .site-header {
    padding-top: 36px;
  }

  h1 {
    font-size: 44px;
  }

  .intro {
    max-width: 680px;
    font-size: 16px;
  }

  .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .property-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
