/* Intent Aerial Split Layout (approved 2026-11-10, DESIGN.md section 14) */
@font-face {
  font-family: Inter;
  src: url(/property-ui/fonts/inter-latin-wght-normal.woff2);
}

* { box-sizing: border-box; }

body.intent-split-body {
  margin: 0;
  background: var(--canvas-top);
  color: var(--ink-900);
  font: 15px/1.5 Inter, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }
a { color: inherit; }

.stage {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Aerial Split: Left 50% fixed drifting aerial map */
.split .map {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 100vh;
  background: var(--map-park);
  border-radius: 0 32px 32px 0;
  overflow: hidden;
  z-index: 1;
}

.split .split-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--home-map-wash);
  pointer-events: none;
  z-index: 2;
  border-radius: 0 32px 32px 0;
}

.maplibregl-map {
  width: 100%;
  height: 100%;
}

.mapboxgl-ctrl, .maplibregl-ctrl {
  display: none !important;
}

/* Sticky green headline on the map */
.split .map-label {
  position: fixed;
  bottom: 54px;
  left: 4%;
  width: 42%;
  color: var(--action-green);
  pointer-events: none;
  z-index: 3;
}

.split .map-label h2 {
  font-size: clamp(30px, 4vw, 56px);
  letter-spacing: -.055em;
  line-height: 1.05;
  margin: 0;
  font-weight: 750;
}

/* Map motion control: compact frosted play/pause button */
.split .map-motion {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  gap: 6px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--glass-border);
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--ink-900);
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out);
}

.split .map-motion:disabled {
  opacity: .65;
  cursor: wait;
}

.split .map-motion:not(:disabled):active {
  transform: scale(var(--press-scale));
}

.split .map-motion svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

@media (pointer: coarse) {
  .split .map-motion { min-height: 44px; }
}

@media (prefers-reduced-transparency: reduce) {
  .split .map-motion {
    background: var(--glass-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .split .map-motion { background: var(--glass-solid); }
}

/* Map attribution: expands horizontally beneath fade */
.attribution {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  background: transparent;
  padding: 0;
}

.attribution summary {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--shadow-glass);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-900);
}

.attribution summary::-webkit-details-marker { display: none; }

@media (pointer: coarse) {
  .attribution summary { width: 44px; height: 44px; }
}

.attribution div {
  position: absolute;
  bottom: 0;
  left: 40px;
  background: var(--glass-solid);
  border-radius: var(--r-inner);
  padding: 8px 10px;
  white-space: nowrap;
  font-size: 10px;
  color: var(--ink-900);
  box-shadow: var(--shadow-glass);
}

@media (pointer: coarse) {
  .attribution div { left: 52px; }
}

.split .map:has(.attribution[open]) .map-motion {
  visibility: hidden;
}

/* Raised address marker */
.intent-home-pin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--action-green);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(10, 48, 37, .12);
  position: relative;
}

.intent-home-pin::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 6px;
  height: 15px;
  width: 2px;
  background: var(--action-green);
}

/* Right Side: Form Area */
.split .form-area {
  margin-left: 50%;
  padding: 36px clamp(32px, 6vw, 100px) 80px;
  max-width: 850px;
  background: var(--canvas-top);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}

.mh-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  box-shadow: var(--shadow-glass);
  border-radius: var(--r-pill);
  color: var(--glass-fg);
  text-decoration: none;
}

.mh-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 48px;
  padding: 0 var(--s-5);
  font-size: 18px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink-900);
  white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out);
}

.mh-brand:active {
  transform: scale(var(--press-scale));
}

@media (pointer: coarse) {
  .mh-brand {
    min-height: 44px;
    padding: 0 var(--s-4);
  }
}

.sheet {
  background: transparent;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 700;
  display: block;
}

.form-area h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.13;
  letter-spacing: -.045em;
  margin: 10px 0 12px;
  font-weight: 700;
  color: var(--ink-900);
}

.intro {
  color: var(--ink-500);
  margin: 0 0 25px;
}

