/* Custom Radzen modifications */

.rz-notification-error .rz-notification-item {
    color: white !important;
    background-color: #851500 !important;
}
.rz-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.rz-steps-next {
    background-color: #2B82F6 !important;
    color: white !important;
    border-radius: 5px !important;
    text-transform: none !important;
}

.rz-sidebar-toggle {
    padding: 16px !important;
    margin: 0 !important;
}

/* End Radzen modifications */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  background-color: #f9fafb;
  line-height: 1.5;
}

/* Header */
.header {
    display: flex;
    height: 60px;
    padding: 0 16px;
    background-color: #1F2937 !important;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background-color: white;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.header-title {
  font-size: 18px;
  font-weight: 600;
}

.header-menu {
    background: none !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-email {
  font-size: 14px;
  color: #d1d5db;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background-color: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 280px;
  height: calc(100vh - 60px);
  background-color: #f3f4f6;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 999;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar-nav {
  padding: 16px 0;
}

.nav-item {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    background-color: #F3F4F6
}

.nav-item.active {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-right: 3px solid #3b82f6;
    font-weight: 400;
}

.nav-item.active i.rz-icon {
    color: #1d4ed8;
}

.expand-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.nav-item-expandable:hover .expand-icon {
  transform: rotate(90deg);
}

.badge {
  background-color: #dc2626;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 12px;
  min-width: 32px;
  max-width: fit-content;
  text-align: center;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.sidebar-overlay.active {
  display: block;
}

/* Main content */
.main-content {
  margin-left: 280px;
  padding: 60px 0 0 0;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.main-content.expanded {
  margin-left: 0;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 32px;
  border-bottom: 1px solid #e5e7eb;
  background-color: white;
}

.breadcrumb-back {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.breadcrumb-back:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.breadcrumb-back svg {
  width: 16px;
  height: 16px;
}

/* Page header */
.page-header {
  padding: 32px;
  background-color: white;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #6b7280;
  font-size: 16px;
}

/* Progress steps */
.progress-steps {
  display: flex;
  align-items: center;
  padding: 32px;
  background-color: white;
  border-top: 1px solid #e5e7eb;
  overflow-x: auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 200px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-active .step-number {
  background-color: #3b82f6;
  color: white;
}

.step-completed .step-number {
  background-color: #10b981;
  color: white;
}

.check-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.step-active .step-title {
  color: #1d4ed8;
}

.step-completed .step-title {
  color: #059669;
}

.step-description {
  font-size: 12px;
  color: #6b7280;
}

.step-connector {
  height: 2px;
  background-color: #e5e7eb;
  flex: 1;
  margin: 0 16px;
}

.step-connector-completed {
  background-color: #10b981;
}

/* Form section */
.form-section {
  padding: 32px;
  background-color: white;
  margin: 24px 32px;
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 20px;
  font-weight: 600;
}

.form-subtitle {
  color: #6b7280;
}

.property-form {
  max-width: 800px;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-row:last-of-type {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-large {
  grid-column: 1;
}

.form-label {
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}

.required {
  color: #dc2626;
}

.form-input {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:hover {
  border-color: #9ca3af;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-actions {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-ghost {
  background-color: transparent !important;
  color: #FFFFFF !important;
  border: 1px solid #FFFFFF !important;
}

.btn-ghost:hover {
  background-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-ghost:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Property Images Section */
.property-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.image-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.image-placeholder {
  aspect-ratio: 16/9;
  background-color: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.image-placeholder:hover {
  border-color: #9ca3af;
  background-color: #e5e7eb;
}

.image-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  text-align: center;
}

.image-placeholder-icon {
  font-size: 48px;
  color: #9ca3af;
}

/* Data Comparison Section */
.data-comparison-section {
  margin-bottom: 32px;
}

.property-address-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header {
  margin-bottom: 16px;
  gap: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

.section-subtitle {
  color: #6b7280;
  font-size: 14px;
  margin-top: 4px;
}

.category-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #dbeafe;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  max-width: fit-content;
}

.category-label {
  color: #1d4ed8;
  font-weight: 500;
}

.category-value {
  background-color: #3b82f6;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 12px;
}

/* Comparison Table */
.comparison-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  margin-bottom: 16px;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.column-header {
  padding: 16px;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  border-right: 1px solid #e5e7eb;
}

.column-header:last-child {
  border-right: none;
}

.column-header.property-feature {
  background-color: #f3f4f6;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s;
}

.table-row:hover {
  background-color: #f9fafb;
}

.table-row:last-child {
  border-bottom: none;
}

.property-feature-cell {
  padding: 16px;
  font-weight: 500;
  color: #374151;
  background-color: #f9fafb;
  border-right: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
}

.data-cell {
  padding: 16px;
  border-right: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.2s;
}

.data-cell:hover {
  background-color: #f3f4f6;
}

.data-value {
  font-size: 14px;
  color: #374151;
}

.use-this-btn {
  background: none;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.use-this-btn:hover {
  background-color: #e5e7eb;
  color: #374151;
}

.use-this-btn-btn svg {
  width: 16px;
  height: 16px;
}

.appraiser-cell {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-match {
  background-color: #10b981;
}

.status-custom {
  background-color: #f59e0b;
}

.status-click {
  background-color: #6b7280;
}

.appraiser-value {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

/* Radio and Select Controls */
.pool-options {
  display: flex;
  gap: 16px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}

.radio-option input[type="radio"] {
  margin: 0;
  accent-color: #3b82f6;
}

.radio-label {
  color: #374151;
}

.view-select {
  width: 100%;
}

.view-dropdown {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  color: #374151;
  cursor: pointer;
}

.view-dropdown:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.appraiser-input {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 14px;
  color: #374151;
  background-color: white;
  flex: 1;
  transition: all 0.2s;
}

.appraiser-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.appraiser-input[readonly] {
  background-color: #f9fafb;
  cursor: not-allowed;
}

/* Legend */
.legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.legend-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Location Section */
.location-section {
  margin-bottom: 32px;
}

.location-info {
  background-color: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.location-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.location-label {
  font-weight: 500;
  color: #374151;
}

.location-value {
  color: #6b7280;
}

/* Comparable Criteria Styles */
.criteria-section {
  margin-bottom: 32px;
}

.criteria-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.criteria-subtitle {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 24px;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.criteria-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.criteria-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.criteria-buttons {
  display: flex;
  gap: 8px;
}

.criteria-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: white;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.criteria-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.criteria-btn-active {
  background-color: #1f2937;
  color: white;
  border-color: #1f2937;
}

.criteria-btn-active:hover {
  background-color: #374151;
  border-color: #374151;
  color: white;
}

.criteria-dropdown {
  position: relative;
}

.criteria-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  color: #374151;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 32px;
}

.criteria-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search Parameters Section */
.search-params-section {
  margin-bottom: 32px;
}

.search-params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.search-param-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-param-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  background: #2563eb;
  transform: scale(1.1);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.slider::-moz-range-thumb:hover {
  background: #2563eb;
  transform: scale(1.1);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

.search-radius-input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  color: #374151;
  width: 100%;
  transition: all 0.2s;
}

.search-radius-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Applied Filters Section */
.applied-filters-section {
  margin-bottom: 32px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  color: #374151;
}

.filter-tag span {
  font-weight: 500;
}

.filter-remove {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.filter-remove:hover {
  background-color: #e5e7eb;
  color: #374151;
}

.filter-remove i {
  font-size: 12px;
}

/* Comparable Selection Styles */
.search-results-section {
  margin-bottom: 32px;
}

.criteria-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.criteria-tag {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

.comparable-properties-section {
  margin-bottom: 32px;
}

.comparable-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
}

.comparable-table .table-header {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.comparable-table .table-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s;
}

.comparable-table .table-row:hover {
  background-color: #f9fafb;
}

.comparable-table .table-row:last-child {
  border-bottom: none;
}

.select-column {
  text-align: center;
}

.table-cell {
  padding: 12px 8px;
  border-right: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.table-cell:last-child {
  border-right: none;
}

.select-cell {
  justify-content: center;
}

.property-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.address-cell {
  font-weight: 500;
  color: #374151;
  min-width: 140px;
}

.address-text {
  line-height: 1.3;
}

.price-cell {
  font-weight: 600;
  color: #059669;
}

.date-cell {
  font-size: 13px;
  line-height: 1.3;
}

.gla-cell, .beds-cell, .baths-cell, .year-cell {
  justify-content: center;
  text-align: center;
}

.lot-cell {
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  justify-content: center;
}

.distance-cell {
  color: #6b7280;
  font-size: 13px;
  justify-content: center;
}

.actions-cell {
  justify-content: center;
}

.view-details-btn {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.view-details-btn:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 80px;
  right: 24px;
  background-color: #10b981;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  min-width: 300px;
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  font-size: 14px;
  line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .header {
    padding: 0 16px;
  }

  .header-title {
    font-size: 16px;
  }

  .user-email {
    display: none;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .breadcrumb {
    padding: 16px;
  }

  .page-header {
    padding: 24px 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .progress-steps {
    padding: 24px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .step {
    min-width: auto;
  }

  .step-connector {
    height: 2px;
    width: 100%;
    margin: 8px 0;
  }

  .form-section {
    margin: 16px;
    padding: 24px 16px;
  }

  .property-images {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .column-header,
  .property-feature-cell,
  .data-cell,
  .appraiser-cell {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .column-header:not(.property-feature) {
    display: none;
  }

  .data-cell {
    padding-left: 32px;
    font-size: 13px;
  }

  .data-cell:before {
    content: attr(data-label);
    font-weight: 500;
    color: #6b7280;
    margin-right: 8px;
    font-size: 12px;
  }

  .legend {
    flex-direction: column;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .criteria-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .search-params-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .criteria-buttons {
    flex-wrap: wrap;
  }

  .filter-tags {
    gap: 6px;
  }

  .filter-tag {
    font-size: 13px;
    padding: 4px 8px;
  }

  .criteria-tags {
    gap: 6px;
  }

  .criteria-tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  .comparable-table .table-header,
  .comparable-table .table-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .comparable-table .table-cell {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 16px;
    min-height: 44px;
  }

  .comparable-table .column-header {
    display: none;
  }

  .comparable-table .table-cell:before {
    content: attr(data-label);
    font-weight: 500;
    color: #6b7280;
    margin-right: 8px;
    font-size: 12px;
    min-width: 80px;
  }

  .comparable-table .select-cell:before {
    content: "Select: ";
  }

  .comparable-table .address-cell:before {
    content: "Address: ";
  }

  .comparable-table .price-cell:before {
    content: "Price: ";
  }

  .comparable-table .date-cell:before {
    content: "Sale Date: ";
  }

  .comparable-table .gla-cell:before {
    content: "GLA: ";
  }

  .comparable-table .beds-cell:before {
    content: "Beds: ";
  }

  .comparable-table .baths-cell:before {
    content: "Baths: ";
  }

  .comparable-table .lot-cell:before {
    content: "Lot Size: ";
  }

  .comparable-table .year-cell:before {
    content: "Year Built: ";
  }

  .comparable-table .distance-cell:before {
    content: "Distance: ";
  }

  .comparable-table .actions-cell:before {
    content: "Actions: ";
  }

  .toast {
    right: 16px;
    left: 16px;
    max-width: none;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .progress-steps {
    padding: 16px;
  }

  .step {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .step-content {
    order: 2;
  }

  .step-number {
    order: 1;
  }

  .form-section {
    padding: 16px;
  }

  .comparison-table {
    font-size: 13px;
  }

  .pool-options {
    flex-direction: column;
    gap: 8px;
  }

  .criteria-buttons {
    flex-direction: column;
  }

  .criteria-btn {
    text-align: center;
  }

  .comparable-table .table-cell {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Error states */
.form-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  background-color: #3b82f6;
  transform: none !important;
  box-shadow: none !important;
}

/* Focus states for accessibility */
.menu-toggle:focus,
.breadcrumb-back:focus,
.nav-item:focus,
.btn:focus,
.form-input:focus,
.dropdown-btn:focus,
.data-cell:focus,
.view-dropdown:focus,
.criteria-btn:focus,
.criteria-select:focus,
.slider:focus,
.search-radius-input:focus,
.filter-remove:focus,
.property-checkbox:focus,
.view-details-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .header {
    border-bottom: 2px solid #000;
  }

  .sidebar {
    border-right: 2px solid #000;
  }

  .form-input,
  .view-dropdown,
  .criteria-select,
  .search-radius-input,
  .appraiser-input {
    border-width: 2px;
  }

  .btn-primary,
  .criteria-btn {
    border: 2px solid #000;
  }

  .comparison-table,
  .comparable-table {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Comparable Selection New Layout */
.comparable-layout {
  display: flex;
  gap: 24px;
  margin: 24px 32px;
  min-height: calc(100vh - 300px);
}

.comparable-main {
  flex: 1;
  min-width: 0;
}

/* Toolbar Comparables Selection Grid*/
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: -32px;
}

/* Selection Controls */
.selection-controls {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.control-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: white;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.control-btn:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.control-btn:active {
  background-color: #e5e7eb;
}

/* Selection Helper */
.selection-helper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  color: #92400e;
  font-size: 14px;
  margin-bottom: 24px;
}

.selection-helper.hidden {
  display: none;
}

.selection-helper i {
  color: #f59e0b;
}

/* Comparable Grid & Summary Table*/
.comparable-grid,
.summary-miniGrid {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  margin-bottom: 32px;

}

.grid-header,
.miniGrid-header {
  display: grid;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  gap: 1px;
}

.grid-header,
.grid-row {
  grid-template-columns: 44px 50px 2.5fr 70px 60px 80px 1fr 1.2fr 80px 90px 100px 80px;
}

.miniGrid-header,
.miniGrid-row {
  grid-template-columns: 20% 20% 20% 20% 20%;
}

.grid-header-cell,
.miniGrid-header-cell {
  padding: 6px 4px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  background-color: #f9fafb;
}

.grid-header-cell {
  font-size: 13px;  
}

.miniGrid-header-cell {
  font-size: 11px;
}

.grid-header-cell.select-column {
  justify-content: center;
}

.filter-icon {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  transition: all 0.2s;
  font-size: 12px;
}

.filter-icon:hover {
  color: #6b7280;
  background-color: #e5e7eb;
}

.grid-row,
.miniGrid-row {
  display: grid;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s;
  gap: 1px;
}

.grid-row:hover,
.miniGrid-row:hover {
  background-color: #f9fafb;
}

.grid-row:last-child,
.miniGrid-row:last-child {
  border-bottom: none;
}

.grid-row.selected,
.miniGrid-row.selected {
  background-color: #f0f9ff;
  border-color: #3b82f6;
}

.grid-cell,
.miniGrid-cell {
  padding: 6px 4px;
  font-size: 13px;
  color: #374151;
  display: flex;
  align-items: center;
  min-height: 44px;
  background-color: white;
  border-right: 1px solid #f3f4f6;
}

.grid-cell:last-child,
.miniGrid-cell:last-child {
  border-right: none;
}

.grid-cell.select-cell {
  justify-content: center;
}

.comp-number {
  font-weight: 600;
  color: #1f2937;
}
.feature {
  font-weight: 600;
  font-size: 11px !important;
  color: #1f2937;
}

.featureValue {
  font-weight: 400;
  font-size: 11px !important;
  color: #1f2937;
}

.address-cell .address-text {
  font-weight: 500;
  line-height: 1.3;
}

.score-cell .score-value {
  font-weight: 600;
  color: #059669;
  background-color: #ecfdf5;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.price-cell .price-value {
  font-weight: 600;
  color: #059669;
}

/* AVM Results Section */
.avm-results-section {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.avm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.avm-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.avm-card-header h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.9;
}

.avm-card-content {
  font-size: 20px;
  font-weight: 700;
}

.avm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.avm-actions .btn {
  background-color: white;
  color: #059669;
  border: none;
}

.avm-actions .btn:hover {
  background-color: #f9fafb;
  transform: translateY(-1px);
}

.avm-actions .btn:disabled {
  background-color: rgba(255, 255, 255, 0.5);
  color: rgba(5, 150, 105, 0.5);
  cursor: not-allowed;
}

/* Right Panel */
.right-panel {
  width: 400px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.right-panel.collapsed {
  transform: translateX(calc(100% - 60px));
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
  border-radius: 8px 8px 0 0;
}

.panel-tabs {
  display: flex;
  gap: 4px;
}

.panel-tab {
  padding: 8px 16px;
  border: none;
  background: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.panel-tab.active {
  background-color: #3b82f6;
  color: white;
}

.panel-tab:hover:not(.active) {
  background-color: #e5e7eb;
  color: #374151;
}

.panel-toggle {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.panel-toggle:hover {
  background-color: #e5e7eb;
  color: #374151;
}

.panel-toggle i {
  transition: transform 0.3s ease;
}

.right-panel.collapsed .panel-toggle i {
  transform: rotate(180deg);
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Photos Tab */
.photos-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.photo-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background-color: #f9fafb;
}

.photo-item.subject-property {
  background-color: #f0f9ff;
  border-color: #3b82f6;
}
.photo-item.comparable-selection {
  background-color: #fafafa;
  border-color: #d1d5db;
}

.photo-placeholder {
  aspect-ratio: 16/9;
  background-color: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.photo-placeholder i {
  font-size: 32px;
  color: #9ca3af;
}

.photo-label {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 4px;
}

.photo-address {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}
.buttonBar {
  display: flex;
    gap: 10px;
    justify-content: center;
}

.panel-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background-color: white;
  color: #374151;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  justify-content: center;
}

.panel-btn:hover {
  background-color: #f3f4f6;
}


/* Grid Tab */
.mini-grid-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-grid-header {
  font-weight: 600;
  font-size: 16px;
  color: #374151;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.mini-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.mini-grid-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-grid-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 500;
}

.mini-grid-value {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

/* Map Tab */
.map-container {
  height: 300px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #6b7280;
  gap: 12px;
}

.map-placeholder i {
  font-size: 48px;
  color: #9ca3af;
}

.map-message {
  font-size: 14px;
  text-align: center;
}

/* Mobile Responsive for New Layout */
@media (max-width: 1200px) {
  .comparable-layout {
    flex-direction: column;
  }
  
  .right-panel {
    width: 100%;
    order: -1;
  }
  
  .grid-header,
  .grid-row {
    grid-template-columns: 50px 60px 1.5fr 60px 60px 60px 80px 60px 1fr 60px 80px 100px 80px;
    font-size: 12px;
  }
  
  .grid-cell,
  .grid-header-cell {
    padding: 8px 4px;
  }
}

@media (max-width: 768px) {
  .comparable-layout {
    margin: 16px;
    gap: 16px;
  }
  
  .selection-controls {
    flex-direction: column;
    gap: 8px;
  }
  
  .control-btn {
    width: 100%;
    text-align: center;
  }
  
  .grid-header,
  .grid-row {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .grid-header-cell,
  .grid-cell {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    justify-content: space-between;
  }
  
  .grid-header-cell {
    display: none;
  }
  
  .grid-cell:before {
    content: attr(data-label);
    font-weight: 500;
    color: #6b7280;
    font-size: 12px;
    min-width: 100px;
  }
  
  .avm-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .right-panel {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 90%;
    max-width: 400px;
    z-index: 1000;
    transform: translateX(100%);
    border-radius: 0;
  }
  
  .right-panel.active {
    transform: translateX(0);
  }
  
  .panel-content {
    padding: 12px;
  }
}

/* Custom Radzen modifications */

.rz-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.rz-steps-next {
    background-color: #2B82F6 !important;
    color: white !important;
    border-radius: 5px !important;
    text-transform: none !important;
}

.rz-sidebar-toggle {
    padding: 16px !important;
    margin: 0 !important;
}
/* End Radzen modifications */

.header-menu {
    background: none !important;
}

.divider {
    border: none;
    height: 1px;
    background-color: #ccc;
}

@media (max-width: 480px) {
  .avm-cards {
    grid-template-columns: 1fr;
  }
  
  .panel-tabs {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  
  .panel-tab {
    padding: 6px 12px;
    font-size: 13px;
  }
}
