/* v5 refinements: footer branding, mobile nav tap targets, small rhythm fixes. */

/* ---------- Footer ---------- */
.v5-footer { padding: 56px 0 28px; color: #2a3140; }
.v5-foot-brand {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: 40px; /* clear space around the eXp logo: wider than the "e" in eXp */
  padding: 8px 0 40px; border-bottom: 1px solid rgba(16,35,63,.14);
}
/* Official eXp file shown unmodified; the PNG carries its own transparent margin,
   so the 128px square box renders the wordmark about 64px tall (above eXp's 60px minimum). */
.v5-exp-logo { justify-self: end; display: block; width: 128px; height: 128px; margin: -32px 0; }
.v5-foot-divider { width: 2px; height: 64px; background: #D5AC63; }
.v5-foot-name { justify-self: start; margin: 0; display: flex; flex-direction: column; gap: 3px; color: #10233F; }
.v5-foot-name strong { font: 500 24px/1.15 Georgia, "Times New Roman", serif; }
.v5-foot-tfr { font: italic 400 17px/1.3 Georgia, "Times New Roman", serif; color: #10233F; }
.v5-foot-title { font-size: 13px; letter-spacing: .04em; color: #3d4450; }
.v5-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; padding: 36px 0 28px; max-width: 980px; margin: 0 auto; }
.v5-foot-cols ul { list-style: none; margin: 0; padding: 0; }
.v5-foot-cols li a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.v5-foot-h { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #10233F; }
.v5-foot-tag { margin: 12px 0 0; font: italic 15px/1.5 Georgia, serif; color: #10233F; }
.v5-foot-legal { border-top: 1px solid rgba(16,35,63,.14); padding-top: 20px; text-align: center; font-size: 13px; color: #3d4450; }
.v5-foot-legal p { margin: 4px 0; }
.v5-foot-legal a { display: inline-block; padding: 12px 2px; }
@media (max-width: 760px) {
  .v5-foot-brand { grid-template-columns: 1fr; row-gap: 22px; justify-items: center; text-align: center; }
  .v5-exp-logo, .v5-foot-name { justify-self: center; }
  .v5-foot-name { align-items: center; }
  .v5-foot-divider { width: 64px; height: 2px; }
  .v5-foot-cols { grid-template-columns: 1fr; gap: 20px; text-align: center; }
}

/* ---------- Mobile nav tap targets ---------- */
@media (max-width: 1099px) {
  .site-nav .head-menu > li { position: relative; }
  .site-nav .head-menu > li > a.top-link { min-height: 48px; display: flex; align-items: center; padding-right: 56px; }
  .has-child .submenu-toggle { min-width: 48px; min-height: 48px; }
  .site-nav .submenu a { min-height: 44px; display: flex; align-items: center; }
  .nav-toggle { min-width: 48px; min-height: 48px; }
}
.site-nav .top-link[aria-current="true"] { color: #D5AC63; }
.site-nav .submenu a[aria-current="page"] { color: #D5AC63; }

/* ---------- Rhythm ---------- */
.v4-head { margin-bottom: 44px; }
.v4-privacy { font-size: 13px; color: #3d4450; margin: 10px 0 0; }
.v5-pin { font-size: 13px; color: #5a6270; }
.v5-photo-slot { background: #142544; border-bottom: 3px solid #D5AC63; aspect-ratio: 16 / 9; width: 100%; }
.v5-photo-wide { aspect-ratio: 21 / 9; }
.v4-consent input[type="checkbox"] { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 2px; accent-color: #10233F; }
.v4-consent label { cursor: pointer; }
.v5-foot-legal a { padding: 13px 2px; }
.proto-banner { font-size: 12px; padding: 4px 12px; }
/* Mobile: the open menu drops below the logo row instead of squeezing beside it */
@media (max-width: 1099px) {
  .header-bar { flex-wrap: wrap; }
  .header-bar > .site-nav { flex: 0 0 100%; width: 100%; order: 10; }
  .site-nav.is-open .head-menu { padding: 8px 0 16px; border-top: 1px solid rgba(213,172,99,.35); }
  .site-nav .head-menu > li > a.top-link { padding-left: 0; }
}
.v4-consent p.v4-privacy { display: block; }

/* eXp® REALTY | NEW HOMES program logo (official black PNG, 203x39, unmodified) under the main eXp Realty logo.
   Shown narrower than the eXp Realty wordmark (~125px) so the brokerage logo stays the primary mark. */
.v5-foot-logos { justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.v5-foot-logos .v5-exp-logo { justify-self: auto; }
.v5-expnh-logo { display: block; width: 118px; height: auto; margin-top: 4px; }
@media (max-width: 760px) {
  .v5-foot-logos { justify-self: center; }
  .v5-expnh-logo { width: 112px; }
}

/* Community directory: server-rendered list + location/builder selects (egga-directory.js) */
#tfr-communities-map .tfr-community[hidden] { display: none !important; }
.egga-dir-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.egga-dir-selects label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #142544; }
.egga-dir-selects select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #d6dce5; border-radius: 6px; font: inherit; font-weight: 400; font-size: 14px; background: #fff; color: #24334b; }
.egga-dir-az { margin: 26px 0 18px; border-top: 1px solid #e4e8ef; padding-top: 14px; }
.egga-dir-az summary { cursor: pointer; font-weight: 700; color: #142544; }
.egga-dir-az ul { columns: 2; column-gap: 32px; margin: 14px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) { .egga-dir-selects { grid-template-columns: 1fr; } .egga-dir-az ul { columns: 1; } }
.egga-cat-list { max-width: 1180px; margin: 48px auto; padding: 0 24px; color: #24334b; }
.egga-cat-list h2 { font: 400 clamp(28px,3.4vw,40px)/1.2 Georgia,"Times New Roman",serif; color: #142544; margin: 0 0 12px; }
.egga-cat-list ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.egga-cat-list li { border: 1px solid #e4e8ef; border-left: 3px solid #c9a744; padding: 14px 16px; background: #fff; }
.egga-cat-list small { color: #667085; }
/* Area map list: community page links sit beside (not inside) the place button; unpinned places are still buttons that open the pop-up */
.v4-placelist li > .v4-li-link { display: inline-block; margin: 0 0 8px 14px; font-size: 12.5px; color: #142544; text-decoration: underline; text-underline-offset: 2px; }
.v4-placelist button[data-nopin] small { color: #667085; }
.egga-map-insert { margin: 24px 0; }
