/* ---- Base resets (matches listings.css / listing_detail.css) ---- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  line-height: 1.55;
  background: var(--page-bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 14px;
}

html {
  overflow-x: hidden;
}

/* ---- Wave tokens (no body.simple-page — its overflow-x:hidden breaks footer) ---- */
body[data-profit-compass-page] {
  --simple-wave-stroke: var(--ink-shadow);
  --simple-wave-glow: rgba(246, 250, 247, 0.14);
  --simple-wave-opacity: 0.58;
}
:root:not([data-mode="light"]) body[data-profit-compass-page] {
  --simple-wave-stroke: rgba(220, 230, 225, 0.16);
  --simple-wave-glow: rgba(176, 196, 188, 0.12);
  --simple-wave-opacity: 0.5;
}

/* ---- Local tokens ---- */
.profit-compass {
  /* Data-viz semantic colors — harmonized with site sage palette */
  --green: #5a9a78;
  --green-dark: #4a8266;
  --charcoal: #1c2628;
  --charcoal-light: #2a3436;
  --slate: #22332e;
  --slate-light: #2c403a;
  --amber: #c4a56c;
  --coral: #b85c3e;
  --r: 16px;
  /* Shell aliases — mapped to global design tokens from tokens.css */
  --card-bg: var(--card);
  --card-border: var(--border);
  --text: var(--ink);
  --text-mid: var(--ink-soft);
  --text-light: var(--muted);
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: var(--z-content);
  /* Reset simple_pages.css .page bleed-through */
  width: auto;
  padding: 0;
  gap: 0;
}

.profit-compass {
  flex: 1 0 auto;
  padding-top: 80px;
}

body[data-profit-compass-page] .site-footer {
  margin-top: 0;
}

/* ---- Header (absorbed into hero tile .te) ---- */
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}

/* ---- Grid ---- */
.profit-compass .grid{max-width:1520px;margin:0 auto 14px;padding:0 28px;display:grid;gap:14px}
.profit-compass .r1{grid-template-columns:6fr 3fr;gap:6px}
.profit-compass .r2{grid-template-columns:1fr 1fr 1fr;gap:6px}
.profit-compass .r3{grid-template-columns:1fr;gap:6px}
.profit-compass .r4{grid-template-columns:1fr 1fr 1fr;gap:6px}

/* ---- Tiles ---- */
.profit-compass .tile{border-radius:var(--r);overflow:clip;position:relative;
  opacity:0;transform:translateY(28px) scale(.98);
  transition:opacity .55s ease,transform .55s cubic-bezier(.16,1,.3,1),box-shadow .3s ease}
.profit-compass .tile.visible{opacity:1;transform:translateY(0) scale(1)}
.profit-compass .tile:hover{box-shadow:0 20px 50px rgba(0,0,0,.12)}
.profit-compass .tile.visible:hover{transform:translateY(0) scale(1)}
.profit-compass .tp{padding:22px 28px 20px;min-height:100%;display:flex;flex-direction:column;box-sizing:border-box}
.profit-compass .t-hero .tp{padding-bottom:28px}

.profit-compass .te{font-size:var(--text-xs);font-weight:700;letter-spacing:2px;text-transform:uppercase;margin-bottom:10px;color:var(--text-mid);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.profit-compass .te-live{font-weight:400;letter-spacing:.5px;text-transform:none;font-size:12px;opacity:.7;display:flex;align-items:center;gap:6px}
.profit-compass .te-live .dot{width:6px;height:6px;background:var(--green);border-radius:50%;display:inline-block;animation:blink 2s ease-in-out infinite}
.profit-compass .tt{font-family:'Cormorant Garamond',serif;font-size:var(--heading-xl);font-weight:600;line-height:1.15;margin-bottom:8px}
.profit-compass .td{font-size:var(--text-sm);font-weight:300;line-height:1.6;margin-bottom:auto}

/* ---- Hover gradient (dark tiles only) ---- */
.profit-compass .hover-grad{position:absolute;bottom:0;left:0;right:0;padding:14px 32px 18px;
  background:linear-gradient(transparent 0%,rgba(0,0,0,.6) 60%);
  display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit;
  transform:translateY(100%);transition:transform .35s cubic-bezier(.16,1,.3,1);
  z-index:var(--z-content);cursor:pointer}
.profit-compass .hover-grad .hg-text{font-size:var(--text-sm);font-weight:500;color:var(--white)}
.profit-compass .hover-grad .hg-detail{font-size:var(--text-xs);color:rgba(255,255,255,.6);margin-inline-start:auto;max-width:55%;text-align:end;line-height:1.4}
.profit-compass .hover-grad .hg-detail strong{color:var(--green);font-weight:700}
.profit-compass .hover-grad .hg-arrow{width:28px;height:28px;border-radius:50%;background:var(--green);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .2s}
.profit-compass .hover-grad .hg-arrow svg{width:11px;height:11px}
.profit-compass .tile:hover .hover-grad{transform:translateY(0)}
.profit-compass .tile:hover .hover-grad .hg-arrow{transform:translateX(4px)}
/* Light tiles: quieter bottom link instead of gradient overlay */
.profit-compass .t-w .hover-grad,
.profit-compass .t-light .hover-grad{background:linear-gradient(transparent 0%,var(--card-bg) 50%)}
.profit-compass .t-w .hover-grad .hg-text,
.profit-compass .t-light .hover-grad .hg-text{color:var(--accent-soft)}
.profit-compass .t-w .hover-grad .hg-detail,
.profit-compass .t-light .hover-grad .hg-detail{color:var(--text-mid)}
.profit-compass .t-w .hover-grad .hg-detail strong,
.profit-compass .t-light .hover-grad .hg-detail strong{color:var(--accent)}
.profit-compass .hover-grad-dark{background:linear-gradient(transparent 0%,rgba(0,0,0,.5) 60%)}
.profit-compass .hover-grad-dark .hg-arrow{background:var(--amber)}
.profit-compass .hover-grad-dark .hg-arrow svg path{stroke:var(--charcoal)}
.profit-compass .hover-grad-dark .hg-detail strong{color:var(--amber)}

/* Tooltips */
.profit-compass .q{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;background:rgba(255,255,255,.12);font-size:10px;font-weight:700;color:rgba(255,255,255,.65);cursor:help;position:relative;margin-inline-start:4px;vertical-align:middle}
.profit-compass .q:hover{background:rgba(255,255,255,.25)}
.profit-compass .q .qt{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);width:220px;padding:10px 12px;background:var(--card-bg);color:var(--text);border-radius:8px;font-size:13px;font-weight:400;line-height:1.5;box-shadow:0 8px 30px rgba(0,0,0,.2);opacity:0;pointer-events:none;transition:opacity .15s;z-index:20;text-align:start}
.profit-compass .q .qt:after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:var(--card-bg)}
.profit-compass .q:hover .qt{opacity:1;pointer-events:auto}

