body {
  background: #f8f7f4;
}

.sign-in-btn {
  background: transparent !important;
  color: #0f766e !important;
  border: 1px solid rgba(15, 118, 110, 0.3) !important;
}
.sign-in-btn:hover {
  background: rgba(15, 118, 110, 0.08) !important;
  border-color: rgba(15, 118, 110, 0.5) !important;
}

/* ── HERO ── */
.fa-hero {
  position: relative;
  height: 320px;
  min-height: 320px;
  max-height: 320px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fa-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.fa-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.22) 60%,
    rgba(0, 0, 0, 0.42) 100%
  );
}
.fa-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  width: 100%;
  max-width: 760px;
  transform: translateY(-18px);
}
.fa-hero__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}
.fa-hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  margin: 0 0 10px;
}
.fa-hero__sub {
  font-family: "Inter", sans-serif;
  font-size: 14.3px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  max-width: 620px;
  margin: 0 auto;
}

/* ── FLOATING SEARCH CARD ── */
.fa-search-wrap {
  display: flex;
  justify-content: center;
  padding: 0 24px;
  margin-top: -54px;
  position: relative;
  z-index: 10;
  margin-bottom: 44px;
}
.fa-search-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  padding: 22px 28px;
  width: 100%;
  max-width: 980px;
}
.fa-search-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 120px;
  gap: 12px;
  margin-bottom: 0;
}
.fa-search-input-wrap {
  position: relative;
}
.fa-search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.85rem;
}
.fa-search-input-wrap input,
.fa-search-input-wrap select {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 38px;
  border: 1px solid #d9e1e3;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #374151;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.18s;
  appearance: none;
}
.fa-search-input-wrap input:focus,
.fa-search-input-wrap select:focus {
  outline: none;
  border-color: #004f4d;
  background: #fff;
}

/* ── Custom teal/white select ── */
.fa-csel {
  position: relative;
  width: 100%;
}
.fa-csel__trigger {
  width: 100%;
  height: 46px;
  padding: 0 36px 0 38px;
  border: 1px solid #d9e1e3;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #374151;
  background: #ffffff;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition:
    border-color 0.18s,
    background 0.18s;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fa-csel__trigger:hover,
.fa-csel.open .fa-csel__trigger {
  border-color: #004f4d;
  background: #f0f8f8;
}
.fa-csel__arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.7rem;
  pointer-events: none;
  transition: transform 0.18s;
}
.fa-csel.open .fa-csel__arrow {
  transform: translateY(-50%) rotate(180deg);
  color: #004f4d;
}
.fa-csel__list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
  z-index: 9998;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}
.fa-csel.open .fa-csel__list {
  display: block;
}
.fa-csel__list li {
  padding: 9px 16px;
  font-size: 0.86rem;
  color: #374151;
  cursor: pointer;
  list-style: none;
  transition:
    background 0.12s,
    color 0.12s;
}
.fa-csel__list li:hover {
  background: #f0f8f8;
  color: #004f4d;
}
.fa-csel__list li.selected {
  background: #004f4d;
  color: #fff;
  font-weight: 600;
}
.fa-csel__list li.selected:hover {
  background: #003a38;
}
.fa-csel__list .fa-csel__group-label {
  padding: 7px 16px 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: default;
  pointer-events: none;
}
.fa-csel__list .fa-csel__group-label:hover {
  background: none;
  color: #9ca3af;
}
.fa-search-btn {
  height: 46px;
  padding: 0 16px;
  background: #004f4d;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s;
}
.fa-search-btn:hover {
  background: #006c67;
}
.fa-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.fa-chip {
  height: 28px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d9e1e3;
  background: #fff;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #004f4d;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
}
.fa-chip:hover {
  background: #004f4d;
  border-color: #004f4d;
  color: #fff;
}

/* ── Suppress Font Awesome ::before on custom fa- prefixed classes ── */
.fa-section::before,
.fa-section-header::before,
.fa-section-title::before,
.fa-section-link::before,
.fa-featured-wrap::before,
.fa-featured-grid::before,
.fa-directory-wrap::before,
.fa-dir-controls::before,
.fa-dir-sort::before,
.fa-feat-card::before,
.fa-hero::before,
.fa-search-card::before,
.fa-chip::before,
.fa-cta::before,
.fa-no-agents::before,
.fa-cta__title::before,
.fa-cta__sub::before,
.fa-cta__btns::before {
  content: none !important;
  display: none !important;
}

