/* PropertysDeal — Agent profile page */

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

.ap-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}

.ap-breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
}

.ap-breadcrumb a:hover {
  color: #6b7280;
}

.ap-breadcrumb__sep {
  color: #d1d5db;
}

.ap-breadcrumb__current {
  color: #6b7280;
  font-weight: 500;
}

/* Profile card — info left, CTA right */
.ap-profile-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e8eaed;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.ap-profile-card__main {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 1.35rem;
  padding-right: 1.75rem;
}

.ap-profile-card__photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 152px;
}

.ap-profile-card__photo {
  width: 152px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #e5e7eb;
}

.ap-profile-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #9ca3af;
}

.ap-profile-card__rating-badge {
  position: absolute;
  left: 10px;
  bottom: -8px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  border: 1px solid #f3f4f6;
}

.ap-profile-card__rating-badge i {
  color: #f59e0b;
  font-size: 0.7rem;
}

.ap-profile-card__info {
  flex: 1;
  min-width: 0;
}

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

.ap-profile-card__name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.ap-profile-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;
}

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

.ap-profile-card__agency {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #757575;
  line-height: 1.45;
}

.ap-profile-card__sep {
  margin: 0 0.35rem;
  color: #9ca3af;
}

.ap-profile-card__location {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #9ca3af;
}

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

/* Stats strip */
.ap-profile-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 0.75rem 0.35rem;
  margin-bottom: 1rem;
}

.ap-profile-card__stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 1rem;
  border-right: 1px solid #e5e7eb;
  min-width: 0;
}

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

.ap-profile-card__stat-icon {
  color: #e67e22;
  font-size: 1rem;
  flex-shrink: 0;
}

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

.ap-profile-card__stat-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ap-profile-card__stat-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  line-height: 1.2;
}

.ap-profile-card__stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.ap-profile-card__reviews {
  font-weight: 500;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Trust badges */
.ap-profile-card__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ap-profile-card__trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
}

.ap-profile-card__trust-badge i {
  color: #e67e22;
  font-size: 0.8rem;
}

.ap-profile-card__bio {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #6b7280;
  max-width: 42rem;
}

/* CTA column */
.ap-profile-card__actions {
  flex-shrink: 0;
  width: 100%;
  max-width: 248px;
  padding: 0.25rem 0 0.25rem 1.75rem;
  border-left: 1px solid #eef0f3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ap-btn--primary {
  background: #eb8944;
  color: #fff;
  box-shadow: 0 4px 14px rgba(235, 137, 68, 0.35);
}

.ap-btn--primary:hover {
  background: #e67e22;
  color: #fff;
}

.ap-btn--outline {
  margin-top: 0.65rem;
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.ap-btn--outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.ap-btn--outline i {
  color: #eb8944;
}

.ap-profile-card__response {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.ap-profile-card__response i {
  margin-right: 0.25rem;
}

/* Property listings sections */
.ap-listings {
  margin-bottom: 2.5rem;
}

.ap-listings--rent {
  margin-top: 0.5rem;
}

.ap-listings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ap-listings__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
}

.ap-listings__count {
  font-weight: 600;
  color: #9ca3af;
  font-size: 1rem;
}

.ap-listings__view-all {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #eb8944;
  text-decoration: none;
  white-space: nowrap;
}

.ap-listings__view-all:hover {
  color: #e67e22;
}

.ap-listings__empty {
  padding: 2rem 0;
}

/* Property card */
.ap-prop-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8eaed;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ap-prop-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.ap-prop-card__link[href="#"] {
  cursor: default;
  pointer-events: none;
}

.ap-prop-card__media {
  position: relative;
  height: 220px;
  background: #e5e7eb;
}

.ap-prop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-prop-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  background: rgba(31, 41, 55, 0.85);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.ap-prop-card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  pointer-events: auto;
}

.ap-prop-card__fav:hover {
  color: #eb8944;
}

.ap-prop-card__price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 0.4rem 0.75rem;
  background: #eb8944;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 999px;
}

.ap-prop-card__body {
  position: relative;
  z-index: 2;
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.ap-prop-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ap-prop-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.ap-prop-card__id {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 0.6875rem;
  color: #6b7280;
  font-weight: 500;
}

.ap-prop-card__address {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.4;
}

.ap-prop-card__address i {
  margin-right: 0.25rem;
}

.ap-prop-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.ap-prop-card__feature {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
}

.ap-prop-card__feature i {
  color: #9ca3af;
  font-size: 0.7rem;
}

.ap-prop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.ap-prop-card__availability {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
}

.ap-prop-card__details {
  font-size: 0.875rem;
  font-weight: 600;
  color: #eb8944;
}

.ap-empty h4 {
  font-weight: 700;
}

/* Reviews & Ratings */
.ap-reviews {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e8eaed;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  padding: 1.75rem 1.75rem 2rem;
  margin-bottom: 2rem;
}

.ap-reviews__title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
}

.ap-reviews__summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ap-reviews__score {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.ap-reviews__summary-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ap-reviews__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.ap-reviews__star-btn {
  border: none;
  background: none;
  padding: 0.15rem;
  cursor: default;
  line-height: 1;
}

.ap-reviews__stars--input .ap-reviews__star-btn {
  cursor: pointer;
}

.ap-reviews__stars--input .ap-reviews__star-btn:hover .ap-reviews__star {
  color: #f59e0b;
}

.ap-reviews__star {
  font-size: 1.35rem;
  color: #d1d5db;
}

.ap-reviews__star--on {
  color: #f59e0b;
}

.ap-reviews__count {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

.ap-reviews__divider {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #eef0f3;
}

.ap-reviews__form-title {
  margin: 0 0 1.15rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111827;
}

.ap-reviews__form {
  max-width: 640px;
}

.ap-reviews__field {
  margin-bottom: 1.15rem;
}

.ap-reviews__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}

.ap-reviews__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  resize: vertical;
  min-height: 120px;
}

.ap-reviews__textarea::placeholder {
  color: #9ca3af;
}

.ap-reviews__textarea:focus {
  outline: none;
  border-color: #eb8944;
  box-shadow: 0 0 0 3px rgba(235, 137, 68, 0.15);
}

.ap-reviews__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #eb8944;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ap-reviews__submit:hover {
  background: #e67e22;
}

@media (max-width: 575.98px) {
  .ap-reviews {
    padding: 1.25rem;
  }

  .ap-reviews__score {
    font-size: 2.25rem;
  }
}

@media (max-width: 991.98px) {
  .ap-profile-card {
    flex-direction: column;
  }

  .ap-profile-card__main {
    padding-right: 0;
  }

  .ap-profile-card__actions {
    max-width: none;
    margin-top: 1.25rem;
    padding: 1.25rem 0 0;
    border-left: none;
    border-top: 1px solid #eef0f3;
  }
}

@media (max-width: 767.98px) {
  .ap-profile-card__main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ap-profile-card__name-row,
  .ap-profile-card__trust {
    justify-content: center;
  }

  .ap-profile-card__stats {
    justify-content: center;
  }

  .ap-profile-card__stat {
    border-right: none;
    padding: 0.35rem 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .ap-profile-card {
    padding: 1.15rem;
  }

  .ap-profile-card__main {
    align-items: flex-start;
    text-align: left;
  }

  .ap-profile-card__name-row,
  .ap-profile-card__trust {
    justify-content: flex-start;
  }

  .ap-profile-card__stats {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.65rem 0.85rem;
  }

  .ap-profile-card__stat {
    border-right: none;
    padding: 0.35rem 0;
    width: 100%;
  }
}