/* Confidence badges */
.profit-compass .badge{display:inline-flex;align-items:center;gap:4px;font-size:var(--text-xs);font-weight:700;letter-spacing:.5px;text-transform:uppercase;padding:2px 8px;border-radius:4px;vertical-align:middle}
.profit-compass .badge-strong{background:rgba(90,154,120,.12);color:var(--green)}
.profit-compass .badge-good{background:rgba(196,165,108,.12);color:var(--amber)}
.profit-compass .badge-est{background:rgba(184,92,62,.12);color:var(--coral)}
.profit-compass .badge-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.profit-compass .badge-strong .badge-dot{background:var(--green)}
.profit-compass .badge-good .badge-dot{background:var(--amber)}
.profit-compass .badge-est .badge-dot{background:var(--coral)}

/* ======== HERO CALCULATOR ======== */
.profit-compass .t-hero{background:linear-gradient(165deg,#253F36 0%,#1C322B 55%,#142520 100%)}
.profit-compass .t-hero .tp{overflow:visible}
.profit-compass .t-hero .te{color:var(--white-soft)}
.profit-compass .t-hero .td{color:rgba(255,255,255,.6)}

/* Unified control bar */
.profit-compass .ctrl-bar{display:flex;align-items:center;gap:0;margin-bottom:12px;flex-wrap:wrap}
.profit-compass .ctrl-tabs{display:flex;gap:4px}
.profit-compass .calc-tab{font-size:13px;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:7px 14px;border-radius:8px;background:rgba(0,0,0,.1);color:rgba(255,255,255,.65);cursor:pointer;transition:background .2s,color .2s;border:none;font-family:inherit}
.profit-compass .calc-tab.active{background:rgba(0,0,0,.25);color:var(--white)}
.profit-compass .calc-tab:hover:not(.active){background:rgba(0,0,0,.15);color:var(--white-soft)}
.profit-compass .calc-mode:not(.active){display:none}
.profit-compass .ctrl-sep{width:1px;height:20px;background:rgba(255,255,255,.15);margin:0 10px;flex-shrink:0}
.profit-compass .seg-btns{display:flex;gap:0;background:rgba(0,0,0,.18);border-radius:8px;padding:2px}
.profit-compass .seg-btn{font-family:'Outfit',sans-serif;font-size:13px;font-weight:600;padding:6px 11px;border-radius:6px;border:none;background:transparent;color:rgba(255,255,255,.5);cursor:pointer;transition:background .2s,color .2s;min-height:36px;min-width:36px}
.profit-compass .seg-btn.active{background:rgba(255,255,255,.14);color:var(--white)}
.profit-compass .seg-btn:hover:not(.active){color:rgba(255,255,255,.75)}

/* Budget bar */
.profit-compass .budget-bar{margin-bottom:10px}
.profit-compass .budget-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px}
.profit-compass .budget-label{font-size:13px;font-weight:600;color:rgba(255,255,255,.55)}
.profit-compass .budget-val{font-size:20px;font-weight:800;color:var(--white);letter-spacing:-0.5px}
.profit-compass .budget-bar input[type=range]{width:100%;-webkit-appearance:none;appearance:none;height:5px;border-radius:3px;background:rgba(255,255,255,.14);outline:none}
.profit-compass .budget-bar input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:var(--white);cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.profit-compass .budget-bar input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--white);cursor:pointer;border:none}

