/* =========================================================
   Auction Crowd — LIGHT THEME (Blue/White) — unified inputs
   ========================================================= */

/* --- Theme tokens --- */
:root {
  --bg: #ffffff;            /* page background */
  --card: #f6fbff;          /* very light blue card */
  --text: #0288d1;          /* primary text (dark blue) */
  --muted: #4d89b3;         /* secondary text */
  --accent: #4fc3f7;        /* brand accent (light blue) */
  --warn: #fb8c00;          /* highlight orange */
  --border: #cfe8fb;        /* subtle border */
  --container-max: 980px;
  --gutter: 16px;
  --gutter-lg: 24px;
}

/* Global reset + typography */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================================
   Layout shell
   ========================================================= */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter-lg); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 14px 0;
  box-shadow: 0 8px 20px rgba(2,136,209,0.04);
}
.site-header .brand-title { margin: 10px 0; line-height: 1.2; color: var(--text); }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.page-shell #page-content { flex: 1 0 auto; }

.site-footer.container { padding-bottom: 24px; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; margin-top: 32px; padding: 18px 12px; }
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: var(--text); }

/* =========================================================
   Top navigation
   ========================================================= */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter-lg);
  background: rgba(246, 251, 255, 0.94);
  border-bottom: 1px solid rgba(207, 232, 251, 0.9);
  backdrop-filter: blur(10px);
}
.top-nav-brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: 0.2px;
}
.top-nav-brand:hover { color: var(--accent); text-decoration: none; }
.top-nav-user { display: flex; align-items: center; gap: 12px; }
.top-nav-user .user-email { white-space: nowrap; }
.user-nav-auth { display: flex; align-items: center; gap: 12px; }
.user-email { font-size: 14px; color: var(--muted); }
.top-nav .btn { width: auto; min-height: 36px; padding: 8px 18px; }

/* On narrow viewports stack the leading search/cancel control onto its own line */
@media (max-width: 700px) {
  .top-nav { padding: 10px var(--gutter); }
  .top-nav-brand { font-size: 18px; }
  .top-nav-user { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
  #search-another-link,
  #cancel-form-button { flex-basis: 100%; text-align: right; }
}

/* =========================================================
   Login modal
   ========================================================= */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 12, 19, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.login-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  padding: 28px 26px;
  box-shadow: 0 28px 60px rgba(2, 26, 48, 0.22);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-title { margin-top: 0; margin-bottom: 8px; font-weight: 800; color: var(--text); }
.modal-subtitle { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.modal-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.modal-actions { display: flex; gap: 10px; align-items: center; }
.modal-actions .btn { flex: 1 1 auto; }
.modal-error { min-height: 20px; margin-top: 12px; font-size: 13px; color: #c62828; }
.modal-error-text { color: #c62828; }

@media (max-width: 520px) {
  .login-modal-content { padding: 24px 18px; }
  .modal-actions { flex-direction: column; }
}

/* =========================================================
   User history + editing banners
   ========================================================= */
.user-history-container { margin-top: 18px; }
.recently-reviewed-container {
  margin-top: 18px;
  overflow: hidden;
  position: relative;
  padding: 4px 0;
}
.recently-reviewed-list {
  display: flex;
  width: max-content;
  animation: recent-scroll 33.6s linear infinite;
  will-change: transform;
}
.recently-reviewed-track {
  display: flex;
  gap: 48px;
  align-items: center;
  white-space: nowrap;
}
.recently-reviewed-track + .recently-reviewed-track {
  margin-left: 48px;
}
.recently-reviewed-link {
  color: var(--accent);
  white-space: nowrap;
}
.recently-reviewed-container:hover .recently-reviewed-list {
  animation-play-state: paused;
}

@keyframes recent-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.history-empty {
  background: rgba(79,195,247,0.12);
  border: 1px dashed rgba(79,195,247,0.55);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}
.history-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.history-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79,195,247,0.6);
  background: rgba(79,195,247,0.18);
  color: var(--text);
  font-size: 13px;
  transition: background .15s ease;
}
.history-chip:hover { background: rgba(79,195,247,0.3); text-decoration: none; }

.property-topline {
  margin-top: 6px;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.property-topline-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted-strong, #b0b7c3);
  margin-bottom: 2px;
}

.property-topline-text {
  display: block;
}

.ai-summary-intro {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 8px;
}

.ai-summary-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}
.ai-summary-list li {
  margin-bottom: 6px;
}

.suburb-highlight-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.suburb-highlight-list li {
  margin-bottom: 6px;
}

.suburb-opinion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suburb-opinion-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(79,195,247,0.08);
}
.suburb-opinion-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.suburb-opinion-item span {
  color: var(--muted);
  font-size: 13px;
}

