/* PropertysDeal — Agents list page */

.agents-list-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f6f7fb;
  min-height: 60vh;
}

.agents-list-page__title {
  font-size: 1.625rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.agents-list-page__lead {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* Filter bar */
.agents-filter-bar {
  background: #f3f4f6;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agents-filter-bar__item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.8125rem;
  color: #374151;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
}

.agents-filter-bar__label {
  font-size: 0.6875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.agents-filter-bar__select {
  border: none;
  background: transparent;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  min-width: 170px;
  outline: none;
  cursor: pointer;
}

.agents-filter-tags__tag {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: #374151;
}

.agents-filter-tags__clear {
  border: none;
  background: none;
  color: #e67e22;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* Agent card — horizontal layout */
.agents-list {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.agent-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8eaed;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.agent-card__media {
  flex-shrink: 0;
  width: 200px;
  min-height: 200px;
  display: block;
  overflow: hidden;
  background: #e5e7eb;
}

.agent-card__img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.agent-card__avatar {
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(140deg, #1e5f7a 0%, #eb8944 100%);
}

.agent-card__body {
  flex: 1;
  min-width: 0;
  padding: 1.15rem 1.35rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.agent-card__head {
  margin-bottom: 0.65rem;
}

.agent-card__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.agent-card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.agent-card__name a {
  color: #111827;
  text-decoration: none;
}

.agent-card__name a:hover {
  color: #1e5f7a;
}

.agent-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: #eef4ff;
  color: #2563eb;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.agent-card__verified i {
  font-size: 0.75rem;
}

.agent-card__agency {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.agent-card__location {
  margin: 0;
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.45;
}

.agent-card__location i {
  margin-right: 0.25rem;
  color: #9ca3af;
}

.agent-card__sep {
  margin: 0 0.35rem;
}

/* Stats strip */
.agent-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 0.65rem 0.5rem;
  margin-bottom: 0.75rem;
}

.agent-card__stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  font-size: 0.8125rem;
  color: #374151;
  border-right: 1px solid #e5e7eb;
}

.agent-card__stat:last-child {
  border-right: none;
}

.agent-card__stat strong {
  font-weight: 700;
  color: #111827;
}

.agent-card__stat-icon {
  color: #e67e22;
  font-size: 0.875rem;
}

.agent-card__stat-icon--star {
  color: #f59e0b;
}

.agent-card__reviews {
  font-weight: 500;
  color: #6b7280;
}

.agent-card__bio {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 0.85rem;
}

/* Actions */
.agent-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.agent-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
  line-height: 1.2;
}

.agent-card__btn--icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  border-radius: 50%;
  flex-shrink: 0;
}

.agent-card__btn--icon:hover {
  background: #f9fafb;
  color: #374151;
}

.agent-card__btn--outline {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
}

.agent-card__btn--outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.agent-card__btn--chat {
  padding: 0.5rem 1rem;
  border: 1.5px solid #e67e22;
  background: #fff;
  color: #e67e22;
}

.agent-card__btn--chat:hover {
  background: #fff8f3;
}

.agent-card__btn--primary {
  padding: 0.55rem 1.15rem;
  border: none;
  background: #e67e22;
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
}

.agent-card__btn--primary:hover {
  background: #d35400;
  color: #fff;
}

.agent-card__btn--primary i {
  font-size: 0.7rem;
}

/* Sidebar (preserved markup, scoped classes) */
.agents-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.agents-sidebar__card {
  background: #f3f4f6;
  border-radius: 18px;
  padding: 1.375rem;
}

.agents-sidebar__card-title {
  font-weight: 600;
  font-size: 1rem;
}

.agents-sidebar__card-text {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.agents-sidebar__toggle {
  display: flex;
  background: #e5e7eb;
  border-radius: 10px;
  padding: 4px;
  margin-top: 10px;
}

.agents-sidebar__toggle div {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}

.agents-sidebar__toggle button {
  flex: 1;
  text-align: center;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
}

.agents-sidebar__toggle .active {
  background: #0f172a;
  color: #fff;
}

.agents-sidebar__input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  font-size: 0.8125rem;
}

textarea.agents-sidebar__input {
  resize: vertical;
  min-height: 84px;
}

.agents-sidebar__cta {
  background: #e67e22;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
  font-size: 0.875rem;
}

.agents-sidebar__featured {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.agents-sidebar__featured-img {
  height: 150px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent),
    url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6');
  background-size: cover;
  display: flex;
  align-items: end;
  padding: 15px;
  color: #fff;
}

.agents-sidebar__featured-bottom {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agents-sidebar__loan {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: 18px;
  padding: 20px;
  color: #fff;
}

.agents-sidebar__loan-btn {
  background: #fff;
  color: #2563eb;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  margin-top: 10px;
  font-size: 0.875rem;
}

.agents-sidebar__ad {
  background: #f3f4f6;
  border-radius: 18px;
  padding: 40px;
  text-align: center;
  color: #6b7280;
}

.agents-list__empty h4 {
  font-weight: 700;
}

/* Responsive */
@media (max-width: 991.98px) {
  .agent-card__media {
    width: 160px;
    min-height: 180px;
  }

  .agent-card__img {
    min-height: 180px;
  }

  .agent-card__avatar {
    min-height: 180px;
    font-size: 2.7rem;
  }
}

@media (max-width: 767.98px) {
  .agent-card {
    flex-direction: column;
  }

  .agent-card__media {
    width: 100%;
    min-height: 200px;
  }

  .agent-card__img {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  .agent-card__avatar {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  .agent-card__stats {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
  }

  .agent-card__stat {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.35rem 0;
  }

  .agent-card__stat:last-child {
    border-bottom: none;
  }

  .agent-card__actions {
    justify-content: stretch;
  }

  .agent-card__btn--primary {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .agent-card__name-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .agent-card__actions .agent-card__btn--outline,
  .agent-card__actions .agent-card__btn--chat {
    flex: 1;
    min-width: calc(50% - 0.25rem);
  }
}
