/* Beach Cities Living — canonical V7 market CSS, scoped.
   Source: 00_CANONICAL_V7_SOURCE.zip / public/assets/css/market-test.css
   Only change from canonical: every selector is scoped under .market-module,
   :root becomes .market-module, and the global html/body rules are removed
   so the module cannot alter site-wide variables, background or typography.
   No geometry, size, colour or typographic value inside the module is altered. */

.market-module{--navy:#002349;--gold:#C4952A;--gold-bright:#E0BC6B;--sand:#D6CEC0;--paper:#FCFAF5;
  --page:#F2EFE9;--taupe:#6B5D52;--muted:#8A7C6E;--green:#648B69;--orange:#B57C55}
.market-module{font:400 16px/normal Arial,Helvetica,sans-serif;color:#002349;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.market-module *{box-sizing:border-box}
.market-module button{font:inherit}
.market-module #market-data{max-width:820px;margin:0 auto}
.market-module .market-heading{max-width:760px;margin:0 2px 10px}
.market-module .section-eyebrow{margin:0 0 3px;font:9px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.17em;text-transform:uppercase;color:var(--muted)}
.market-module .market-heading h1{margin:0 0 4px;font:500 31px/1.04 Georgia,'Times New Roman',serif;color:var(--navy)}
.market-module .market-heading>p:last-child{max-width:730px;margin:5px 0 0;font:12px/1.38 Arial,Helvetica,sans-serif;color:var(--taupe)}
.market-module .wgs{margin:9px 2px 0;font-family:Arial,Helvetica,sans-serif}
.market-module .wgs *{box-sizing:border-box}
.market-module .wgs-card{background:var(--sand);border:1px solid rgba(150,110,30,.52);border-radius:8px;overflow:hidden;box-shadow:0 3px 14px rgba(0,0,0,.07)}
.market-module .wgs-ribbon{border-bottom:1px solid rgba(150,110,30,.5);overflow:hidden;white-space:nowrap;padding:4px 0 5px;background:var(--navy)}
.market-module .wgs-rlab{font-size:7.5px;letter-spacing:.2em;text-transform:uppercase;color:rgba(224,188,107,.84);text-align:center;padding:1px 0 2px}
.market-module .wgs-track{display:flex;justify-content:center;gap:0;overflow:hidden;padding-top:1px}
/* Homepage ticker tape. JS duplicates the seven live market items once so -50% is a seamless loop. */
.market-module:not(.market-module--single) .wgs-track[data-ticker-ready="1"]{display:inline-flex;justify-content:flex-start;width:max-content;min-width:max-content;overflow:visible;will-change:transform;animation:bcl-wgs-tick 34s linear infinite}
.market-module:not(.market-module--single) .wgs-track[data-ticker-ready="1"]:hover{animation-play-state:paused}
@keyframes bcl-wgs-tick{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
.market-module .wgs-ti{margin:0 8px;font:10.5px Georgia,'Times New Roman',serif;color:#E6D6BC;white-space:nowrap}
.market-module .wgs-ti .c{font-variant:small-caps;letter-spacing:.075em;color:var(--gold-bright);font-weight:600;margin-right:3px}
.market-module .wgs-ti .p{color:#fff;margin-right:2px}
.market-module .wgs-ti .u{color:#8FD3A8}
.market-module .wgs-ti .dn{color:#E7B98A}
.market-module .wgs-ti.pending{opacity:.34}
.market-module .wgs-bd{padding:9px 13px 10px}
.market-module .wgs-mast{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:2px solid var(--navy);padding-bottom:5px;margin-bottom:8px;gap:10px}
.market-module .wgs-mast .t{font:600 20px/1 Georgia,'Times New Roman',serif}
.market-module .wgs-mast .e{font:italic 10.5px Georgia,'Times New Roman',serif;color:var(--taupe);white-space:nowrap}
.market-module /* Orlando-like compact compare row: label + only-as-wide-as-needed segmented buttons */
.wgs-compare-row{display:flex;align-items:center;gap:12px;margin:0 0 8px;min-height:34px}
.market-module .wgs-lsw-lab{flex:0 0 auto;font:8.5px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.market-module .wgs-lsw{display:inline-flex;flex:0 0 auto;border:1px solid rgba(150,110,30,.5);border-radius:7px;overflow:hidden;background:var(--paper);box-shadow:inset 0 1px 3px rgba(0,16,32,.04)}
.market-module .wgs-lsw button{flex:0 0 auto;background:none;border:0;border-left:1px solid rgba(150,110,30,.28);padding:7px 10px;font:8.7px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.045em;text-transform:uppercase;color:var(--taupe);cursor:pointer;white-space:nowrap}
.market-module .wgs-lsw button:first-child{border-left:0}
.market-module .wgs-lsw button.on{background:var(--navy);color:var(--gold-bright);font-weight:700}
.market-module /* Market result buttons get the reading priority, .market-module not the controls */
.wgs-ledger{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:0 0 9px}
.market-module .wgs-ledger button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:48px;min-width:0;border:1px solid rgba(150,110,30,.36);border-radius:7px;padding:5px 3px;background:rgba(252,250,245,.82);font-family:Georgia,'Times New Roman',serif;color:var(--navy);text-align:center;cursor:pointer}
.market-module .wgs-ledger button .no{display:none}
.market-module .wgs-ledger button .nm{font-size:10.4px;font-weight:600;line-height:1.05;white-space:nowrap}
.market-module .wgs-ledger button .pr{font:8.7px/1.08 Arial,Helvetica,sans-serif;color:var(--taupe);white-space:nowrap}
.market-module .wgs-ledger button.on{background:var(--navy);border-color:var(--navy)}
.market-module .wgs-ledger button.on .nm{color:#fff}
.market-module .wgs-ledger button.on .pr{color:var(--gold-bright)}
.market-module .wgs-ledger button.pending{opacity:.44;cursor:default}
.market-module /* One integrated 2x2 information graphic */
.wgs-quads{display:grid;grid-template-columns:1fr 1fr;background:var(--paper);border:1px solid rgba(150,110,30,.43);border-radius:8px;overflow:hidden}
.market-module .wgs-quad{min-width:0;min-height:208px;padding:14px 16px 12px;position:relative;background:var(--paper);display:flex;flex-direction:column}
.market-module .wgs-quad:nth-child(odd){border-right:1px solid rgba(150,110,30,.30)}
.market-module .wgs-quad:nth-child(-n+2){border-bottom:1px solid rgba(150,110,30,.30)}
.market-module .quad-head{display:block;margin:0 0 9px}
.market-module .quad-head h3{margin:0;font:9.8px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.17em;text-transform:uppercase;font-weight:500;color:var(--taupe)}
.market-module .wgs-note{margin:9px 0 0;font:12.1px/1.35 Georgia,'Times New Roman',serif;color:var(--taupe)}
.market-module /* Price is a compact vertical composition: number/change, .market-module chart, .market-module note */
.price-layout{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:0}
.market-module .price-number strong{display:block;font:500 38px/.95 Georgia,'Times New Roman',serif;color:var(--navy);white-space:nowrap}
.market-module .wgs-pd{display:block;margin-top:4px;font:600 9.5px/1.2 Arial,Helvetica,sans-serif}
.market-module .wgs-pd.up{color:var(--green)}
.market-module .wgs-pd.dn{color:var(--orange)}
.market-module .wgs-viz{display:block;width:100%;height:auto;overflow:visible}
.market-module .price-spark{width:78%;height:56px;margin:4px auto 0;align-self:center}
.market-module /* Demand fills its cell and preserves line-on-top-of-bars */
.demand-chart{width:92%;height:121px;margin:-3px auto 0;max-width:none}
.market-module .chart-key{position:absolute;top:14px;right:16px;display:flex;gap:9px;font:7px/1 Arial,Helvetica,sans-serif;text-transform:uppercase;letter-spacing:.065em;color:var(--muted)}
.market-module .chart-key span:before{content:'';display:inline-block;width:10px;height:5px;margin-right:4px;vertical-align:1px}
.market-module .key-bars:before{background:rgba(0,35,73,.18)}
.market-module .key-line:before{height:2px!important;background:var(--gold)!important;vertical-align:2px!important}
.market-module /* Pace is deliberately small but readable, .market-module like Orlando */
.pace-layout{display:flex;align-items:center;justify-content:center;margin:2px 0 0}
.market-module .wgs-dialwrap{width:205px;height:116px;position:relative}
.market-module .wgs-dialctr{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:19px}
.market-module .wgs-dialctr .v{font:600 31px/1 Georgia,'Times New Roman',serif}
.market-module .wgs-dialctr .l{font:7.2px/1 Arial,Helvetica,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:var(--taupe);margin-top:2px}
.market-module .pace-copy{display:none}
.market-module /* Supply gauge has a bounded graphic width rather than stretching to the cell edges */
.supply-layout{display:flex;align-items:baseline;gap:6px;margin:3px 0 7px}
.market-module .supply-number{font:500 40px/.9 Georgia,'Times New Roman',serif}
.market-module .supply-unit{font:8.5px/1 Arial,Helvetica,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.market-module .wgs-seg{display:flex;width:88%;height:9px;border-radius:5px;overflow:hidden;position:relative;margin:3px 0 0}
.market-module .wgs-seg i{display:block;height:100%}
.market-module .wgs-seg .s1{width:61.1%;background:rgba(196,149,42,.85)}
.market-module .wgs-seg .s2{width:11.1%;background:rgba(196,149,42,.42)}
.market-module .wgs-seg .s3{width:27.8%;background:rgba(0,35,73,.16)}
.market-module .wgs-seg .pin{position:absolute;top:-3px;width:2px;height:15px;background:var(--navy);left:0;transition:left .6s cubic-bezier(.22,1,.36,1)}
.market-module .wgs-seglab{display:flex;justify-content:space-between;width:88%;margin-top:4px}
.market-module .wgs-seglab span{font:7.4px/1 Arial,Helvetica,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.market-module .wgs-foot{font:7.5px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#5A4E46;margin-top:7px;text-align:center}
.market-module .market-readable{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.market-module .chart-grid{stroke:rgba(0,35,73,.08);stroke-width:1}
.market-module .chart-bar{fill:rgba(0,35,73,.18)}
.market-module .chart-line{fill:none;stroke:var(--gold);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.market-module .chart-dot{fill:var(--gold)}
.market-module .chart-label{font:7px Arial,Helvetica,sans-serif;fill:rgba(0,35,73,.50)}
.market-module .spark-fill{fill:rgba(196,149,42,.10)}
.market-module .spark-line{fill:none;stroke:var(--gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.market-module .dial-track{fill:none;stroke:rgba(0,35,73,.10);stroke-width:13;stroke-linecap:round}
.market-module .dial-value{fill:none;stroke:var(--gold);stroke-width:13;stroke-linecap:round}
.market-module .dial-label{font:8px Arial,Helvetica,sans-serif;fill:rgba(0,35,73,.50)}
@media(max-width:860px){
.market-module #market-data{max-width:720px}
.market-module .wgs-track{justify-content:flex-start}
.market-module .wgs-ti.pending{display:none}
.market-module .wgs-compare-row{align-items:flex-start;flex-direction:column;gap:4px}
.market-module .wgs-lsw{max-width:100%}
.market-module .wgs-lsw button{padding:7px 7px;font-size:8px;white-space:normal}
.market-module .wgs-ledger{grid-template-columns:repeat(4,1fr)}
.market-module .wgs-ledger button.pending:nth-of-type(n+6){display:none}
.market-module .wgs-ledger button .nm{font-size:10.5px}
.market-module .wgs-ledger button .pr{font-size:9px}
.market-module .wgs-quads{grid-template-columns:1fr}
.market-module .wgs-quad{min-height:200px;border-right:0!important;border-bottom:1px solid rgba(150,110,30,.30)}
.market-module .wgs-quad:last-child{border-bottom:0}
.market-module .price-spark{width:70%;max-width:330px}
.market-module .demand-chart{width:86%;max-width:430px}
.market-module .wgs-seg, .market-module .wgs-seglab{width:82%}
}
@media(max-width:470px){
.market-module .wgs-bd{padding:8px}
.market-module .wgs-mast .t{font-size:17px}
.market-module .wgs-mast .e{font-size:9px}
.market-module .market-heading h1{font-size:27px}
.market-module .wgs-lsw{display:grid;grid-template-columns:1fr 1fr;width:100%}
.market-module .wgs-lsw button{border-top:1px solid rgba(150,110,30,.28);border-left:0;font-size:8.4px}
.market-module .wgs-lsw button:nth-child(-n+2){border-top:0}
.market-module .wgs-lsw button:nth-child(even){border-left:1px solid rgba(150,110,30,.28)}
.market-module .wgs-ledger{grid-template-columns:1fr}
.market-module .wgs-ledger button.pending{display:none}
.market-module .wgs-ledger button{height:45px}
.market-module .wgs-ledger button .nm{font-size:11px}
.market-module .wgs-ledger button .pr{font-size:9.5px}
.market-module .wgs-quad{min-height:205px;padding:13px 14px 11px}
.market-module .price-number strong{font-size:35px}
.market-module .price-spark{width:82%;height:58px}
.market-module .demand-chart{width:96%;height:120px}
.market-module .wgs-seg, .market-module .wgs-seglab{width:100%}
.market-module .wgs-note{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
.market-module .wgs-seg .pin{transition:none!important}
}

@media(prefers-reduced-motion:reduce){.market-module .wgs-seg .pin{transition:none!important}.market-module:not(.market-module--single) .wgs-track[data-ticker-ready="1"]{animation:none!important;transform:none!important}}
