/* ── Map ─────────────────────────────────────────────────────────────────── */
#map .js-plotly-plot {
  width: 100%;
}

/* ── Property details panel ──────────────────────────────────────────────── */
#property-details {
  max-height: 60vh;
  overflow-y: auto;
}

/* Tighten up the details rows */
#property-details .row.border-bottom {
  font-size: 0.85em;
}

#property-details dt {
  font-weight: 400;
  color: #6c757d;
}

#property-details dd {
  margin-bottom: 0;
  word-break: break-word;
}

/* ── Filter panel ────────────────────────────────────────────────────────── */
.card-body .form-label {
  margin-bottom: 0.2rem;
}

/* Make all filter dropdowns consistent */
#region-dropdown,
#municipality-dropdown,
#property-type-filter,
#auction-status-filter,
#ownership-type-filter,
#priority-filter,
#reviewer-filter {
  font-size: 0.85em;
}

/* Region and municipality: wider minimum */
#region-dropdown,
#municipality-dropdown {
  min-width: 200px;
}

/* React-select menu dropdown */
.Select-menu-outer {
  min-width: 200px !important;
  max-width: 480px;
  max-height: 50vh;
  overflow-y: auto;
  z-index: 9999 !important;
}

.Select-option {
  white-space: normal;
  word-break: break-word;
  min-height: 2.5em;
  line-height: 1.4;
  padding: 8px 12px;
  box-sizing: border-box;
  overflow: visible;
  display: block;
}

/* Multi-select tags */
.Select--multi .Select-value {
  font-size: 0.8em;
  margin: 1px 2px;
}

/* ── Property-at-location selector ──────────────────────────────────────── */
#property-selector .Select-control,
#property-selector-container .Select-control {
  min-height: 2.5em;
}

/* ── Range inputs ────────────────────────────────────────────────────────── */
input[type="number"].form-control {
  -moz-appearance: textfield;
}
input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Date pickers ────────────────────────────────────────────────────────── */
.SingleDatePickerInput {
  border-radius: 4px;
  border: 1px solid #ced4da;
  font-size: 0.85em;
}
.DateInput_input {
  font-size: 0.85em !important;
  padding: 4px 8px !important;
}

/* ── Priority legend ─────────────────────────────────────────────────────── */
.priority-legend-dot {
  font-size: 1.1em;
  line-height: 1;
}

/* ── Login page ──────────────────────────────────────────────────────────── */
#login-email,
#login-password {
  font-size: 0.95em;
}

.login-card {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border-radius: 12px;
}

/* ── Admin panel ─────────────────────────────────────────────────────────── */
.table th {
  font-size: 0.85em;
  background-color: #f8f9fa;
}
.table td {
  font-size: 0.85em;
  vertical-align: middle;
}

/* ── Review section in details panel ────────────────────────────────────── */
#save-review-btn {
  min-width: 80px;
}

#user-comments-input {
  font-size: 0.85em;
  resize: vertical;
}

/* ── Starred listings dropdown ───────────────────────────────────────────── */
#flagged-selector {
  font-size: 0.85em;
}

/* ── Scrollbar styling (webkit) ──────────────────────────────────────────── */
#property-details::-webkit-scrollbar {
  width: 6px;
}
#property-details::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
#property-details::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 3px;
}
#property-details::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ── Search & action buttons row ─────────────────────────────────────────── */
#search-btn {
  min-width: 100px;
  font-weight: 600;
}

#download-btn {
  min-width: 120px;
}

#result-count {
  font-size: 0.82em;
  color: #6c757d;
  white-space: nowrap;
}

/* ── Bid per sqm range inputs ────────────────────────────────────────────── */
#bid-sqm-min,
#bid-sqm-max {
  max-width: 90px;
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #property-details {
    max-height: 40vh;
  }

  .DateInput_input {
    font-size: 0.78em !important;
  }

  #search-btn,
  #download-btn {
    width: 100%;
    margin-bottom: 4px;
  }
}
