/* Find An Agent prototype styles. Builds on optimyl-web-tokens.css (brand fonts + colors). */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--text-primary); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-teal-dark); text-decoration: none; }
a:hover { color: var(--brand-green); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--brand-navy); margin: 0; line-height: 1.2; }
p { margin: 0 0 12px; }
.mont { font-family: var(--font-heading); }

/* prototype ribbon */
.proto-ribbon { background: var(--brand-navy); color: #C9E3D6; font-family: var(--font-heading); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; text-align: center; padding: 6px 16px; }
.proto-ribbon strong { color: var(--brand-green); }

/* site header */
.site-header { background: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 64px; border-bottom: 1px solid #E5E5E5; position: relative; }
.site-logo img { height: 84px; width: auto; display: block; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-item { font-family: var(--font-heading); font-size: 18px; font-weight: 500; color: var(--text-dark); padding: 10px 14px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 3px solid transparent; }
.nav-item--on { color: var(--brand-green); border-bottom-color: var(--brand-green); }
.site-cta { display: flex; gap: 12px; }
.ob-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; line-height: 1.15; white-space: nowrap; text-decoration: none; }
.ob-btn:hover { color: var(--white); filter: brightness(1.05); }
.ob-btn--ghost { background: var(--white); color: var(--brand-navy); box-shadow: none; border: 2px solid var(--brand-navy); padding: 9px 32px; }
.ob-btn--ghost:hover { color: var(--brand-navy); background: #F4F6F8; }
.ob-btn--sm { font-size: 14px; padding: 9px 18px; box-shadow: 0 3px 3px 0 rgba(0,0,0,0.18); }
.ob-btn--sm.ob-btn--ghost { padding: 7px 16px; }
.ob-btn--block { width: 100%; }

/* hero */
.hero { background: linear-gradient(120deg, var(--brand-navy) 0%, var(--brand-teal-dark) 70%, #14634F 100%); color: var(--white); padding: 64px 64px 72px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(78,188,139,0.18); }
.hero-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.eyebrow { font-family: var(--font-heading); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand-green); }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: 48px; color: var(--white); margin: 10px 0 14px; max-width: 760px; }
.hero p.lead { font-family: var(--font-heading); font-size: 20px; font-weight: 500; line-height: 1.45; max-width: 700px; color: #E4EEF1; margin-bottom: 32px; }

/* search card */
.search-card { background: var(--white); border-top: 5px solid var(--brand-green); box-shadow: 0 10px 30px rgba(0,0,0,0.25); padding: 26px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr auto; gap: 16px; align-items: end; color: var(--text-primary); }
.search-card--inline { box-shadow: none; border: 1px solid #DDDDDD; border-top: 4px solid var(--brand-green); padding: 18px 20px; grid-template-columns: 1.2fr 1fr 1.2fr 1fr auto; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ob-label { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--brand-navy); }
.ob-input, .ob-select, .ob-textarea { font-family: var(--font-heading); font-size: 16px; color: var(--text-dark); background: var(--white); border: 1px solid var(--border-input); border-radius: 0; padding: 6px 14px; height: 47px; width: 100%; }
.ob-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23141A36' stroke-width='2' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.ob-textarea { height: auto; min-height: 110px; padding: 12px 14px; font-family: var(--font-body); resize: vertical; }
.ob-input:focus, .ob-select:focus, .ob-textarea:focus { outline: 2px solid var(--brand-green); outline-offset: 0; border-color: var(--brand-green); }
.ob-input.is-invalid, .ob-select.is-invalid { border-color: #C0392B; outline: 2px solid #C0392B; }
.hint { font-size: 13px; color: var(--text-muted); }

/* generic sections */
.section { padding: 56px 64px; }
.section--alt { background: #F4F6F8; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section h2 { font-size: 30px; font-weight: 600; margin-bottom: 8px; }
.section .sub { font-size: 17px; color: #4F5B66; max-width: 720px; margin-bottom: 32px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.step { background: var(--white); border: 1px solid #DDDDDD; border-top: 4px solid var(--brand-green); padding: 26px 24px; }
.step-n { font-family: var(--font-heading); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--brand-green); text-transform: uppercase; }
.step h3 { font-size: 20px; font-weight: 600; margin: 8px 0 8px; }
.step p { color: #4F5B66; margin: 0; font-size: 15px; }

/* results layout */
.results-bar { background: #F4F6F8; border-bottom: 1px solid #E5E5E5; padding: 24px 64px; }
.results-bar .section-inner { display: flex; flex-direction: column; gap: 14px; }
.results-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.results-summary h1 { font-size: 28px; font-weight: 600; }
.results-summary .meta { font-size: 15px; color: #4F5B66; }
.results-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; padding: 32px 64px 64px; max-width: 1248px; margin: 0 auto; }
.filters { position: sticky; top: 16px; align-self: start; }
.filter-card { background: var(--white); border: 1px solid #DDDDDD; padding: 20px; }
.filter-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.filter-group { border-top: 1px solid #EEEEEE; padding: 14px 0; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group .ob-label { display: block; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-green); margin: 0; }
.filter-actions { display: flex; gap: 10px; margin-top: 14px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.list-head .count { font-family: var(--font-heading); font-weight: 600; color: var(--brand-navy); }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.sort .ob-select { height: 38px; font-size: 14px; width: auto; padding-right: 34px; }
.map { position: relative; height: 200px; background: linear-gradient(135deg, #E9EFF3 0%, #DCE7E1 100%); border: 1px solid #DDDDDD; margin-bottom: 20px; overflow: hidden; }
.map::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(20,26,54,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20,26,54,0.06) 1px, transparent 1px); background-size: 40px 40px; }
.map-road { position: absolute; height: 6px; background: rgba(255,255,255,0.85); left: -5%; right: -5%; }
.map-road--a { top: 38%; transform: rotate(-6deg); }
.map-road--b { top: 70%; transform: rotate(4deg); }
.map-road--v { width: 6px; height: 120%; top: -10%; left: 62%; transform: rotate(8deg); }
.pin { position: absolute; width: 28px; height: 28px; margin-left: -14px; margin-top: -28px; background: var(--brand-navy); color: var(--white); font-family: var(--font-heading); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 4px rgba(0,0,0,0.3); }
.pin span { transform: rotate(45deg); }
.pin--you { background: var(--brand-green); }
.map-label { position: absolute; right: 12px; bottom: 10px; font-family: var(--font-heading); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #4F5B66; background: rgba(255,255,255,0.85); padding: 4px 8px; }

/* agent card */
.agent-card { background: var(--white); border: 1px solid #DDDDDD; padding: 22px 24px; display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 20px; margin-bottom: 16px; transition: border-color .15s, box-shadow .15s; }
.agent-card:hover { border-color: var(--brand-green); box-shadow: 0 6px 5px 0 rgba(0,0,0,0.12); }
.avatar { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--white); background: var(--brand-teal-dark); flex-shrink: 0; }
.avatar--lg { width: 120px; height: 120px; font-size: 40px; }
.avatar--sm { width: 48px; height: 48px; font-size: 16px; }
.agent-name { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.agent-name a { color: var(--brand-navy); }
.agent-name a:hover { color: var(--brand-green); }
.agent-agency { font-family: var(--font-heading); font-size: 15px; font-weight: 500; color: #4F5B66; margin-top: 2px; }
.agent-loc { font-size: 14px; color: #4F5B66; margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.agent-loc svg { vertical-align: -3px; margin-right: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { display: inline-block; font-family: var(--font-heading); font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--brand-teal-dark); color: var(--brand-teal-dark); white-space: nowrap; }
.tag--green { border-color: var(--brand-green); color: #2E8A5F; background: #F0FAF5; }
.tag--gray { border-color: #C2C2C2; color: #69727D; background: #F7F7F7; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-heading); font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #2E8A5F; background: #F0FAF5; border: 1px solid #C9E3D6; padding: 3px 8px; }
.badge svg { width: 12px; height: 12px; }
.card-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; justify-content: center; min-width: 170px; }
.card-actions .ob-btn { width: 100%; }
.responds { font-size: 12px; color: #4F5B66; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.responds svg { width: 13px; height: 13px; }

/* empty state */
.empty { background: var(--white); border: 1px solid #DDDDDD; border-top: 4px solid #C98A1B; padding: 36px; text-align: center; }
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: #4F5B66; max-width: 560px; margin: 0 auto 20px; }
.empty .ob-btn { margin: 0 6px; }

/* profile */
.profile-head { background: #F4F6F8; border-bottom: 1px solid #E5E5E5; padding: 28px 64px 32px; }
.profile-head .section-inner { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.profile-title { flex: 1; min-width: 260px; }
.profile-title h1 { font-size: 34px; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-title .agent-agency { font-size: 18px; }
.profile-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 32px 64px 64px; max-width: 1248px; margin: 0 auto; }
.card { background: var(--white); border: 1px solid #DDDDDD; padding: 24px; margin-bottom: 20px; }
.card h2 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.card p { font-size: 15px; color: var(--text-primary); }
.kv { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 10px 16px; font-size: 15px; margin: 0; }
.kv dt { font-family: var(--font-heading); font-weight: 600; color: var(--brand-navy); }
.kv dd { margin: 0; color: var(--text-primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--brand-navy); border: 1px solid #C2C2C2; padding: 6px 12px; background: var(--white); }
.sidecard { position: sticky; top: 16px; align-self: start; }
.sidecard .card { border-top: 4px solid var(--brand-green); }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 8px 0; border-top: 1px solid #EEEEEE; }
.contact-line:first-of-type { border-top: 0; }
.contact-line svg { flex-shrink: 0; color: var(--brand-teal-dark); }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.stat { display: inline-flex; align-items: baseline; gap: 8px; background: #EAF6F0; border: 1px solid #C9E3D6; border-top: 3px solid var(--brand-green); padding: 8px 14px; }
.stat-n { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--brand-navy); line-height: 1; }
.stat-l { font-size: 13px; color: #4F5B66; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; }
.form-grid .span2 { grid-column: span 2; }
.form-error { margin: 0 0 16px; padding: 10px 14px; background: #FDECEC; border: 1px solid #C0392B; color: #8A1C1C; font-size: 14px; line-height: 1.4; }
.form-notice { margin: 0 0 16px; padding: 10px 14px; background: #F0FAF5; border: 1px solid var(--brand-green); color: #1F5F44; font-size: 14px; line-height: 1.4; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.fine { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.agent-summary { display: flex; gap: 14px; align-items: center; }
.agent-summary .agent-name { font-size: 17px; }
.agent-summary .agent-agency { font-size: 14px; }

/* confirmation */
.confirm { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; text-align: center; }
.confirm-icon { width: 72px; height: 72px; margin: 0 auto 20px; background: var(--brand-green); display: flex; align-items: center; justify-content: center; color: var(--white); }
.confirm-icon svg { width: 36px; height: 36px; }
.confirm h1 { font-size: 34px; font-weight: 700; margin-bottom: 10px; }
.confirm .lead { font-size: 18px; color: #4F5B66; }
.ref { display: inline-block; font-family: var(--font-heading); font-weight: 700; color: var(--brand-navy); background: #F4F6F8; border: 1px solid #DDDDDD; padding: 8px 16px; margin: 10px 0 28px; }
.next { text-align: left; }
.next ol { margin: 0; padding-left: 22px; font-size: 15px; }
.next li { margin-bottom: 8px; }

/* footer */
.site-footer { background: var(--surface-alt); padding: 40px 64px 32px; display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 24px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; }
.foot-link { font-family: var(--font-display); font-size: 16px; color: var(--text-dark); padding: 6px 16px; }
.site-footer p { margin: 0; font-size: 15px; color: #333333; }
.site-footer .copy { color: #555555; font-size: 14px; }

/* prototype map */
.proto-map { border: 1px dashed #C2C2C2; background: #FAFBFC; padding: 20px 24px; }
.proto-map h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #4F5B66; }
.proto-map ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }

/* responsive */
@media (max-width: 1024px) {
  .site-header { padding: 12px 24px; }
  .site-nav { display: none; }
  .hero, .section, .results-bar, .profile-head { padding-left: 24px; padding-right: 24px; }
  .results-grid, .profile-grid { grid-template-columns: minmax(0,1fr); padding: 24px 24px 48px; }
  .filters, .sidecard { position: static; }
  .search-card, .search-card--inline { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .search-card .ob-btn { grid-column: span 2; }
  .steps3 { grid-template-columns: minmax(0,1fr); }
  .site-footer { padding: 28px 16px; }
}
@media (max-width: 640px) {
  .site-logo img { height: 60px; }
  .site-cta .ob-btn { font-size: 14px; padding: 9px 14px; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 17px; }
  .search-card, .search-card--inline { grid-template-columns: minmax(0,1fr); }
  .search-card .ob-btn { grid-column: auto; }
  .agent-card { grid-template-columns: 56px minmax(0,1fr); }
  .avatar { width: 56px; height: 56px; font-size: 20px; }
  .card-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .card-actions .ob-btn { width: auto; flex: 1; }
  .responds { flex-basis: 100%; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid .span2 { grid-column: auto; }
  .kv { grid-template-columns: minmax(0,1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .profile-title h1 { font-size: 26px; }
}
