/* Diamantes Realty Group — compact agents/profile refresh (2026-08-17)
   Loaded after team-premium.css to remove oversized directory/profile treatments. */

/* --------------------------------------------------------------------------
   AGENTS DIRECTORY — no hero, compact cards
   -------------------------------------------------------------------------- */
.team-page-compact main {
  padding-top: var(--public-navbar-height, 76px) !important;
}

.team-page-compact .team-directory-direct {
  padding: clamp(30px, 4vw, 50px) 0 76px !important;
  background: #f7f5f1 !important;
}

.team-page-compact .team-directory-header-compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid rgba(11,31,58,.1);
}

.team-page-compact .team-directory-header-compact .team-kicker {
  margin-bottom: 8px;
  font-size: .68rem;
}

.team-page-compact .team-directory-header-compact h1 {
  margin: 0;
  color: var(--team-ink) !important;
  font-family: var(--font-display, 'Cormorant Garamond', serif) !important;
  font-size: clamp(2.35rem, 4.2vw, 4.15rem);
  font-weight: 600 !important;
  line-height: .96;
  letter-spacing: -.035em;
}

.team-page-compact .team-directory-header-compact > p {
  max-width: 510px;
  margin: 0;
  color: #697486 !important;
  font-size: .88rem;
  line-height: 1.55;
}

.team-page-compact .agents-grid {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 18px !important;
  align-items: stretch;
}

.team-page-compact .agent-card {
  min-height: 0 !important;
  border: 1px solid rgba(11,31,58,.095) !important;
  box-shadow: 0 12px 32px rgba(11,31,58,.065) !important;
}

.team-page-compact .agent-card-media {
  min-height: 205px !important;
  height: 205px !important;
}

.team-page-compact .agent-card-photo,
.team-page-compact .agent-card-initials {
  height: 205px !important;
  min-height: 205px !important;
}

.team-page-compact .agent-card-photo {
  object-position: center 18% !important;
}

.team-page-compact .agent-card-initials {
  font-size: 4.5rem !important;
}

.team-page-compact .agent-card-chip {
  left: 14px;
  right: auto;
  bottom: 12px;
  max-width: calc(100% - 28px);
  padding: 6px 9px;
  font-size: .61rem;
  letter-spacing: .065em;
}

.team-page-compact .agent-content {
  padding: 17px 17px 16px !important;
}

.team-page-compact .agent-name {
  font-size: 1.3rem !important;
  line-height: 1.12 !important;
}

.team-page-compact .agent-card-meta {
  margin-top: 5px !important;
  font-size: .7rem !important;
}

.team-page-compact .agent-description {
  -webkit-line-clamp: 2 !important;
  margin-top: 9px !important;
  font-size: .78rem !important;
  line-height: 1.48 !important;
}

.team-page-compact .agent-contact-list {
  gap: 5px !important;
  margin-top: 12px !important;
  padding-top: 11px !important;
}

.team-page-compact .agent-contact-row {
  grid-template-columns: 18px minmax(0,1fr) !important;
  gap: 7px !important;
}

.team-page-compact .agent-contact-icon {
  width: 16px !important;
  height: 16px !important;
}

.team-page-compact .agent-contact-row a {
  font-size: .74rem !important;
  line-height: 1.3;
}

.team-page-compact .agent-social {
  gap: 6px !important;
  margin-top: 11px !important;
}

.team-page-compact .agent-social a {
  width: 30px !important;
  height: 30px !important;
}

.team-page-compact .agent-social a svg {
  width: 15px !important;
  height: 15px !important;
}

.team-page-compact .agent-actions {
  gap: 7px !important;
  padding-top: 14px !important;
}

.team-page-compact .agent-button {
  min-height: 39px !important;
  padding: 8px 9px !important;
  font-size: .7rem !important;
}

@media (hover:hover) and (pointer:fine) {
  .team-page-compact .agent-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 18px 42px rgba(11,31,58,.105) !important;
  }
}

/* --------------------------------------------------------------------------
   PUBLIC AGENT PROFILE — compact executive profile
   -------------------------------------------------------------------------- */
.agent-public-page-compact {
  background: #f7f5f1 !important;
}

.agent-public-page-compact .agent-public-content {
  padding-top: clamp(28px, 3.4vw, 44px) !important;
  padding-bottom: 72px !important;
}

.agent-public-page-compact .agent-premium-profile {
  display: grid !important;
  grid-template-columns: 178px minmax(0,1fr) 260px !important;
  gap: clamp(22px, 3vw, 38px) !important;
  align-items: start !important;
  padding: clamp(24px, 3vw, 34px) !important;
  overflow: visible !important;
  background: #fff !important;
  border: 1px solid rgba(11,31,58,.095) !important;
  box-shadow: 0 18px 52px rgba(11,31,58,.085) !important;
}

