/* PPS Brand Colors
   Primary Blue:  #406A94
   Navy:          #1E5799
   Slate:         #64748B
   Dark:          #0F172A
   Background:    #F8FAFC
   Border:        #E2E8F0
   Teal accent:   #14B8A6
*/

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #0F172A;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ── Container ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Page Top: Logo + Title ── */
.page-top {
  background: #fff;
  padding: 56px 0 20px;
  text-align: center;
}

.page-top-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-wrap {
  margin-bottom: 32px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.logo-img {
  width: 210px;
  height: auto;
  display: block;
  margin: 0 auto;
  border: none;
  box-shadow: none;
  background: none;
  padding: 0;
  outline: none;
}

.logo-fallback {
  display: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1E5799;
  letter-spacing: -0.02em;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.title-underline {
  width: 130px;
  height: 4px;
  background: linear-gradient(to right, #3aacb8, rgba(58,172,184,0.1));
  border-radius: 2px;
  margin: 0 auto 20px;
}

.page-sub {
  font-size: 1rem;
  color: #64748B;
  max-width: 620px;
  line-height: 1.65;
}

/* ── Form Section ── */
.form-section {
  padding: 8px 0 64px;
  background: #fff;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 24px;
}

/* ── Input Toggle ── */
.input-toggle {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
  position: relative;
}

.toggle-option:hover {
  border-color: #406A94;
  background: #f0f5fb;
}

.toggle-option.active {
  border-color: #406A94;
  background: #f0f5fb;
}

.toggle-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.toggle-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0F172A;
}

.toggle-desc {
  font-size: 0.82rem;
  color: #64748B;
}

.toggle-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.toggle-option.active .toggle-check {
  border-color: #406A94;
  background: #406A94;
  box-shadow: inset 0 0 0 4px #fff;
}

/* ── Input Sections ── */
.input-section {
  margin-bottom: 24px;
}

/* ── Autocomplete ── */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 100;
  overflow: hidden;
}

.autocomplete-item {
  padding: 11px 14px;
  font-size: 0.9rem;
  color: #0F172A;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  line-height: 1.4;
  transition: background 0.1s;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: #f0f5fb;
  color: #1E5799;
}

/* ── City / State / ZIP row ── */
.address-csz {
  display: grid;
  grid-template-columns: 1fr 72px 88px;
  gap: 10px;
}

/* ── Labels ── */
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* ── Text Inputs ── */
.text-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0F172A;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.text-input:focus {
  border-color: #406A94;
  box-shadow: 0 0 0 3px rgba(64,106,148,0.12);
}

.text-input::placeholder {
  color: #94A3B8;
}

/* ── Select Inputs ── */
.select-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0F172A;
  background: #fff;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.select-input:focus {
  border-color: #406A94;
  box-shadow: 0 0 0 3px rgba(64,106,148,0.12);
}

/* ── Address Grid ── */
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 72px 88px;
  gap: 10px;
  margin-bottom: 16px;
}

.col-full  { grid-column: 1 / -1; }
.col-city  { grid-column: 1 / 3; }
.col-state { grid-column: 3 / 4; }
.col-zip   { grid-column: 4 / 5; }

/* ── Or Divider ── */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #94A3B8;
  font-size: 0.82rem;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

/* ── Property Details ── */
.property-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.field-wrap {
  display: flex;
  flex-direction: column;
}

/* ── Investor Checkbox ── */
.investor-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 24px;
  user-select: none;
}

.investor-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-box {
  width: 20px;
  height: 20px;
  border: 2px solid #CBD5E1;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.investor-check input:checked + .check-box {
  background: #406A94;
  border-color: #406A94;
}

.investor-check input:checked + .check-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.check-label {
  font-size: 0.9rem;
  color: #374151;
}

/* ── Error Message ── */
.error-msg {
  padding: 12px 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  color: #B91C1C;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* ── Primary Button ── */
.btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #2a7fc1, #1e5799);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s, transform 0.1s;
  margin-bottom: 12px;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.15s;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* ── Loading Card ── */
.loading-card {
  text-align: center;
  padding: 48px 32px;
}

.spinner-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #E2E8F0;
  border-top-color: #406A94;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.loading-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 8px;
}

.loading-sub {
  font-size: 0.9rem;
  color: #64748B;
  margin-bottom: 32px;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
}

.load-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #94A3B8;
  transition: color 0.3s;
}

.load-step.active {
  color: #0F172A;
  font-weight: 500;
}

.load-step.done {
  color: #22C55E;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E2E8F0;
  flex-shrink: 0;
  transition: background 0.3s;
}

.load-step.active .step-dot {
  background: #406A94;
  animation: pulse 1.2s ease-in-out infinite;
}