.intent-card {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: 0;
}

.intent-form {
  display: grid;
  gap: 15px;
  margin: 0;
}

.intent-form > .field,
.intent-form > .intent-address,
.intent-form > .zip-rows,
.intent-form > .area-rows,
.intent-form > .area-row {
  width: 100%;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}

/* Full-width inputs with light inset color and text-field interaction */
.field input {
  border: var(--card-border);
  border-radius: var(--r-inner);
  background-color: var(--card-inset-bg);
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink-900);
  width: 100%;
  caret-color: var(--ink-900);
  cursor: text;
  box-sizing: border-box;
  font: inherit;
  transition: background-color var(--dur-base) var(--ease-out);
}

.field input::placeholder {
  color: var(--home-placeholder);
  opacity: 1;
}

.field input:focus:not(:focus-visible) {
  outline: none;
}

.field input:focus-visible {
  outline: 2px solid var(--ink-900);
  outline-offset: 2px;
}

.using-pointer .field input:focus-visible {
  outline: none;
}

.intent-form .field input:focus {
  background-image: linear-gradient(var(--hover-fill), var(--hover-fill));
  background-color: var(--card-inset-bg);
  box-shadow: none;
}

@media (forced-colors: active) {
  .using-pointer .field input:focus-visible {
    outline: 2px solid Highlight;
  }
}

@media (hover: hover) and (pointer: fine) {
  .intent-form .field input:hover,
  .intent-form .button:not(:disabled):hover,
  .zip-add:not(:disabled):hover,
  .zip-remove:not(:disabled):hover,
  .area-add:not(:disabled):hover,
  .area-remove:not(:disabled):hover,
  .split .map-motion:not(:disabled):hover {
    background-image: linear-gradient(var(--hover-fill), var(--hover-fill));
  }
  .location-suggest button:hover,
  .intent-suggest li:hover,
  .intent-form .consent-line:hover {
    background-image: linear-gradient(var(--hover-fill), var(--hover-fill));
  }
  .intent-form a:hover {
    text-decoration-thickness: 2px;
  }
}

.stage ::selection {
  background: var(--accent-ink);
  color: #FFFFFF;
}

.caption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-500);
  margin: 0;
}


.intent-wants {
  border: var(--card-border);
  border-radius: var(--r-inner);
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  margin: 0;
}

.intent-wants legend {
  font-weight: 650;
  font-size: 13px;
  color: var(--ink-900);
  padding: 0 4px;
}

.consent-line {
  display: flex;
  gap: 9px;
  font-size: 13px;
  align-items: center;
  border-radius: var(--r-inner);
  cursor: pointer;
  color: var(--ink-900);
  padding: 2px 4px;
}

.consent-line input {
  accent-color: var(--action-green);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.free-notice {
  padding: 14px 16px;
  border-radius: var(--r-inner);
  background: var(--accent-soft);
  color: var(--ink-900);
  font-size: 13px;
}

.free-notice strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.intent-tcpa {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-500);
  margin: 2px 0 0;
}

.button {
  border: 0;
  border-radius: var(--r-pill);
  min-height: 50px;
  background: var(--btn-card-bg);
  color: var(--btn-card-fg);
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}

.intent-form :is(.button, .zip-add, .zip-remove, .area-add, .area-remove) {
  transition: transform var(--dur-press) var(--ease-out);
}

.intent-form :is(.button, .zip-add, .zip-remove, .area-add, .area-remove):not(:disabled):active {
  transform: scale(var(--press-scale));
}

@media (prefers-reduced-motion: reduce) {
  .intent-form :is(.button, .zip-add, .zip-remove, .area-add, .area-remove),
  .split .map-motion {
    transition: none;
    transform: none;
  }
}

/* Location suggestions and compact ZIP controls (matches /map .mp-suggest) */
.location-suggest, .intent-suggest {
  list-style: none;
  padding: 8px;
  margin: 8px 0 0;
  background: var(--popup-bg);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(20, 30, 40, .12);
  max-height: min(320px, 50vh);
  overflow-y: auto;
}