.agent-public-page-compact .agent-premium-profile::before {
  width: 72px !important;
  height: 3px !important;
}

.agent-public-page-compact .agent-profile-portrait {
  width: 168px !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible !important;
  background: transparent !important;
}

.agent-public-page-compact .agent-profile-photo,
.agent-public-page-compact .agent-profile-initials {
  width: 168px !important;
  height: 168px !important;
  min-height: 168px !important;
  max-height: 168px !important;
  border-radius: 50% !important;
  border: 5px solid #fff;
  box-shadow: 0 16px 34px rgba(11,31,58,.16);
  object-fit: cover !important;
  object-position: center 18% !important;
}

.agent-public-page-compact .agent-profile-initials {
  display: grid !important;
  place-items: center;
  font-size: 4.6rem !important;
}

.agent-public-page-compact .agent-profile-portrait-badge {
  position: static !important;
  width: max-content;
  max-width: 168px;
  margin-top: 12px;
  padding: 6px 9px !important;
  border: 1px solid rgba(11,31,58,.09);
  background: #f8f6f1 !important;
  color: #667285 !important;
  font-size: .56rem !important;
  letter-spacing: .07em !important;
  text-align: center;
  backdrop-filter: none !important;
}

.agent-public-page-compact .agent-profile-main {
  align-self: start !important;
  padding-top: 2px;
}

.agent-public-page-compact .agent-profile-kicker {
  margin-bottom: 8px !important;
  font-size: .65rem !important;
}

.agent-public-page-compact .agent-profile-name {
  font-size: clamp(2.45rem, 4vw, 4rem) !important;
  line-height: .94 !important;
}

.agent-public-page-compact .agent-profile-role {
  margin-top: 10px !important;
  font-size: .8rem !important;
  line-height: 1.45;
}

.agent-public-page-compact .agent-profile-license {
  margin-top: 11px !important;
  padding: 6px 8px !important;
  font-size: .64rem !important;
}

/* The biography is moved by agent-profile-refresh.js into its own section. */
.agent-public-page-compact .agent-premium-profile > .agent-profile-main > .agent-profile-description {
  display: none !important;
}

.agent-public-page-compact .agent-profile-contact {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 8px !important;
  margin-top: 15px !important;
}

.agent-public-page-compact .agent-profile-contact a {
  min-height: 54px;
  padding: 9px 10px !important;
  background: #fbfaf7 !important;
}

.agent-public-page-compact .agent-profile-contact span {
  font-size: .56rem !important;
}

.agent-public-page-compact .agent-profile-contact strong {
  font-size: .72rem !important;
  line-height: 1.35;
}

.agent-public-page-compact .agent-profile-social {
  gap: 6px !important;
  margin-top: 12px !important;
}

.agent-public-page-compact .agent-profile-social .agent-public-social-link {
  width: 32px !important;
  height: 32px !important;
}

.agent-public-page-compact .agent-profile-social .agent-public-social-link svg {
  width: 15px;
  height: 15px;
}

.agent-public-page-compact .agent-profile-actions {
  gap: 8px !important;
  margin-top: 14px !important;
}

.agent-public-page-compact .agent-profile-action {
  min-height: 41px !important;
  padding: 8px 13px !important;
  font-size: .7rem !important;
}

.agent-public-page-compact .agent-profile-insights {
  align-self: start !important;
  min-height: 0 !important;
  padding: 20px 20px !important;
  background: var(--team-ink) !important;
  box-shadow: 0 16px 36px rgba(11,31,58,.14);
}

.agent-public-page-compact .agent-profile-insights-label {
  margin: 0 0 10px !important;
  font-size: .6rem !important;
}

.agent-public-page-compact .agent-profile-insight {
  padding: 12px 0 !important;
}

.agent-public-page-compact .agent-profile-insight strong {
  font-size: 1.55rem !important;
}

.agent-public-page-compact .agent-profile-insight span {
  margin-top: 4px !important;
  font-size: .66rem !important;
  line-height: 1.4;
}

.agent-public-page-compact .agent-profile-insight.location strong {
  font-size: .88rem !important;
  line-height: 1.35 !important;
}

.agent-public-page-compact .agent-profile-insights-note {
  display: none !important;
}

/* Full biography below the compact identity card. */
.agent-profile-about-card {
  display: grid;
  grid-template-columns: minmax(220px,.34fr) minmax(0,.66fr);
  gap: clamp(28px,5vw,70px);
  margin-top: 22px;
  padding: clamp(24px,3.2vw,38px);
  border: 1px solid rgba(11,31,58,.095);
  background: #fff;
  box-shadow: 0 14px 42px rgba(11,31,58,.055);
}

