@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/Inter-400.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("../fonts/Inter-500.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("../fonts/Inter-600.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("../fonts/Inter-700.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url("../fonts/Inter-800.ttf") format("truetype");
}

:root {
  --navy: #0f2340;
  --red: #e3242b;
  --yellow: #f6c21c;
  --cream: #f6f1e8;
  --paper: #fffdf8;
  --ink: #0f2340;
  --muted: #5a6573;
  --line: #e4ddd1;
  --soft: #f3eee4;
  --shadow: 0 14px 40px rgba(15, 35, 64, 0.16);
  --shadow-soft: 0 8px 24px rgba(15, 35, 64, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow: hidden; }

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

a { color: inherit; }

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 35, 64, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.brand img {
  height: 38px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.example-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-loc {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.header-nav {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.header-nav:hover, .header-nav:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========== MAP ========== */
body.map-page { background: #1a1a1a; }

.map-stage {
  position: relative;
  height: calc(100% - 60px);
  overflow: hidden;
  background:
    url("../assets/neighborhood-satellite.jpg") center / cover no-repeat;
}

.search-bar {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 80px));
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(15, 35, 64, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 8;
}

.search-bar svg { flex: 0 0 auto; color: var(--navy); }

.search-bar span {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zoom-controls {
  position: absolute;
  right: 18px;
  top: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-soft);
  z-index: 8;
}

.zoom-controls span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}

.zoom-controls span + span { border-top: 1px solid var(--line); }

.attribution {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 5;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.01em;
}

/* Parcel highlight for the example house (checkered-patio lot) */
.parcel {
  position: absolute;
  left: 56.4%;
  top: 39.8%;
  width: 8.6%;
  height: 13.2%;
  border: 3px solid var(--yellow);
  border-radius: 3px;
  background: rgba(246, 194, 28, 0.28);
  box-shadow: 0 0 0 1px rgba(15, 35, 64, 0.35), 0 8px 20px rgba(15, 35, 64, 0.25);
  z-index: 4;
}

.map-pin {
  position: absolute;
  left: 60.7%;
  top: 45.6%;
  width: 34px;
  height: 58px;
  transform: translate(-50%, -100%);
  z-index: 6;
  filter: drop-shadow(0 6px 8px rgba(15, 35, 64, 0.45));
}

.map-pin-mini {
  position: absolute;
  width: 20px;
  height: 34px;
  transform: translate(-50%, -100%);
  z-index: 3;
  filter: drop-shadow(0 3px 4px rgba(15, 35, 64, 0.4));
  opacity: 0.92;
}

/* Nearby example pins, just to make the map feel lived-in */
.pin-a { left: 28%; top: 48%; }
.pin-b { left: 41%; top: 62%; }
.pin-c { left: 74%; top: 33%; }
.pin-d { left: 19%; top: 30%; }

.popup {
  position: absolute;
  left: 24.5%;
  top: 40%;
  width: 340px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 35, 64, 0.28);
  padding: 20px 20px 18px;
  z-index: 7;
}

.popup::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 78px;
  width: 20px;
  height: 20px;
  background: var(--paper);
  transform: rotate(45deg);
  box-shadow: 6px -6px 12px rgba(15, 35, 64, 0.06);
}

.popup-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.popup h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.popup .city {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.popup-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 10px 12px;
  background: var(--soft);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.popup-stat strong { font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: default;
  font-family: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-primary {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(227, 36, 43, 0.28);
}

.btn-share {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
}

.btn-support {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
}

.btn-ghost {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
}

/* ========== PIN FORM ========== */
body.form-page, body.memory-page { background: var(--cream); }

.page {
  height: calc(100% - 60px);
  padding: 22px 28px 20px;
}

.page-grid {
  height: 100%;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.context-panel {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 35, 64, 0.06);
}

.house-photo {
  height: 250px;
  flex: 1 1 auto;
  min-height: 250px;
  background:
    url("../assets/house-close.jpg") 70% 40% / 170% auto no-repeat;
}

.context-body { padding: 18px 18px 20px; }

.context-body .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.context-body h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.context-body .city {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.context-copy {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #3a4553;
}

.form-card {
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 35, 64, 0.06);
  padding: 22px 26px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.form-card h1, .form-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.form-lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { margin-bottom: 12px; }

.field label, .field .label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea {
  width: 100%;
  border: 1px solid #d9d3c8;
  background: #fff;
  border-radius: 10px;
  padding: 0 12px;
  height: 42px;
  font-family: inherit;
  font-size: 14px;
  color: var(--navy);
  outline: none;
}

.field textarea {
  height: 86px;
  padding: 10px 12px;
  resize: none;
  line-height: 1.45;
}

.years {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.years .dash {
  color: var(--muted);
  font-weight: 600;
  padding-top: 20px;
}

.photo-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 14px;
  border: 1.5px dashed #cfc8bb;
  border-radius: 10px;
  background: #fbfaf6;
  color: var(--muted);
  font-size: 13px;
}

.photo-drop strong { color: var(--navy); font-weight: 600; }

.optin {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  cursor: default;
}

.optin input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  flex: 0 0 auto;
}

.legal, .confirm-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
}

.confirm-note { margin-top: 8px; }

/* ========== MEMORY PAGE ========== */
.memory-grid {
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 22px;
}

.panel {
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 35, 64, 0.06);
}

.memory-main {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.memory-hero {
  height: 210px;
  flex: 1 1 auto;
  min-height: 210px;
  background:
    url("../assets/house-close.jpg") 70% 40% / 165% auto no-repeat;
  position: relative;
}

.memory-hero .addr-overlay {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(255, 253, 248, 0.94);
  border-radius: 10px;
  padding: 8px 12px 9px;
  box-shadow: 0 4px 14px rgba(15, 35, 64, 0.15);
}

.memory-hero .addr-overlay .kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.memory-hero .addr-overlay h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.memory-hero .addr-overlay .city {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.memory-body { padding: 16px 20px 14px; flex: 1; display: flex; flex-direction: column; }

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbe4f0;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.avatar.s { width: 32px; height: 32px; font-size: 11px; }
.avatar.a { background: #dbe4f0; }
.avatar.b { background: #f3e2c6; }
.avatar.c { background: #d8eadc; }
.avatar.d { background: #edd9e4; }

.person .name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.person .meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.quote {
  font-size: 15px;
  line-height: 1.5;
  color: #243044;
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 12px;
  border-left: 3px solid var(--yellow);
}

.others { margin-top: 16px; }

.others h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.other-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.other-row .name { font-size: 13px; font-weight: 600; }
.other-row .meta { font-size: 12px; color: var(--muted); margin-left: auto; }

.memory-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card { padding: 14px 16px 16px; }

.side-card h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.share-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 12px;
  align-items: start;
}

.share-card {
  width: 148px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 35, 64, 0.1);
}

.share-card .photo {
  height: 96px;
  background:
    url("../assets/house-close.jpg") 70% 40% / 200% auto no-repeat;
}

.share-card .copy { padding: 8px 8px 9px; }

.share-card .line {
  height: 3px;
  background: var(--yellow);
  margin-bottom: 6px;
  width: 36px;
  border-radius: 2px;
}

.share-card .title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.share-card .addr {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}

.share-card .years {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 600;
  color: var(--navy);
}

.share-card .brand-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.share-card .brand-row img { height: 16px; width: auto; }

.share-card .brand-row span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.share-actions p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.tip {
  height: 36px;
  border-radius: 8px;
  border: 1px solid #d9d3c8;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.tip.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.custom-amt {
  display: flex;
  align-items: center;
  height: 38px;
  border: 1px solid #d9d3c8;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 6px;
  overflow: hidden;
}

.custom-amt .prefix {
  padding: 0 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.custom-amt input {
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
  padding: 0 10px 0 6px;
  font-family: inherit;
  font-size: 13px;
  color: var(--navy);
  background: transparent;
}

.custom-amt input::placeholder { color: #8a93a0; }

.tip-note {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 8px;
}

.remax-card {
  padding: 14px 16px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ee 100%);
}

.remax-card .brand-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}

.remax-card p {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.report-wrap {
  text-align: right;
  padding: 0 2px;
}

.report-wrap a {
  font-size: 11px;
  font-weight: 600;
  color: #7a8490;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile memory page */
@media (max-width: 500px) {
  body { overflow: auto; }

  .site-header {
    height: 52px;
    padding: 0 12px;
  }

  .brand img { height: 32px; }

  .header-loc { display: none; }

  .example-pill {
    height: 22px;
    font-size: 10px;
    padding: 0 8px;
  }

  .page {
    height: auto;
    min-height: calc(100% - 52px);
    padding: 8px 8px 12px;
  }

  .memory-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
  }

  .memory-hero { height: 132px; flex: 0 0 auto; min-height: 0; }

  .memory-hero .addr-overlay { padding: 6px 10px 7px; left: 10px; bottom: 10px; }
  .memory-hero .addr-overlay h1 { font-size: 15px; }

  .memory-body { padding: 12px 12px 10px; }

  .person { margin-bottom: 6px; gap: 10px; }
  .avatar { width: 36px; height: 36px; }
  .person .name { font-size: 14px; }
  .quote { font-size: 13px; padding: 8px 10px; }
  .others { margin-top: 8px; }
  .others h3 { margin-bottom: 4px; }
  .other-row { padding: 5px 0; }

  .share-row {
    grid-template-columns: 110px 1fr;
    gap: 8px;
  }

  .share-card { width: 110px; }
  .share-card .photo { height: 70px; }
  .share-card .copy { padding: 6px 7px 7px; }
  .share-card .title { font-size: 11px; }

  .tip-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .tip { height: 30px; font-size: 11px; }

  .side-card { padding: 10px 10px 10px; }
  .side-card h3 { margin-bottom: 8px; }
  .remax-card p { font-size: 14px; margin-bottom: 8px; }
  .custom-amt { height: 34px; margin-bottom: 4px; }
  .tip-note { margin: 4px 0 6px; }
}

