/* /agents/ and /agents/<slug>/ (PHASE 6 part 6).

   The artifact has no view for these pages, so everything a card draws is
   site.css's own `.agent` (the preview's agentCard), `.fact` and `.props`.
   This file only lays them out: a grid of broker cards, the filter row's
   selects, and the profile's column. Loaded by those two pages alone, so
   nothing here can repaint a page already compared to the reference. */

.agentgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 18px;
  margin-top: 24px;
}
.agenttile { margin: 0; }
.agenttile .nm a { color: inherit; text-decoration: none; }
.agenttile .nm a:hover { color: var(--gold); }
.agentfacts { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.agentfacts .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-right: 6px; }
.agentfilter select {
  box-sizing: border-box;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  font: inherit;
}
.agentprofile { max-width: 760px; }
.agentprofile .facts { margin-top: 14px; }
.agentbio { margin-top: 26px; }
.agentbio p { font-size: 15px; line-height: 1.8; font-weight: 300; white-space: pre-line; }
.agentback, .agentorn { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------------------
 * THE BROKERS' PAGES, 14 November 2026 (owner: "/ agents a grid of 3 horizontal and 6 vertical ...
 * add a simple search option to filter individual brokers listing and a simple buy and rent selector
 * nothing fancy keep the length of the search bar the same as a vertical listing, dont give it a tile to
 * sit on keep it open like text, align it left relative the the listings below it ... make brokers
 * profiles horizontal like listing tiles"; and, on any picture made smaller: "dont stretch the image ...
 * reduce length in a 0.5 or relavent proportion so it dosent distort the orignal look").
 * ------------------------------------------------------------------------- */

/* /agents/: never more than three across (18 a page is three by six); fewer where a card would be
   narrower than 280px */
.agentgrid { grid-template-columns: repeat(auto-fill, minmax(max(min(280px, 100%), calc((100% - 36px) / 3)), 1fr)); }

/* THE PROFILE, HORIZONTAL. The photograph keeps 3:2 at whatever width it is drawn: its height FOLLOWS its
   width and is never stretched to the height of the words beside it (align-self: start). */
.agentprofile { max-width: 1180px; }   /* the .wrap it is: the tile as wide as the listings under it */
.agentprofile .agentbio { max-width: 760px; }
.agentwide { padding: 0; overflow: hidden; }
.agentwide .aw-media { min-width: 0; }
.agentwide .aw-media .aphoto { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--band-alt); }
.agentwide .aw-media .aphoto img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.agentwide .aw-body { flex: 1 1 0; min-width: 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.agentwide .facts { margin-top: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 10px 22px; }
.agentwide .fact .v { overflow-wrap: anywhere; }
.agentwide .aw-btns { flex-direction: row; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.agentwide .aw-btns .btn { width: auto; flex: 1 1 0; min-width: 104px; text-align: center; }
@media (min-width: 720px) {
  .agentwide { flex-direction: row; align-items: flex-start; }
  .agentwide .aw-media { flex: 0 0 38%; max-width: 420px; }
  .agentwide .aw-body { align-self: stretch; }
}

/* THE SEARCH OVER A BROKER'S LISTINGS: on the listings' own grid (site.css and owner.css block 11 give
   `.props` columns of min(330px, 100%) and a 24px gap), so the box takes exactly one upright tile's
   column and starts where the first tile starts, at every width and in either direction. No ground and
   no tile: words on the band, the box one hairline under the text. */
.agentsearch { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 12px 24px;
  align-items: end; margin: 26px 0 0; padding: 0; border: 0; background: none; }
.agentsearch .as-box { display: flex; align-items: center; gap: 10px; min-width: 0; border-bottom: 1px solid var(--line); }
.agentsearch .as-box:focus-within { border-bottom-color: var(--gold); }
.agentsearch input[type="search"] { box-sizing: border-box; flex: 1 1 auto; min-width: 0; height: 40px; padding: 0;
  border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px;
  font-weight: 300; outline: none; -webkit-appearance: none; appearance: none; }
.agentsearch input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.agentsearch .as-go { box-sizing: border-box; flex: none; padding: 6px 0; border: 0; background: none; cursor: pointer;
  color: var(--gold); font: inherit; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.agentsearch .as-go:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.agentsearch .as-deal { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; margin: 0; padding: 0 0 8px;
  border: 0; min-width: 0; }
.agentsearch .as-pick { position: relative; cursor: pointer; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); }
.agentsearch .as-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.agentsearch .as-pick span { display: inline-block; padding: 6px 0 4px; border-bottom: 1px solid transparent; }
.agentsearch .as-pick input:checked + span { color: var(--gold); border-bottom-color: var(--gold); }
.agentsearch .as-pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.agentsearch .as-pick:hover span { color: var(--text); }
.agentsearch .as-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.agentlist .props { margin-top: 24px; }
/* the list fades while a search or a page is asked as every list does: owner.css block 6 */
.agentnone { margin: 26px 0 0; font-size: 15px; font-weight: 300; color: var(--text); }
.agentnone .listclear { color: var(--gold); margin-inline-start: 6px; }

/* THE BROKER'S FACTS ARE ONE BLOCK (owner, 15 November 2026: "put agents nationality above their language. and
   reduce the space between them."). Until then each line of facts on the /agents/ tile was an item of the card's
   column, so two lines stood the card's 16px gap plus their own 8px margin apart, 24px, as far as the photo is
   from the facts and the facts from the button. Now pages/agents.html draws them inside ONE item,
   `.agentfactset`, and each line after the first stands .3em under the one before, a fraction of that line's
   own size, whatever the words, the width or the language. Only the space BETWEEN the lines changed: the first
   line keeps `.agentfacts`' own 8px margin, so the name stands 24px above the block as it did, and the card's
   gap stays between the block and the button. The order (the nationality first) is macros/agentorigin.html's. */
.agentfactset .agentfacts + .agentfacts { margin-top: .3em; }