/* Inline selects (used by land/commercial modes) */
.profit-compass .sel-row{display:flex;gap:8px;margin-bottom:10px}
.profit-compass .sel-mini{flex:1;display:flex;flex-direction:column;gap:3px}
.profit-compass .sel-mini label{font-size:13px;font-weight:600;color:var(--white-soft)}
.profit-compass .sel-mini select{font-family:'Outfit',sans-serif;font-size:13px;font-weight:500;padding:8px 28px 8px 10px;border-radius:8px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.08);color:var(--white);cursor:pointer;outline:none;-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}
.profit-compass .sel-mini select option{background:var(--charcoal);color:var(--white)}

/* Compact inline selects (residential mode) */
.profit-compass .ctrl-selects{display:flex;gap:8px;margin-bottom:10px}
.profit-compass .ctrl-selects select{font-family:'Outfit',sans-serif;font-size:13px;font-weight:500;padding:8px 28px 8px 10px;border-radius:8px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.08);color:var(--white);cursor:pointer;outline:none;-webkit-appearance:none;appearance:none;flex:1;
  background-image:url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}
.profit-compass .ctrl-selects select option{background:var(--charcoal);color:var(--white)}

/* Section divider */
.profit-compass .calc-divider{height:1px;background:rgba(255,255,255,.07);margin:12px 0}

/* Result display */
.profit-compass .result-display{text-align:center;padding:6px 0}
.profit-compass .result-num{font-size:48px;font-weight:800;color:var(--white);line-height:1;letter-spacing:-2px;transition:transform .15s}
.profit-compass .result-unit{font-size:14px;font-weight:500;color:rgba(255,255,255,.55);margin-top:2px}
.profit-compass .result-sub{color:var(--white-muted)}
.profit-compass .result-track{height:5px;background:rgba(255,255,255,.07);border-radius:3px;margin:10px 0 5px;overflow:hidden}
.profit-compass .result-fill{height:100%;border-radius:3px;transition:opacity .3s,background .3s;/* H20: layout transition removed — animate via transform instead */width:0}
.profit-compass .result-ends{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:rgba(255,255,255,.45)}
.profit-compass .result-rate{font-weight:800;color:var(--green);font-size:14px}

/* Deduction strips */
.profit-compass .strips{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin-top:10px}
.profit-compass .strip{display:flex;align-items:center;gap:10px}
.profit-compass .strip-bar{width:2px;height:20px;border-radius:1px;flex-shrink:0;opacity:.45}
.profit-compass .strip-info{flex:1;display:flex;flex-direction:column}
.profit-compass .strip-row{display:flex;justify-content:space-between;align-items:baseline}
.profit-compass .strip-label{font-size:13px;font-weight:600;color:rgba(255,255,255,.75);display:flex;align-items:center;gap:3px}
.profit-compass .strip-val{font-size:15px;font-weight:700;color:var(--white)}
.profit-compass .strip-pct{font-size:13px;font-weight:700;color:rgba(255,255,255,.6)}
.profit-compass .strip-slider{width:100%;-webkit-appearance:none;appearance:none;height:4px;border-radius:2px;background:rgba(255,255,255,.15);outline:none;margin-top:3px;cursor:pointer}
.profit-compass .strip-slider::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:var(--white);cursor:pointer;box-shadow:0 1px 6px rgba(0,0,0,.2)}
.profit-compass .strip-slider::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--white);cursor:pointer;border:none}
.profit-compass .strip-slider:disabled{opacity:.3}
.profit-compass .strip-sep{grid-column:1/3;height:1px;background:rgba(255,255,255,.1)}
.profit-compass .muni-fixed{font-size:13px;font-weight:700;color:rgba(255,255,255,.65);letter-spacing:.5px}

/* Cost summary line (collapsed view of deductions) */
.profit-compass .cost-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 0;font-size:13px;color:rgba(255,255,255,.6)}
.profit-compass .cost-chip{font-weight:500}
.profit-compass .cost-chip b{font-weight:700;color:rgba(255,255,255,.85)}
.profit-compass .cost-dot{opacity:.35}
.profit-compass .cost-toggle{font-family:'Outfit',sans-serif;font-size:13px;font-weight:600;color:rgba(255,255,255,.5);background:none;border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:3px 10px;cursor:pointer;margin-inline-start:auto;transition:color .2s,border-color .2s}
.profit-compass .cost-toggle:hover{color:rgba(255,255,255,.8);border-color:rgba(255,255,255,.25)}

