/* Explore — the project on the drone pictures, the reel's way (4 Nov 2026). Uses folio.css's variables only: no new colours
   beyond the glow (a cool white, as the reel's highlighted block). */
.ex-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ex-fail { flex: 1; }
.ex-stage { flex: 1; min-height: 0; background: #1F1C18; user-select: none; -webkit-user-select: none; }
.ex-stage .ef, .ex-stage .ex-glow {
  position: absolute; left: 0; top: 0; max-width: none; opacity: 0; pointer-events: none;
  -webkit-user-drag: none; user-select: none; will-change: opacity;
}
.ex-stage .ex-glow { z-index: 3; mix-blend-mode: screen; transition: opacity 420ms var(--ease); }
.ex-stage .ex-glow.on { opacity: 1; animation: ex-pulse 2.8s ease-in-out infinite; }
@keyframes ex-pulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

.ex-lines { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity var(--dur-fade) var(--ease); }
.ex-lines line { stroke: #fff; stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .45)); }
.ex-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity var(--dur-fade) var(--ease); }
.ex-stage.on .ex-lines, .ex-stage.on .ex-layer { opacity: 1; }

/* the place pin (views and places): a gold dot and a label, a thumbnail for a place that has one */
.ex-dot {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(176, 141, 69, .25), 0 1px 4px rgba(0, 0, 0, .4);
}
.ex-pin { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ex-pin img {
  display: block; width: 120px; height: 80px; object-fit: cover; border-radius: 10px; border: 2px solid #fff;
  background: var(--scene-canvas); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); -webkit-user-drag: none;
}
.ex-pin .lbl {
  display: block; max-width: 240px; padding: 5px 12px; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--card); color: var(--ink); border: var(--hairline-w) solid var(--hairline); box-shadow: var(--shadow-panel);
  font: 600 var(--text-footnote)/1.3 var(--font-ui); text-align: center;
}

/* a home's marker: its number on a small white pill, a dot in the colour of its status */
.ex-adot {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--for-sale);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); pointer-events: none;
}
.ex-adot.reserved { background: var(--reserved); }
.ex-adot.sold { background: var(--sold); }
.ex-home {
  position: absolute; pointer-events: auto; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: var(--radius-pill);
  background: var(--scene-panel); color: var(--ink); border: 1px solid rgba(255, 255, 255, .85);
  font: 600 var(--text-caption)/1.25 var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .18s var(--ease), background .18s;
}
.ex-home i { width: 8px; height: 8px; border-radius: 50%; background: var(--for-sale); flex: none; }
.ex-home.reserved i { background: var(--reserved); }
.ex-home.sold i { background: var(--sold); }
.ex-home:hover { transform: scale(1.06); }
.ex-home[aria-current=true] { background: var(--accent); color: var(--on-accent); border-color: var(--gold); }
.ex-home .st { display: none; }
@media (min-width: 700px) {
  .ex-home { font-size: var(--text-footnote); padding: 4px 11px 4px 8px; display: inline-grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center; }
  .ex-home .st { display: block; grid-column: 2; font-size: 11px; font-weight: 600; color: var(--ink-2); margin-top: -1px; }
  .ex-home.available .st { color: var(--for-sale); }
  .ex-home.reserved .st { color: var(--reserved); }
  .ex-home.sold .st { color: var(--sold); }
  .ex-home[aria-current=true] .st { color: var(--gold-light); }
}
/* a home behind the facade the drone saw: hollow dot, dashed pill, at its real place */
.ex-home.behind { background: rgba(255, 255, 255, .78); border: 1px dashed rgba(48, 44, 38, .5); color: var(--ink-2); }
.ex-home.behind i, .ex-adot.behind, .ex-legend .behind i { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-2); }
.ex-home.behind.available i, .ex-adot.behind.available { box-shadow: inset 0 0 0 2px var(--for-sale); }
.ex-home.behind.reserved i, .ex-adot.behind.reserved { box-shadow: inset 0 0 0 2px var(--reserved); }
.ex-home.behind.sold i, .ex-adot.behind.sold { box-shadow: inset 0 0 0 2px var(--sold); }
.ex-adot.behind { background: rgba(255, 255, 255, .6); }
/* every home of the block, under the places */
.ex-homes { display: flex; gap: 6px; overflow-x: auto; width: 100%; padding: 0 var(--gutter) 2px; justify-content: safe center; scrollbar-width: none; }
.ex-homes::-webkit-scrollbar { display: none; }
.ex-hchip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline); background: var(--card); color: var(--ink); cursor: pointer;
  font: 600 var(--text-caption)/1 var(--font-ui); font-variant-numeric: tabular-nums;
}
.ex-hchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--for-sale); }
.ex-hchip.reserved i { background: var(--reserved); }
.ex-hchip.sold i { background: var(--sold); }
.ex-hchip:hover { border-color: var(--gold); }
.ex-hchip[aria-current=true] { background: var(--accent); color: var(--on-accent); border-color: var(--gold); }
@media (min-width: 900px) { .ex-homes { flex-wrap: wrap; overflow: visible; } }
.ex-legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: var(--text-caption); font-weight: 600; color: var(--ink-2); }
.ex-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ex-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--for-sale); }
.ex-legend .reserved i { background: var(--reserved); }
.ex-legend .sold i { background: var(--sold); }

