/* ================================================================
   Agent Detail Page  —  agent-detail.css
   Scoped under .adp-*  |  No Tailwind  |  Clean modern design
   ================================================================ */

/* ── Page Shell ── */
.adp-page {
  background: #f1f5f9;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Breadcrumb ── */
.adp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  font-size: 13px;
  color: #64748b;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.adp-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}
.adp-breadcrumb a:hover { color: #2563eb; }
.adp-bc-sep { color: #cbd5e1; }
.adp-bc-current { color: #0f172a; font-weight: 500; }

/* ================================================================
   HERO BANNER
   ================================================================ */
.adp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a5f 100%);
  padding: 20px 32px;
}

.adp-hero-inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Avatar column */
.adp-hero-avatar-col { flex-shrink: 0; }

.adp-hero-avatar-wrap {
  position: relative;
  display: inline-block;
}

.adp-hero-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.25);
  display: block;
  background: #334155;
}

.adp-hero-verified {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  background: #22c55e;
  border: 2px solid #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
}

/* Info column */
.adp-hero-info { flex: 1; min-width: 0; }

/* Name + badges on one row */
.adp-hero-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.adp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}

.adp-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}
.adp-badge-premium i { color: #fff; }

.adp-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: #dcfce7;
  color: #16a34a;
}

.adp-badge-pro {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}

/* Name */
.adp-hero-name {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* Meta row */
.adp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.adp-hero-meta i { color: rgba(255,255,255,0.45); font-size: 11px; }
.adp-hero-meta-sep { color: rgba(255,255,255,0.3); }

/* Stats + CTA bottom row */
.adp-hero-bottom-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Stats row */
.adp-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 14px;
  width: fit-content;
}

.adp-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px;
}

.adp-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.adp-stat-value i { color: #fbbf24; font-size: 12px; }

.adp-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
  white-space: nowrap;
}

.adp-stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Hero CTA buttons */
.adp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adp-cta-wa,
.adp-cta-call,
.adp-cta-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.adp-cta-wa {
  background: #22c55e;
  color: #fff;
}
.adp-cta-wa i { font-size: 17px; }

.adp-cta-call {
  background: #2563eb;
  color: #fff;
}

.adp-cta-email {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}

/* ================================================================
   BODY LAYOUT
   ================================================================ */
.adp-body {
  margin: 0 auto;
  padding: 28px 32px 64px;
  display: flex;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .adp-body { flex-direction: column; }
}

.adp-main-col,
.adp-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.adp-main-col {
  flex: 0 0 70%;
}

.adp-sidebar-col {
  flex: 1;
}

.adp-sidebar-col {
  position: sticky;
  top: 80px;
}

/* ================================================================
   CARDS
   ================================================================ */
.adp-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 8px rgba(15,23,42,0.06);
  padding: 24px;
}

.adp-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.adp-card-accent {
  display: inline-block;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: #2563eb;
  flex-shrink: 0;
}

.adp-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* ── About text ── */
.adp-about-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* ── Info grid ── */
.adp-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .adp-info-grid { grid-template-columns: 1fr; }
}

.adp-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.adp-info-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 13px;
}