.suburb-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.suburb-popular-list li {
  border: 1px solid #e3e7ef;
  border-radius: 10px;
  padding: 12px 16px;
  background: #f9fbff;
}
.suburb-popular-list li a {
  color: #0d47a1;
  font-weight: 600;
  text-decoration: none;
}
.suburb-popular-list li a:hover {
  text-decoration: underline;
}
.suburb-popular-summary {
  display: block;
  margin-top: 6px;
  color: #2c4476;
  font-size: 13px;
}
.suburb-popular-count,
.suburb-popular-updated {
  display: block;
  margin-top: 4px;
  color: #2c4476;
  font-size: 12px;
}
.suburb-popular-updated {
  opacity: 0.7;
}

.admin-action-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.adjust-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(79,195,247,0.6);
  background: rgba(79,195,247,0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adjust-address { font-weight: 600; color: var(--text); }

.user-opinion-controls { margin-top: 12px; }
.user-opinion-controls-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 12px;
  border: 1px dashed rgba(79,195,247,0.6);
  background: rgba(79,195,247,0.1);
  padding: 12px 14px;
}
.user-opinion-controls .btn { width: auto; align-self: flex-start; }

.edit-banner {
  background: rgba(79,195,247,0.15);
  border: 1px dashed rgba(79,195,247,0.6);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 14px;
}

.accent-text { color: var(--accent); font-weight: 700; }

/* =========================================================
   Typing line (homepage)
   ========================================================= */
#typing-text, .page-subtitle {
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  margin: 10px 0 6px;
}

/* =========================================================
   Forms, inputs, dropdowns, buttons
   ========================================================= */
.input, .btn { width: 100%; display: block; margin: 0; min-height: 40px; box-sizing: border-box; }

/* 🔹 Unify fonts and colours across ALL inputs & react-select */
.input,
input[type="text"], input[type="number"], input[type="email"], input[type="tel"],
textarea,
.dash-dropdown, .Select-control, .Select-menu-outer, .VirtualizedSelectOption,
.Select-placeholder, .Select-value-label, .Select-option {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--text) !important;
}

