/* Basic styling for the property viewer */
body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.main-layout {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.main-layout .filters-card,
.main-layout .calculator-card {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.main-layout .filters-card > *,
.main-layout .calculator-card > * {
  flex: 1;
}

.main-layout .controls .control-group {
  margin-bottom: 12px;
}

.main-layout .controls .checkbox-group {
  flex-wrap: wrap;
  gap: 8px;
}

.main-layout .controls .checkbox-label {
  align-items: center;
  gap: 4px;
}

.main-layout .controls input,
.main-layout .controls select {
  padding: 6px 8px;
  font-size: 13px;
}

.main-layout .controls label {
  font-size: 13px;
  margin-bottom: 3px;
}

.main-layout .filters-card .button-row,
.main-layout .calculator-card .button-row {
  flex: 0;
  margin-top: auto;
}

.main-layout .calculator-controls .control-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 8px;
}

.main-layout .calculator-controls .checkbox-group {
  flex-wrap: wrap;
  gap: 8px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 220px);
  gap: 16px 20px;
  margin-bottom: 20px;
  justify-content: center;
}

.filter-grid .control-group {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.filter-grid .control-group.action-group {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.filter-grid .control-group.action-group button {
  width: auto;
  padding: 10px 24px;
}

.filter-actions {
  text-align: center;
  margin-top: 20px;
}

.filter-actions button {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.filter-actions button:hover {
  background: #15803d;
}

@media (max-width: 700px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

.control-row .control-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
  display: block;
}

.control-row .control-group input,
.control-row .control-group select {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #86efac;
  border-radius: 4px;
  background: white;
  box-sizing: border-box;
  height: 40px;
}

.control-row .control-group button {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-row .control-group button:hover {
  background: #15803d;
}

.control-row .control-group button:disabled {
  background: #86efac;
  cursor: not-allowed;
}

.control-row .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.control-row .checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.control-row .checkbox-label:hover {
  background: #f0fdf4;
  border-color: #16a34a;
}

.control-row .checkbox-label input[type="checkbox"],
.control-row .checkbox-label input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: #16a34a;
}

/* Calculator Styles */
.calculator-card {
  background: white;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.1);
  margin-bottom: 20px;
  flex: 0.5;
}

.calculator-card h2 {
  color: #16a34a;
  margin-bottom: 12px;
  text-align: center;
  font-size: 16px;
}

.calculator-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.calculator-controls .control-group button {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calculator-controls .control-group button:hover {
  background: #15803d;
}

.calculator-controls .control-group button:disabled {
  background: #86efac;
  cursor: not-allowed;
}

.calculator-results {
  margin-top: 12px;
}

.controls {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.1);
  margin-bottom: 20px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.control-group {
  margin-bottom: 15px;
}

.control-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #16a34a;
}

.control-group input,
.control-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #86efac;
  border-radius: 4px;
  font-size: 14px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: #16a34a;
}

#siteSelect[multiple] {
  height: 100px;
}

button {
  background: #16a34a;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

button:hover {
  background: #15803d;
}

button:disabled {
  background: #86efac;
  cursor: not-allowed;
}

.button-row {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  margin-left: 0;
  margin-right: 0;
  justify-content: center;
}

#showResultsBtn {
  background: #16a34a !important;
  color: white !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  width: 100%;
  max-width: 200px;
  height: auto;
  box-sizing: border-box;
  margin: 0 auto;
}

#showResultsBtn:hover {
  background: #15803d !important;
}

.status {
  margin: 15px 0;
  padding: 10px;
  border-radius: 4px;
  background: #e9ecef;
  color: #495057;
}

/* Table Styling */
.table-wrapper {
  overflow-x: auto;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.1);
  margin: 0 auto;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #bbf7d0;
  white-space: nowrap;
}

th {
  background: #f0fdf4;
  font-weight: 600;
  color: #16a34a;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 14px;
}

tr:hover {
  background: #f7fee7;
}

td {
  font-size: 14px;
  color: #374151;
}

/* Specific column widths for symmetry */
th[data-sort="parcel_id"],
td:nth-child(1) {
  width: 120px;
  min-width: 120px;
}

th[data-sort="address"],
td:nth-child(2) {
  width: 200px;
  min-width: 200px;
}

th[data-sort="land_use_code"],
td:nth-child(3) {
  width: 80px;
  min-width: 80px;
  text-align: center;
}

th[data-sort="living_area_sqft"],
td:nth-child(4) {
  width: 80px;
  min-width: 80px;
  text-align: center;
}

th[data-sort="year_built"],
td:nth-child(5) {
  width: 80px;
  min-width: 80px;
  text-align: center;
}

th[data-sort="sale_date"],
td:nth-child(6) {
  width: 100px;
  min-width: 100px;
  text-align: center;
}

