:root {
  --bg: #f7f1e8;
  --card: rgba(255, 251, 244, 0.94);
  --ink: #1f1a17;
  --muted: #6f6257;
  --line: rgba(44, 34, 24, 0.12);
  --accent: #ad5c2c;
  --accent-deep: #7b3e1c;
  --success: #1f7a55;
  --warning: #b57019;
  --radius: 26px;
  --shadow: 0 22px 60px rgba(55, 36, 16, 0.12);
  --headline: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at top left, rgba(247, 191, 136, 0.25), transparent 32%),
    radial-gradient(circle at top right, rgba(173, 92, 44, 0.14), transparent 30%),
    linear-gradient(180deg, #fff8ee 0%, var(--bg) 46%, #efe5d7 100%);
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(255, 249, 241, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-nav,
.property-meta,
.card-grid,
.stats,
.form-grid,
.photo-grid,
.button-row,
.split {
  display: flex;
  gap: 1rem;
}

.site-header__inner {
  justify-content: space-between;
  padding: 1rem 0;
}

.brand,
h1,
h2,
h3 {
  font-family: var(--headline);
}

.brand {
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.site-nav {
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.brand:hover {
  color: var(--accent-deep);
}

.page-shell {
  padding: 2rem 0 4rem;
}

.hero,
.panel,
.card,
.table-card,
.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.hero {
  padding: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero h1,
.page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  line-height: 0.95;
}

.hero p,
.lead,
.muted {
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

.card-grid,
.stats,
.form-grid,
.photo-grid,
.property-meta,
.button-row {
  flex-wrap: wrap;
}

.card-grid > *,
.stats > * {
  flex: 1 1 260px;
}

.property-meta span,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(173, 92, 44, 0.1);
  color: var(--accent-deep);
  font-size: 0.92rem;
}

.badge--success {
  background: rgba(31, 122, 85, 0.12);
  color: var(--success);
}

.badge--warning {
  background: rgba(181, 112, 25, 0.14);
  color: var(--warning);
}

.badge--muted {
  background: rgba(111, 98, 87, 0.12);
  color: var(--muted);
}

.photo-grid img,
.placeholder-photo {
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(173, 92, 44, 0.18), rgba(123, 62, 28, 0.06));
}

.placeholder-photo {
  display: grid;
  place-items: center;
  color: var(--muted);
  min-height: 220px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(44, 34, 24, 0.16);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  text-decoration: none;
}

.button--secondary {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid rgba(123, 62, 28, 0.22);
}

.button--danger {
  background: #7a2d1d;
}

.flash {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.empty-state {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px dashed rgba(44, 34, 24, 0.18);
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

@media (max-width: 780px) {
  .site-header__inner,
  .site-nav,
  .split {
    flex-direction: column;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.4rem;
  }
}
