.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Breadcrumb Navigation */
#breadcrumb-nav {
  background-color: #28a745;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
  width: 100%;
}

#breadcrumb-nav .breadcrumb {
  background-color: transparent;
  margin-bottom: 0;
  padding: 0;
}

#breadcrumb-nav .breadcrumb-item,
#breadcrumb-nav .breadcrumb-item a {
  color: #fff;
}

#breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
  color: #fff;
  content: ">";
}

#breadcrumb-nav .breadcrumb-item a:hover {
  text-decoration: underline;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.status-tabs {
  display: flex;
  gap: 12px;
}

.filters {
  display: flex;
  gap: 12px;
  align-items: center;
}

.reports-table {
  margin-bottom: 20px;
}

.report-link {
  text-decoration: none;
  color: #007bff;
  display: flex;
  flex-direction: column;
}

.report-link:hover {
  text-decoration: underline;
}

.report-link strong {
  font-size: 14px;
  margin-bottom: 4px;
}

.report-link small {
  font-size: 12px;
  color: #6c757d;
}

.thumbnail {
  width: 40px;
  height: 40px;
  background-color: #e9ecef;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.schedule-pill {
  display: inline-block;
  padding: 4px 8px;
  background-color: #17a2b8;
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.actions-menu {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #6c757d;
}

.actions-menu:hover {
  color: #495057;
}

.pagination {
  text-align: right;
  padding: 12px 0;
  color: #6c757d;
  font-size: 13px;
}

/* Card components */
.card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
  background-color: #f8f9fa;
  padding: 10px 15px;
  margin: -20px -20px 20px -20px;
  border-bottom: 1px solid #ddd;
  border-radius: 8px 8px 0 0;
}

.card-body {
  padding: 0;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Map components */
.map-container {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Summary cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card {
  background-color: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.summary-card h4 {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.summary-card .value {
  font-size: 24px;
  font-weight: 600;
  color: #212529;
}

.summary-card .change {
  font-size: 12px;
  margin-top: 4px;
}

.summary-card .change.positive {
  color: #28a745;
}

.summary-card .change.negative {
  color: #dc3545;
}

/* Collapsible table */
.collapsible-table {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #f8f9fa;
  cursor: pointer;
}

.collapsible-header:hover {
  background-color: #e9ecef;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.open {
  max-height: 1000px;
}

.collapsible-content table {
  margin: 0;
}

/* Property Autocomplete */
.property-autocomplete {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #6c757d;
  font-size: 18px;
  pointer-events: none;
}

.search-box .form-control {
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
  height: 48px;
  font-size: 16px;
}

.btn-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #6c757d;
}

.btn-clear:hover {
  color: #495057;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.autocomplete-dropdown.show {
  display: block;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background-color: #f8f9fa;
}

.autocomplete-item .property-name {
  font-weight: 600;
  margin-bottom: 4px;
  color: #212529;
}

.autocomplete-item .property-address {
  font-size: 13px;
  color: #6c757d;
}

.autocomplete-item .property-meta {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}

.autocomplete-loading,
.autocomplete-empty {
  padding: 16px;
  text-align: center;
  color: #6c757d;
}

.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Metric Dropdown */
.metric-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-label {
  font-weight: 600;
  margin-bottom: 0;
}

/* View Toggle */
.view-toggle {
  display: inline-flex;
  border-radius: 4px;
  overflow: hidden;
}

.view-toggle .btn {
  border-radius: 0;
}

/* Source Legend */
.source-legend {
  max-width: 300px;
}

.legend-item {
  padding: 8px 0;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 0;
}

.legend-marker {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ddd;
}

.legend-label {
  font-size: 14px;
}

/* Wizard Pages */
.create-report-page,
.comp-selection-page {
  max-width: 900px;
  margin: 0 auto;
}

.wizard-header {
  margin-bottom: 30px;
}

.wizard-header h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step.active .step-number {
  background-color: #007bff;
  color: white;
}

.step-label {
  font-weight: 500;
  color: #6c757d;
}

.step.active .step-label {
  color: #212529;
}

.step-divider {
  width: 60px;
  height: 2px;
  background-color: #e9ecef;
}

.wizard-content {
  margin-bottom: 30px;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.selected-property {
  margin-top: 20px;
}

.property-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #007bff;
}

.property-info h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
}

.property-info p {
  margin: 0 0 8px 0;
  color: #6c757d;
}

.property-details {
  font-size: 14px;
  color: #6c757d;
}

.skip-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.skip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:hover {
  text-decoration: underline;
}

/* Comp Map Page */
.map-controls-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-layout {
  display: flex;
  gap: 20px;
}

.map-layout .map-container {
  flex: 1;
  height: 600px;
}

.map-sidebar {
  width: 300px;
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  font-weight: 500;
  color: #6c757d;
}

.stat-value {
  font-weight: 600;
  color: #212529;
}

/* Comp Selection Map */
.map-container {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#comp-map {
  width: 100%;
  height: 300px;
  background: #e5e7eb;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6b7280;
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Comp List Styling */
.comp-list-header {
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #6b7280;
}

.comp-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.15s;
}

.comp-item:hover {
  background: #f9fafb;
}

.comp-item.selected {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
}

.comp-checkbox {
  width: 30px;
  margin-right: 1rem;
}

.comp-info {
  flex: 1;
  min-width: 0;
}

.comp-info h5 {
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comp-info .text-muted {
  font-size: 0.875rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.comp-meta {
  font-size: 0.75rem;
  color: #374151;
}

.show-more-container {
  padding: 0.75rem;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.show-more-container .btn-link {
  color: #2563eb;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.show-more-container .btn-link:hover {
  text-decoration: underline;
}