.agent-profile-about-heading h2 {
  margin: 0;
  color: var(--team-ink) !important;
  font-family: var(--font-display, 'Cormorant Garamond', serif) !important;
  font-size: clamp(2rem,3vw,3rem);
  font-weight: 600 !important;
  line-height: .98;
  letter-spacing: -.025em;
}

.agent-profile-about-heading p {
  margin-bottom: 8px !important;
}

.agent-profile-about-copy .agent-profile-description {
  display: block !important;
  max-width: 880px !important;
  margin: 0 !important;
  color: #536174 !important;
  font-size: .91rem !important;
  line-height: 1.76 !important;
  white-space: pre-line;
}

.agent-public-page-compact .agent-profile-properties,
.agent-public-page-compact .agent-public-map-section {
  margin-top: clamp(38px,5vw,58px) !important;
}

.agent-public-page-compact .agent-profile-section-heading {
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
}

.agent-public-page-compact .agent-profile-section-heading h2 {
  font-size: clamp(2rem,3.5vw,3.35rem) !important;
}

.agent-public-page-compact .agent-profile-section-heading > p {
  font-size: .82rem !important;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .team-page-compact .agents-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }

  .agent-public-page-compact .agent-premium-profile {
    grid-template-columns: 155px minmax(0,1fr) !important;
  }

  .agent-public-page-compact .agent-profile-portrait,
  .agent-public-page-compact .agent-profile-photo,
  .agent-public-page-compact .agent-profile-initials {
    width: 148px !important;
  }

  .agent-public-page-compact .agent-profile-photo,
  .agent-public-page-compact .agent-profile-initials {
    height: 148px !important;
    min-height: 148px !important;
    max-height: 148px !important;
  }

  .agent-public-page-compact .agent-profile-insights {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    padding: 14px 18px !important;
  }

  .agent-public-page-compact .agent-profile-insights-label {
    grid-column: 1 / -1 !important;
    margin-bottom: 2px !important;
  }

  .agent-public-page-compact .agent-profile-insight {
    padding: 10px 14px 10px 0 !important;
    border-top: 0 !important;
    border-right: 1px solid rgba(255,255,255,.12);
  }

  .agent-public-page-compact .agent-profile-insight:last-of-type {
    border-right: 0;
    padding-right: 0 !important;
  }
}

@media (max-width: 720px) {
  .team-page-compact main,
  .agent-public-page-compact main {
    padding-top: var(--public-navbar-height,68px) !important;
  }

  .team-page-compact .team-directory-direct {
    padding-top: 25px !important;
  }

  .team-page-compact .team-directory-header-compact {
    align-items: start !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
  }

  .team-page-compact .team-directory-header-compact h1 {
    font-size: clamp(2.35rem,12vw,3.4rem);
  }

  .team-page-compact .agents-grid {
    grid-template-columns: 1fr !important;
  }

  .team-page-compact .agent-card {
    max-width: 520px !important;
    margin-inline: auto !important;
  }

  .team-page-compact .agent-card-media,
  .team-page-compact .agent-card-photo,
  .team-page-compact .agent-card-initials {
    height: 220px !important;
    min-height: 220px !important;
  }

  .agent-public-page-compact .agent-public-content {
    padding-top: 22px !important;
  }

  .agent-public-page-compact .agent-premium-profile {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 22px 18px !important;
  }

  .agent-public-page-compact .agent-profile-portrait {
    width: 140px !important;
    margin: 0 auto;
  }

  .agent-public-page-compact .agent-profile-photo,
  .agent-public-page-compact .agent-profile-initials {
    width: 140px !important;
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
  }

  .agent-public-page-compact .agent-profile-main {
    text-align: center;
  }

  .agent-public-page-compact .agent-profile-kicker {
    justify-content: center;
  }

  .agent-public-page-compact .agent-profile-name {
    font-size: clamp(2.5rem,12vw,3.5rem) !important;
  }

  .agent-public-page-compact .agent-profile-contact {
    grid-template-columns: 1fr !important;
    max-width: 480px;
    margin-inline: auto;
  }

  .agent-public-page-compact .agent-profile-social,
  .agent-public-page-compact .agent-profile-actions {
    justify-content: center;
  }

  .agent-public-page-compact .agent-profile-insights {
    grid-column: auto !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }

  .agent-profile-about-card {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 24px 20px !important;
  }

  .agent-public-page-compact .agent-profile-section-heading {
    align-items: start !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
}

@media (max-width: 480px) {
  .team-page-compact .agent-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  .agent-public-page-compact .agent-profile-insights {
    grid-template-columns: 1fr !important;
  }

  .agent-public-page-compact .agent-profile-insight {
    border-right: 0 !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
  }

  .agent-public-page-compact .agent-profile-action {
    width: auto !important;
    flex: 1 1 140px;
  }
}
