* {
  box-sizing: border-box;
}

:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --text: #172033;
  --muted: #687386;
  --line: #dde3ea;
  --accent: #0f4c5c;
  --accent-2: #d9a441;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.panel {
  background: var(--panel);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(22, 34, 51, 0.08);
}

.form-panel {
  padding: 28px;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.logo, .post-logo {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.brand-mini strong, .brand-mini span {
  display: block;
}

.brand-mini span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.subtext {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

form {
  display: grid;
  gap: 15px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 76, 92, .08);
}

button {
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: var(--accent);
  color: white;
  transition: background-color .2s, transform .1s, box-shadow .2s;
}

button:hover {
  background: #0c3f4b;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 76, 92, .25);
}

button.secondary {
  background: #eef3f5;
  color: var(--accent);
}

button.secondary:hover {
  background: #e2eaed;
}

.made-by {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.preview-panel {
  padding: 22px;
}

.preview-heading {
  padding: 8px 8px 18px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 800;
  color: var(--accent);
}

.preview-heading h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.post-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.post-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
}

.post-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.post-brand {
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 14px;
}

.post-tagline {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.hero-visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    linear-gradient(135deg, rgba(15,76,92,.98), rgba(35,110,118,.9)),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.22), transparent 35%);
  color: white;
}

.house-icon {
  font-size: 128px;
  line-height: 1;
  opacity: .94;
  transform: translateY(-8px);
}

.hero-badge {
  position: absolute;
  left: 18px;
  bottom: 16px;
  background: var(--accent-2);
  color: #1e2430;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.post-content {
  padding: 22px;
}

.post-title {
  font-weight: 900;
  font-size: 28px;
  line-height: 1.15;
}

.post-location {
  color: var(--muted);
  margin-top: 6px;
  font-size: 15px;
}

.price-box {
  margin: 18px 0;
  padding: 14px 16px;
  background: #f4f8f8;
  border-radius: 13px;
}

.price-box span, .price-box strong {
  display: block;
}

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

.price-box strong {
  color: var(--accent);
  font-size: 24px;
  margin-top: 2px;
}

.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight-pill {
  background: #f7f7f8;
  border: 1px solid var(--line);
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: #16212d;
  color: #fff;
}

.contact-strip span, .contact-strip strong {
  display: block;
}

.contact-strip span {
  font-size: 10px;
  opacity: .7;
  letter-spacing: .09em;
}

.contact-strip strong {
  font-size: 14px;
  margin-top: 3px;
}

.contact-right {
  text-align: right;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  padding: 0 8px;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    margin: 16px auto 28px;
  }
}


.status-message {
  min-height: 22px;
  font-size: 13px;
  font-weight: 800;
  color: #0f4c5c;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateY(0);
}