/* Summary row (net + Tamlik, merged) */
.profit-compass .summary-row{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:12px;background:rgba(0,0,0,.14);flex-wrap:wrap}
.profit-compass .summary-label{font-size:13px;font-weight:700;color:rgba(255,255,255,.6)}
.profit-compass .summary-val{font-size:17px;font-weight:800;color:var(--white)}
.profit-compass .summary-5yr{font-size:13px;color:rgba(255,255,255,.55)}
.profit-compass .summary-5yr b{color:var(--amber);font-weight:800}
.profit-compass .summary-sep{width:1px;height:18px;background:rgba(255,255,255,.12);flex-shrink:0}
.profit-compass .toggle-sm{position:relative;width:36px;height:20px;flex-shrink:0;cursor:pointer}
.profit-compass .toggle-sm input{opacity:0;width:0;height:0}
.profit-compass .toggle-sm .sl{position:absolute;inset:0;background:rgba(255,255,255,.15);border-radius:20px;transition:.2s}
.profit-compass .toggle-sm .sl:before{content:'';position:absolute;width:16px;height:16px;left:2px;bottom:2px;background:var(--white);border-radius:50%;transition:.2s}
.profit-compass .toggle-sm input:checked+.sl{background:var(--green)}
.profit-compass .toggle-sm input:checked+.sl:before{transform:translateX(16px)}
.profit-compass .summary-tamlik{font-size:13px;font-weight:600;color:var(--white-soft)}
.profit-compass .tamlik-save{font-size:13px;font-weight:800;color:var(--green);margin-inline-start:auto;opacity:0;transition:opacity .3s}
.profit-compass .tamlik-save.show{opacity:1}

/* Disclaimer */
.profit-compass .disclaimer{font-size:13px;color:rgba(255,255,255,.65);line-height:1.4;margin-top:10px}

/* Deep-link to ROI detail page */
.profit-compass .calc-deep-link{
  display:flex;align-items:center;gap:10px;
  margin-top:14px;padding:12px 18px;border-radius:10px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);
  text-decoration:none;color:var(--white);transition:background .2s;cursor:pointer;
}
.profit-compass .calc-deep-link:hover{background:rgba(255,255,255,.14)}
.profit-compass .calc-deep-link span:first-child{font-size:var(--text-sm);font-weight:600}
.profit-compass .calc-deep-detail{font-size:var(--text-xs);color:rgba(255,255,255,.55);margin-inline-start:auto;text-align:end}
.profit-compass .calc-deep-arrow{
  width:26px;height:26px;border-radius:50%;background:var(--green);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  transition:transform .2s;color:var(--white);
}
.profit-compass .calc-deep-link:hover .calc-deep-arrow{transform:translateX(3px)}

/* ======== LAND / COMMERCIAL — single column, same style as residential ======== */
.profit-compass .mode-result{text-align:center;margin:16px 0 12px;padding:20px;background:rgba(0,0,0,.12);border-radius:14px}
.profit-compass .mode-result-big{font-size:48px;font-weight:800;color:var(--white);letter-spacing:-2px;line-height:1}
.profit-compass .mode-result-unit{font-size:14px;font-weight:500;color:var(--white-soft);margin-top:4px}
.profit-compass .mode-result-sub{font-size:13px;color:rgba(255,255,255,.6);margin-top:2px}
.profit-compass .mode-note{font-size:13px;color:rgba(255,255,255,.65);line-height:1.5;padding:10px 12px;border-radius:8px;background:rgba(0,0,0,.08);margin-top:8px}
.profit-compass .mode-warn{background:rgba(200,90,50,.1);color:var(--coral);font-weight:600}
.profit-compass .mode-legal{background:rgba(212,168,67,.08);color:rgba(255,255,255,.65)}
.profit-compass .mode-legal strong{color:var(--amber)}
.profit-compass .mode-sep{height:1px;background:rgba(255,255,255,.08);margin:8px 0}
.profit-compass .mode-section-label{font-size:13px;font-weight:700;color:rgba(255,255,255,.6);letter-spacing:1px;text-transform:uppercase;margin-bottom:6px}

/* ======== GCC COMPARISON (warm stone — second brand color) ======== */
.profit-compass .t-side{background:linear-gradient(165deg,#332B24 0%,#2A231C 55%,#211C15 100%);border:none}
.profit-compass .t-side .te{color:rgba(255,255,255,.6)}
.profit-compass .t-side .td{color:rgba(255,255,255,.55);font-size:var(--text-sm)}
.profit-compass .gcc-headline{font-family:'Cormorant Garamond',serif;font-size:clamp(30px,3.5vw,42px);font-weight:700;color:var(--white);line-height:1.05;margin-bottom:8px}
.profit-compass .gcc-headline span{color:var(--green)}
.profit-compass .gcc-stack{display:flex;flex-direction:column;gap:8px;margin-top:auto}
.profit-compass .gcc-card{padding:14px 16px;border-radius:12px;display:flex;justify-content:space-between;align-items:center;transition:box-shadow .2s,background .2s}
.profit-compass .gcc-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.15)}
.profit-compass .gcc-card.win{background:rgba(90,154,120,.12)}
.profit-compass .gcc-card.lose{background:rgba(255,255,255,.05)}
.profit-compass .gcc-card.lose:hover{background:rgba(255,255,255,.08)}
.profit-compass .gcc-info{display:flex;flex-direction:column}
.profit-compass .gcc-city{font-size:var(--text-xs);font-weight:700;letter-spacing:1px;text-transform:uppercase}
.profit-compass .gcc-card.win .gcc-city{color:var(--green)}
.profit-compass .gcc-card.lose .gcc-city{color:rgba(255,255,255,.6)}
.profit-compass .gcc-sub{font-size:var(--text-xs);color:rgba(255,255,255,.5);margin-top:2px}
.profit-compass .gcc-right{text-align:end}
.profit-compass .gcc-price{font-size:var(--text-2xl);font-weight:800;color:var(--white)}
.profit-compass .gcc-unit{font-size:var(--text-xs);font-weight:400;color:rgba(255,255,255,.5)}
.profit-compass .gcc-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.profit-compass .gcc-metric{padding:12px;border-radius:10px;background:rgba(255,255,255,.05);text-align:center;transition:background .2s}
.profit-compass .gcc-metric:hover{background:rgba(255,255,255,.08)}
.profit-compass .gcc-metric-val{font-size:var(--text-xl);font-weight:800;color:var(--green);line-height:1}
.profit-compass .gcc-metric-label{font-size:var(--text-xs);color:rgba(255,255,255,.5);margin-top:4px;line-height:1.3}