/* the place's name, top corner of the picture */
.ex-status {
  position: absolute; z-index: 6; inset-inline-start: 12px; top: 12px; max-width: min(62%, 340px); pointer-events: none;
  background: var(--scene-panel); border-radius: 14px; padding: 8px 14px 9px; box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ex-status b { display: block; font: 600 21px/1.1 var(--font-display); color: var(--ink); }
.ex-status span { display: block; margin-top: 2px; font-size: var(--text-caption); color: var(--ink-2); line-height: 1.3; }

/* a home's card */
.ex-card {
  position: absolute; z-index: 7; width: 300px; padding: 12px 14px 14px; pointer-events: auto;
  background: var(--card); color: var(--ink); border-radius: var(--radius-card); box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  animation: ex-in .22s var(--ease);
}
@keyframes ex-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ex-card .x {
  position: absolute; top: 6px; inset-inline-end: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none;
  color: var(--ink-2); display: grid; place-items: center; cursor: pointer;
}
.ex-card .x:hover { background: var(--surface); }
.ex-card .x svg { width: 16px; height: 16px; }
.ex-card .head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-inline-end: 28px; }
.ex-card h3 { margin: 0; font: 600 26px/1 var(--font-display); }
.ex-card .sub { margin-top: 4px; font-size: var(--text-caption); color: var(--ink-2); }
.ex-card .stats { margin-top: 8px; gap: 4px 14px; }
.ex-card .stat { font-size: 15px; }
.ex-card .stat svg { width: 17px; height: 17px; }
.ex-card .plan {
  margin: 10px 0 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 50% 45%, var(--scene-highlight) 0, var(--scene-canvas) 55%, var(--scene-edge) 100%);
}
.ex-card .plan img { display: block; width: 100%; height: 100%; object-fit: contain; animation: ex-float 3.4s ease-in-out infinite; -webkit-user-drag: none; }
.ex-card .plan.mirrored img { transform: scaleX(-1); animation-name: ex-float-m; }
@keyframes ex-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ex-float-m { 0%, 100% { transform: scaleX(-1) translateY(0); } 50% { transform: scaleX(-1) translateY(-5px); } }
.ex-card .btns { display: flex; gap: 8px; margin-top: 10px; }
.ex-card .btns > * { flex: 1; padding: 9px 6px; font-size: var(--text-footnote); min-width: 0; }
.ex-card .btns svg { width: 16px; height: 16px; }
.ex-card .btns .btn-outline span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-card.docked { left: 10px; right: 10px; bottom: 10px; top: auto; width: auto; }
.ex-card.docked .plan { aspect-ratio: 16 / 7; }

/* the bar of places (the dock) */
.ex-dock .ex-chips { padding-top: 4px; }
.ex-dock .chip { gap: 8px; }
.ex-dock .hint { font-size: var(--text-caption); color: var(--scene-secondary); font-weight: 600; }

/* the way in: on the building's first screen (a filled compact button; area.css has the same rule where it exists) */
.btn-accent.compact { width: auto; padding: 9px 18px; font-size: var(--text-sub); }
#b-explore svg { color: var(--gold-light); }