/* ── SECTION SHARED ── */
.fa-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}
.fa-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.fa-section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  color: #004f4d;
  letter-spacing: -0.025em;
  margin: 0;
}
.fa-section-link {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #004f4d;
  text-decoration: none;
}
.fa-section-link:hover {
  text-decoration: underline;
}

/* ── FEATURED AGENTS ── */
.fa-featured-wrap {
  margin: 80px 0 0;
  padding-bottom: 80px;
}
.fa-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 95%;
  margin-inline: auto;
}
.fa-feat-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  cursor: pointer;
  background: #f9f9f9;
}
.fa-feat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(0, 79, 77, 0.18);
}
.fa-feat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.fa-feat-card[data-agent-id="e5b2d8bb-7f05-4e4d-802b-39dc7556b23e"]
  .fa-feat-card__img {
  object-fit: cover;
  object-position: center 55%;
  top: -8px;
  height: calc(100% + 8px);
}
.fa-feat-card[data-agent-id="e142e467-65eb-4ffe-955a-dd6833b3b108"]
  .fa-feat-card__img {
  object-fit: cover;
  object-position: center 20%;
  top: -6px;
  height: calc(100% + 6px);
}
.fa-feat-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.22) 38%,
    rgba(0, 0, 0, 0) 65%
  );
}
.fa-feat-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #c89b3c;
  border-radius: 999px;
  padding: 3px 11px;
  font-family: "Inter", sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fa-feat-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 20px;
  z-index: 2;
}
.fa-feat-card__name {
  font-family: "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  margin: 0 0 4px;
}
.fa-feat-card__spec {
  font-family: "Inter", sans-serif;
  font-size: 0.925rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  margin: 0 0 14px;
}
.fa-feat-card__btns {
  display: flex;
  gap: 7px;
}
.fa-feat-btn {
  padding: 8px 22px;
  width: fit-content;
  border-radius: 7px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
  border: none;
}
.fa-feat-btn--outline {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.fa-feat-btn--outline:hover {
  background: rgba(255, 255, 255, 0.28);
}
.fa-feat-btn--solid {
  background: #188f8b;
  color: #fff;
}
.fa-feat-btn--solid:hover {
  background: #107c78;
}

/* ── ALL AGENTS DIRECTORY ── */
.fa-directory-wrap {
  margin: 0 0 80px;
}
.fa-dir-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fa-dir-sort {
  padding: 8px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: #374151;
  background: #fff;
  cursor: pointer;
}

#agentsGrid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── AGENT DIRECTORY CARD — 3-column clean row ── */
.agent-card {
  display: grid;
  grid-template-columns: 130px 1fr 170px;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 28px 28px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.agent-card:hover {
  box-shadow: 0 10px 32px rgba(0, 79, 77, 0.1);
  transform: translateY(-2px);
}
.agent-card > * {
  min-width: 0;
}

/* col 1 — photo */
.agent-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.agent-photo {
  width: 110px;
  height: 138px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 14px;
  display: block;
  filter: none !important;
  opacity: 1 !important;
  flex-shrink: 0;
}
.agent-photo-fallback {
  width: 110px;
  height: 138px;
  border-radius: 14px;
  background: linear-gradient(135deg, #004f4d, #188f8b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.agent-card-logo {
  display: none;
}
.agent-brokerage-abbr {
  display: none;
}

/* col 2 — name / brokerage / meta / tags / bio */
.agent-card-info {
  text-align: left;
  min-width: 0;
}
.agent-card-info h3 {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px;
}
.agent-card-info .aci-brokerage {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 8px;
}
.agent-card-info .aci-meta {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.aci-meta-sep {
  color: #d1d5db;
  font-weight: 300;
}
.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.agent-tags span {
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #e6f4f3;
  color: #004f4d;
  font-weight: 600;
}
.agent-card-bio {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* col 3 — stat + button */
.agent-card-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-left: 1px solid #e5e7eb;
  padding-left: 24px;
}
.agent-stat {
  text-align: center;
}
.agent-stat strong {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 28px;
  line-height: 1;
  color: #111827;
  font-weight: 700;
}
.agent-stat span {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: #6b7280;
  margin-top: 3px;
  line-height: 1.3;
}
.agent-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.aca-btn {
  width: 100%;
  padding: 11px 16px;
  box-sizing: border-box;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.16s;
  text-decoration: none;
  border: none;
}
.aca-btn--outline {
  background: #ffffff;
  color: #004f4d;
  border: 1.5px solid #004f4d;
}
.aca-btn--outline:hover {
  background: #f0faf9;
}
.aca-btn--primary {
  background: #004f4d;
  color: #ffffff;
}
.aca-btn--primary:hover {
  background: #006c67;
}

/* col 6 — heart save icon (its own column, never overflows) */
.agent-save-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 1px solid #d7e2e1;
  background: #ffffff;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s;
  font-size: 14px;
  position: static;
  box-shadow: none;
}
.agent-save-btn:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* legacy .fa-btn kept for other uses */
.fa-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.fa-btn--teal {
  background: linear-gradient(135deg, #007c78, #004f4d);
  color: #fff;
}
.fa-btn--outline {
  background: #fff;
  color: #004f4d;
  border: 1.5px solid #004f4d;
}
.fa-btn--outline:hover {
  background: #f0faf9;
}

/* ── NO AGENTS ── */
.fa-no-agents {
  text-align: center;
  padding: 60px 24px;
  color: #9ca3af;
  font-family: "Inter", sans-serif;
}
.fa-no-agents i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

/* ── CTA BANNER ── */
.fa-cta {
  background: linear-gradient(135deg, #007c78 0%, #004f4d 55%, #002f2e 100%);
  padding: 80px 40px;
  text-align: center;
}
.fa-cta__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}
.fa-cta__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: #fff;
  margin: 0 0 16px;
}
.fa-cta__sub {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 auto 32px;
}
.fa-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.fa-cta__btn {
  padding: 14px 28px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  display: inline-block;
}
.fa-cta__btn--white {
  background: #fff;
  color: #004f4d;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.fa-cta__btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.fa-cta__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.fa-cta__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ── Featured card overlay — bottom-only, keep image vibrant ── */
.fa-feat-card__img {
  filter: none !important;
  opacity: 1 !important;
}

/* ── TABLET ── */
@media (max-width: 960px) {
  .agent-card {
    grid-template-columns: 110px 1fr 150px;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .agent-card-stats {
    border-left: none;
    padding-left: 0;
  }
  .fa-hero {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }
  .fa-hero__inner {
    transform: translateY(-30px);
    padding: 0 24px;
  }
  .fa-hero__title {
    font-size: 38px;
  }
  .fa-hero__sub {
    font-size: 14px;
    max-width: 320px;
  }
  .fa-search-wrap {
    margin-top: -90px;
    margin-bottom: 36px;
    padding: 0 16px;
  }
  .fa-search-card {
    width: calc(100% - 32px);
    padding: 18px;
    border-radius: 18px;
  }
  .fa-search-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .fa-search-input-wrap input,
  .fa-search-input-wrap select,
  .fa-search-btn {
    width: 100%;
    height: 46px;
  }
  .fa-chips {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .fa-chip {
    flex: 0 0 auto;
  }
  .fa-featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fa-featured-grid .fa-feat-card:last-child {
    display: none;
  }
  .fa-section {
    padding: 0 20px;
  }
  .agent-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    overflow: visible;
  }
  .agent-card-media {
    grid-template-columns: 88px 1fr;
  }
  .agent-photo {
    width: 88px;
    height: 88px;
  }
  .agent-photo-fallback {
    width: 88px;
    height: 88px;
  }
  .agent-card-bio {
    display: none;
  }
  .agent-card-stats {
    display: block;
    border: none;
    padding: 0;
  }
  .agent-card-actions {
    flex-direction: row;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 4px;
  }
  .aca-btn {
    flex: 1;
    width: auto;
  }
  .agent-save-btn {
    position: absolute;
    top: 18px;
    right: 18px;
  }
}
@media (max-width: 640px) {
  .fa-featured-grid {
    overflow-x: auto;
    display: flex;
    gap: 14px;
    padding: 4px 16px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .fa-feat-card {
    min-width: 0;
    width: 68vw;
    max-width: 240px;
    flex-shrink: 0;
    height: 310px;
    aspect-ratio: unset;
    scroll-snap-align: start;
  }
  .fa-featured-grid .fa-feat-card:last-child {
    display: flex;
  }
  .fa-feat-card__name {
    font-size: 1.05rem;
  }
  .fa-feat-card__spec {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .fa-section {
    padding: 0 16px;
  }
  .fa-section-header {
    flex-direction: column;
    gap: 8px;
  }
  .fa-cta {
    padding: 56px 20px;
  }
}

/* Keep existing agent modal styles working */
/* ── AGENT CONTACT MODAL — Premium redesign ── */
.agent-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.agent-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}
.agent-modal-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 36% 64%;
  width: min(920px, 94vw);
  max-height: 88vh;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}
.agent-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #374151;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.agent-modal-close:hover {
  background: #e5e7eb;
}
/* Left profile panel */
.agent-modal-left {
  background: #f8f7f4;
  padding: 20px 22px;
  border-right: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.agent-modal-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center top;
  border-radius: 14px;
  margin-bottom: 14px;
  filter: none !important;
  opacity: 1 !important;
  display: block;
  flex-shrink: 0;
  background: #f8f7f4;
}
.agent-modal-info h2 {
  font-family: "Inter", sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 3px;
  color: #111827;
  line-height: 1.2;
}
.agent-modal-brokerage {
  font-size: 13px;
  color: #004f4d;
  font-weight: 600;
  margin: 0 0 10px;
}
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.modal-tags span {
  background: #e6f4f3;
  color: #004f4d;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
}
.agent-modal-bio {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}
.agent-modal-bio h4 {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #004f4d;
  font-weight: 700;
  margin: 0 0 6px;
}
.agent-modal-bio p {
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0;
}
/* Right contact panel */
.agent-modal-right {
  padding: 18px 22px 16px;
  overflow-y: auto;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.agent-modal-contact-section {
  flex: 1;
}
.modal-contact-header h3 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px;
  color: #111827;
}
.modal-contact-header p {
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
  margin: 0 0 10px;
}
.modal-contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px;
}
.contact-detail-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6f4f3;
  color: #004f4d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}
.contact-detail-item strong {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 1px;
}
.contact-detail-item span {
  display: block;
  font-size: 13px;
  color: #111827;
  font-weight: 700;
}
.modal-review-consent {
  background: #eaf7f6;
  border: 1px solid #d7eeec;
  border-radius: 14px;
  padding: 12px 14px;
}
.modal-review-consent h4 {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 3px;
  font-family: "Inter", sans-serif;
}
.modal-review-consent > p {
  font-size: 12px;
  color: #4b5563;
  margin: 0 0 8px;
}
.modal-review-consent input[type="email"],
.modal-review-consent textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  margin-bottom: 6px;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  background: #fff;
}
.modal-review-consent textarea {
  min-height: 48px;
  resize: vertical;
}
.review-reminder-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4b5563;
  margin: 0 0 10px;
  cursor: pointer;
}
.modal-continue-btn {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #004f4d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-continue-btn:hover {
  background: #006c67;
}
.modal-direct-link {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}
.modal-direct-link a {
  color: #004f4d;
  font-weight: 600;
  text-decoration: none;
}
.modal-direct-link a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .agent-modal-container {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .agent-modal-left {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px;
  }
  .agent-modal-right {
    padding: 26px 24px;
  }
  .modal-contact-header h3 {
    font-size: 22px;
  }
}

/* Modal generic */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 94%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}
.btn-cancel {
  background: #f3f4f6;
  color: #374151;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.btn-send {
  background: #004f4d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #004f4d;
}
.btn-primary {
  background: linear-gradient(135deg, #007c78, #004f4d);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.btn-secondary {
  background: #fff;
  color: #004f4d;
  border: 1.5px solid #004f4d;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
}

/* Auth modal */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
.auth-modal-content {
  background: #fff;
  border-radius: 14px;
  max-width: 460px;
  width: 94%;
  max-height: 90vh;
  overflow-y: auto;
}
.auth-modal-header {
  padding: 22px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #111827;
}
.auth-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
}
.auth-modal-body {
  padding: 20px 24px 24px;
}
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}
.auth-form .form-group {
  margin-bottom: 16px;
}
.auth-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
}
.auth-form input,
.auth-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: white;
}
.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: #004f4d;
}
.auth-btn-primary {
  width: 100%;
  background: #ff9500;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 15px;
}
.auth-btn-primary:hover {
  background: #e6850b;
}
.auth-btn-secondary {
  width: 100%;
  background: transparent;
  color: #004f4d;
  border: 2px solid #004f4d;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.auth-btn-secondary:hover {
  background: #004f4d;
  color: white;
}
.auth-divider {
  text-align: center;
  margin: 16px 0;
  position: relative;
  color: #666;
  font-size: 14px;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e1e5e9;
}
.auth-divider span {
  background: white;
  padding: 0 15px;
  position: relative;
}
.acct-signin-btn {
  background: #ff9800;
  color: white;
  border: none;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}
.acct-type-btn {
  background: white;
  border: 2px solid #c4cdd6;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.acct-type-btn:hover {
  border-color: rgba(0, 79, 77, 0.35);
  background: #f0fdf4;
}
.acct-type-btn--full {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 63%;
  margin: 0 auto;
  padding: 12px 16px;
}
.acct-type-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 79, 77, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #004f4d;
  margin-bottom: 0.5rem;
}
.acct-type-label {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.acct-type-desc {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.4;
}