.load-step.done .step-dot {
  background: #22C55E;
  animation: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ── Gate Card ── */
.gate-card {
  padding: 0;
  overflow: hidden;
}

.teaser-block {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 36px 32px;
  text-align: center;
}

.teaser-label {
  font-size: 0.9rem;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.teaser-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.teaser-num {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1E5799;
}

.teaser-and {
  font-size: 1rem;
  color: #94A3B8;
  font-weight: 500;
}

.teaser-sub {
  font-size: 0.875rem;
  color: #64748B;
}

.gate-divider {
  height: 1px;
  background: #E2E8F0;
}

.gate-form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gate-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
}

.gate-desc {
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 4px;
}

/* ── Comp Preview Card ── */
.comp-preview-wrap {
  padding: 24px 32px;
  background: #fff;
}

.comp-preview-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.comp-preview-footer {
  font-size: 0.8rem;
  color: #94A3B8;
  text-align: center;
  margin-top: 12px;
}

.preview-card {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.preview-photo-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #F1F5F9;
}

.preview-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  color: #94A3B8;
  font-size: 0.85rem;
}

.preview-rating {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: #0F172A;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.preview-rating-star {
  color: #F59E0B;
  font-size: 0.85rem;
}

.preview-body {
  padding: 14px 16px 16px;
}

.preview-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-meta {
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 12px;
}

.preview-stats-wrap {
  position: relative;
}

.preview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.preview-stat {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.preview-stat-label {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.preview-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.preview-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preview-lock-badge {
  background: rgba(15,23,42,0.80);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(2px);
  white-space: nowrap;
}

/* ── Footer ── */
.site-footer {
  padding: 32px 0 40px;
  background: #fff;
  border-top: 1px solid #E2E8F0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-sep {
  color: #CBD5E1;
  font-size: 0.9rem;
}

.footer-link {
  color: #64748B;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #406A94;
}

.footer-copy {
  color: #94A3B8;
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   REPORT PAGE STYLES
   White background throughout. Cards with subtle borders.
   #406A94 and #1E5799 used as accents only.
═══════════════════════════════════════════════════════════════ */

/* ── Report container -- wider than the landing page form ── */
.container-report {
  max-width: 860px;
}

/* ── Report page header (less vertical padding than landing) ── */
.report-page-top {
  padding: 36px 0 24px;
}

.footer-logo {
  width: 90px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
  opacity: 0.7;
}

/* ── Loading / error wrappers ── */
.report-loading-wrap,
.report-error-wrap {
  padding: 48px 0 64px;
}

/* ── Admin banner ── */
.admin-banner {
  background: #FFF7ED;
  border-bottom: 2px solid #FED7AA;
  padding: 12px 24px;
}

.admin-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #92400E;
}

.admin-banner-left svg {
  color: #D97706;
  flex-shrink: 0;
}

.admin-banner-left strong {
  font-weight: 700;
}

.admin-reset-btn {
  padding: 7px 14px;
  background: #fff;
  border: 1.5px solid #FED7AA;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: #92400E;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.admin-reset-btn:hover {
  background: #FFF7ED;
  border-color: #F59E0B;
}

.admin-reset-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Report sections ── */
.report-section {
  padding: 32px 0;
}

.report-section:first-child {
  padding-top: 0;
}

.report-section--disclaimer {
  padding-top: 8px;
  padding-bottom: 48px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: #406A94;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.report-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.report-section-sub {
  font-size: 0.9rem;
  color: #64748B;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Section 1: Property Header ── */
.report-section-hero {
  padding-top: 0;
}

.report-hero-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #F1F5F9;
  margin-bottom: 28px;
}

.report-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.report-prop-address {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.report-prop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.prop-meta-chip {
  padding: 4px 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #374151;
}

/* ── Section 2: Revenue Projections ── */
.projection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Desktop: show base in the middle (order: conservative, base, optimistic) */
/* report.js renders: conservative | optimistic | base.
   We reorder with grid-column so base appears in the center visually. */
.projection-card:nth-child(1) { order: 1; }
.projection-card:nth-child(2) { order: 3; }
.projection-card:nth-child(3) { order: 2; }

.projection-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.projection-card--base {
  border-color: #406A94;
  box-shadow: 0 0 0 2px rgba(64,106,148,0.12), 0 4px 16px rgba(0,0,0,0.07);
}

.proj-recommended {
  display: inline-block;
  background: #406A94;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.proj-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.projection-card--base .proj-label {
  color: #406A94;
}

.proj-revenue {
  font-size: 2rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1;
}

.projection-card--base .proj-revenue {
  font-size: 2.2rem;
  color: #1E5799;
}

.proj-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
}

.proj-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.proj-detail-label {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 500;
}

.proj-detail-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}

/* ── Section 3: PPS Net ── */
.pps-net-card {
  background: #fff;
}

.pps-net-rows {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pps-net-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #F1F5F9;
  gap: 16px;
}

.pps-net-row--total {
  border-bottom: none;
  padding-top: 18px;
}

.pps-net-divider {
  height: 2px;
  background: #E2E8F0;
  margin: 4px 0;
}

.pps-net-label {
  font-size: 0.9rem;
  color: #374151;
}

.pps-net-row--total .pps-net-label {
  font-size: 1rem;
  font-weight: 600;
  color: #0F172A;
}

.pps-net-amount {
  font-size: 1.05rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.pps-net-amount--fee {
  color: #64748B;
}

.pps-net-amount--total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1E5799;
}

.pps-net-range-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #94A3B8;
  margin-top: 2px;
}