/* ======== ROW 2 ======== */
.profit-compass .t-w{background:var(--card-bg);border:1px solid var(--card-border)}
.profit-compass .t-w .te{letter-spacing:2px}
.profit-compass .t-w .tt{font-size:var(--heading-xl);margin-bottom:10px}
.profit-compass .t-w .td{color:var(--text-mid);font-size:var(--text-sm)}
.profit-compass .bubble-wrap{position:relative;flex:1;display:flex;align-items:center;justify-content:center;margin-top:10px;min-height:240px}
.profit-compass .bubble-cluster{position:relative;width:300px;height:280px}
.profit-compass .bubble{position:absolute;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:transform .6s cubic-bezier(.16,1,.3,1),opacity .5s;transform:scale(0);opacity:0;cursor:pointer;z-index:var(--z-content);padding:4px;overflow:hidden;text-align:center}
.profit-compass .bubble.visible{transform:scale(1);opacity:1}
.profit-compass .bubble:hover{z-index:var(--z-sticky);filter:brightness(1.15);box-shadow:0 4px 20px rgba(0,0,0,.25)}
.profit-compass .bubble-ratio{font-size:13px;font-weight:800;color:var(--white);line-height:1;white-space:nowrap}
.profit-compass .bubble-word{font-size:11px;font-weight:700;color:rgba(255,255,255,.8);text-transform:uppercase;letter-spacing:.3px;margin-top:1px;white-space:nowrap;max-width:80%;overflow:hidden;text-overflow:ellipsis}
.profit-compass .bubble-area{font-size:11px;font-weight:600;color:var(--white-soft);margin-top:1px;white-space:nowrap;max-width:80%;overflow:hidden;text-overflow:ellipsis}
.profit-compass .bubble-hover{position:absolute;top:-30px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--white);padding:5px 10px;border-radius:6px;font-size:13px;font-weight:600;white-space:nowrap;opacity:0;transition:opacity .2s;pointer-events:none;z-index:10}
.profit-compass .bubble-hover:after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);border:5px solid transparent;border-top-color:var(--text)}
.profit-compass .bubble:hover .bubble-hover{opacity:1}
.profit-compass .zone-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.profit-compass .zone-grid-row2{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:8px;max-width:66%;margin-inline:auto}
.profit-compass .zz{padding:18px 10px;border-radius:12px;background:var(--green-pale);text-align:center;transition:all .25s;cursor:pointer}
.profit-compass .zz:hover{background:var(--green-glow);transform:translateY(-3px);box-shadow:0 6px 20px rgba(0,0,0,.06)}
.profit-compass .zs{font-size:var(--text-2xl);font-weight:800;color:var(--text);line-height:1}
.profit-compass .zn{font-size:var(--text-xs);font-weight:700;color:var(--text);margin-top:6px}
.profit-compass .zy{font-size:var(--text-xs);font-weight:800;margin-top:5px}
.profit-compass .zz-sub{font-size:var(--text-xs);color:var(--text-light);margin-top:4px}
.profit-compass .zone-summary{display:flex;justify-content:space-between;margin-top:14px;padding:12px 16px;border-radius:10px;background:var(--green-pale);font-size:var(--text-xs);color:var(--text-mid)}
.profit-compass .zone-summary strong{color:var(--text);font-weight:800}
.profit-compass .sw{flex:1;display:flex;flex-direction:column;justify-content:flex-end}
.profit-compass .sb{display:flex;align-items:flex-end;gap:2px;height:120px;margin-top:auto}
.profit-compass .sp{flex:1;border-radius:3px 3px 0 0;min-width:0;transition:opacity .7s cubic-bezier(.16,1,.3,1);/* H20: layout transition removed — animate via transform instead */cursor:pointer;position:relative}
.profit-compass .sp:hover{filter:brightness(1.15)}
.profit-compass .sp-tip{position:absolute;top:-26px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--white);padding:4px 8px;border-radius:5px;font-size:13px;font-weight:600;white-space:nowrap;opacity:0;transition:opacity .15s;pointer-events:none;z-index:10}
.profit-compass .sp:hover .sp-tip{opacity:1}
.profit-compass .sx{display:flex;justify-content:space-between;font-size:var(--text-xs);color:var(--text-light);margin-top:5px}
.profit-compass .mn{font-size:var(--text-3xl);font-weight:800;color:var(--green);line-height:1;margin-top:6px;letter-spacing:-1px}
.profit-compass .ml{font-size:var(--text-xs);color:var(--text-mid)}

