/* RTL Layout — base/base.html already sets dir="rtl" on <html>, so we don't
   need a redundant body declaration here. Removed unscoped 'text-align: right'
   that was bleeding RTL phone-number ordering into LTR-direction inputs. */

.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;
  flex-wrap: wrap;
  row-gap: 0.25rem;
  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);
  position: relative;
}

/* Premium tier — amber accent so the page actually feels premium next to a
   regular counselor's plain header. */
.counselor-header.is-premium {
  border-top: 3px solid var(--ds-warning);
}

.counselor-header .premium-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--ds-radius-pill);
  background: rgba(245, 158, 11, 0.12);
  color: var(--ds-warning);
  font-size: var(--ds-text-sm);
  font-weight: 600;
  margin-bottom: 1rem;
}

.counselor-header .premium-indicator i {
  font-size: 0.85em;
}

.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;
  /* Calm down the loud purple/red placeholder logos so the avatar reads as
     UI chrome instead of dominating the header — matches the list page. */
  filter: saturate(0.55) contrast(0.95);
}

.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;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.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-stars.large {
  font-size: var(--ds-text-lg);
}

.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);
}

/* Primary CTA: contact (call) — only this one is filled. */
.btn-call {
  background: var(--ds-brand);
  color: white;
}

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

/* Secondary actions: outlined, neutral until hover. Five competing
   filled colours read as a glitch on a single row. */
.btn-sms,
.btn-contact,
.btn-request-call {
  background: transparent;
  color: var(--ds-brand);
  border: 1.5px solid var(--ds-brand);
  position: relative;
}

.btn-sms:hover,
.btn-contact:hover,
.btn-request-call:hover {
  background: var(--brand-50, #E6F7F4);
  color: var(--ds-brand-800);
  border-color: var(--ds-brand-800);
  transform: translateY(-1px);
}

/* Request Call Tooltip */
.request-call-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--ds-ink);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  width: 300px;
  font-size: var(--ds-text-sm);
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

.request-call-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  border: 8px solid transparent;
  border-top-color: var(--ds-ink);
}

.btn-request-call:hover .request-call-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 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);
}

.save-counselor.saved {
  background: var(--ds-brand);
  color: white;
  border-color: var(--ds-brand);
}

/* 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);
}

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

.map-container {
  position: relative;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

#counselorMap {
  width: 100%;
  height: 100%;
}

/* 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;
}

.property-type-badge.sale {
  background: var(--ds-brand);
}

.property-type-badge.rent {
  background: var(--ds-accent);
}

.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);
}

/* Map Legend */
.map-legend {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 1000;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.legend-dot.rent {
  background: var(--ds-accent);
}

.legend-dot.sale {
  background: var(--ds-brand);
}

/* 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;
}

.form-control textarea {
  resize: vertical;
  min-height: 100px;
}

/* Property Preview Popup */
.property-popup {
  max-width: 300px;
}

.property-popup-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.property-popup-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ds-ink);
}

.property-popup-details {
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
  margin-bottom: 0.5rem;
}

.property-popup-price {
  font-weight: 600;
  color: var(--ds-brand);
  margin-bottom: 0.5rem;
}

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

.property-popup-link:hover {
  background: var(--ds-brand-800);
}

/* 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 {
    /* Single horizontal scroll lane on phones — buttons stay on one row
       and the user scrolls instead of having "درخواست تماس" stranded on
       its own third row. Save-counselor / bookmark stays sticky at the
       right via the new _detail_mobile_cta partial. */
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .action-buttons::-webkit-scrollbar { display: none; }
  .action-buttons .btn { flex-shrink: 0; }

  .btn {
    padding: 0.5rem 1rem;
    font-size: var(--ds-text-sm);
  }
  
  .request-call-tooltip {
    /* On narrow viewports anchor to the button edges + cap width with
       viewport-relative max to avoid horizontal overflow on 360px screens. */
    width: auto;
    max-width: calc(100vw - 32px);
    right: 0;
    left: auto;
  }
  
  .map-container {
    height: 300px;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .main-content-section {
    padding: 2rem 0;
  }
  
  .left-column {
    gap: 2rem;
  }
  
  .section-title {
    font-size: var(--ds-text-xl);
  }
}

/* Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--ds-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0,166,147,.2);
  border-top: 4px solid var(--ds-brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success Message */
.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;
}

/* 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;
}

.review-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,166,147,.1);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--ds-text-sm);
}

.mini-stars {
  display: flex;
  gap: 0.125rem;
  color: #FFC107;
  font-size: var(--ds-text-sm);
}

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

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

/* Review Modal - Digikala Style */
.review-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.review-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.review-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ds-surface);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Modal Header */
.review-modal-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,166,147,.1);
  background: var(--ds-surface);
}

.back-button {
  background: none;
  border: none;
  color: var(--ds-ink);
  font-size: var(--ds-text-lg);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(0,166,147,.1);
  color: var(--ds-brand);
}

.modal-title {
  font-size: var(--ds-text-lg);
  font-weight: 600;
  color: var(--ds-ink);
  margin: 0;
}

/* Counselor Info Section */
.counselor-info-section {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(0,166,147,.1);
}

.counselor-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ds-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ds-text-2xl);
  font-weight: bold;
  overflow: hidden;
  flex-shrink: 0;
}

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

.counselor-name-modal {
  font-size: var(--ds-text-lg);
  font-weight: 600;
  color: var(--ds-ink);
  margin: 0 0 0.25rem 0;
}

.agency-name-modal {
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
  margin: 0;
}

/* Comment Section */
.comment-section {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0,166,147,.1);
}

.section-label {
  display: block;
  font-size: var(--ds-text-base);
  font-weight: 600;
  color: var(--ds-ink);
  margin-bottom: 1rem;
}

.comment-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(0,166,147,.15);
  border-radius: 12px;
  font-size: var(--ds-text-base);
  font-family: 'Vazirmatn', sans-serif;
  transition: all 0.3s ease;
  background: #fafafa;
  margin-bottom: 1rem;
}

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

.comment-textarea {
  width: 100%;
  min-height: 100px;
  padding: 1rem;
  border: 2px solid rgba(0,166,147,.15);
  border-radius: 12px;
  font-size: var(--ds-text-base);
  font-family: 'Vazirmatn', sans-serif;
  resize: vertical;
  transition: all 0.3s ease;
  background: #fafafa;
}

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

/* Rating Section */
.rating-section {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0,166,147,.1);
}

.rating-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rating-item-modal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating-label-modal {
  font-size: var(--ds-text-base);
  color: var(--ds-ink);
  font-weight: 500;
  flex: 1;
}

.star-rating-modal {
  display: flex;
  gap: 0.5rem;
  cursor: pointer;
}

.star-rating-modal i {
  font-size: var(--ds-text-2xl);
  color: #E0E0E0;
  transition: all 0.2s ease;
}

.star-rating-modal i:hover,
.star-rating-modal i.active {
  color: #FFC107;
  transform: scale(1.1);
}

/* Submit Section */
.submit-section {
  padding: 1.5rem;
}

.submit-review-btn {
  width: 100%;
  background: var(--ds-brand);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: var(--ds-text-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
}

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

.submit-review-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Bottom-sheet style on mobile so iOS keyboard contraction doesn't push
     the modal off-screen. `dvh` follows the visual viewport. */
  .review-modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 90dvh;
    border-radius: 16px 16px 0 0;
    transform: none;
    overflow-y: auto;
    margin: 0;
  }

  .counselor-info-section {
    padding: 1rem;
  }

  .comment-section,
  .rating-section,
  .submit-section {
    padding: 1rem;
  }

  /* Keep rating rows as flex-row in RTL so label + stars stay aligned
     on the same baseline; column layout looked broken on mobile. */
  .rating-item-modal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .star-rating-modal {
    align-self: center;
  }
}

.btn-primary {
  background: var(--ds-brand);
  color: white;
}

.btn-primary:hover {
  background: var(--ds-brand-800);
}

.btn-secondary {
  background: var(--ds-muted);
  color: white;
}

.btn-secondary:hover {
  background: #5A6C7D;
}

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

.btn-outline:hover {
  background: var(--ds-brand);
  color: white;
}

/* Shared property cards inside the counselor detail page */
.cnsl-properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