@media (max-width: 699px) { .ex-status { padding: 6px 11px 7px; border-radius: 12px; max-width: 58%; } .ex-status b { font-size: 17px; } .ex-status span { font-size: 11px; } }
@media (max-height: 500px) and (orientation: landscape) { .ex-dock .hint { display: none; } .ex-status b { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .ex-stage .ex-glow.on, .ex-card .plan img, .ex-card { animation: none; }
  .ex-lines, .ex-layer, .ex-home { transition: none; }
}

/* ---------- 10 Nov 2026: the home's price, Ask, Share and Compare on its card; the comparison; counts and date in the legend ---------- */
.ex-card { max-height: calc(100% - 20px); overflow-y: auto; overscroll-behavior: contain; }
.ex-card .price { margin-top: 6px; font: 600 var(--text-sub)/1.3 var(--font-ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.ex-card .ask { margin-top: 8px; padding: 9px 10px; font-size: var(--text-footnote); width: 100%; box-sizing: border-box; }
.ex-card .acts { display: flex; gap: 8px; margin-top: 8px; }
.ex-card .acts > * { flex: 1; min-width: 0; padding: 8px 6px; font-size: var(--text-footnote); }
.ex-card .ask svg, .ex-card .acts svg { width: 16px; height: 16px; flex: none; }
.ex-card .ask span, .ex-card .acts span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-card .acts .tog[aria-pressed=true] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ex-card .acts .tog[aria-pressed=true] svg { color: var(--gold-light); }

/* a home chosen for the comparison: a gold ring on its marker and on its chip */
.ex-home.cmp, .ex-hchip.cmp { box-shadow: 0 0 0 2px var(--gold), 0 2px 8px rgba(0, 0, 0, .35); }
.ex-hchip.cmp { box-shadow: 0 0 0 2px var(--gold); }

/* the way into the comparison, top corner opposite the place's name */
.ex-cmpbtn {
  position: absolute; z-index: 6; inset-inline-end: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--gold); cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: 600 var(--text-footnote)/1 var(--font-ui); font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.ex-cmpbtn[hidden] { display: none; }
.ex-cmpbtn svg { width: 16px; height: 16px; color: var(--gold-light); }

/* the comparison */
.ex-cmp {
  position: absolute; z-index: 8; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100% - 20px));
  max-height: calc(100% - 20px); overflow: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 12px 14px 14px;
  background: var(--card); color: var(--ink); border-radius: var(--radius-card); box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.ex-cmp[hidden] { display: none; }
/* the comparison is a sheet over the picture: the markers and names under it are not drawn while it is open */
.ex-stage.cmp-open .ex-layer, .ex-stage.cmp-open .ex-lines, .ex-stage.cmp-open .ex-status, .ex-stage.cmp-open .ex-cmpbtn { visibility: hidden; }
.ex-cmp .chead { display: flex; align-items: center; gap: 10px; }
.ex-cmp .chead h3 { margin: 0; flex: 1; font: 600 24px/1.1 var(--font-display); }
.ex-cmp .chead .btn-outline { width: auto; padding: 7px 14px; font-size: var(--text-footnote); }
.ex-cmp .chead .x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.ex-cmp .chead .x:hover { background: var(--surface); }
.ex-cmp .chead .x svg { width: 16px; height: 16px; }
.ex-cmp .ctable { margin-top: 8px; }
.ex-cmp .r { display: grid; grid-template-columns: minmax(84px, .8fr) repeat(var(--n), minmax(0, 1fr)); gap: 0 10px; align-items: center; padding: 5px 0; border-top: var(--hairline-w, 1px) solid var(--hairline); }
.ex-cmp .r.top { border-top: 0; align-items: end; padding-top: 2px; }
.ex-cmp .r.go { padding-bottom: 0; padding-top: 8px; }
.ex-cmp .l { font-size: var(--text-caption); font-weight: 600; color: var(--ink-2); line-height: 1.25; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.ex-cmp .c { font-size: var(--text-sub); font-weight: 600; text-align: center; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.ex-cmp .who { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ex-cmp .who img { display: block; width: 100%; max-width: 116px; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 8px; -webkit-user-drag: none;
  background: radial-gradient(circle at 50% 45%, var(--scene-highlight) 0, var(--scene-canvas) 55%, var(--scene-edge) 100%); }
.ex-cmp .who img.mirrored { transform: scaleX(-1); }
.ex-cmp .who b { font: 600 22px/1 var(--font-display); }
.ex-cmp .go .btn-accent { width: 100%; padding: 8px 6px; font-size: var(--text-footnote); }
.ex-cmp .cnote { margin-top: 8px; font-size: var(--text-caption); color: var(--ink-2); text-align: center; }

/* a short word after an action (the link was copied) */
.ex-toast {
  position: absolute; z-index: 9; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent); font: 600 var(--text-footnote)/1.2 var(--font-ui); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); white-space: nowrap;
}
.ex-toast[hidden] { display: none; }

/* the legend: how many homes of each, and the date of the price sheet */
.ex-legend b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ex-legend .upd { font-weight: 500; }

@media (max-width: 699px) {
  .ex-cmp { padding: 10px 10px 12px; }
  .ex-cmp .r { grid-template-columns: minmax(78px, .8fr) repeat(var(--n), minmax(0, 1fr)); gap: 0 6px; }
  .ex-cmp .l { font-size: 11px; }
  .ex-cmp .c { font-size: var(--text-footnote); }
  .ex-cmp .who b { font-size: 18px; }
  .ex-cmp .who .tag { font-size: 11px; padding: 2px 5px; gap: 4px; max-width: 100%; white-space: normal; text-align: center; line-height: 1.15; }
  .ex-cmp .chead h3 { font-size: 20px; }
  .ex-cmpbtn { min-height: 34px; padding: 0 12px; }
  .ex-card.docked { max-height: calc(100% - 20px); }
}
