/* UBN Group 8.7 — premium coherent design / small-screen improvements */
:root{--ubn87-violet:#1769dc;--ubn87-dark:#111d2f;--ubn87-ink:#142031;--ubn87-line:#e3eaf3;--ubn87-shadow:0 14px 38px rgba(22, 57, 106,.09)}
html{scroll-behavior:smooth}body{color:var(--ubn87-ink)}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid #5a98f0!important;outline-offset:3px}
body:not(.crm-shell) .section-head h2{letter-spacing:-.035em}
.ubn-ref-header{box-shadow:0 7px 30px #0c254830}
.ubn-ref-nav-inner a,.ubn-ref-top-inner a{transition:background .16s,transform .16s}
.ubn-ref-nav-inner a:hover{background:#ecf0f6;border-radius:11px}
.ubn-ref-card-grid :is(.property-market-card,.ubn-ref-card,.card),.ubn-ref-filter{box-shadow:var(--ubn87-shadow)!important;border-color:#e4eaf3!important}
.ubn-ref-card-grid :is(.property-market-card,.ubn-ref-card,.card){transition:transform .18s ease,box-shadow .18s ease}
.ubn-ref-card-grid :is(.property-market-card,.ubn-ref-card,.card):hover{transform:translateY(-4px);box-shadow:0 18px 44px #143f7c26!important}
.ubn84-detail-page .container{max-width:1550px}
.ubn84-detail-hero{gap:clamp(18px,2vw,32px)}
.ubn84-main-photo{box-shadow:0 14px 40px #13274322}
.ubn84-thumb{transition:transform .15s,border-color .15s}.ubn84-thumb:hover{transform:translateY(-2px)}
.ubn84-right h1{letter-spacing:-.045em;line-height:1.12}
.ubn84-price-block{box-shadow:0 8px 24px #316dc110}
.ubn84-contact-actions a{min-height:49px;transition:transform .18s,filter .18s}.ubn84-contact-actions a:hover{transform:translateY(-2px);filter:brightness(1.07)}
.ubn84-tabs{scrollbar-width:none;position:relative}.ubn84-tabs::-webkit-scrollbar{display:none}
.ubn84-tabs a:first-child{background:transparent;color:#202c3e}.ubn84-tabs a.is-active,.ubn84-tabs a:first-child:not(:has(~ .is-active)){background:linear-gradient(115deg,#2074ea,#1465d6)!important;color:#fff!important}
.ubn84-panel,.ubn85-related{border-color:var(--ubn87-line);box-shadow:var(--ubn87-shadow)}
.ubn85-description-video{gap:clamp(15px,1.8vw,28px)}
.ubn85-description-body{min-width:0}
.ubn84-video-surface{width:100%;min-width:0}
/* Hide old legacy UI within the new custom Cinema only. */
.ubn84-video-surface .ubn-video-controls,.ubn84-video-surface .ubn-video-center,.ubn84-video-surface .ubn-video-seek{display:none!important}
.ubn87-cinema{position:relative;isolation:isolate;background:#070917;border-radius:16px;overflow:hidden;box-shadow:0 14px 30px #050f1e27;max-width:100%}
.ubn87-cinema video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;max-height:440px;min-height:220px;background:#080913;cursor:pointer}
.ubn87-cinema-brand{position:absolute;top:12px;left:12px;background:#101a27c9;border:1px solid #ffffff35;padding:7px 11px;border-radius:999px;color:#fff;font-size:10px;font-weight:850;letter-spacing:.08em;pointer-events:none}
.ubn87-cinema-overlay{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:72px;height:72px;border-radius:50%;border:3px solid #4f92ef;background:#0e2546cf;box-shadow:0 0 0 8px #236cd236;color:#fff;font-size:30px;cursor:pointer}
.ubn87-cinema-overlay[hidden]{display:none}
.ubn87-cinema-controls{background:linear-gradient(150deg,#0d1724,#102138);padding:10px 14px 12px;color:#fff}
.ubn87-cinema-controls .ubn87-seek{display:block;width:100%;height:5px;margin:2px 0 12px;accent-color:#2c7ceb;cursor:pointer}
.ubn87-control-row{display:flex;gap:7px;align-items:center;min-width:0;flex-wrap:wrap}
.ubn87-control-row button,.ubn87-control-row select{border:0;border-radius:9px;min-width:32px;min-height:34px;padding:5px 8px;background:#ffffff16;color:#fff;font-size:12px;font-weight:700;cursor:pointer}
.ubn87-control-row button:hover,.ubn87-control-row select:hover{background:#2376eb}
.ubn87-control-row select{max-width:72px}.ubn87-control-row select option{color:#111d2f;background:#fff}
.ubn87-control-row input[type=range]{accent-color:#3782ec;width:60px;min-width:38px}
.ubn87-time{font-variant-numeric:tabular-nums;font-size:11px;white-space:nowrap}.ubn87-control-spacer{flex:1}
.ubn87-cinema:fullscreen{display:flex;flex-direction:column;justify-content:center;background:#080813}.ubn87-cinema:fullscreen video{max-height:calc(100vh - 100px);height:100%;flex:1}
.ubn87-cinema:fullscreen .ubn87-cinema-controls{flex:0 0 auto}
.ubn85-related-card{transition:background .2s}.ubn85-related-card:hover{background:#f6f8fb}
@media(min-width:1250px){.ubn84-lower{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:900px){.ubn87-cinema video{min-height:160px}.ubn87-cinema-overlay{width:58px;height:58px}}
@media(max-width:650px){.ubn84-detail-hero,.ubn84-lower{gap:12px}.ubn84-title-actions{flex-wrap:wrap}.ubn84-right h1{font-size:clamp(22px,6vw,30px)}.ubn84-contact-actions a{flex-basis:46%}.ubn87-cinema-controls{padding:8px 10px}.ubn87-control-row{gap:4px}.ubn87-control-row input[data-volume]{display:none}.ubn87-time{font-size:10px}.ubn87-cinema video{min-height:170px}.ubn84-panel{padding:15px}.ubn84-tabs a{flex:0 0 auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ubn-ref-card-grid :is(.property-market-card,.ubn-ref-card,.card),.ubn84-thumb,.ubn84-contact-actions a{transition:none!important;transform:none!important}}