.input {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.input::placeholder { color: #8fb3cf; }

/* Dash Dropdown (react-select v1) — LIGHT STYLE */
.dropdown-dark .Select-control,
.dropdown-dark .Select-menu-outer,
.dropdown-dark .VirtualizedSelectOption,
.dropdown-dark .Select-option,
.dropdown-dark .Select-placeholder,
.dropdown-dark .Select--single > .Select-control .Select-value,
.dropdown-dark .Select-value-label {
  background: #ffffff !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.dropdown-dark .Select-option.is-focused,
.dropdown-dark .VirtualizedSelectFocusedOption { background: #eef7ff !important; color: var(--text) !important; }
.dropdown-dark .Select-option.is-selected { background: rgba(79,195,247,.18) !important; color: var(--text) !important; }
.dropdown-dark .Select-arrow, .dropdown-dark .Select-clear { border-top-color: var(--accent) !important; color: var(--accent) !important; }
.dropdown-dark.Select.is-focused > .Select-control,
.dropdown-dark .Select.is-focused > .Select-control {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(79,195,247,.25) !important;
}

.prefill-notice {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(251, 140, 0, 0.14);
  color: #e65100;
  font-size: 14px;
  line-height: 1.4;
  animation: prefillFlash 4s ease-out 1;
}

@keyframes prefillFlash {
  0% { opacity: 0; transform: translateY(-4px); }
  12% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.85; }
}

.prefill-field,
.prefill-field input,
.prefill-field textarea {
  color: var(--warn) !important;
  -webkit-text-fill-color: var(--warn) !important;
}
.prefill-field .Select-placeholder,
.prefill-field .Select-value,
.prefill-field .Select-value-label {
  color: var(--warn) !important;
}
.prefill-field input[type="number"] {
  color: var(--warn) !important;
  -webkit-text-fill-color: var(--warn) !important;
}

.photo-upload-block { margin-bottom: 16px; }
.photo-upload-dropzone {
  margin-top: 6px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  background: rgba(79,195,247,0.06);
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.photo-upload-dropzone:hover {
  border-color: var(--accent);
  background: rgba(79,195,247,0.12);
  cursor: pointer;
}
.photo-upload-dropzone-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}
.photo-upload-instructions { font-weight: 600; color: var(--text); }
.photo-upload-feedback {
  margin-top: 8px;
  font-size: 13px;
  color: var(--warn);
}
.photo-upload-counter {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.photo-upload-preview {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.photo-upload-thumb {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  box-shadow: 0 4px 10px rgba(2, 136, 209, 0.04);
}
.photo-upload-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.photo-upload-filename {
  font-size: 13px;
  color: var(--text);
  text-align: center;
  word-break: break-word;
}
.photo-upload-size {
  font-size: 12px;
  color: var(--muted);
}
.photo-remove-btn {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: color .15s ease;
}
.photo-remove-btn:hover { color: var(--accent); }
.photo-upload-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Textarea placeholder (“Briefly explain your view”) — fix odd font */
textarea::placeholder { font-family: inherit; color: #8fb3cf; }

.input:focus, input:focus, textarea:focus, .Select.is-focused > .Select-control {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(79,195,247,0.25) !important;
  color: var(--text) !important;
}

/* iOS zoom fix */
@media (max-width: 720px) { input, select, textarea { font-size: 16px !important; line-height: 1.4; } }

.btn {
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--accent);
  color: #00466c;
  font-weight: 700;
  cursor: pointer;
  transition: transform .02s ease, background .15s ease, border-color .15s ease, filter .15s ease;
}
.btn.btn-small { min-height: 32px; padding: 6px 10px; font-size: 13px; }
.btn:hover { filter: brightness(1.05); border-color: #9fd9fb; }
.btn:active { transform: translateY(1px); }
.dash-clipboard.btn { display: block; width: 100%; }

.btn.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(79,195,247,0.6);
}
.btn.btn-outline:hover {
  background: rgba(79,195,247,0.15);
  border-color: rgba(79,195,247,0.8);
  filter: none;
}

.btn.btn-link {
  width: auto;
  min-height: auto;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--accent);
}
.btn.btn-link:hover {
  filter: none;
  text-decoration: underline;
}

/* Radio “pill” options: wrap nicely */
.pill { display: flex; flex-wrap: wrap; gap: 8px; }

/* Small helper text */
.meta { color: var(--muted); font-size: 13px; }

/* =========================================================
   Results: hero & features
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(79,195,247,0.12), rgba(79,195,247,0.03));
  border: 1px solid rgba(79,195,247,0.28);
  border-radius: 20px;
  padding: 14px 18px;
}
.hero > * { min-width: 0; }
.hero .label { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.hero .value { font-size: clamp(24px, 6vw, 36px); font-weight: 700; overflow-wrap: anywhere; word-break: break-word; color: var(--text); }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; gap: 6px; text-align: center; } }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.feature { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; box-shadow: 0 4px 16px rgba(2,136,209,0.04); }
.feature .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.feature .v { font-size: 18px; font-weight: 600; color: var(--text); }

/* User opinions */
.user-opinions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.user-opinion-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(2,136,209,0.04);
}
.user-opinion-item .opinion-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-line;
}
.user-opinion-item .opinion-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.user-opinion-item .opinion-price .label {
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 12px;
}
.user-opinion-item .opinion-price .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* User photos */
.user-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.user-photo-thumb-btn {
  width: 120px;
  height: 90px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-photo-thumb-btn:focus { outline: none; }
.user-photo-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  box-shadow: 0 4px 16px rgba(2,136,209,0.04);
  width: 120px;
}
.user-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.user-photo-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  word-break: break-word;
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 26, 48, 0.72);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.photo-lightbox-inner {
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  max-width: min(520px, 90vw);
  max-height: 90vh;
  box-shadow: 0 24px 60px rgba(2, 26, 48, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.photo-lightbox-close {
  align-self: flex-end;
  border: none;
  background: transparent;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
}
.photo-lightbox-close:hover { color: var(--accent); }
.photo-lightbox-image {
  max-width: min(480px, 70vw);
  max-height: 55vh;
  object-fit: contain;
  border-radius: 12px;
}
.photo-lightbox-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}
.photo-lightbox-nav-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.photo-lightbox-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.photo-lightbox-caption {
  font-size: 13px;
  color: var(--text);
  text-align: center;
  max-width: 80vw;
  width: 100%;
  padding: 0 8px;
  word-break: break-word;
  max-height: 20vh;
  overflow-y: auto;
}
.crowd-loading-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 136, 255, 0.25), rgba(2, 26, 48, 0.95));
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #e3f2fd;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 16px;
}
.crowd-spinner {
  position: relative;
  width: 180px;
  height: 180px;
}
.crowd-house {
  width: 110px;
  height: 80px;
  border-radius: 12px;
  background: #e1f5fe;
  margin: 0 auto;
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}
.crowd-house::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -45px;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 45px solid #0277bd;
}
.crowd-people {
  position: absolute;
  width: 100%;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.crowd-person {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #03a9f4;
  animation: crowd-bob 1.8s infinite ease-in-out;
  box-shadow: 0 8px 20px rgba(3, 169, 244, 0.4);
}
.crowd-person::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(180deg, #81d4fa, #0288d1);
  opacity: 0.95;
}
.crowd-person-1 { animation-delay: 0s; }
.crowd-person-2 { animation-delay: 0.25s; }
.crowd-person-3 { animation-delay: 0.5s; }
.crowd-loading-text {
  font-size: 1rem;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@keyframes crowd-bob {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-12px) scale(1.05); }
}
.user-photos-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.user-photo-pages {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.photo-page-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  min-width: 28px;
  text-align: center;
  transition: all .15s ease;
}
.photo-page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.photo-page-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.photo-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* =========================================================
   Charts (containers only — Plotly paint is in callbacks.py)
   ========================================================= */