@media (prefers-reduced-transparency: reduce) {
  .location-suggest, .intent-suggest {
    background: var(--card-solid);
  }
}

.location-suggest:empty,
.location-suggest[hidden],
.intent-suggest:empty,
.intent-suggest[hidden] {
  display: none;
}

.location-suggest li, .intent-suggest li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-suggest button, .intent-suggest button, .intent-suggest li[role="option"] > button {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 6px 12px;
  border: 0;
  border-radius: 14px;
  background: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  box-sizing: border-box;
}

.location-suggest svg, .intent-suggest svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  color: var(--ink-700);
}

.mp-suggest-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-700);
  font-weight: 400;
}

.mp-suggest-label strong {
  font-weight: 700;
  color: var(--ink-900);
}

.mp-kind {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}

.location-suggest button:hover,
.location-suggest button:focus-visible,
.intent-suggest button:hover,
.intent-suggest button:focus-visible,
.location-suggest li[aria-selected="true"] button,
.intent-suggest li[aria-selected="true"] button,
.location-suggest li.is-active button,
.intent-suggest li.is-active button {
  background: var(--hover-fill);
  outline: none;
}

.zip-rows,
.area-rows {
  display: grid;
  gap: 10px;
}

.zip-row,
.area-row {
  display: grid;
  gap: 4px;
}

.zip-row-head,
.area-row-head {
  display: flex;
  gap: 8px;
}

.zip-row-head input,
.area-row-head input {
  flex: 1;
}

.zip-add, .zip-remove,
.area-add, .area-remove {
  border: var(--glass-border);
  background: var(--glass-bg);
  border-radius: var(--r-pill);
  cursor: pointer;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 18px;
  min-height: 32px;
  color: var(--ink-900);
  font-weight: 600;
}

.zip-add,
.area-add {
  justify-self: start;
}

.zip-add:disabled,
.area-add:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (pointer: coarse) {
  .zip-add, .zip-remove,
  .area-add, .area-remove {
    min-height: 44px;
    padding: 10px 14px;
  }
}

.location-status {
  font-size: 12px;
  color: var(--ink-500);
  margin: 4px 0;
}

.location-selected {
  font-size: 12px;
  color: var(--accent-ink);
}

.intent-address {
  position: relative;
  display: grid;
  gap: 6px;
}

.intent-picked {
  font-size: 12px;
  color: var(--accent-ink);
}

.intent-picked[hidden] {
  display: none;
}

.hp { display: none !important; }

.form-errors {
  padding: 12px 16px;
  background: var(--card-inset-bg);
  border: var(--card-border);
  border-radius: var(--r-inner);
  color: var(--ink-900);
  font-size: 13px;
  margin-bottom: 16px;
}

.form-errors ul {
  margin: 0;
  padding-left: 18px;
}

/* Mobile responsive rules (<= 700px): map above form, sticky while scrolling */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 225px;
  }
  .intent-form input,
  .intent-form button {
    scroll-margin-top: 225px;
  }
  .split .map {
    position: sticky;
    top: 0;
    width: 100%;
    height: 210px;
    z-index: 3;
    border-radius: 0 0 24px 24px;
  }
  .split .split-wash {
    border-radius: 0 0 24px 24px;
    z-index: 2;
  }
  .split .map-label {
    display: block;
    position: sticky;
    top: 125px;
    margin-top: -85px;
    height: 85px;
    width: auto;
    padding-left: 20px;
    left: auto;
    bottom: auto;
    z-index: 5;
  }
  .split .map-label h2 {
    font-size: 26px;
  }
  .split .form-area {
    margin: 0;
    padding: 24px 20px 55px;
    z-index: 2;
  }
  .top {
    margin-bottom: 24px;
  }
}

/* Keep canonical location fallback usable until enhancement succeeds. */
.zip-rows[hidden], .area-rows[hidden], .area-row[hidden], .intent-zips-field[hidden]{display:none}
