/* Professional profile — full content width matches header (1520) */
.pb-profile {
  max-width: var(--header-max-width, 1520px);
  width: 100%;
  margin: 0 auto;
  padding: 28px 28px 80px;
  box-sizing: border-box;
  color: #222;
}

.pb-profile-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  color: #6a6a6a;
}
.pb-profile-crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #bbb;
}
.pb-profile-crumbs a { color: #6a6a6a; text-decoration: none; }
.pb-profile-crumbs a:hover { color: #222; }

.pb-profile-hero {
  display: grid;
  grid-template-columns: 140px 1fr minmax(200px, 240px);
  gap: 28px;
  align-items: start;
  padding: 28px;
  border: 1px solid #ebebeb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  margin-bottom: 16px;
}

.pb-profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f7f7, #ebebeb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #929292;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.pb-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.pb-profile-type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ff385c;
  margin-bottom: 6px;
}
.pb-profile-hero h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.pb-profile-tagline { margin: 0 0 14px; color: #6a6a6a; font-size: 16px; }
.pb-profile-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #f7f7f7;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  color: #222;
  text-decoration: none;
}
a.pb-chip:hover {
  filter: brightness(0.97);
  text-decoration: none;
}
.pb-chip-ok { background: #ecfdf5; color: #166534; }
.pb-chip-soft { background: #fff5f7; color: #b91c1c; }

/* Trust strip variants (#2542, #3139) */
.pb-chip-verified {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}
.pb-chip-pending {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
.pb-chip-claim {
  background: #fff5f7;
  color: #b91c1c;
  border-color: #fecdd3;
}
.pb-chip-claim:hover {
  background: #ffe4e6;
  color: #9f1239;
}
.pb-chip-license,
.pb-chip-registration {
  background: #f0f9ff;
  color: #075985;
  border-color: #bae6fd;
}
.pb-chip-board,
.pb-chip-designation {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #ddd6fe;
}
.pb-chip-experience {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}
.pb-chip-category {
  background: #fafafa;
  color: #444;
  border-color: #e5e5e5;
}
.pb-chip-broker,
.pb-chip-fintrac {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

/* Availability row + next open house (#2543) */
.pb-availability {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pb-availability-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  background: #fff;
}
.pb-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.pb-avail-badge i { font-size: 8px; }
.pb-avail-badge--open { color: #166534; }
.pb-avail-badge--open i { color: #22c55e; }
.pb-avail-badge--wait { color: #6a6a6a; }
.pb-avail-badge--wait i { color: #94a3b8; }
.pb-avail-hours {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: #444;
}
.pb-avail-hours-label {
  font-weight: 700;
  color: #6a6a6a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pb-avail-hours-text { color: #222; }
.pb-avail-book {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: #ff385c;
  text-decoration: none;
}
.pb-avail-book:hover { text-decoration: underline; }

.pb-next-oh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 60%);
}
.pb-next-oh-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #166534;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pb-next-oh-body { flex: 1 1 200px; min-width: 0; }
.pb-next-oh-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #111;
  margin-bottom: 4px;
}
.pb-next-oh-when {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: #6a6a6a;
}
.pb-next-oh-when span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pb-next-oh-link {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  text-decoration: none;
  white-space: nowrap;
}
.pb-next-oh-link:hover { text-decoration: underline; }

.pb-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pb-profile-actions .button-primary,
.pb-profile-actions .pb-btn-ghost,
.pb-profile-actions .pb-btn-link {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
}
.pb-btn-ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  color: #222 !important;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
}
.pb-btn-link {
  font-size: 13px;
  color: #6a6a6a;
  text-decoration: none;
  text-align: center;
  padding: 6px 0;
}

.pb-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.pb-stat {
  border: 1px solid #ebebeb;
  border-radius: 16px;
  background: #fff;
  padding: 16px 18px;
  text-align: center;
}
.pb-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #222;
}
.pb-stat span {
  font-size: 12px;
  color: #6a6a6a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pb-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.pb-profile-card {
  border: 1px solid #ebebeb;
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  margin-bottom: 18px;
}
.pb-profile-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.pb-profile-subhead {
  font-size: 15px !important;
  font-weight: 700;
  margin: 22px 0 10px !important;
}
.pb-profile-body {
  font-size: 15px;
  line-height: 1.65;
  color: #3f3f3f;
}
.pb-muted { color: #6a6a6a; font-size: 14px; }

.pb-profile-dl { list-style: none; padding: 0; margin: 0; }
.pb-profile-dl li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.pb-profile-dl li:last-child { border-bottom: 0; }
.pb-profile-dl strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a6a6a;
}

.pb-claim-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: #fff5f7;
  border: 1px dashed #ff385c;
}
.pb-claim-box p { font-size: 13px; color: #6a6a6a; margin: 6px 0 12px; }

/* Services grid */
.pb-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.pb-service-card {
  border: 1px solid #ebebeb;
  border-radius: 14px;
  padding: 14px;
  background: #fafafa;
}
.pb-service-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}
.pb-service-card p {
  margin: 0;
  font-size: 13px;
  color: #6a6a6a;
  line-height: 1.4;
}

/* Listings */
.pb-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.pb-listing-card {
  border: 1px solid #ebebeb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .15s;
}
.pb-listing-card:hover {
  box-shadow: 0 10px 28px rgba(15,23,42,0.08);
}
.pb-listing-card a { text-decoration: none; color: inherit; display: block; }
.pb-listing-photo {
  aspect-ratio: 4/3;
  background: #f0f0f0;
  overflow: hidden;
}
.pb-listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pb-listing-meta { padding: 12px 14px 14px; }
.pb-listing-meta h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.pb-listing-price {
  font-weight: 800;
  color: #222;
  font-size: 15px;
}

/* Open houses */
.pb-oh-list { display: flex; flex-direction: column; gap: 10px; }
.pb-oh-item {
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafafa;
}
.pb-oh-item strong { display: block; font-size: 14px; }

/* Social */
.pb-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pb-social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #444;
  text-decoration: none;
  background: #fff;
}
.pb-social-row a:hover {
  border-color: #ff385c;
  color: #ff385c;
}

/* Lead form */
.pb-lead-form .pb-field { margin-bottom: 12px; }
.pb-lead-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #444;
}
.pb-lead-form .text-input,
.pb-lead-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fafafa;
}
.pb-lead-form textarea { min-height: 100px; resize: vertical; }
.pb-lead-form .button-primary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #ff385c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Profile Tabs Navigation */
.pb-profile-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  position: sticky;
  top: 80px;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  scrollbar-width: thin;
}
.pb-profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pb-profile-tab:hover {
  background: #f7f7f7;
  color: #111;
}
.pb-profile-tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.pb-profile-tab .pb-tab-badge {
  background: rgba(255,255,255,0.25);
  color: inherit;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.pb-profile-tab:not(.active) .pb-tab-badge {
  background: #ebebeb;
  color: #6a6a6a;
}

/* Roster / Agents Grid */
.pb-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.pb-roster-card {
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pb-roster-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.pb-roster-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pb-roster-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pb-roster-name { font-size: 16px; font-weight: 700; color: #111; margin: 0 0 4px; }
.pb-roster-title { font-size: 13px; color: #6a6a6a; margin: 0 0 8px; }
.pb-roster-meta { font-size: 12px; color: #888; margin-bottom: 14px; }
.pb-roster-actions { display: flex; gap: 8px; width: 100%; margin-top: auto; }
.pb-roster-actions .pb-btn-ghost { flex: 1; padding: 6px 10px; font-size: 12px; min-height: 36px; border-radius: 8px; }

/* Events Grid */
.pb-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.pb-event-card {
  border: 1px solid #ebebeb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.pb-event-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.pb-event-card--past {
  opacity: 0.85;
  background: #fafafa;
}
.pb-event-img-wrap {
  width: 100%;
  height: 180px;
  background: #f4f4f4 center/cover no-repeat;
  position: relative;
}
.pb-event-img-wrap.pb-event-img-fail {
  height: 0;
  min-height: 0;
}
.pb-event-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pb-event-date-bar {
  background: #111;
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pb-event-date-bar--past {
  background: #6a6a6a;
}
.pb-event-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pb-event-title { font-size: 17px; font-weight: 800; color: #111; margin: 0 0 8px; line-height: 1.3; }
.pb-event-location { font-size: 13px; color: #6a6a6a; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.pb-event-desc { font-size: 14px; color: #444; line-height: 1.5; margin-bottom: 16px; flex: 1; }
.pb-event-footer { margin-top: auto; }
.pb-event-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-decoration: none;
  min-height: 40px;
  border-radius: 10px;
  font-size: 13px;
  box-sizing: border-box;
}
.pb-event-empty {
  padding: 20px 16px;
  border: 1px dashed #e5e5e5;
  border-radius: 14px;
  background: #fafafa;
  text-align: center;
}
.pb-event-past {
  margin-top: 20px;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
.pb-event-past > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #6a6a6a;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pb-event-past > summary::-webkit-details-marker { display: none; }
.pb-event-past > summary::before {
  content: "▸";
  font-size: 12px;
}
.pb-event-past[open] > summary::before {
  content: "▾";
}

.pb-sticky-aside {
  position: sticky;
  top: 100px;
}

.pb-builder-projects { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.pb-builder-project {
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafafa;
}
.pb-builder-project-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pb-builder-project-head h3 { margin: 0; font-size: 16px; }
.pb-project-phases {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #444;
}
.pb-portfolio-public { list-style: none; padding: 0; margin: 8px 0 0; }
.pb-portfolio-public li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.pb-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pb-share-row button,
.pb-share-row a {
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #222;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .pb-profile { padding: 20px 18px 64px; }
  .pb-profile-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pb-profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pb-profile-avatar { margin: 0 auto; }
  .pb-profile-chips { justify-content: center; }
  .pb-profile-grid { grid-template-columns: 1fr; }
  .pb-sticky-aside { position: static; }
  .pb-profile-stats { grid-template-columns: repeat(2, 1fr); }
  .pb-event-grid { grid-template-columns: 1fr; }
  .pb-availability-meta { justify-content: center; text-align: center; }
  .pb-avail-book { margin-left: 0; }
  .pb-next-oh { justify-content: center; text-align: center; }
  .pb-next-oh-when { justify-content: center; }
}

@media (max-width: 560px) {
  .pb-profile { padding: 14px 12px 48px; }
  .pb-profile-stats { grid-template-columns: 1fr 1fr; }
}

/* Embedded Profile Video */
.pb-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f0f0;
}

@supports not (aspect-ratio: 16 / 9) {
  .pb-video-embed {
    padding-top: 56.25%;
    height: 0;
  }
}

.pb-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sticky mobile CTA bar (#2536) — only ≤640px */
.pb-profile-sticky-cta {
  display: none;
}

@media (max-width: 640px) {
  .pb-profile {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .pb-profile-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    gap: 8px;
    align-items: center;
    justify-content: stretch;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #ebebeb;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
  }

  .pb-profile-sticky-cta.is-hidden {
    display: none;
  }

  .pb-profile-sticky-cta a {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    min-width: 0;
    padding: 6px 4px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #222 !important;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
  }

  .pb-profile-sticky-cta a i {
    font-size: 16px;
  }

  .pb-profile-sticky-cta a.pb-sticky-primary {
    background: #ff385c;
    border-color: #ff385c;
    color: #fff !important;
  }
}