.pps-net-note {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.5;
}

/* ── Section 4: Comp Cards ── */
.admin-note {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #92400E;
  margin-bottom: 20px;
}

.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comp-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

.admin-score-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(30,87,153,0.85);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.comp-photo-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #F1F5F9;
  flex-shrink: 0;
}

.comp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comp-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  color: #94A3B8;
  font-size: 0.82rem;
}

.comp-rating-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #fff;
  color: #0F172A;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.comp-review-count {
  font-weight: 400;
  color: #64748B;
}

.comp-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.comp-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comp-meta {
  font-size: 0.78rem;
  color: #64748B;
}

.comp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.comp-stat {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}

.comp-stat-label {
  font-size: 0.66rem;
  color: #94A3B8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.comp-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0F172A;
}

.comp-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.amenity-badge {
  padding: 3px 8px;
  background: #F0F7FF;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #1E40AF;
}

.comp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  flex-wrap: wrap;
}

.comp-airbnb-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #406A94;
  text-decoration: none;
  transition: color 0.15s;
}

.comp-airbnb-link:hover {
  color: #1E5799;
}

.admin-replace-btn {
  padding: 6px 12px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: #64748B;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

.admin-replace-btn:hover:not(:disabled) {
  border-color: #B91C1C;
  color: #B91C1C;
  background: #FEF2F2;
}

.admin-replace-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Section 5: Calculator ── */
.calc-card {
  background: #fff;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 28px;
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-slider-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.calc-slider-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1E5799;
  min-width: 64px;
  text-align: right;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    #406A94 0%,
    #406A94 var(--fill-pct, 50%),
    #E2E8F0 var(--fill-pct, 50%),
    #E2E8F0 100%
  );
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #406A94;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: grab;
  transition: transform 0.1s, box-shadow 0.1s;
}

.calc-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(64,106,148,0.30);
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #406A94;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: grab;
}

.calc-slider-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94A3B8;
}

.calc-result-block {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.calc-result-label {
  font-size: 0.875rem;
  color: #64748B;
}

.calc-result-revenue {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1E5799;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.calc-result-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 14px 0;
}

.calc-result-net {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
}

.calc-note {
  font-size: 0.75rem;
  color: #94A3B8;
  line-height: 1.5;
}

/* ── Section 6: Seasonal Chart ── */
.seasonal-chart {
  margin-top: 4px;
}

.seasonal-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 0;
}

.seasonal-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seasonal-bar-value {
  font-size: 0.65rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  text-align: center;
  min-height: 16px;
  line-height: 1.2;
}

.seasonal-bar-track {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: flex-end;
}

.seasonal-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}

.seasonal-month-label {
  font-size: 0.65rem;
  color: #94A3B8;
  margin-top: 6px;
  text-align: center;
  font-weight: 500;
}

/* ── Section 7: CTA ── */
.cta-card {
  background: #fff;
}

.cta-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cta-text {
  flex: 1;
  min-width: 220px;
}

.cta-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta-desc {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.65;
}

.cta-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
}

.btn-cta {
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-bottom: 0;
}

.cta-note {
  font-size: 0.75rem;
  color: #94A3B8;
  text-align: center;
}

/* ── Section 8: Methodology ── */
.methodology-card {
  background: #fff;
}

.methodology-title {
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.methodology-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.methodology-item h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
}

.methodology-item p {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.6;
}

/* ── Section 9: Disclaimer ── */
.disclaimer-text {
  font-size: 0.75rem;
  color: #94A3B8;
  line-height: 1.6;
  border-top: 1px solid #F1F5F9;
  padding-top: 20px;
}

.disclaimer-text strong {
  color: #64748B;
}

/* ── Responsive: single column below 640px ── */
@media (max-width: 640px) {
  .projection-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .projection-card:nth-child(1),
  .projection-card:nth-child(2),
  .projection-card:nth-child(3) {
    order: unset;
  }

  /* On mobile, show base first */
  .projection-card--base { order: -1; }

  .comp-grid {
    grid-template-columns: 1fr;
  }

  .methodology-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-inner {
    flex-direction: column;
    gap: 20px;
  }

  .cta-action {
    width: 100%;
    min-width: unset;
  }

  .btn-cta {
    width: 100%;
    font-size: 0.82rem;
  }

  .pps-net-amount--total {
    font-size: 1.25rem;
  }

  .report-hero-wrap {
    height: 200px;
  }

  .calc-result-revenue {
    font-size: 1.3rem;
  }

  .report-prop-address {
    font-size: 1.25rem;
  }
}
