/* ── No Results / Signal Demand Section ─────────────────────────────────── */

/* Hide map and expand right panel to full width when no listings */
.sa-no-listings-layout .sa-map-left-main-wrap {
  display: none;
}

.sa-no-listings-layout .sa-map-right-wrap {
  width: 100%;
}

.sa-no-results-section {
  display: flex;
  gap: 24px;
  padding: 32px 20px 40px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Left panel */
.sa-no-results-left {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
}

.sa-no-results-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}

.sa-no-results-headline {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 10px;
}

.sa-no-results-headline span {
  color: #2196f3;
}

.sa-no-results-desc {
  font-size: 14px;
  color: #475569;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* Inline save search form */
.sa-inline-save-form {
  margin-bottom: 22px;
}

.sa-inline-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  display: block;
}

.sa-inline-save-form .form-control {
  border-radius: 8px;
  border-color: #cbd5e1;
  font-size: 14px;
  padding: 9px 12px;
}

.sa-inline-save-form .form-control:focus {
  border-color: #e85c2c;
  box-shadow: 0 0 0 3px rgba(232, 92, 44, 0.12);
}

/* Alert toggle — mirrors the popup style */
.sa-alert-toggle {
  border-radius: 8px;
  overflow: hidden;
}

.sa-alert-toggle .btn {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 0;
}

.sa-alert-toggle .btn-check:checked + .btn {
  background: #2196f3;
  border-color: #2196f3;
  color: #fff;
}

.sa-alert-toggle .btn:hover:not(:has(+ .btn-check:checked)) {
  background: #f8fafc;
}

/* Form action buttons */
.sa-inline-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.sa-btn-save-inline {
  background: #2196f3;
  color: #fff;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: background 0.2s;
}

.sa-btn-save-inline:hover {
  background: #2196f3;
  color: #fff;
}

.sa-btn-refine {
  background: #fff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.sa-btn-refine:hover {
  border-color: #94a3b8;
  color: #1e293b;
}

/* Feature bullets */
.sa-no-results-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.sa-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}

.sa-feature-item svg {
  color: #2196f3;
  flex-shrink: 0;
}

/* Right panel – dark preview card */
.sa-no-results-right {
  width: 380px;
  flex-shrink: 0;
}

.sa-req-preview-card {
  background:  #2196f312;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
}

.sa-req-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sa-req-preview-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  /* background: rgba(255,255,255,0.1); */
  background: rgb(33 150 243 / 8%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2196f3;
}

.sa-req-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: #2196f3;
  border: 1px solid #2196f3;
  border-radius: 20px;
  padding: 3px 10px;
  margin-left: auto;
}

.sa-req-preview-body {
  padding: 18px 18px 20px;
}

.sa-req-preview-looking {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sa-req-preview-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 16px;
  line-height: 1.3;
}

.sa-req-preview-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sa-req-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background: rgba(255,255,255,0.06); */
  background: rgb(33 150 243 / 8%);
  border-radius: 8px;
  padding: 9px 12px;
}

.sa-req-row-label {
  font-size: 12px;
  color:rgb(53, 53, 53);
}

.sa-req-row-value {
  font-size: 13px;
  font-weight: 600;
  color: #000000;
}

/* AJAX save success / error banners */
.sa-inline-save-success,
.sa-inline-save-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.sa-inline-save-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.sa-inline-save-success svg {
  color: #16a34a;
  flex-shrink: 0;
}

.sa-inline-save-error {
  background: #fff1f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sa-inline-save-error svg {
  color: #dc2626;
  flex-shrink: 0;
}

/* Validation error messages */
.invalid-feedback:not(.d-none) {
  display: block;
  font-size: 12px;
  color: #dc3545;
  margin-top: 5px;
}

.sa-inline-save-form .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

/* Popup form validation errors */
#saveSearchModal .invalid-feedback:not(.d-none) {
  display: block;
  font-size: 12px;
  color: #dc3545;
  margin-top: 5px;
}

#saveSearchModal .form-control.is-invalid {
  border-color: #dc3545;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sa-no-results-section {
    flex-direction: column;
  }

  .sa-no-results-right {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .sa-no-results-left {
    padding: 20px 16px;
  }

  .sa-no-results-headline {
    font-size: 20px;
  }

  .sa-alert-toggle .btn {
    font-size: 11px;
    padding: 6px 2px;
  }

  .sa-inline-form-actions {
    flex-direction: column;
  }

  .sa-btn-save-inline,
  .sa-btn-refine {
    width: 100%;
    justify-content: center;
  }
}
