/* Public agent profile — vertical-themed chrome (agent-profile.php) */

.agent-profile-page {
  --ap-font: var(--na-font, "Plus Jakarta Sans", system-ui, sans-serif);
  --ap-serif: var(--na-serif, "Cormorant Garamond", Georgia, "Times New Roman", serif);
  --ap-accent: var(--na-teal, #0d9488);
  --ap-accent-soft: rgba(13, 148, 136, 0.12);
  --ap-accent-ink: var(--na-teal-dark, #0f766e);
  --ap-ink: var(--na-ink, #0c1222);
  --ap-muted: var(--na-muted, #64748b);
  --ap-page: #f4f6fb;
  --ap-surface: #ffffff;
  --ap-line: var(--na-line, rgba(15, 23, 42, 0.08));
  --ap-hero-bg: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  --ap-hero-ink: var(--ap-ink);
  --ap-hero-muted: var(--ap-muted);
  --ap-masthead: radial-gradient(ellipse 90% 70% at 50% -20%, rgba(13, 148, 136, 0.12), transparent 60%);
  position: relative;
  font-family: var(--ap-font);
  background: var(--ap-page);
  min-height: 100vh;
  padding-bottom: 48px;
}

/* ── Vertical themes ── */
.agent-profile-page.na-agent-theme-plots {
  --ap-accent: #78716c;
  --ap-accent-soft: rgba(120, 113, 108, 0.14);
  --ap-accent-ink: #57534e;
  --ap-page: #f4f4f2;
  --ap-surface: #fafaf9;
  --ap-hero-bg: linear-gradient(165deg, #fafaf9 0%, #f5f5f4 48%, #ebe9e6 100%);
  --ap-masthead: radial-gradient(ellipse 80% 60% at 18% -8%, rgba(120, 113, 108, 0.18), transparent 55%),
    repeating-linear-gradient(0deg, rgba(87, 83, 78, 0.035) 0, rgba(87, 83, 78, 0.035) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(87, 83, 78, 0.03) 0, rgba(87, 83, 78, 0.03) 1px, transparent 1px, transparent 28px);
}

.agent-profile-page.na-agent-theme-villas {
  --ap-accent: var(--na-teal, #0d9488);
  --ap-accent-soft: rgba(13, 148, 136, 0.14);
  --ap-accent-ink: var(--na-teal-ink, #115e59);
  --ap-page: var(--na-teal-wash, #ecfdf5);
  --ap-surface: #ffffff;
  --ap-hero-bg: linear-gradient(165deg, #ffffff 0%, var(--na-teal-wash, #ecfdf5) 48%, #d1fae5 100%);
  --ap-masthead: radial-gradient(ellipse 85% 65% at 82% -12%, rgba(13, 148, 136, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 10%, rgba(15, 118, 110, 0.08), transparent 50%);
}

.agent-profile-page.na-agent-theme-apartments {
  --ap-accent: var(--na-teal-dark, #0f766e);
  --ap-accent-soft: rgba(15, 118, 110, 0.12);
  --ap-accent-ink: var(--na-charcoal, #222831);
  --ap-page: #f1f5f9;
  --ap-surface: #ffffff;
  --ap-ink: var(--na-ink, #0c1222);
  --ap-hero-bg: linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #e2e8f0 100%);
  --ap-masthead: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(15, 118, 110, 0.1), transparent 55%),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.035) 0, rgba(15, 23, 42, 0.035) 1px, transparent 1px, transparent 52px);
}

.agent-profile-page.na-agent-theme-luxury {
  --ap-accent: #b45309;
  --ap-accent-soft: rgba(180, 83, 9, 0.14);
  --ap-accent-ink: #92400e;
  --ap-page: #faf7f2;
  --ap-surface: #fffdf9;
  --ap-ink: #1c1917;
  --ap-muted: #78716c;
  --ap-line: rgba(28, 25, 23, 0.1);
  --ap-hero-bg: linear-gradient(135deg, #1c1917 0%, #292524 52%, #44403c 100%);
  --ap-hero-ink: #faf7f2;
  --ap-hero-muted: rgba(250, 247, 242, 0.78);
  --ap-masthead: radial-gradient(ellipse 100% 80% at 50% -30%, rgba(253, 230, 138, 0.22), transparent 55%),
    linear-gradient(180deg, #1c1917 0%, #292524 100%);
}

.agent-profile-masthead {
  position: absolute;
  inset: 0 0 auto;
  height: min(280px, 38vh);
  background: var(--ap-masthead);
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.agent-profile-page--has-cover .agent-profile-masthead::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.08) 45%, rgba(244, 246, 251, 0.92) 100%);
}

.agent-profile-page.na-agent-theme-luxury.agent-profile-page--has-cover .agent-profile-masthead {
  height: min(360px, 48vh);
  background-size: cover;
  background-position: center 35%;
}

.agent-profile-page.na-agent-theme-luxury.agent-profile-page--has-cover .agent-profile-masthead::after {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.62) 0%, rgba(28, 25, 23, 0.28) 40%, rgba(250, 247, 242, 0.96) 100%);
}

.agent-profile-page.na-agent-theme-luxury.agent-profile-page--has-cover {
  --ap-page: #faf7f2;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-hero {
  position: relative;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #fde68a 0%, #d97706 50%, #78350f 100%);
  pointer-events: none;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-card--luxe {
  border-color: rgba(180, 83, 9, 0.2);
  background: linear-gradient(180deg, #fffdf9 0%, #faf7f2 100%);
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.05);
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-card--luxe:hover {
  border-color: rgba(180, 83, 9, 0.32);
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.12);
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-card__media {
  aspect-ratio: 16 / 9;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(28, 25, 23, 0.45) 100%);
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-card__luxe {
  background: rgba(255, 251, 235, 0.96);
  letter-spacing: 0.09em;
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.16);
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-card__price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #78350f;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-card__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-about {
  border-color: rgba(180, 83, 9, 0.12);
  background: #fffdf9;
}

/* Plots — survey / land desk */
.agent-profile-page.na-agent-theme-plots .agent-profile-hero {
  border-color: rgba(120, 113, 108, 0.18);
  box-shadow: 0 12px 36px rgba(87, 83, 78, 0.08);
}

.agent-profile-page.na-agent-theme-plots .agent-profile-hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #a8a29e 0%, #78716c 55%, #57534e 100%);
  pointer-events: none;
}

.agent-profile-page.na-agent-theme-plots.agent-profile-page--has-cover .agent-profile-masthead {
  height: min(320px, 42vh);
}

.agent-profile-page.na-agent-theme-plots.agent-profile-page--has-cover .agent-profile-masthead::after {
  background: linear-gradient(180deg, rgba(68, 64, 60, 0.5) 0%, rgba(87, 83, 78, 0.18) 42%, rgba(244, 244, 242, 0.96) 100%);
}

.agent-profile-page.na-agent-theme-plots .agent-profile-btn--primary {
  background: linear-gradient(135deg, #78716c 0%, #57534e 100%);
}

.agent-profile-page.na-agent-theme-plots .agent-profile-card--plot {
  border-color: rgba(120, 113, 108, 0.22);
  background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
}

.agent-profile-page.na-agent-theme-plots .agent-profile-about {
  border-color: rgba(120, 113, 108, 0.16);
  background: #fafaf9;
}

/* Villas — estate / landscape on brand teal */
.agent-profile-page.na-agent-theme-villas .agent-profile-hero {
  border-color: rgba(13, 148, 136, 0.18);
  box-shadow: 0 12px 36px rgba(15, 118, 110, 0.08);
}

.agent-profile-page.na-agent-theme-villas .agent-profile-hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--na-teal-mid, #14b8a6) 0%, var(--na-teal, #0d9488) 50%, var(--na-teal-dark, #0f766e) 100%);
  pointer-events: none;
}

.agent-profile-page.na-agent-theme-villas.agent-profile-page--has-cover .agent-profile-masthead {
  height: min(330px, 44vh);
}

.agent-profile-page.na-agent-theme-villas.agent-profile-page--has-cover .agent-profile-masthead::after {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.48) 0%, rgba(13, 148, 136, 0.16) 42%, rgba(236, 253, 245, 0.96) 100%);
}

.agent-profile-page.na-agent-theme-villas .agent-profile-btn--primary {
  background: var(--na-gradient-brand, linear-gradient(135deg, #14b8a6 0%, #0f766e 100%));
}

.agent-profile-page.na-agent-theme-villas .agent-profile-card--villa {
  border-color: rgba(13, 148, 136, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.agent-profile-page.na-agent-theme-villas .agent-profile-about {
  border-color: rgba(13, 148, 136, 0.14);
  background: #f0fdfa;
}

/* Apartments — urban towers / slate + teal ink */
.agent-profile-page.na-agent-theme-apartments .agent-profile-hero {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

.agent-profile-page.na-agent-theme-apartments .agent-profile-hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #64748b 0%, var(--na-teal-dark, #0f766e) 55%, var(--na-charcoal, #222831) 100%);
  pointer-events: none;
}

.agent-profile-page.na-agent-theme-apartments.agent-profile-page--has-cover .agent-profile-masthead {
  height: min(320px, 42vh);
}

.agent-profile-page.na-agent-theme-apartments.agent-profile-page--has-cover .agent-profile-masthead::after {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.18) 42%, rgba(241, 245, 249, 0.96) 100%);
}

.agent-profile-page.na-agent-theme-apartments .agent-profile-btn--primary {
  background: linear-gradient(135deg, var(--na-teal-dark, #0f766e) 0%, var(--na-charcoal, #222831) 100%);
}

.agent-profile-page.na-agent-theme-apartments .agent-profile-card--apartment {
  border-color: rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.agent-profile-page.na-agent-theme-apartments .agent-profile-about {
  border-color: rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}

.agent-profile-page.na-agent-theme-plots .agent-profile-hero,
.agent-profile-page.na-agent-theme-villas .agent-profile-hero,
.agent-profile-page.na-agent-theme-apartments .agent-profile-hero {
  position: relative;
}

@media (max-width: 720px) {
  .agent-profile-page.na-agent-theme-luxury.agent-profile-page--has-cover .agent-profile-masthead {
    height: min(220px, 36vh);
  }

  .agent-profile-page.na-agent-theme-plots.agent-profile-page--has-cover .agent-profile-masthead,
  .agent-profile-page.na-agent-theme-villas.agent-profile-page--has-cover .agent-profile-masthead,
  .agent-profile-page.na-agent-theme-apartments.agent-profile-page--has-cover .agent-profile-masthead {
    height: min(200px, 34vh);
  }
}


.agent-profile-page--has-cover {
  --ap-page: #f8fafc;
}

.agent-profile-page--has-cover .agent-profile-breadcrumb {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.agent-profile-page--has-cover .agent-profile-breadcrumb a {
  color: #fff;
}

.agent-profile-page--has-cover .agent-profile-breadcrumb strong {
  color: #fff;
}

.agent-profile-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 94%);
  margin: 0 auto;
}

.agent-profile-breadcrumb {
  margin: 16px auto 0;
  color: var(--ap-muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.agent-profile-breadcrumb a {
  color: var(--ap-accent-ink);
  text-decoration: none;
  font-weight: 600;
}

.agent-profile-breadcrumb a:hover {
  text-decoration: underline;
}

.agent-profile-hero {
  margin-top: 12px;
  border-radius: 20px;
  background: var(--ap-hero-bg);
  border: 1px solid var(--ap-line);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-hero {
  border-color: rgba(253, 230, 138, 0.12);
  box-shadow: 0 20px 56px rgba(28, 25, 23, 0.28);
}

.agent-profile-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 24px 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ap-accent-soft);
  color: var(--ap-accent-ink);
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-hero__badge {
  background: rgba(253, 230, 138, 0.14);
  color: #fde68a;
}

.agent-profile-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 18px 24px 24px;
}

.agent-profile-brand {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.agent-profile-brand__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  background: #e2e8f0;
  flex-shrink: 0;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-brand__avatar {
  border-color: rgba(253, 230, 138, 0.35);
}

.agent-profile-brand__copy {
  min-width: 0;
}

.agent-profile-brand__name {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  color: var(--ap-hero-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-brand__name {
  font-family: var(--ap-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.agent-profile-brand__meta {
  margin: 0 0 8px;
  color: var(--ap-hero-muted);
  font-size: 0.92rem;
}

.agent-profile-brand__tagline {
  margin: 0 0 12px;
  max-width: 52ch;
  color: var(--ap-hero-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.agent-profile-verticals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-profile-verticals li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ap-hero-ink);
  border: 1px solid var(--ap-line);
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-verticals li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(253, 230, 138, 0.2);
  color: #faf7f2;
}

.agent-profile-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  min-width: min(100%, 220px);
}

.agent-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}

.agent-profile-stats li {
  min-width: 72px;
  text-align: right;
}

.agent-profile-stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--ap-hero-ink);
  line-height: 1.1;
}

.agent-profile-stats span {
  font-size: 0.72rem;
  color: var(--ap-hero-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-profile-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 220px);
}

.agent-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.agent-profile-btn:hover {
  transform: translateY(-1px);
}

.agent-profile-btn--primary {
  background: var(--ap-accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.agent-profile-btn--disabled {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.agent-profile-btn--disabled:hover {
  transform: none;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-btn--primary {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  color: #1c1917;
}

.agent-profile-btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ap-hero-ink);
  border-color: var(--ap-line);
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-btn--ghost {
  background: transparent;
  color: #faf7f2;
  border-color: rgba(250, 247, 242, 0.28);
}

.agent-profile-about {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--ap-surface);
  border: 1px solid var(--ap-line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.agent-profile-about__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.agent-profile-about__head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ap-ink);
}

.agent-profile-about__focus {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ap-accent-ink);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--ap-accent-soft);
}

.agent-profile-about__body {
  margin: 0;
  color: var(--ap-muted);
  line-height: 1.6;
  font-size: 0.94rem;
  max-width: 72ch;
}

.agent-profile-about__body.muted {
  font-style: italic;
}

.agent-profile-listings {
  margin-top: 28px;
}

.agent-profile-listings__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.agent-profile-listings__head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ap-ink);
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-listings__head h2 {
  font-family: var(--ap-serif);
  font-weight: 600;
  font-size: 1.45rem;
}

.agent-profile-listings__lead {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--ap-muted);
}

.agent-profile-listings__filters {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.agent-profile-segments,
.agent-profile-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.agent-profile-segments a,
.agent-profile-cities a {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ap-muted);
  background: var(--ap-surface);
  border: 1px solid var(--ap-line);
}

.agent-profile-segments a.is-active {
  background: var(--ap-accent);
  border-color: var(--ap-accent);
  color: #fff;
}

.agent-profile-cities a.is-active {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.35);
  color: #0f766e;
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-cities a.is-active {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.28);
  color: #0f766e;
}

.agent-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.agent-profile-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--ap-surface);
  border: 1px solid var(--ap-line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.agent-profile-card:hover {
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.agent-profile-card--luxe {
  border-color: rgba(180, 83, 9, 0.22);
}

.agent-profile-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  overflow: hidden;
}

.agent-profile-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Soft empty-media plate only — no FA icon (avoids broken-glyph flash before icon fonts load). */
.agent-profile-card__media-fallback {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.agent-profile-card__luxe {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255, 251, 235, 0.94);
  color: #92400e;
  border: 1px solid rgba(180, 83, 9, 0.28);
}

.agent-profile-card__type {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ap-accent-ink);
  border: 1px solid var(--ap-accent-soft);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.agent-profile-card__body {
  padding: 14px 16px 16px;
}

.agent-profile-card__price {
  font-weight: 800;
  color: var(--ap-accent-ink);
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.agent-profile-card__title {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--ap-ink);
  line-height: 1.35;
}

.agent-profile-card__place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 8px;
}

.agent-profile-card__city {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.22);
}

.agent-profile-page.na-agent-theme-luxury .agent-profile-card__city {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.09);
  border-color: rgba(13, 148, 136, 0.2);
}

.agent-profile-card__loc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ap-muted);
}

.agent-profile-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ap-muted);
}

.agent-profile-empty {
  padding: 32px 24px;
  text-align: center;
  background: var(--ap-surface);
  border: 1px dashed var(--ap-line);
  border-radius: 14px;
  color: var(--ap-muted);
}

@media (max-width: 980px) {
  .agent-profile-hero__inner {
    grid-template-columns: 1fr;
  }

  .agent-profile-hero__aside {
    align-items: stretch;
  }

  .agent-profile-stats {
    justify-content: flex-start;
  }

  .agent-profile-stats li {
    text-align: left;
  }

  .agent-profile-hero__cta {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .agent-profile-btn {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
  }

  .agent-profile-page.na-agent-theme-luxury .agent-profile-hero__cta {
    flex-direction: column;
  }

  .agent-profile-page.na-agent-theme-luxury .agent-profile-btn {
    width: 100%;
  }

  .agent-profile-grid {
    grid-template-columns: 1fr;
  }

  .agent-profile-listings__filters {
    align-items: stretch;
    width: 100%;
  }

  .agent-profile-segments,
  .agent-profile-cities {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .agent-profile-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .agent-profile-brand__tagline {
    max-width: none;
  }

  .agent-profile-verticals {
    justify-content: center;
  }

  .agent-profile-hero__badge {
    margin-left: 16px;
  }

  .agent-profile-hero__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .agent-profile-shell {
    width: min(1180px, 92%);
  }

  .agent-profile-page.na-agent-theme-luxury .agent-profile-card__price {
    font-size: 1.1rem;
  }
}
