/* UBN Group 8.4 — property view and UBN Cinema */
.ubn84-detail-page{background:#fbfcfd;color:#14132f;padding-top:20px}.ubn84-detail-page .container{max-width:1480px}
.ubn84-detail-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.95fr);gap:30px;align-items:start}
.ubn84-gallery.gallery{display:block!important;margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
.ubn84-main-photo{height:clamp(300px,32vw,535px);overflow:hidden;position:relative;border-radius:22px;background:#e5ebf3;box-shadow:0 10px 27px #10284a20}
.ubn84-main-image{display:block!important;width:100%!important;height:100%!important;object-fit:cover;cursor:zoom-in;border:0!important;border-radius:0!important;max-width:none!important;max-height:none!important}
.ubn84-lightbox-source{display:none!important}
.ubn84-main-tag,.ubn84-expand,.ubn84-photo-bottom{position:absolute;z-index:2}
.ubn84-main-tag{top:16px;left:16px;padding:9px 18px;border-radius:12px;background:linear-gradient(135deg,#156be3,#1467da);color:#fff;font-weight:800;box-shadow:0 5px 18px #12284780}
.ubn84-expand{right:16px;top:16px;border:0;border-radius:50%;height:46px;width:46px;background:#111925b8;color:#fff;cursor:pointer;font-size:25px}
.ubn84-prev,.ubn84-next{position:absolute;top:50%;transform:translateY(-50%);z-index:2;border:0;border-radius:50%;background:#fff;color:#162336;font-size:36px;width:48px;height:48px;cursor:pointer;box-shadow:0 4px 15px #0004}
.ubn84-prev{left:14px}.ubn84-next{right:14px}
.ubn84-photo-bottom{bottom:14px;left:14px;right:14px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.ubn84-photo-bottom>*{display:inline-flex;align-items:center;background:#121923d9;border:0;border-radius:24px;color:white;padding:9px 13px;font:700 13px inherit;text-decoration:none;cursor:pointer}
.ubn84-photo-bottom a{background:linear-gradient(120deg,#1569e0,#135fca)}
.ubn84-thumbnails{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 5px;scrollbar-width:thin}
.ubn84-thumb{padding:0;flex:0 0 110px;height:76px;border:3px solid transparent;border-radius:12px;background:#eef2f7;overflow:hidden;cursor:pointer}.ubn84-thumb.active{border-color:#1565d5}.ubn84-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ubn84-right h1{font-size:clamp(24px,2.1vw,36px);line-height:1.2;margin:0!important;color:#151330}
.ubn84-title-actions{display:flex;align-items:flex-start;gap:9px}.ubn84-title-actions h1{flex:1}.ubn84-title-actions button,.ubn84-title-actions>a{border:1px solid #e8edf5;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;background:white;color:#2162bc;cursor:pointer;text-decoration:none;font-size:20px;flex-shrink:0}
.ubn84-address{color:#265ca8;font-weight:700;margin:12px 0}.ubn84-idline{display:flex;gap:12px;flex-wrap:wrap;color:#4e5968;font-size:13px;margin-bottom:14px}.ubn84-idline span{padding:7px 14px;background:#f1f4f8;border-radius:50px}
.ubn84-price-block{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:18px;border:1px solid #e3eaf3;background:#f6f8fb;padding:12px;margin:10px 0 18px}
.ubn84-price-block strong{background:linear-gradient(100deg,#1968d8,#1464d3);border-radius:13px;color:#fff;padding:12px 24px;font-size:clamp(22px,2vw,32px)}.ubn84-price-block span{color:#2b69c0;font-weight:700}
.ubn84-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-block:1px solid #e1e8f1;padding:14px 0;margin-bottom:14px}
.ubn84-facts span{font-size:14px;font-weight:700;text-align:center;white-space:nowrap}.ubn84-facts b{color:#1967d4;font-size:20px}
.ubn84-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.ubn84-specs div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #e1e8f1;padding:9px 0}.ubn84-specs dt{color:#65617a;font-size:13px}.ubn84-specs dd{font-weight:700;font-size:13px;margin:0;text-align:right}
.ubn84-contact-actions{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0 0}.ubn84-contact-actions a{border:0;border-radius:12px;padding:14px 16px;text-decoration:none;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex:1 1 auto;min-width:120px;text-align:center}
.ubn84-whatsapp{background:#13bd68;color:#fff!important}.ubn84-phone{background:linear-gradient(120deg,#156ae1,#1464d4);color:#fff!important}.ubn84-book{background:#f5f7fa;color:#1b55a6!important;border:1px solid #d2dceb!important}
.ubn84-lower{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:20px;margin-top:25px;align-items:start}.ubn84-main-content{min-width:0}
.ubn84-tabs{display:flex;overflow-x:auto;gap:4px;background:#f0f3f8;border-radius:15px;padding:5px;margin-bottom:12px}.ubn84-tabs a{flex:1 0 auto;text-align:center;text-decoration:none;padding:12px 15px;border-radius:11px;color:#202c3e;font-weight:700}.ubn84-tabs a:first-child{background:linear-gradient(120deg,#156ae2,#1465d6);color:#fff}
.ubn84-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ubn84-panel{background:#fff;border:1px solid #e3e9f2;border-radius:19px;box-shadow:0 6px 22px #11294a0a;padding:20px;margin-bottom:16px;min-width:0;scroll-margin-top:20px}.ubn84-panel h2{font-size:21px;margin:0 0 14px;color:#162840}.ubn84-panel p{line-height:1.75}
.ubn84-viewing{position:sticky;top:20px}.ubn84-viewing input,.ubn84-viewing textarea{width:100%;min-width:0}.ubn84-viewing .btn{width:100%}
.ubn84-panel-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.ubn84-panel-heading span{font-size:13px;color:#2165c4;font-weight:800}
.ubn84-video .property-video{margin:0;background:#090b19;border-radius:17px;overflow:hidden}.ubn84-video .property-video video{width:100%;display:block;aspect-ratio:16/9;object-fit:contain;max-height:70vh}
.ubn84-video .video-embed iframe{width:100%;aspect-ratio:16/9;border:0}
.ubn84-cinema{position:relative;isolation:isolate;background:#090a1a;overflow:hidden;border-radius:17px}
.ubn84-cinema video{width:100%;display:block;max-height:70vh;aspect-ratio:16/9;object-fit:contain;cursor:pointer}
.ubn84-cinema-controls{display:flex;gap:9px;flex-wrap:wrap;align-items:center;padding:11px;background:linear-gradient(110deg,#101926,#0e2749);color:#fff}
.ubn84-cinema-controls button,.ubn84-cinema-controls select{border:1px solid #ffffff38;color:#fff;background:#ffffff19;border-radius:9px;min-height:33px;padding:6px 9px;cursor:pointer}
.ubn84-cinema-controls option{color:#111}.ubn84-cinema-controls input[type="range"]{width:84px;accent-color:#2a7beb}
.ubn84-cinema-timeline{flex:1 1 180px!important;min-width:110px;width:auto!important}.ubn84-cinema-time{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ubn84-cinema:fullscreen{display:flex;flex-direction:column;justify-content:center}.ubn84-cinema:fullscreen video{max-height:calc(100vh - 70px);flex:1}
.ubn84-detail-page button:focus-visible,.ubn84-detail-page a:focus-visible{outline:3px solid #5293ef;outline-offset:3px}
@media(max-width:1100px){.ubn84-detail-hero{grid-template-columns:1fr 1fr;gap:18px}.ubn84-facts{grid-template-columns:1fr 1fr;row-gap:12px}.ubn84-lower{grid-template-columns:1fr 270px}.ubn84-info-grid{grid-template-columns:1fr}}
@media(max-width:800px){.ubn84-detail-hero,.ubn84-lower{grid-template-columns:1fr}.ubn84-main-photo{height:clamp(250px,58vw,480px)}.ubn84-viewing{position:static}.ubn84-info-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.ubn84-detail-page{padding-top:10px}.ubn84-main-photo{height:280px;border-radius:15px}.ubn84-thumb{flex-basis:85px;height:62px}.ubn84-info-grid{grid-template-columns:1fr}.ubn84-facts{grid-template-columns:repeat(2,1fr)}.ubn84-specs{grid-template-columns:1fr}.ubn84-contact-actions a{font-size:13px}.ubn84-cinema-controls{gap:5px}.ubn84-cinema-controls input[type="range"]{width:65px}}
@media(prefers-reduced-motion:reduce){.ubn84-detail-page *{scroll-behavior:auto!important}}


/* UBN Group 8.5: screenshot-aligned property detail layout */
body:has(.ubn84-detail-page){background:#fbfcfd}
.ubn84-detail-page{background:linear-gradient(180deg,#fafaff,#fafbfd 44%,#fff);padding-top:12px}
.ubn84-detail-page .container{max-width:1536px;padding-left:clamp(18px,2.7vw,42px);padding-right:clamp(18px,2.7vw,42px)}
.ubn84-detail-hero{grid-template-columns:minmax(0,1.42fr) minmax(0,.99fr);gap:34px}
.ubn84-main-photo{height:clamp(345px,27.2vw,440px);border-radius:17px;box-shadow:0 9px 20px #1227451f}
.ubn84-main-tag{background:linear-gradient(120deg,#1e73ea,#1466d8);top:13px;left:15px;font-size:15px}
.ubn84-photo-bottom>*{background:rgba(10, 14, 20,.82);padding:10px 15px}
.ubn84-photo-bottom a{background:linear-gradient(120deg,#2376eb,#1465d6)}
.ubn84-thumb{flex:1 0 0;min-width:68px;max-width:165px;height:83px;border-width:2px;border-radius:10px}
.ubn84-thumbnails{gap:8px;padding-top:8px}
.ubn84-right h1{font-weight:850;letter-spacing:-.035em;font-size:clamp(25px,2vw,33px)}
.ubn84-address{margin:5px 0 11px;font-size:15px}
.ubn84-idline{margin-bottom:11px}
.ubn84-price-block{margin-top:11px;margin-bottom:15px;min-height:72px;border-radius:13px}
.ubn84-price-block strong{font-size:clamp(24px,2.1vw,34px);white-space:nowrap}
.ubn85-price-helper{font-size:13px!important}
.ubn84-facts{padding:14px 0;gap:8px}.ubn84-facts span{font-size:13px}.ubn84-facts b{font-size:20px}
.ubn84-specs{gap:0 22px}.ubn84-specs div{padding:7px 0}
.ubn84-contact-actions{gap:9px;margin-top:18px}.ubn84-contact-actions a{min-width:0;padding:12px 10px;font-size:13px}
.ubn84-lower{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:22px;margin-top:20px}
.ubn84-tabs{margin-bottom:0;border-radius:14px 14px 0 0}.ubn84-tabs a{padding:11px 12px;font-size:14px}
.ubn84-panel{border-radius:15px;padding:18px;box-shadow:0 5px 16px #1431590c}
.ubn85-description-video{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:20px;align-items:start;margin-top:0;border-radius:0 0 16px 16px}
.ubn85-description-body p{font-size:14px;line-height:1.68;overflow-wrap:anywhere;margin-top:10px}
.ubn85-fact-chips{display:grid;gap:9px;margin-top:14px;font-size:13px;font-weight:650;color:#203047}.ubn85-fact-chips span:first-letter{color:#1663cf}
.ubn85-inline-cinema{min-width:0;scroll-margin-top:18px}.ubn85-inline-cinema .ubn84-panel-heading{margin-bottom:10px}
.ubn85-inline-cinema .ubn84-panel-heading h2{font-size:17px;margin:0}
.ubn85-inline-cinema .ubn84-cinema-controls{gap:5px;padding:8px}.ubn85-inline-cinema .ubn84-cinema-controls button,.ubn85-inline-cinema .ubn84-cinema-controls select{font-size:11px;padding:5px}
.ubn85-inline-cinema .ubn84-cinema-controls input[type=range]{width:48px}.ubn85-inline-cinema .ubn84-cinema-timeline{min-width:90px}
.ubn85-related{margin:0;position:sticky;top:15px}.ubn85-related .ubn84-panel-heading{margin-bottom:14px}.ubn85-related .ubn84-panel-heading h2{margin:0;font-size:20px}
.ubn85-related .ubn84-panel-heading a{font-size:13px;font-weight:750;color:#1967d4;text-decoration:none}
.ubn85-related-card{display:grid;grid-template-columns:126px minmax(0,1fr);gap:12px;align-items:center;border-top:1px solid #ecf1f7;padding:13px 0;text-decoration:none;color:#131f30}
.ubn85-related-card img{width:126px;height:92px;border-radius:11px;object-fit:cover}
.ubn85-related-card span{display:grid;gap:7px;min-width:0}.ubn85-related-card b{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.ubn85-related-card small{color:#556172}.ubn85-related-card strong{color:#1a68d6;font-size:19px}
.ubn85-viewing-inline form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.ubn85-viewing-inline form label{margin:0}.ubn85-viewing-inline form .ubn85-note{grid-column:1/4}.ubn85-viewing-inline form button{min-height:48px}.ubn85-agent{margin-bottom:0}
.ubn85-map-link{display:inline-flex;padding:9px 14px;border:1px solid #d4deeb;border-radius:10px;text-decoration:none;font-weight:750;color:#1663ce}
@media(max-width:1140px){.ubn84-detail-hero{gap:18px}.ubn84-lower{grid-template-columns:minmax(0,1fr) 280px;gap:15px}.ubn85-related-card{grid-template-columns:90px 1fr}.ubn85-related-card img{width:90px;height:78px}.ubn85-description-video{grid-template-columns:1fr}}
@media(max-width:830px){.ubn84-detail-hero,.ubn84-lower{grid-template-columns:1fr}.ubn84-main-photo{height:clamp(270px,55vw,460px)}.ubn85-related{position:static}.ubn85-related-card{grid-template-columns:120px 1fr}.ubn85-related-card img{width:120px;height:88px}.ubn85-description-video{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.ubn84-detail-page .container{padding-inline:14px}.ubn84-main-photo{height:clamp(240px,66vw,380px)}.ubn84-thumbnails{gap:5px}.ubn84-thumb{min-width:70px;height:64px}.ubn84-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.ubn84-contact-actions a{flex:1 1 42%}.ubn85-description-video{grid-template-columns:1fr}.ubn85-viewing-inline form{grid-template-columns:repeat(2,minmax(0,1fr))}.ubn85-viewing-inline form .ubn85-note{grid-column:1/-1}.ubn85-viewing-inline form button{grid-column:1/-1}.ubn84-tabs a{font-size:12px;padding:10px 12px}.ubn84-price-block{flex-wrap:wrap}.ubn85-related{margin-bottom:80px}}

/* Keep listing photos, details and contact controls readable on phones. */
@media (max-width:760px) {
  body:has(.ubn84-detail-page) {
    padding-bottom:calc(76px + env(safe-area-inset-bottom));
  }
  body:has(.ubn84-detail-page) :is(.mobile-bottom-nav,.wa-float,.ubn-helper) {
    display:none!important;
  }
  .ubn84-detail-page > .container {
    width:calc(100% - 24px); padding-inline:0;
  }
  .ubn84-detail-page .ubn84-detail-hero,
  .ubn84-detail-page .ubn84-lower {
    grid-template-columns:minmax(0,1fr); gap:14px;
  }
  .ubn84-detail-page :is(.ubn84-left,.ubn84-right) { min-width:0; }
  .ubn84-detail-page .ubn84-main-photo {
    --listing-photo-height:clamp(220px,65vw,420px);
    height:auto; border-radius:15px; background:#1a2330;
  }
  .ubn84-detail-page .ubn84-main-image {
    height:var(--listing-photo-height)!important;
    object-fit:contain!important; touch-action:pan-y pinch-zoom;
  }
  .ubn84-main-photo :is(.ubn84-prev,.ubn84-next) {
    top:calc(var(--listing-photo-height) / 2); width:44px; height:44px;
    display:grid; place-items:center; padding:0; line-height:1;
    background:#17202de8; color:#fff;
  }
  .ubn84-main-photo .ubn84-prev { left:8px; }
  .ubn84-main-photo .ubn84-next { right:8px; }
  .ubn84-main-photo .ubn84-expand { top:8px; right:8px; }
  .ubn84-main-photo .ubn84-main-tag { top:8px; left:8px; padding:7px 10px; font-size:13px; }
  .ubn84-main-photo .ubn84-photo-bottom {
    position:static; padding:5px 7px; gap:5px; justify-content:space-between;
  }
  .ubn84-main-photo .ubn84-photo-bottom > * {
    min-height:44px; padding:6px 8px; border-radius:9px; font-size:13px;
    font-weight:700; white-space:normal;
  }
  .ubn84-main-photo .ubn84-photo-bottom > span { gap:3px; background:none; }
  .ubn84-thumbnails .ubn84-thumb { flex:0 0 68px; min-width:0; height:54px; }
  .ubn84-thumbnails { overscroll-behavior-x:contain; }

  .ubn84-title-actions { display:grid; grid-template-columns:repeat(3,44px) minmax(0,1fr); gap:7px; }
  .ubn84-title-actions h1 { grid-column:1/-1; overflow-wrap:anywhere; }
  .ubn84-title-actions :is(button,a) { width:44px; height:44px; }
  .ubn84-address { overflow-wrap:anywhere; }
  .ubn84-right .ubn84-price-block { display:block; min-height:0; padding:10px; }
  .ubn84-right .ubn84-price-block strong {
    display:block; width:100%; text-align:center; padding:9px 12px;
    font-size:clamp(22px,7vw,32px); overflow-wrap:anywhere;
  }
  .ubn84-right .ubn85-price-helper { display:none; }
  .ubn84-right .ubn84-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ubn84-right .ubn84-facts span { white-space:normal; }
  .ubn84-detail-page .ubn84-specs { grid-template-columns:minmax(0,1fr); }
  .ubn84-detail-page .ubn84-specs dd { overflow-wrap:anywhere; }

  .ubn84-right .ubn84-contact-actions {
    position:fixed; z-index:56; inset:auto 0 0; margin:0;
    gap:6px; flex-wrap:nowrap; padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top:1px solid #d6e0ed; background:#fff; box-shadow:0 -4px 15px #11254216;
  }
  .ubn84-right .ubn84-contact-actions a {
    flex:1 1 0; min-width:0; min-height:48px; padding:5px;
    font-size:clamp(12px,3.5vw,14px); line-height:1.2;
  }
  .ubn84-right .ubn84-contact-actions .ubn84-whatsapp { background:#087844; }
  body:is(.photo-lightbox-open,.ubn-theater-open,:has(.ubn85-viewing-inline :is(input,textarea):focus)) .ubn84-contact-actions { visibility:hidden; }

  .ubn84-detail-page .ubn84-tabs { flex-wrap:wrap; overflow:visible; gap:5px; }
  .ubn84-detail-page .ubn84-tabs a {
    display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:7px 9px;
  }
  .ubn84-detail-page .ubn85-description-video { grid-template-columns:minmax(0,1fr); }
  .ubn84-detail-page .ubn84-panel { padding:13px; }
  .ubn84-detail-page .ubn84-panel p { font-size:15px; overflow-wrap:anywhere; }
  .ubn84-detail-page .ubn85-viewing-inline form { grid-template-columns:minmax(0,1fr); }
  .ubn84-detail-page .ubn85-viewing-inline :is(input,textarea) { min-width:0; min-height:44px; font-size:16px; }
  .ubn84-detail-page .ubn85-related { margin-bottom:12px; }
}

.ubn-listing-feature { margin-top:16px; }
.ubn-listing-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:end; }
.ubn-listing-form .btn { grid-column:1/-1; justify-self:start; min-height:44px; }
.ubn-listing-verified { color:#126344; font-weight:700; }
.ubn-listing-call-icon { margin-inline-end:5px; font-size:1.2em; line-height:1; }
.ubn-listing-dialog {
  width:min(430px, calc(100% - 24px)); padding:22px; border:0; border-radius:16px;
  color:#142338; box-shadow:0 16px 56px #10182455;
}
.ubn-listing-dialog::backdrop { background:#0b1625a8; }
.ubn-listing-dialog form { display:flex; justify-content:flex-end; }
.ubn-listing-dialog .btn { min-height:44px; }
.ubn-listing-comparison { position:relative; aspect-ratio:16/10; background:#1a2330; border-radius:12px; overflow:hidden; }
.ubn-listing-comparison img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.ubn-listing-comparison .ubn-listing-after { clip-path:inset(0 0 0 var(--comparison,50%)); background:#1a2330; }
.ubn-listing-comparison span { position:absolute; bottom:8px; left:8px; padding:5px 7px; border-radius:6px; color:#fff; background:#121b28; font-size:12px; }
.ubn-listing-comparison span:last-child { left:auto; right:8px; }
[data-listing-comparison] input[type="range"] { width:100%; min-height:44px; }
.ubn-listing-nearby { display:grid; gap:8px; padding-inline-start:20px; }
@media(max-width:600px) {
  .ubn-listing-form { grid-template-columns:minmax(0,1fr); }
  .ubn-listing-form :is(input,button) { min-height:44px; font-size:16px; }
  .ubn-listing-form .btn { width:100%; }
}
