:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #667085;
  --paper: #ffffff;
  --wash: #f4f2ec;
  --line: #dfddd3;
  --brand: #1f4635;
  --brand-2: #2f6b4f;
  --accent: #c89b3c;
  --accent-2: #f4d37a;
  --danger: #8e3b35;
  --shadow: 0 18px 42px rgba(37, 46, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(244, 242, 236, 0.82), rgba(255, 255, 255, 0.94)),
    url("https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?auto=format&fit=crop&w=1800&q=80") center top / cover fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border: 2px solid var(--accent);
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid transparent;
  color: #344054;
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  background: #fff;
  outline: none;
}

main {
  display: grid;
  gap: 24px;
  padding: 26px clamp(16px, 4vw, 46px) 38px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: stretch;
}

.search-surface,
.ai-panel,
.sell-box,
.db-box,
.content-band {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-surface {
  padding: clamp(18px, 4vw, 34px);
}

.search-head,
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

p {
  line-height: 1.8;
}

.ghost-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.primary-link {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) minmax(96px, 120px);
  gap: 10px;
  align-items: end;
}

.search-grid label {
  display: grid;
  gap: 7px;
}

.search-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-grid select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd5dd;
  background: #fff;
  color: var(--ink);
}

.search-grid button,
.quick-actions button {
  min-height: 44px;
  border: 0;
  background: var(--accent);
  color: #1f2933;
  font-weight: 800;
  cursor: pointer;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-actions button {
  min-height: 36px;
  padding: 8px 12px;
  background: #f8f3e4;
  border: 1px solid #ead8a8;
  font-size: 12px;
}

.quick-actions button:hover {
  background: var(--accent-2);
}

.ai-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  background: rgba(31, 70, 53, 0.95);
  color: #fff;
}

.ai-panel .eyebrow,
.ai-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.ai-line {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  font-size: 13px;
  line-height: 1.7;
}

.ai-panel .primary-link {
  background: var(--accent);
  color: #1f2933;
  border-color: var(--accent);
}

.content-band {
  padding: clamp(18px, 4vw, 30px);
}

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

.property-card {
  display: grid;
  grid-template-rows: 180px auto;
  border: 1px solid var(--line);
  background: #fff;
  min-width: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.property-card:hover {
  border-color: rgba(31, 70, 53, 0.45);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.12);
  transform: translateY(-2px);
}

.property-photo {
  position: relative;
  overflow: hidden;
  background: #d9ddd9;
}

.property-click-target,
.property-title-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.property-click-target {
  cursor: pointer;
}

.property-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.property-card:hover .property-photo img {
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  background: rgba(31, 70, 53, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.property-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.property-body h3 {
  min-height: 42px;
  margin: 0;
}

.property-title-link:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.property-meta span {
  padding: 5px 7px;
  background: #f2f4f0;
  border: 1px solid #e4e8df;
  color: #344054;
  font-size: 12px;
}

.price-line {
  color: var(--brand);
  font-size: 20px;
  font-weight: 900;
}

.property-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.property-actions a,
.property-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
  padding: 7px 10px;
  text-decoration: none;
}

.property-actions a {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 20px;
}

.sell-box,
.db-box {
  padding: clamp(18px, 4vw, 30px);
}

.intake-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: baseline;
  margin: 18px 0;
  padding: 14px;
  background: #f7f5ee;
  border: 1px solid var(--line);
}

.intake-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.schema-list {
  display: grid;
  gap: 8px;
}

.schema-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.schema-row strong {
  font-size: 13px;
}

.schema-row span {
  color: var(--muted);
  font-size: 12px;
}

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

.ops-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.ops-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
  color: #fff;
  background: #17251d;
  font-size: 13px;
}

.site-footer a {
  color: var(--accent-2);
}

@media (max-width: 1080px) {
  .workspace,
  .split-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .search-head,
  .section-title {
    display: grid;
  }

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

  .property-card {
    grid-template-rows: 210px auto;
  }
}