th[data-sort="sale_price"],
td:nth-child(7) {
  width: 120px;
  min-width: 120px;
  text-align: right;
}

th[data-sort="ppsf"],
td:nth-child(8) {
  width: 100px;
  min-width: 100px;
  text-align: right;
}

th[data-sort="pool"],
td:nth-child(9) {
  width: 80px;
  min-width: 80px;
  text-align: center;
}

th[data-sort="site_code"],
td:nth-child(10) {
  width: 80px;
  min-width: 80px;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-btn {
  padding: 8px 12px;
  border: 1px solid #86efac !important;
  background: white !important;
  color: #16a34a !important;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  min-width: 40px;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background: #f0fdf4 !important;
  border-color: #16a34a !important;
}

.page-btn.active {
  background: #16a34a !important;
  color: white !important;
  border-color: #16a34a !important;
}

/* Helper text styling */
.helper-text {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 8px 0;
  font-style: italic;
}

/* Results count styling */
.results-count {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  margin-top: 8px;
  padding: 6px 12px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.results-count span {
  color: #6b7280;
}

.next-steps {
  margin: 24px 0 32px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.next-steps-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #0f172a;
}

.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.next-step-card {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.08);
}

.next-step-card h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #0f172a;
}

.next-step-card .helper-text {
  margin: 0 0 10px 0;
}

.next-step-card input[type="email"],
.next-step-card input[type="text"],
.next-step-card input[type="tel"],
.next-step-card textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.next-step-card button {
  width: 100%;
  padding: 10px 12px;
  background: #16a34a;
  border: 1px solid #15803d;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.next-step-card button:hover {
  background: #15803d;
}

.next-step-card .microcopy {
  margin: 8px 0 4px 0;
  font-size: 12px;
  color: #64748b;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 8px;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin: 6px 0 8px 0;
}

.contact-form {
  margin-top: 8px;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}

.next-step-msg {
  margin-top: 6px;
  font-size: 13px;
  color: #0f172a;
}

.next-step-msg.success {
  color: #15803d;
}

.next-step-msg.error {
  color: #b91c1c;
}

.page-ellipsis {
  padding: 8px 4px;
  color: #6b7280;
  font-weight: bold;
}

.pagination .page-info {
  color: #6c757d;
  font-size: 14px;
}

@media (max-width: 900px) {
  .control-row {
    gap: 12px;
  }
  .control-row .control-group {
    min-width: 180px;
  }
  .next-steps {
    padding: 14px;
  }
  .next-step-card {
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .control-row {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .control-row .control-group {
    min-width: 100%;
  }
  .controls {
    padding: 16px;
  }
  #showResultsBtn {
    max-width: 100%;
  }
  .next-steps-grid {
    grid-template-columns: 1fr;
  }
  .button-row {
    justify-content: center;
  }
  table {
    font-size: 13px;
  }
  th, td {
    padding: 10px;
  }
}

/* Statistics Grid */
.stats-grid {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  flex: 1;
  min-width: 220px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-item strong {
  display: block;
  color: #374151;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.results-summary {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
}

.results-summary strong {
  color: #374151;
}

/* Calculator Styles */
.calculator-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.1);
  margin-bottom: 20px;
}

.calculator-card h2 {
  color: #16a34a;
  margin-bottom: 20px;
  text-align: center;
}

