/* RTL Layout — base/base.html already sets dir="rtl" on <html>. Removed
   the unscoped body declaration so phone-number `<input dir="ltr">` doesn't
   accidentally inherit text-align:right. */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Breadcrumb */
.breadcrumb-section {
  background: var(--ds-surface-2);
  padding: 1rem 0;
  margin-top: 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}

.breadcrumb a {
  color: var(--ds-brand);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--ds-brand-800);
}

.breadcrumb-separator {
  color: var(--ds-muted);
}

/* Counselor Header */
.counselor-header {
  background: var(--ds-surface);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,166,147,.1);
}

.counselor-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.counselor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--ds-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(0,166,147,.15);
  flex-shrink: 0;
}

.counselor-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.counselor-details h1 {
  font-size: var(--ds-text-3xl);
  color: var(--ds-ink);
  margin-bottom: 0.5rem;
}

.counselor-bio {
  color: var(--ds-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.activity-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.area-label {
  background: rgba(0,166,147,.1);
  color: var(--ds-brand);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: var(--ds-text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.area-label:hover {
  background: var(--ds-brand);
  color: white;
  transform: translateY(-1px);
}

/* Counselor Rating */
.counselor-rating {
  margin: 1rem 0;
}

.overall-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-number {
  font-size: var(--ds-text-2xl);
  font-weight: 700;
  color: var(--ds-brand);
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
  color: #FFC107;
}

.rating-count {
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: var(--ds-text-base);
}

/*
 * Action buttons — single visual hierarchy.
 * The previous palette had three different filled-button colours in one row
 * (green/blue/teal), all flighted as primary CTAs. Now: only `.btn-call` is
 * a filled brand action, and `.btn-sms` / `.btn-contact` step down to ghost
 * outline buttons so the eye lands on the call CTA first.
 */
.btn-call {
  background: var(--ds-brand);
  color: #fff;
}

.btn-call:hover {
  background: var(--ds-brand-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,166,147,.3);
}

.btn-sms {
  background: transparent;
  border: 1.5px solid var(--ds-brand);
  color: var(--ds-brand);
}

.btn-sms:hover {
  background: var(--ds-brand-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,166,147,.18);
}

.btn-contact {
  background: transparent;
  border: 1.5px solid var(--ds-brand);
  color: var(--ds-brand);
}

.btn-contact:hover {
  background: var(--ds-brand-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,166,147,.18);
}

/* Save Button */
.save-counselor {
  background: transparent;
  color: var(--ds-muted);
  border: 2px solid var(--ds-muted);
  padding: 0.75rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.save-counselor:hover {
  background: var(--ds-brand);
  color: white;
  border-color: var(--ds-brand);
  transform: scale(1.1);
}

/* Main Content Section */
.main-content-section {
  background: var(--ds-surface-2);
  padding: 3rem 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.right-column {
  position: relative;
}

.contact-form-sticky {
  position: sticky;
  top: 100px;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: var(--ds-text-2xl);
  color: var(--ds-ink);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--ds-muted);
  font-size: var(--ds-text-base);
}

/* Properties Section */
.properties-section {
  background: var(--ds-surface);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,166,147,.1);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.property-card {
  background: var(--ds-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,166,147,.1);
  transition: all 0.3s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,166,147,.15);
}

.property-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  color: white;
  background: var(--ds-brand);
}

.property-info {
  padding: 1.5rem;
}

.property-title {
  font-size: var(--ds-text-lg);
  font-weight: 600;
  color: var(--ds-ink);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.property-location {
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-details {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}

.property-details span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.property-price {
  font-size: var(--ds-text-lg);
  font-weight: 600;
  color: var(--ds-brand);
  margin-bottom: 1rem;
}

.property-link {
  display: inline-block;
  background: var(--ds-brand);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: var(--ds-text-sm);
  font-weight: 500;
  transition: all 0.3s ease;
}

.property-link:hover {
  background: var(--ds-brand-800);
  color: white;
  transform: translateY(-1px);
}

/* Reviews Section */
.reviews-section {
  background: var(--ds-surface);
  padding: 3rem 0;
}

.rating-breakdown-section {
  background: var(--ds-surface);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,166,147,.1);
  margin-bottom: 2rem;
}

.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rating-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-label {
  min-width: 150px;
  font-weight: 500;
  color: var(--ds-ink);
}

.rating-bar {
  flex: 1;
  height: 8px;
  background: rgba(0,166,147,.1);
  border-radius: 4px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  background: var(--ds-brand);
  transition: width 0.3s ease;
}

.rating-value {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--ds-brand);
}

/* Reviews List */
.reviews-list-section {
  background: var(--ds-surface);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,166,147,.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.review-card {
  background: var(--ds-surface-2);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0,166,147,.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ds-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: var(--ds-text-lg);
}

.reviewer-name {
  font-size: var(--ds-text-base);
  font-weight: 600;
  color: var(--ds-ink);
  margin-bottom: 0.25rem;
}

.review-date {
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}

.review-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.review-rating .rating-number {
  font-size: var(--ds-text-2xl);
}

.review-content {
  margin-bottom: 1rem;
}

.review-title {
  font-size: var(--ds-text-lg);
  font-weight: 600;
  color: var(--ds-ink);
  margin-bottom: 0.5rem;
}

.review-text {
  color: var(--ds-muted);
  line-height: 1.6;
}

.no-reviews {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ds-muted);
}

.no-reviews h4 {
  color: var(--ds-ink);
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  background: var(--ds-surface);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,166,147,.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--ds-ink);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(0,166,147,.15);
  border-radius: 8px;
  font-size: var(--ds-text-base);
  transition: all 0.3s ease;
  background-color: #fafafa;
  font-family: 'Vazirmatn', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--ds-brand);
  box-shadow: 0 0 0 3px rgba(0,166,147,.1);
  background-color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form-sticky {
    position: static;
  }
  
  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .counselor-info {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .action-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: var(--ds-text-sm);
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .main-content-section {
    padding: 2rem 0;
  }
  
  .left-column {
    gap: 2rem;
  }
  
  .section-title {
    font-size: var(--ds-text-xl);
  }
}

/* Success/Error Messages */
.success-message {
  background: rgba(16,185,129,.1);
  color: var(--ds-success);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: none;
}

.error-message {
  background: rgba(239,68,68,.1);
  color: #DC2626;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: none;
}