/* ======== ROW 3 ======== */
.profit-compass .t-intel{background:var(--charcoal);min-height:auto}
.profit-compass .t-intel .tp{padding:30px 32px 56px}
.profit-compass .t-intel .te{color:var(--green)}
.profit-compass .t-intel .tt{color:var(--white);font-size:var(--heading-xl)}
.profit-compass .t-intel .td{color:rgba(255,255,255,.65)}
.profit-compass .intel-layout{display:grid;grid-template-columns:5fr 5fr 1px 4fr;gap:0;margin-top:14px;align-items:stretch}
.profit-compass .intel-half{display:flex;flex-direction:column;gap:12px;padding-inline-end:22px}
.profit-compass .intel-half .cs{flex:1}
.profit-compass .intel-sep{background:rgba(255,255,255,.07)}
.profit-compass .intel-earners{padding-inline-start:22px;display:flex;flex-direction:column}
.profit-compass .cs{display:flex;flex-direction:column;flex:1}
.profit-compass .cs-title{font-size:13px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:rgba(255,255,255,.65);margin-bottom:6px;display:flex;align-items:center;gap:4px}
.profit-compass .cs-title .q{background:rgba(255,255,255,.12);color:var(--white-soft);width:14px;height:14px;font-size:10px}
.profit-compass .cs-title .q .qt{color:var(--text)}
.profit-compass .cs-body{display:flex;flex-direction:column;gap:3px;flex:1;justify-content:space-between}
.profit-compass .hbar{display:flex;align-items:center;gap:6px}
.profit-compass .hbar-name{font-size:13px;font-weight:600;width:58px;text-align:end;color:rgba(255,255,255,.75);flex-shrink:0}
.profit-compass .hbar-track{flex:1;height:15px;background:rgba(255,255,255,.05);border-radius:3px;overflow:hidden}
.profit-compass .hbar-fill{height:100%;border-radius:3px;transition:opacity 1s cubic-bezier(.16,1,.3,1);/* H20: layout transition removed — animate via transform instead */width:0;display:flex;align-items:center;justify-content:flex-end;padding-inline-end:5px}
.profit-compass .hbar-fill span{font-size:13px;font-weight:700;color:var(--white)}
.profit-compass .dot-row{display:flex;align-items:center;gap:6px}
.profit-compass .dot-name{font-size:13px;font-weight:600;width:55px;text-align:end;color:rgba(255,255,255,.75);flex-shrink:0}
.profit-compass .dot-track{flex:1;height:15px;position:relative;background:rgba(255,255,255,.03);border-radius:3px}
.profit-compass .dot-line{position:absolute;top:50%;left:0;height:3px;transform:translateY(-50%);border-radius:2px;transition:opacity 1s cubic-bezier(.16,1,.3,1);/* H20: layout transition removed — animate via transform instead */width:0}
.profit-compass .dot-circle{position:absolute;top:50%;width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.3);transform:translate(-50%,-50%);transition:transform 1s cubic-bezier(.16,1,.3,1);/* H20: layout transition removed — animate via transform instead */left:0}
.profit-compass .dot-val{font-size:13px;font-weight:700;color:rgba(255,255,255,.8);flex-shrink:0;width:36px;text-align:end}
.profit-compass .yi-list{display:flex;flex-direction:column;gap:6px;flex:1;justify-content:space-between}
.profit-compass .yi{display:flex;justify-content:space-between;align-items:center;padding:8px 14px;border-radius:7px;background:rgba(255,255,255,.04);transition:background .15s}
.profit-compass .yi:hover{background:rgba(255,255,255,.08)}
.profit-compass .yi-area{font-size:13px;font-weight:600;color:rgba(255,255,255,.8)}
.profit-compass .yi-type{font-size:13px;color:rgba(255,255,255,.65)}
.profit-compass .yi-val{font-size:17px;font-weight:800;color:var(--green)}