.calculator-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.calculator-controls .control-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.calculator-results {
  margin-top: 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.calc-results {
  display: grid;
  gap: 20px;
}

.calc-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.snapshot-item {
  text-align: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
}

.snapshot-item .label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.snapshot-item strong {
  font-size: 18px;
  color: #16a34a;
}

.snapshot-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.snapshot-cta button {
  padding: 10px 14px;
  width: 100%;
}

.calc-summary, .calc-comparison {
  background: #f0fdf4;
  padding: 20px;
  border-radius: 8px;
  border-left: 6px solid #16a34a;
}

.calc-summary h3, .calc-comparison h3 {
  color: #16a34a;
  margin-bottom: 15px;
}

.data-source {
  color: #6b7280;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 15px;
  text-align: center;
}

.calc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.calc-stat {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.calc-stat strong {
  display: block;
  font-size: 20px;
  color: #16a34a;
  margin-bottom: 5px;
}

.calc-stat span {
  font-size: 14px;
  color: #6b7280;
}

.calc-offer-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.calc-offer-stat {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.calc-offer-stat strong {
  display: block;
  font-size: 22px;
  color: #16a34a;
  margin-bottom: 5px;
}

.calc-offer-stat span {
  font-size: 14px;
  color: #6b7280;
  display: block;
  margin-bottom: 5px;
}

.calc-offer-stat small.above {
  color: #dc2626;
  font-weight: 600;
}

.calc-offer-stat small.below {
  color: #16a34a;
  font-weight: 600;
}

.calc-recommendation {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 6px solid;
  text-align: center;
}

.calc-recommendation h3 {
  margin-bottom: 10px;
}

.calc-recommendation p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.calc-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #dc2626;
  text-align: center;
  font-weight: 500;
}

/* Hero Section Styling */
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-subtitle p {
  font-size: 16px;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* Calculator Header Styling */
.calculator-header {
  text-align: center;
  margin-bottom: 24px;
}

.calculator-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 12px;
}

.calculator-subtitle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calculator-subtitle p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.calculator-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calculator-filters h3,
.calculator-what-youll-see h3 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.calculator-what-youll-see ul {
  margin: 0;
  padding-left: 20px;
}

.calculator-what-youll-see li {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* About Section Styling */
.about-section {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  padding: 30px 20px;
  margin-top: 40px;
}

.about-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.about-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 8px;
}

.about-content h4 {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 16px;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-details p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Results Disclaimer */
.results-disclaimer {
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
  margin: 10px 0;
  text-align: center;
}

/* Results Settings - Bottom Right */
.results-settings {
  justify-content: flex-end;
  margin-top: 10px;
}

.results-settings .control-group {
  flex: 0 0 auto;
  min-width: 150px;
}

.results-settings .control-group:last-child {
  margin-left: 10px;
}

/* Card Header - Full Width Title */
.card-header {
  background: #f0fdf4;
  padding: 16px;
  margin: -16px -16px 16px -16px;
  border-bottom: 1px solid #bbf7d0;
  text-align: center;
}

.card-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #16a34a;
  margin: 0;
}

/* Controls Card */
.controls {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.1);
}

/* Section Headers */
.controls h2 {
  font-size: 20px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 20px;
  text-align: center;
}
@media (max-width: 968px) {
  .main-layout {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-layout .filters-card,
  .main-layout .calculator-card {
    min-width: auto;
  }
  
  .calculator-card {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .main {
    padding: 10px;
  }
  
  .control-row {
    flex-direction: column;
    gap: 12px;
    padding: 0 5px;
  }
  
  .control-row .control-group {
    min-width: auto;
    width: 100%;
  }
  
  .control-row .checkbox-group {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .control-row .checkbox-label {
    width: 100%;
    padding: 8px 12px;
  }
  
  .calculator-controls {
    gap: 12px;
  }
  
  .calculator-controls .checkbox-group {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .calculator-controls .checkbox-label {
    width: 100%;
    padding: 8px 12px;
  }
  
  .stats-grid {
    flex-direction: column;
    gap: 12px;
  }
  
  .stat-item {
    min-width: auto;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .stat-item strong {
    font-size: 18px;
  }
  
  .pagination {
    flex-direction: column;
    gap: 10px;
  }
  
  .button-row {
    flex-direction: column;
  }
  
  .show-more-btn, .show-all-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 5px;
  }
  
  .control-row {
    gap: 8px;
  }
  
  .control-row .control-group label {
    font-size: 12px;
  }
  
  .control-row .control-group input,
  .control-row .control-group select {
    font-size: 12px;
    padding: 6px 8px;
  }
  
  .control-row .checkbox-label {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .calculator-card h2 {
    font-size: 14px;
  }
  
  .calculator-controls .control-group label {
    font-size: 12px;
  }
  
  .calculator-controls .control-group input,
  .calculator-controls .control-group select {
    font-size: 12px;
    padding: 6px 8px;
  }
  
  .calculator-controls .checkbox-label {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .filters-card {
    padding: 10px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  .control-group {
    grid-template-columns: 1fr;
  }
  
  .multi-select {
    min-height: 80px;
  }
  
  .button-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .button-row button {
    width: 100%;
  }
  
  .results-card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 12px;
  }
  
  .results-card header,
  .results-card .pagination {
    text-align: center;
  }
  
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 800px;
    font-size: 12px;
  }
  
  th, td {
    padding: 8px 4px;
  }
  
  .stats-grid {
    flex-direction: column;
    gap: 12px;
  }
  
  .stat-item {
    min-width: auto;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .stat-item strong {
    font-size: 18px;
  }
  
  .pagination {
    flex-direction: column;
    gap: 10px;
  }
  
  .button-row {
    flex-direction: column;
  }
  
  .show-more-btn, .show-all-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 5px;
  }
  
  .filters-card, .results-card {
    padding: 10px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  .control-group label {
    font-size: 14px;
  }
  
  table {
    font-size: 11px;
  }
  
  th, td {
    padding: 6px 2px;
  }
  
  .details td {
    font-size: 10px;
  }
}