.plot { height: 380px; }

/* =========================================================
   Share panel
   ========================================================= */
.share-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 12px; align-items: start; }
.field-col { display: flex; flex-direction: column; gap: 8px; }
.field-label { display: block; font-size: 14px; color: var(--muted); }
.share-grid .input, .share-grid .btn { display: block !important; width: 100% !important; box-sizing: border-box; margin: 0 !important; min-height: 40px; }

.copy {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  overflow-wrap: anywhere; word-break: break-word; line-height: 1.3;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) { .container { padding: 0 var(--gutter); } }
@media (max-width: 720px) {
  .card { padding: 14px 14px; margin: 10px 0; }
  .section-title { font-size: 16px; }
  .site-header .brand-title { font-size: 20px; }
  #typing-text, .page-subtitle { font-size: 16px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature .k { font-size: 12px; }
  .feature .v { font-size: 16px; }
  .user-opinions-grid { grid-template-columns: 1fr; }
  .user-photos-grid { grid-template-columns: repeat(2, 1fr); }
  .share-grid { grid-template-columns: 1fr; row-gap: 14px; }
  .plot { height: 240px; }
  #full-address-input { min-height: 44px; }
}

/* ====== Price grid ====== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.price-cell {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 10px;
  border: 1px solid var(--border); border-radius: 12px;
  background: linear-gradient(to bottom, rgba(79,195,247,0.08), transparent);
}
.price-cell .label { font-size: 13px; color: var(--muted); text-align: center; }
.price-cell .value {
  font-weight: 700; text-align: center; font-size: clamp(22px, 6vw, 36px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text);
}
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }
.price-grid > * { min-width: 0; }
.price-cell .value { font-variant-numeric: tabular-nums; line-height: 1.15; }

/* Searching indicator */
.searching-message {
  display: none; margin-top: 6px; font-size: .95rem; font-weight: 700; letter-spacing: .2px;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(79,195,247,0.25);
  animation: pulse 1.2s ease-in-out infinite;
}
.searching-wrap.dash-loading .searching-message { display: block; }
.searching-wrap.dash-loading .dash-spinner { margin-bottom: 4px; }
@keyframes pulse { 0%{opacity:.25;transform:translateY(0) scale(.98);} 50%{opacity:1;transform:translateY(-1px) scale(1.02);} 100%{opacity:.25;transform:translateY(0) scale(.98);} }

/* Results header grid */
.header-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 880px) { .header-grid { grid-template-columns: 1fr; } }

.status-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(to bottom right, rgba(79,195,247,0.09), rgba(79,195,247,0.02));
}
.status-title { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.status-value { font-size: clamp(20px, 4.8vw, 28px); font-weight: 800; color: var(--accent); line-height: 1.15; }
.status-note { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Google Places overlay z-index */
.pac-container { z-index: 2147483647 !important; }

/* Section titles */
.section-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .2px;
  margin: 8px 0 10px;
  color: var(--text);
}


/* ====== HERO (Logo + Intro) ====== */

.site-hero {
  width: 100%;
  margin: 0 auto;
  padding: 24px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;              /* mobile default: stack */
  gap: 16px;
  align-items: center;
}

/* Desktop/tablet: two columns (1/3 logo, 2/3 copy) */
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 2fr;
    gap: 24px;
  }
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;                 /* center on mobile */
}

@media (min-width: 900px) {
  .hero-logo {
    justify-content: flex-start;           /* left align on desktop */
  }
}

.hero-logo-img {
  width: 100%;
  max-width: 520px;                        /* keep it classy on big screens */
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  -webkit-user-drag: none;
  user-select: none;
}

/* Copy block */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Big bold headline */
.hero-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.2px;
  /* Size scales with viewport; clamps to reasonable bounds */
  font-size: clamp(22px, 4.2vw, 36px);
  color: var(--text, #eee);
}

/* Reuse your existing typing text line; ensure it sits right below the title */
.page-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.4;
  color: var(--muted-text, #cfcfcf);
}

/* Optional: tighten container top spacing since hero adds padding */
.container {
  padding-top: 8px; /* adjust if your theme already sets this */
}