/* ======== ROW 4 — LIGHT TILES ======== */
.profit-compass .t-tax{background:var(--card-bg);border:1px solid var(--card-border)}
.profit-compass .t-tax .te{color:var(--text-mid)}
.profit-compass .t-tax .tt{color:var(--text)}
.profit-compass .t-tax .td{color:var(--text-mid)}
.profit-compass .tax-grid{display:flex;flex-direction:column;gap:6px;margin-top:auto}
.profit-compass .tax-item{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-radius:10px;background:var(--ink-faint);transition:background .2s}
.profit-compass .tax-item:hover{background:rgba(0,0,0,.04)}
.profit-compass .tax-label{font-size:var(--text-sm);font-weight:600;color:var(--text)}
.profit-compass .tax-sub{font-size:var(--text-xs);color:var(--text-mid)}
.profit-compass .tax-val{font-size:var(--text-xl);font-weight:800;color:var(--green)}
.profit-compass .tax-val.future{color:var(--amber);font-size:var(--text-base)}
.profit-compass .tax-source{font-size:var(--text-xs);color:var(--text-light);margin-top:8px;line-height:1.4}
.profit-compass .t-mgmt{background:var(--card-bg);border:1px solid var(--card-border)}
.profit-compass .t-mgmt .te{color:var(--text-mid)}
.profit-compass .t-mgmt .tt{color:var(--text)}
.profit-compass .t-mgmt .td{color:var(--text-mid)}
.profit-compass .mgmt-stats{display:flex;flex-direction:column;gap:8px;margin-top:auto}
.profit-compass .ms{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:10px;background:var(--ink-faint);transition:background .2s}
.profit-compass .ms:hover{background:rgba(0,0,0,.04)}
.profit-compass .ms-icon{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center}
.profit-compass .ms-label{font-size:var(--text-sm);font-weight:600;color:var(--text)}
.profit-compass .ms-sub{font-size:var(--text-xs);color:var(--text-mid)}
.profit-compass .t-stable{background:var(--card-bg);border:1px solid var(--card-border)}
.profit-compass .t-stable .te{color:var(--text-mid)}
.profit-compass .mini-sparks{display:flex;flex-direction:column;gap:8px;margin-top:auto}
.profit-compass .mini-spark{display:flex;align-items:center;gap:10px}
.profit-compass .mini-spark-name{font-size:var(--text-xs);font-weight:600;width:70px;text-align:end;color:var(--text);flex-shrink:0}
.profit-compass .mini-spark-bars{display:flex;align-items:flex-end;gap:1px;height:28px;flex:1}
.profit-compass .mini-spark-bar{flex:1;border-radius:2px 2px 0 0;background:var(--sparkbar-bg);transition:opacity .6s cubic-bezier(.16,1,.3,1)}/* H20: layout transition removed — animate via transform instead */
.profit-compass .mini-spark-bar.recent{background:var(--green)}
.profit-compass .mini-spark-val{font-size:var(--text-xs);font-weight:700;color:var(--text);width:50px;flex-shrink:0}
.profit-compass .mini-spark-change{font-size:var(--text-xs);font-weight:600;color:var(--text-light)}
.profit-compass .stable-note{font-size:var(--text-sm);color:var(--text-mid);line-height:1.5;margin-top:10px;padding:10px 14px;border-radius:8px;background:var(--green-pale)}
.profit-compass .stable-note strong{color:var(--text);font-weight:700}

/* ======== ROW 2b: MATCHED LISTINGS ======== */
.profit-compass .r2b{grid-template-columns:1fr}
.profit-compass .t-match .tp{padding:18px 24px 22px}
.profit-compass .match-hdr{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}
.profit-compass .match-sub{font-size:var(--text-sm);color:var(--text-mid);font-weight:400;margin-top:2px}
.profit-compass .match-all{font-size:var(--text-xs);font-weight:600;color:var(--accent);letter-spacing:.5px;white-space:nowrap}
.profit-compass .match-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.profit-compass .match-card{position:relative;border-radius:10px;overflow:clip;height:300px;display:block;text-decoration:none;color:var(--white);cursor:pointer}
.profit-compass .match-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.profit-compass .match-card:hover img{transform:scale(1.04)}
.profit-compass .match-grad{position:absolute;bottom:0;left:0;right:0;padding:60px 16px 16px;background:linear-gradient(transparent 0%,rgba(0,0,0,.7) 100%);display:flex;flex-direction:column;gap:3px}
.profit-compass .match-price{font-size:var(--text-lg);font-weight:800;color:var(--white)}
.profit-compass .match-meta{font-size:var(--text-xs);color:var(--white-soft);font-weight:400}
.profit-compass .match-enq{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--white);background:var(--accent);padding:8px 16px;border-radius:var(--control-radius,12px);margin-top:8px;align-self:flex-start;transition:background .28s ease,transform .28s ease;text-decoration:none;font-family:inherit}
.profit-compass .match-card:hover .match-enq{background:var(--accent-soft);transform:translateY(-1px)}
.profit-compass .match-noimg{background:var(--charcoal-light);display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.profit-compass .match-noimg svg{width:40px;height:40px;opacity:.2}
.profit-compass .match-skel{background:var(--ink-faint);border-radius:10px;height:300px;position:relative;overflow:clip}
@keyframes matchShimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
.profit-compass .match-skel-bar{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.06) 50%,transparent 100%);animation:matchShimmer 1.5s ease infinite}
.profit-compass .match-empty{grid-column:1/-1;padding:60px 24px;text-align:center;color:var(--text-light);font-size:var(--text-sm);font-weight:400}

