/* citypage3.css (2026-11-17): v3 of the Old Market city page (operator order 2026-11-17).
   Feature carousels (picture or video left, text right, endless, 560 px tall), history row, 360 viewer pad without up/down, map header bar, hover-play video cards, three more animated service tiles.
   Everything honours prefers-reduced-motion. No WebGL. */
body.ws-mod{--cp3-red:#b3261e}

/* ---------- feature carousel ---------- */
body.ws-mod .cp3-fc{position:relative;margin:44px auto 30px;max-width:1370px;border-radius:24px}
body.ws-mod .cp3-fc:focus-visible{outline:3px solid #F5B800;outline-offset:6px}
body.ws-mod .cp3-vp{overflow:hidden;border:3px solid var(--navy);border-radius:24px;background:#0B1F3A;box-shadow:0 26px 50px -30px rgba(11,31,58,.75);transition:border-color .25s ease,box-shadow .25s ease}
body.ws-mod .cp3-fc:hover .cp3-vp,body.ws-mod .cp3-fc:focus-within .cp3-vp{border-color:var(--cp3-red);box-shadow:0 26px 50px -26px rgba(179,38,30,.55)}
body.ws-mod .cp3-tk{display:flex;will-change:transform;transition:transform .8s cubic-bezier(.7,0,.2,1)}
body.ws-mod .cp3-tk.nt{transition:none}
body.ws-mod .cp3-slide{flex:0 0 100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:560px}
body.ws-mod .cp3-media{position:relative;overflow:hidden;background:#06101f;min-height:560px}
body.ws-mod .cp3-media>img,body.ws-mod .cp3-media>svg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
body.ws-mod .cp3-media .cp-vid{position:absolute;inset:0;margin:0;border:0;border-radius:0;aspect-ratio:auto}
body.ws-mod .cp3-media .cp-vidbtn{right:auto;left:22px;bottom:22px}
body.ws-mod .cp3-copy{position:relative;display:flex;flex-direction:column;justify-content:center;padding:58px 104px 66px 54px;background:linear-gradient(160deg,#0B1F3A 0%,#12335f 100%);border-left:6px solid #F5B800;color:#fff}
body.ws-mod .cp3-fc .cp3-copy .cp3-count{display:block;margin:0 0 14px;color:#F5B800!important;font-size:1.02rem;font-weight:800;letter-spacing:.02em}
body.ws-mod .cp3-fc .cp3-copy h3{margin:0 0 18px;color:#fff!important;font-size:clamp(1.9rem,3vw,2.7rem);line-height:1.1;font-weight:800;text-align:left}
body.ws-mod .cp3-fc .cp3-copy p{margin:0 0 14px;max-width:58ch;color:#e6edf8!important;font-size:1.14rem;line-height:1.65}
body.ws-mod .cp3-fc .cp3-copy a{color:#FFD54A!important;font-weight:700;text-decoration:underline;text-underline-offset:4px}
body.ws-mod .cp3-fc .cp3-copy a:hover{color:#fff!important}
body.ws-mod .cp3-fc .cp3-copy p.cp3-more{margin:8px 0 0;font-size:1.1rem}
body.ws-mod .cp3-slide.on .cp3-copy>*{animation:cp3Rise .7s cubic-bezier(.2,.7,.2,1) both}
body.ws-mod .cp3-slide.on .cp3-copy>:nth-child(1){animation-delay:.15s}body.ws-mod .cp3-slide.on .cp3-copy>:nth-child(2){animation-delay:.25s}body.ws-mod .cp3-slide.on .cp3-copy>:nth-child(3){animation-delay:.35s}
body.ws-mod .cp3-slide.on .cp3-copy>:nth-child(4){animation-delay:.45s}body.ws-mod .cp3-slide.on .cp3-copy>:nth-child(5){animation-delay:.55s}
body.ws-mod .cp3-slide.on .cp3-media>img{animation:cp3Zoom 9s ease-out both}
@keyframes cp3Rise{from{opacity:0;transform:translateX(26px)}to{opacity:1;transform:none}}
@keyframes cp3Zoom{from{transform:scale(1.09)}to{transform:scale(1)}}

/* animated side controls */
body.ws-mod .cp3-ctl{position:absolute;top:50%;z-index:6;width:64px;height:64px;margin-top:-32px;border-radius:50%;border:3px solid #0B1F3A;background:#F5B800;color:#0B1F3A;display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 5px 0 #b98900,0 14px 26px -10px rgba(0,0,0,.6);transition:transform .2s ease,background .2s ease}
body.ws-mod .cp3-ctl.prev{left:18px}body.ws-mod .cp3-ctl.next{right:18px}
body.ws-mod .cp3-ctl svg:not(.rg){width:28px;height:28px;position:relative;z-index:1}
body.ws-mod .cp3-ctl::after{content:"";position:absolute;inset:-3px;border-radius:50%;border:3px solid #F5B800;animation:cp3Ping 2.4s ease-out infinite;pointer-events:none}
body.ws-mod .cp3-ctl .rg{position:absolute;inset:-12px;width:calc(100% + 24px);height:calc(100% + 24px);fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-dasharray:182;stroke-dashoffset:182;transform:rotate(-90deg);transition:stroke-dashoffset .55s ease;pointer-events:none;filter:drop-shadow(0 0 4px rgba(0,0,0,.6))}
body.ws-mod .cp3-ctl:hover,body.ws-mod .cp3-ctl:focus-visible{background:#FFD54A;outline:none;transform:scale(1.1)}
body.ws-mod .cp3-ctl:hover .rg,body.ws-mod .cp3-ctl:focus-visible .rg{stroke-dashoffset:0}
body.ws-mod .cp3-ctl:active{transform:scale(.92)}
body.ws-mod .cp3-ctl.prev .ch{animation:cp3NudgeL 1.7s ease-in-out infinite}
body.ws-mod .cp3-ctl.next .ch{animation:cp3NudgeR 1.7s ease-in-out infinite}
@keyframes cp3NudgeL{0%,100%{transform:translateX(0)}50%{transform:translateX(-3px)}}
@keyframes cp3NudgeR{0%,100%{transform:translateX(0)}50%{transform:translateX(3px)}}
@keyframes cp3Ping{0%{transform:scale(1);opacity:.85}70%,100%{transform:scale(1.55);opacity:0}}
body.ws-mod .cp3-dots{position:absolute;right:112px;bottom:24px;z-index:5;display:flex;gap:8px;align-items:center}
body.ws-mod .cp3-dot{width:11px;height:11px;border-radius:99px;border:0;padding:0;background:rgba(255,255,255,.38);cursor:pointer;transition:width .35s ease,background .35s ease}
body.ws-mod .cp3-dot:hover,body.ws-mod .cp3-dot:focus-visible{background:#fff;outline:none}
body.ws-mod .cp3-dot.on{width:38px;background:#F5B800}

/* statistics card */
body.ws-mod .cp3-stslide .cp3-copy{padding-top:38px;padding-bottom:58px}
body.ws-mod .cp3-fc .cp3-stslide .cp3-copy p{font-size:1.04rem;line-height:1.55;max-width:none}
body.ws-mod .cp3-fc .cp3-stslide .cp3-copy h3{margin-bottom:12px}
body.ws-mod .cp3-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;list-style:none;margin:4px 0 8px;padding:0}
body.ws-mod .cp3-stats li{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:baseline;padding:10px 14px;border:2px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.05);transition:border-color .25s}
body.ws-mod .cp3-stats li:hover{border-color:var(--cp3-red)}
body.ws-mod .cp3-fc .cp3-stats b{grid-row:1;color:#F5B800!important;font-size:2.2rem;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
body.ws-mod .cp3-fc .cp3-stats span{grid-row:1;color:#fff!important;font-size:1rem;font-weight:700}
body.ws-mod .cp3-fc .cp3-stats small{grid-column:1/-1;color:#c7d5ea!important;font-size:.88rem;line-height:1.35}
body.ws-mod .cp3-fc .cp3-copy p.cp3-src{margin:2px 0 0;color:#9fb4d1!important;font-size:.85rem;line-height:1.4}
body.ws-mod .cp3-stsvg .dist{animation:cp3Glow 2.8s ease-in-out infinite}
body.ws-mod .cp3-stsvg .scan{animation:cp3Dash 4s linear infinite}
body.ws-mod .cp3-stsvg .pw{transform-box:fill-box;transform-origin:center;animation:cp3Wave 2s ease-out infinite}
body.ws-mod .cp3-stsvg .arr{animation:cp3Dash 2s linear infinite}
body.ws-mod .cp3-stsvg .rvl{stroke-dasharray:14 10;animation:cp3Dash 6s linear infinite}
@keyframes cp3Glow{0%,100%{opacity:.8}50%{opacity:1}}
@keyframes cp3Dash{to{stroke-dashoffset:-64}}
@keyframes cp3Wave{0%{transform:scale(1);opacity:.9}100%{transform:scale(4.5);opacity:0}}

/* ---------- history row ---------- */
body.ws-mod .cp3-hist{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,3vw,40px);align-items:stretch;margin:34px 0 8px}
body.ws-mod .cp3-histtxt{display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,3vw,44px);background:#fff;border:2px solid var(--navy);border-left:8px solid #F5B800;border-radius:16px;transition:border-color .25s}
body.ws-mod .cp3-histtxt:hover{border-color:var(--cp3-red);border-left-color:#F5B800}
body.ws-mod .cp3-histtxt h3{margin:0 0 14px;color:var(--navy)!important;font-size:clamp(1.7rem,2.6vw,2.3rem);line-height:1.15;font-weight:800;text-align:left}
body.ws-mod .cp3-histtxt p{margin:0 0 14px;font-size:1.14rem;line-height:1.65;max-width:62ch}
body.ws-mod .cp3-histtxt p:last-child{margin-bottom:0}
body.ws-mod .cp3-histvid{aspect-ratio:auto;min-height:420px;border-radius:16px;margin:0}

/* ---------- 360 viewer: left / reset / right only ---------- */
body.ws-mod .cp3-pad{display:flex;gap:10px;align-items:center;padding:12px;border-radius:22px;background:radial-gradient(circle at 50% 50%,#243b50,#101c28);box-shadow:inset 0 0 0 3px #0a1219,0 12px 24px -14px rgba(0,0,0,.6)}
body.ws-mod .cp3-pad button{display:flex;align-items:center;justify-content:center;gap:9px;min-width:104px;height:62px;padding:0 16px;border:0;border-radius:14px;background:linear-gradient(180deg,#3b5670,#22364a);color:#f3f7fa;font:800 1rem 'Source Sans 3',Arial,sans-serif;cursor:pointer;box-shadow:0 4px 0 #0a1219;touch-action:none;transition:transform .08s,box-shadow .08s,background .15s}
body.ws-mod .cp3-pad button:hover{background:linear-gradient(180deg,#4a6a88,#2b455d)}
body.ws-mod .cp3-pad button.is-down,body.ws-mod .cp3-pad button:active{transform:translateY(3px);box-shadow:0 1px 0 #0a1219}
body.ws-mod .cp3-pad button:focus-visible{outline:3px solid #F5B800;outline-offset:2px}
body.ws-mod .cp3-pad svg{width:1.3rem;height:1.3rem;fill:currentColor}
body.ws-mod .cp3-pad .c{min-width:84px;border-radius:50%;width:62px;padding:0;background:#0e1822;box-shadow:none;font-size:.85rem}

/* ---------- map header bar ---------- */
body.ws-mod .cp3-maptop{background:var(--navy);padding:18px max(2.5%,16px)}
body.ws-mod .cp3-maptop h2{margin:0;color:#fff!important;font-size:clamp(1.3rem,2.4vw,1.85rem);line-height:1.2;font-weight:800;text-align:left}

/* ---------- hover-play video cards ---------- */
body.ws-mod .cp3-vc{min-height:400px;background:#0B1F3A;transition:transform .3s,box-shadow .3s,border-color .25s}
body.ws-mod .cp3-vc:hover,body.ws-mod .cp3-vc:focus-within{border-color:var(--cp3-red)}
body.ws-mod .cp3-vc video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;animation:none;transform:none}
body.ws-mod .cp3-vplay{position:absolute;right:14px;bottom:14px;z-index:3;width:50px;height:50px;border-radius:50%;border:2px solid #fff;background:rgba(11,31,58,.72);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0;animation:cpPing3 2.4s ease-out infinite;transition:background .2s,color .2s}
body.ws-mod .cp3-vplay svg{width:24px;height:24px;fill:currentColor}
body.ws-mod .cp3-vplay:hover,body.ws-mod .cp3-vplay:focus-visible{background:var(--gold,#F5B800);color:#0B1F3A;outline:none}
body.ws-mod .cp3-vplay .pa{display:none}
body.ws-mod .cp3-vc.playing .cp3-vplay .pl{display:none}
body.ws-mod .cp3-vc.playing .cp3-vplay .pa{display:block}
body.ws-mod .cp3-vc.playing .cp3-vplay{animation:none}

/* ---------- animated service tiles ---------- */
body.ws-mod .cp3-asimg{background:#0B1F3A}
body.ws-mod .cp3-asvg{display:block;width:100%;height:210px}
body.ws-mod .cp3-asvg .gf{animation:cp3Gauge 4.4s ease-in-out infinite}
body.ws-mod .cp3-asvg .needle{animation:cp3Need 4.4s ease-in-out infinite}
body.ws-mod .cp3-asvg .b1,body.ws-mod .cp3-asvg .b2{transform-box:fill-box;transform-origin:left center;animation:cp3Fill 4.4s ease-in-out infinite}
body.ws-mod .cp3-asvg .b2{animation-delay:.35s}
body.ws-mod .cp3-asvg .shield{transform-box:fill-box;transform-origin:center;animation:cp3Pulse 2.4s ease-in-out infinite}
body.ws-mod .cp3-asvg .scan{animation:cp3Scan 2.8s linear infinite}
body.ws-mod .cp3-asvg .ln{animation:cp3Draw 4.8s ease-in-out infinite}
body.ws-mod .cp3-asvg .bars rect{transform-box:fill-box;transform-origin:bottom;animation:cp3Grow 4.8s ease-out infinite}
body.ws-mod .cp3-asvg .bars rect:nth-child(2){animation-delay:.15s}body.ws-mod .cp3-asvg .bars rect:nth-child(3){animation-delay:.3s}body.ws-mod .cp3-asvg .bars rect:nth-child(4){animation-delay:.45s}body.ws-mod .cp3-asvg .bars rect:nth-child(5){animation-delay:.6s}
body.ws-mod .cp3-asvg circle[class^="d"]{transform-box:fill-box;transform-origin:center;animation:cp3Dot 4.8s ease-out infinite}
body.ws-mod .cp3-asvg .d2{animation-delay:.5s}body.ws-mod .cp3-asvg .d3{animation-delay:1s}body.ws-mod .cp3-asvg .d4{animation-delay:1.5s}body.ws-mod .cp3-asvg .d5{animation-delay:2s}
@keyframes cp3Gauge{0%{stroke-dashoffset:100}55%,85%{stroke-dashoffset:12}100%{stroke-dashoffset:100}}
@keyframes cp3Need{0%{transform:rotate(-88deg)}55%,85%{transform:rotate(62deg)}100%{transform:rotate(-88deg)}}
@keyframes cp3Fill{0%{transform:scaleX(0)}55%,85%{transform:scaleX(1)}100%{transform:scaleX(0)}}
@keyframes cp3Pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
@keyframes cp3Scan{0%{transform:translateY(0);opacity:.2}50%{opacity:1}100%{transform:translateY(120px);opacity:.2}}
@keyframes cp3Draw{0%{stroke-dashoffset:100}60%,90%{stroke-dashoffset:0}100%{stroke-dashoffset:100}}
@keyframes cp3Grow{0%{transform:scaleY(0)}40%,90%{transform:scaleY(1)}100%{transform:scaleY(0)}}
@keyframes cp3Dot{0%,10%{transform:scale(0);opacity:0}30%{transform:scale(1.5);opacity:1}45%,90%{transform:scale(1);opacity:1}100%{transform:scale(0);opacity:0}}

/* ---------- small screens ---------- */
@media(max-width:1000px){
 body.ws-mod .cp3-hist{grid-template-columns:1fr}body.ws-mod .cp3-histvid{min-height:300px}
}
@media(max-width:900px){
 body.ws-mod .cp3-tk{align-items:flex-start}body.ws-mod .cp3-vp{transition:height .4s ease,border-color .25s ease,box-shadow .25s ease}
 body.ws-mod .cp3-slide{grid-template-columns:1fr;min-height:0}
 body.ws-mod .cp3-media{min-height:300px;height:300px}
 body.ws-mod .cp3-copy{padding:28px 22px 64px;border-left:0;border-top:6px solid #F5B800}
 body.ws-mod .cp3-ctl{top:150px;width:52px;height:52px;margin-top:-26px}
 body.ws-mod .cp3-ctl.prev{left:10px}body.ws-mod .cp3-ctl.next{right:10px}
 body.ws-mod .cp3-dots{right:auto;left:50%;transform:translateX(-50%);bottom:22px}
 body.ws-mod .cp3-stats{grid-template-columns:1fr}
 body.ws-mod .cp3-pad button{min-width:84px}
}
@media(max-width:600px){body.ws-mod .cp3-vc{min-height:340px}}
@media(prefers-reduced-motion:reduce){
 body.ws-mod .cp3-tk{transition:none}
 body.ws-mod .cp3-slide.on .cp3-copy>*,body.ws-mod .cp3-slide.on .cp3-media>img,body.ws-mod .cp3-ctl::after,body.ws-mod .cp3-ctl .ch,body.ws-mod .cp3-stsvg *,body.ws-mod .cp3-asvg *{animation:none!important}
 body.ws-mod .cp3-asvg .gf{stroke-dashoffset:12}body.ws-mod .cp3-asvg .ln{stroke-dashoffset:0}body.ws-mod .cp3-asvg .needle{transform:rotate(62deg)}
}
