/* Find an agent (owner, 31 Oct 2026, harmony-ops#697). Owner's design rule: no gradients, glows, emoji or decorative cards; brand teal only on
   primary actions; 8px spacing grid; tap targets of at least 44px; plain type; phone first. Builds on easyproperty-listing.css (.lp-*, .af-*). */

.afx { background: #f4f7f8; padding-bottom: 0; }

/* hero: a real photo with a plain dark overlay for legible text */
.afx-hero { position: relative; color: #fff; overflow: hidden; background: #12303a; }
.afx-hero picture, .afx-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.afx-hero-img { object-fit: cover; object-position: center 40%; opacity: .3; } /* .3 keeps white and #e6eef1 text at 4.5:1 or more over any part of the photo (was .45: 3.1:1 on the bright parts) */
.afx-hero-in { position: relative; padding-top: 32px; padding-bottom: 32px; }
.afx-hero h1 { color: #fff; font-size: 28px; line-height: 1.2; font-weight: 800; margin: 0 0 8px; max-width: 720px; }
.afx-sub { color: #e6eef1; font-size: 16px; margin: 0 0 16px; max-width: 640px; }
.afx-crumb { font-size: 14px; margin: 0 0 8px; }
.afx-crumb a { color: #fff !important; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
@media (min-width: 768px) { .afx-hero-in { padding-top: 64px; padding-bottom: 56px; } .afx-hero h1 { font-size: 40px; } }

/* one search box with Location | Name */
.afx-search { max-width: 640px; }
.afx-by { border: 0; padding: 0; margin: 0 0 8px; display: flex; gap: 8px; }
.afx-by label { margin: 0; cursor: pointer; }
.afx-by input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.afx-by span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,.6); color: #fff; font-weight: 700; font-size: 15px; }
.afx-by input:checked + span { background: #fff; color: #12303a; border-color: #fff; }
.afx-by input:focus-visible + span { outline: 3px solid #f2c94c; outline-offset: 2px; }
.afx-box { position: relative; display: flex; gap: 8px; }
.afx-box input { flex: 1 1 auto; min-width: 0; min-height: 48px; border-radius: 8px; border: 0; padding: 0 16px; font-size: 16px; color: #12303a; }
.afx-suggest { position: absolute; left: 0; right: 96px; top: 56px; z-index: 20; list-style: none; margin: 0; padding: 8px 0; background: #fff; border-radius: 8px; border: 1px solid #cbd8de; }
.afx-opt { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-height: 44px; padding: 0 16px; color: #12303a; cursor: pointer; font-size: 15px; }
.afx-opt[aria-selected="true"], .afx-opt:hover { background: #eef4f6; }
.afx-kind { color: #4b6670; font-size: 13px; }

/* filters row */
.afx-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; align-items: end; padding: 16px 0; margin: 0 0 8px; border-bottom: 1px solid #d9e3e7; }
.afx-f label { display: block; font-size: 13px; font-weight: 700; color: #26414b; margin: 0 0 4px; }
.afx-f select, .afx-f input { width: 100%; min-height: 44px; border: 1px solid #9fb3bb; border-radius: 8px; padding: 0 8px; font-size: 16px; color: #12303a; background: #fff; }
.afx-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-weight: 700; color: #26414b; font-size: 15px; }
.afx-check input { width: 24px; height: 24px; }
.afx-go { display: flex; align-items: center; gap: 16px; }
.afx-go .lp-btn { min-height: 44px; }
.afx-clear { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 8px; font-weight: 700; }
@media (min-width: 992px) { .afx-filters { grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto; } }   /* 5: State, Listings, Property type, Price, Area */

.afx-results { padding: 16px 0 32px; }
.afx-intro { font-size: 15px; color: #26414b; max-width: 760px; margin: 0 0 16px; }
.afx-alt { font-weight: 700; color: #1A1F24; }   /* the search matched the other way (a name, not an area): say so plainly (harmony-ops#1037) */

/* cards: 1 column on phones, 2 from 768px; plain white with a hairline border, no shadows */
.afx-cards { gap: 16px; }
@media (min-width: 640px) { .afx-cards { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .afx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.afx .af-card { box-shadow: none; border: 1px solid #d9e3e7; border-radius: 8px; padding: 16px; gap: 8px 16px; }
.afx-initials { width: 72px; height: 72px; border-radius: 50%; background: #e3eaee; color: #12303a; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; letter-spacing: .5px; }
.afx .af-photo { display: block; text-decoration: none; }
.afx .af-body h3 { font-size: 18px; }
.afx .af-body h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.afx .af-badge { background: #e8f1f3; color: #12303a !important; }
.afx-prices { font-weight: 700; color: #12303a !important; }
.afx-resp { color: #4b6670 !important; }
.afx .af-cta { margin-top: 8px; gap: 8px; }

/* "Get help finding an agent": a full-width band with a photo */
.afx-help { background: #fff; border-top: 1px solid #d9e3e7; border-bottom: 1px solid #d9e3e7; padding: 32px 0; }
.afx-help-in { display: grid; gap: 24px; }
.afx-help-photo img { width: 100%; height: auto; border-radius: 8px; display: block; }
.afx .af-help { position: static; background: transparent; box-shadow: none; padding: 0; }
.afx-two { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .afx-two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .afx-help-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .afx-help { padding: 48px 0; } }

/* FAQ */
.afx-faq { padding-top: 32px; padding-bottom: 32px; }
.afx-faq h2 { font-size: 24px; margin: 0 0 16px; }
.afx-faq details { border-top: 1px solid #d9e3e7; }
.afx-faq details:last-of-type { border-bottom: 1px solid #d9e3e7; }
.afx-faq summary { min-height: 48px; padding: 12px 0; font-weight: 700; color: #12303a; cursor: pointer; font-size: 16px; }
.afx-faq p { margin: 0 0 16px; color: #26414b; font-size: 15px; max-width: 760px; }

/* "Are you a real estate agent?" */
.afx-list { background: #12303a; color: #fff; padding: 32px 0; }
.afx-list-in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.afx-list h2 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.afx-list p { color: #e6eef1; margin: 0; max-width: 640px; }

/* the agent profile: hero and map (agent-details) */
.ad-since { color: #4b6670 !important; }
.ad .ep-minimap { height: 280px; border-radius: 8px; border: 1px solid #d9e3e7; margin: 0 0 8px; }
.ad-map { margin: 0 0 24px; }
.ad-map h2 { font-size: 20px; margin: 0 0 8px; }