/* ---- Responsive ---- */
@media(max-width:900px){
  .profit-compass .r1,.profit-compass .r3{grid-template-columns:1fr}
  .profit-compass .r2,.profit-compass .r4{grid-template-columns:1fr 1fr}
  .profit-compass .result-num{font-size:38px}
  .profit-compass .ctrl-bar{gap:6px}
  .profit-compass .ctrl-sep{display:none}
  .profit-compass .ctrl-bar .seg-btns{margin-top:4px}
  .profit-compass .calc-tab{min-height:44px;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center}
  .profit-compass .seg-btn{min-height:44px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center}
  .profit-compass .strips{grid-template-columns:1fr}
  .profit-compass .strip-sep{grid-column:auto}
  .profit-compass .intel-layout{grid-template-columns:1fr 1fr;gap:16px}
  .profit-compass .intel-sep{display:none}
  .profit-compass .intel-earners{padding-inline-start:0;border-top:1px solid rgba(255,255,255,.06);padding-top:14px;grid-column:1/3}
  .profit-compass .ctrl-selects{flex-wrap:wrap}
  .profit-compass .summary-row{flex-wrap:wrap;gap:8px}
  .profit-compass .match-strip{grid-template-columns:repeat(2,1fr)}
  .profit-compass .match-card{height:260px}
}
@media(max-width:600px){
  .profit-compass .r2,.profit-compass .r4{grid-template-columns:1fr}
  .profit-compass .hdr{flex-direction:column;align-items:flex-start}
  .profit-compass .zone-grid{grid-template-columns:repeat(3,1fr)}
  .profit-compass .zone-grid-row2{max-width:100%}
  .profit-compass .intel-layout{grid-template-columns:1fr}
  .profit-compass .intel-sep{display:none}
  .profit-compass .intel-earners{padding-inline-start:0;grid-column:auto;border-top:1px solid rgba(255,255,255,.06);padding-top:14px}
  .profit-compass .gcc-headline{font-size:28px}
  .profit-compass .bubble-cluster{width:260px;height:240px}
  .profit-compass .ctrl-tabs{flex-wrap:wrap}
  .profit-compass .ctrl-selects select{min-width:100%}
  .profit-compass .match-card{height:200px}
  .profit-compass .match-grad{padding:40px 12px 12px}
  .profit-compass .match-enq{padding:6px 12px;font-size:12px}
}

/* Dark mode — light cards flip to dark surface */
html:not([data-mode="light"]) .profit-compass .t-w,
html:not([data-mode="light"]) .profit-compass .t-tax,
html:not([data-mode="light"]) .profit-compass .t-mgmt {
  background: var(--card);
  border-color: var(--surface-border);
}
html:not([data-mode="light"]) .profit-compass .t-w .te,
html:not([data-mode="light"]) .profit-compass .t-w .tt,
html:not([data-mode="light"]) .profit-compass .t-tax .te,
html:not([data-mode="light"]) .profit-compass .t-tax .tt,
html:not([data-mode="light"]) .profit-compass .t-mgmt .te,
html:not([data-mode="light"]) .profit-compass .t-mgmt .tt {
  color: var(--ink);
}
html:not([data-mode="light"]) .profit-compass .t-w .td,
html:not([data-mode="light"]) .profit-compass .t-tax .td,
html:not([data-mode="light"]) .profit-compass .t-mgmt .td {
  color: var(--ink-soft);
}
html:not([data-mode="light"]) .profit-compass .tax-item,
html:not([data-mode="light"]) .profit-compass .ms { background: var(--ink-faint); }
/* Tax + Mgmt dark mode text */
html:not([data-mode="light"]) .profit-compass .tax-label,
html:not([data-mode="light"]) .profit-compass .ms-label { color: var(--ink); }
html:not([data-mode="light"]) .profit-compass .tax-sub,
html:not([data-mode="light"]) .profit-compass .tax-source,
html:not([data-mode="light"]) .profit-compass .ms-sub { color: var(--ink-soft); }
/* Freehold zone cards */
html:not([data-mode="light"]) .profit-compass .zz {
  background: var(--ink-faint);
}
html:not([data-mode="light"]) .profit-compass .zz:hover {
  background: var(--green-glow);
}
html:not([data-mode="light"]) .profit-compass .zs,
html:not([data-mode="light"]) .profit-compass .zn {
  color: var(--ink);
}
html:not([data-mode="light"]) .profit-compass .zone-summary {
  background: var(--ink-faint);
  color: var(--ink-soft);
}
html:not([data-mode="light"]) .profit-compass .zone-summary strong {
  color: var(--ink);
}
html:not([data-mode="light"]) .profit-compass .stable-note {
  background: var(--ink-faint);
  color: var(--ink-soft);
}
html:not([data-mode="light"]) .profit-compass .stable-note strong {
  color: var(--ink);
}
html:not([data-mode="light"]) .profit-compass .mini-spark-name,
html:not([data-mode="light"]) .profit-compass .mini-spark-val {
  color: var(--ink);
}
html:not([data-mode="light"]) .profit-compass .mini-spark-bar {
  background: rgba(255,255,255,.15);
}
/* Light-tile hover-grads in dark mode */
html:not([data-mode="light"]) .profit-compass .t-w .hover-grad,
html:not([data-mode="light"]) .profit-compass .t-light .hover-grad {
  background: linear-gradient(transparent 0%, var(--card) 50%);
}

/* ── Tooltip touch + keyboard support ── */
.profit-compass .q:focus .qt,
.profit-compass .q:focus-within .qt,
.profit-compass .q.q-open .qt {
  opacity: 1;
  pointer-events: auto;
}

/* ── Bubble + sparkline focus-based tooltips ── */
.profit-compass .bubble:focus .bubble-hover { opacity: 1; }
.profit-compass .sp:focus .sp-tip { display: block; opacity: 1; }

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  .tile {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bubble,
  .zz,
  .sp {
    transition: none;
  }

  .hdr-right .dot {
    animation: none;
  }
}

