/* Quiet, purposeful feedback for the existing Houston design. */
:root {
  --motion-fast: 140ms;
  --motion-state: 220ms;
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --focus: #846330;
  --error: #9a312e;
  --surface-field: #fff;
}
::selection { background: #d9c7a7; color: var(--navy); }
input,textarea { caret-color: var(--gold); }
input::placeholder,textarea::placeholder { color: #657073; opacity: 1; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
#main:focus { outline: none; }
button,a,input,select,textarea { touch-action: manipulation; }
button:disabled { opacity: .55; cursor: not-allowed; }
button,a.primary,a.secondary { min-height: 44px; }
.primary,.secondary,.filter-btn,.chips button,.heart,.nav-contact,.load-more {
  transition: background-color var(--motion-fast),color var(--motion-fast),border-color var(--motion-fast);
}
.primary span,.secondary span,.text-link span,.nav-contact span {
  display: inline-block;
  transition: transform var(--motion-state) var(--ease-settle);
}
.primary:active,.secondary:active,.filter-btn:active,.chips button:active { background-color: #294552; color: white; }
.header nav>a { position: relative; }
.header nav>a:not(.nav-contact)::after {
  content: ''; position: absolute; height: 1px; left: 0; right: 0; bottom: 7px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--motion-state) var(--ease-settle);
}
.header nav>a.active::after,.header nav>a:focus-visible::after { transform: scaleX(1); }
.text-link { white-space: normal; }
input,select,textarea {
  transition: border-color var(--motion-fast),background-color var(--motion-fast);
}
input:focus,select:focus,textarea:focus { border-color: var(--gold); }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.search-field input:focus-visible { outline: none; }
input[aria-invalid=true],select[aria-invalid=true] { border-color: var(--error); background: #fff7f5; }
.contact-hero .eyebrow,.contact-hero .contact-info small { color: #d5b477; }
.har-filter-form>label,.har-subdivision { color: var(--muted); font-size: 12px; }
.har-check { min-height: 44px; cursor: pointer; font-size: 12px; }
.har-check input { width: 18px; height: 18px; flex-shrink: 0; }
.har-secondary-controls { gap: 10px 20px; }
.har-filter-form .har-subdivision input { height: 44px; font-size: 12px; }
.har-filter-form input:not([type=checkbox]),.har-filter-form select { background: var(--surface-field); font-size: 13px; }
.har-result-actions a,.har-result-actions button,.har-secondary-controls button {
  min-height: 44px; display: inline-flex; align-items: center;
}
.har-results-heading { margin-bottom: 4px; }
.har-results-heading #har-search-summary { font-size: 12px; line-height: 1.6; }
.har-map-hint { color: #52614f; }
.har-map-hint p,.har-embed-note { font-size: 12px; }
.har-frame-shell { position: relative; }
.har-loading-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 1;
  background: var(--gold); opacity: 0; transform: scaleX(0); transform-origin: left;
  transition: opacity var(--motion-fast);
}
.is-loading .har-loading-line { opacity: 1; transform: scaleX(1); animation: search-handoff 650ms var(--ease-settle) both; }
.har-load-status { min-height: 2.8em; margin: 0; padding: 9px 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.har-own-listings h2 { font: 27px var(--serif); margin: 0; }
@keyframes search-handoff { from { transform: scaleX(.08); } to { transform: scaleX(1); } }
.heart { width: 44px; height: 44px; line-height: 44px; font-size: 24px; }
.property-image .community-tag { max-width: calc(100% - 76px); }
.property-bottom button { min-height: 44px; }
.property h3 { font-size: 13px; }
.property .location,.property .specs { font-size: 12px; }
.property-bottom { font-size: 11px; }
.property-bottom button { font-size: 11px; }
.price,.specs,.listing-table { font-variant-numeric: tabular-nums; }
.view-toggle button,.mobile-tabs button { min-width: 44px; }
.close-dialog { width: 44px; height: 44px; top: 10px; right: 10px; }
body.dialog-open { overflow: hidden; }
dialog { overscroll-behavior: contain; }
dialog::backdrop { background: #11293880; animation: backdrop-enter 200ms ease-out; }
@keyframes backdrop-enter { from { background: #11293800; } to { background: #11293880; } }
#toast { transition: opacity var(--motion-state),transform var(--motion-state) var(--ease-settle); }
.menu-toggle { width: 44px; height: 44px; padding: 10px; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle path { transform-origin: 12px 12px; transition: transform var(--motion-state) var(--ease-settle); }
.header.open .menu-toggle path:first-child { transform: translateY(4px) rotate(45deg); transform-origin: 12px 8px; }
.header.open .menu-toggle path:last-child { transform: translateY(-4px) rotate(-45deg); transform-origin: 12px 16px; }
@media (hover:hover) and (pointer:fine) {
  .primary:hover,.nav-contact:hover { background: #294552; }
  .primary.light:hover,.secondary:hover { background: #ece8de; color: var(--navy); }
  .primary:hover span,.text-link:hover span,.nav-contact:hover span { transform: translate(2px,-2px); }
  .header nav>a:hover::after { transform: scaleX(1); }
  .chips button:not(.active):hover,.filter-btn:not(.selected):hover,.load-more:hover { background: #ece8de; }
  .heart:hover { background: #ebe5d8; color: var(--navy); }
  .heart.saved:hover { background: #294552; color: white; }
}
@media (max-width:1050px) {
  .cards .specs { flex-wrap: wrap; gap: 4px 10px; white-space: normal; }
  .property-bottom { flex-wrap: wrap; }
}
@media (max-width:760px) {
  .header.open nav { animation: menu-enter 200ms var(--ease-settle); }
  .header nav>a:not(.nav-contact)::after { left: 13px; right: 13px; }
  .har-secondary-controls { gap: 4px; }
  .har-secondary-controls button { padding: 0 8px; margin-left: -8px; }
  .har-map-hint p { font-size: 12px; }
  .har-result-actions { flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; font-size: 12px; }
  .har-result-actions button { font-size: 12px; }
  .har-load-status { min-height: 4.6em; }
  .har-own-listings h2 { font-size: 25px; }
  .chips button { font-size: 12px; }
  .filter-select,.sort { min-height: 44px; }
  .map-subline button { min-width: 44px; }
  .property .location,.property .specs { font-size: 12px; }
  .property h3 { font-size: 14px; }
  .property-bottom span { max-width: none; }
  .property-bottom button { font-size: 12px; }
  .close-dialog { top: 6px; right: 6px; }
}
@media (max-width:480px) {
  .cards,.all-grid .cards { grid-template-columns: minmax(0,1fr); }
  .property-image { aspect-ratio: 1.6; }
  .property-content { padding: 16px; }
  .property-content .price-line { display: flex; align-items: center; }
  .availability { display: inline; max-width: none; font-size: 9px; }
  .community-tag { font-size: 10px; }
  .photo-note { font-size: 10px; }
  .property-bottom { margin-top: 4px; }
}
@keyframes menu-enter { from { opacity: .7; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .primary span,.secondary span,.text-link span,.nav-contact span,.menu-toggle path { transition: none; }
  .primary:hover span,.text-link:hover span,.nav-contact:hover span { transform: none; }
  .property-image img,.community-cover img { transition: none; }
  .property:hover img,.community-card:hover img { transform: none; }
  .header.open nav,dialog::backdrop,.is-loading .har-loading-line { animation: none; }
  .is-loading .har-loading-line { transform: scaleX(1); }
  #toast { transform: translateX(-50%); transition: opacity 120ms; }
  #toast.show { transform: translateX(-50%); }
  .header nav>a::after { transition: none; }
}