.adp-info-label {
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adp-info-value {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  margin: 0;
}

/* ── Specializations ── */
.adp-spec-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.adp-spec-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* ── Chips ── */
.adp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adp-chip {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.adp-chip--blue {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.adp-hero-area-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.adp-hero-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.adp-area-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}

.adp-area-chip i {
  font-size: 10px;
}

/* ================================================================
   TABS
   ================================================================ */
.adp-card--notabs { padding: 0; overflow: hidden; }

.adp-tabs-nav {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  gap: 4px;
  overflow-x: auto;
}

.adp-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px 4px;
  margin-right: 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.2s;
}
.adp-tab:hover { color: #0f172a; }
.adp-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}
.adp-tab i { font-size: 12px; }

.adp-tab-count {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 100px;
}
.adp-tab.active .adp-tab-count {
  background: #eff6ff;
  color: #2563eb;
}

.adp-tab-panel { display: none; padding: 20px 24px; }
.adp-tab-panel.active { display: block; }

/* ── Empty state ── */
.adp-empty-state {
  text-align: center;
  padding: 48px 0;
  color: #94a3b8;
}
.adp-empty-state i { font-size: 32px; margin-bottom: 12px; display: block; }
.adp-empty-state p { font-size: 14px; margin: 0; }

/* ================================================================
   PROPERTY CARDS
   ================================================================ */
.adp-prop-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adp-prop-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

@media (max-width: 600px) {
  .adp-prop-card { flex-direction: column; }
}

/* Thumbnail */
.adp-prop-thumb {
  position: relative;
  width: 240px;
  min-width: 240px;
  overflow: hidden;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .adp-prop-thumb { width: 100%; min-width: 0; height: 180px; }
}

.adp-prop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adp-thumb-photo-badge,
.adp-thumb-video-badge {
  position: absolute;
  bottom: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.adp-thumb-photo-badge { left: 8px; }
.adp-thumb-video-badge { left: 8px; bottom: 32px; }

.adp-prop-status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.status-green { background: #dcfce7; color: #16a34a; }
.status-amber { background: #fef3c7; color: #d97706; }

/* Property info */
.adp-prop-info {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adp-prop-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.adp-prop-name {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}
.adp-prop-name a { color: inherit; text-decoration: none; }
.adp-prop-name a:hover { color: #2563eb; }

.adp-prop-sub {
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.adp-prop-sub i { color: #94a3b8; font-size: 10px; }

.adp-prop-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.adp-fav-btn,
.adp-share-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.adp-fav-btn:hover { color: #ef4444; border-color: #fecaca; }
.adp-fav-btn.is-active { color: #ef4444; border-color: #fecaca; }
.adp-share-btn:hover { color: #475569; }

.adp-prop-price {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0;
}

.adp-prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #64748b;
}
.adp-prop-specs i { margin-right: 4px; color: #94a3b8; }

.adp-prop-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0;
}

.adp-prop-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.adp-prop-date {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}
.adp-prop-date i { font-size: 10px; }

.adp-prop-more {
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.adp-prop-more i { font-size: 11px; }

.adp-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adp-review-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}

.adp-review-stars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #f59e0b;
  font-size: 13px;
}

.adp-review-date {
  color: #94a3b8;
  font-size: 12px;
}

.adp-review-text {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 10px;
}

.adp-review-author {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

/* ================================================================
   SIDEBAR — CONTACT CARD
   ================================================================ */
.adp-contact-card { padding: 0; overflow: hidden; }

.adp-cc-header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 16px 20px;
}
.adp-cc-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.adp-cc-agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.adp-cc-agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.adp-cc-agent-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.adp-cc-agent-sub {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
}

.adp-cc-verified-badge {
  margin-left: auto;
  color: #22c55e;
  font-size: 18px;
}

.adp-cc-form { padding: 16px 20px 0; }

.adp-cc-field { margin-bottom: 10px; }

.adp-cc-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  background: #fff;
}
.adp-contact-card .adp-cc-input {
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  line-height: 16px !important;
}
.adp-cc-input:focus,
.adp-contact-card .adp-cc-input:focus {
  border-color: #2563eb !important;
}

.adp-cc-phone-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.adp-contact-card .adp-cc-phone-row {
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
}
.adp-cc-phone-row:focus-within,
.adp-contact-card .adp-cc-phone-row:focus-within {
  border-color: #2563eb !important;
}

.adp-contact-card .adp-cc-textarea {
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #0f172a !important;
  border-radius: 0 !important;
}
.adp-contact-card .adp-cc-input::placeholder {
  color: #94a3b8 !important;
}

.adp-cc-flag {
  padding: 10px 12px;
  font-size: 13px;
  color: #475569;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
  background: #f8fafc;
}

.adp-cc-phone {
  border: none;
  border-radius: 0;
  flex: 1;
}
.adp-cc-phone:focus { border: none; outline: none; }

.adp-cc-textarea {
  resize: none;
  min-height: 90px;
  border-radius: 0;
  padding: 10px 14px;
  line-height: 1.4;
}

.adp-cc-consent {
  padding: 0 20px 12px;
  font-size: 11.5px;
  color: #64748b;
}

.adp-cc-check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.adp-cc-check-label input { margin-top: 2px; flex-shrink: 0; }

.adp-cc-submit {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px;
  padding: 13px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.adp-cc-divider {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin: 14px 20px;
  position: relative;
}
.adp-cc-divider::before,
.adp-cc-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #e2e8f0;
}
.adp-cc-divider::before { left: 0; }
.adp-cc-divider::after  { right: 0; }

.adp-cc-direct-btns {
  display: flex;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 16px;
}

.adp-cc-wa,
.adp-cc-call {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.adp-cc-wa   { background: #dcfce7; color: #16a34a; }
.adp-cc-call { background: #eff6ff; color: #2563eb; }

.adp-cc-wa i   { font-size: 15px; }
.adp-cc-call i { font-size: 13px; }

.adp-cc-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  padding-bottom: 16px;
}
.adp-cc-secure i { color: #22c55e; }

/* ── Office Photos ── */
.adp-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.adp-photo-cell {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.adp-photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .adp-hero { padding: 28px 16px 24px; }
  .adp-body { padding: 20px 16px 40px; }
  .adp-breadcrumb { padding: 10px 16px; }

  .adp-hero-stats {
    gap: 0;
    padding: 10px 12px;
  }
  .adp-stat-item { padding: 0 12px; }
  .adp-stat-value { font-size: 15px; }

  .adp-hero-cta { gap: 8px; }
  .adp-cta-wa, .adp-cta-call, .adp-cta-email {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Agent detail page override to restore content wrapper top offset */
.content-wrapper {
  margin-top: 62px !important;
}
