/* UBN Group: screen-reference design. Public UI only; all properties and controls are dynamic. */
:root{--ubn-ref-purple:#1969da;--ubn-ref-deep:#181b42;--ubn-ref-ink:#14162f;--ubn-ref-muted:#69718f}
body:has(.ubn-ref-header){background:#f8fafc;color:var(--ubn-ref-ink)}
body:has(.ubn-ref-header) .container{width:min(1480px,calc(100% - 48px));max-width:1480px}
.ubn-ref-header{position:relative;z-index:25;background:linear-gradient(100deg,#171936,#1c304d 63%,#101a3b);color:white;padding:0 0 11px}
.ubn-ref-top{border-bottom:1px solid #ffffff20}
.ubn-ref-top-inner{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:74px}
.ubn-ref-top a{color:#fff;text-decoration:none}
.ubn-ref-brand{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:205px}
.ubn-ref-brand img{width:56px;height:56px;object-fit:contain}
.ubn-ref-brand span{display:flex;flex-direction:column;gap:3px}
.ubn-ref-brand b{font-size:25px;font-weight:850;line-height:1}
.ubn-ref-brand small{font-size:9px;letter-spacing:.065em;color:#bfc7dd}
.ubn-ref-address{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;line-height:1.5;white-space:nowrap;border-left:1px solid #ffffff24;padding-left:15px}
.ubn-ref-phone{font-size:18px;font-weight:850;white-space:nowrap}
.ubn-ref-social{display:flex;align-items:center;gap:8px}
.ubn-ref-social a{height:34px;min-width:34px;border-radius:9px;background:linear-gradient(135deg,#156be3,#e522a2);display:grid;place-items:center;font-size:14px;font-weight:850}
.ubn-ref-social a:first-child{background:#09ad57}.ubn-ref-social a:nth-child(3){background:#e9272a}.ubn-ref-social a.ubn-ref-social-call{background:#174582;color:#fff;font-size:19px}.ubn-ref-social a.ubn-ref-social-call:focus-visible{outline:2px solid #174582;outline-offset:2px}
.ubn-ref-lang{padding:0!important;min-width:65px}.ubn-ref-lang span{display:none}
.ubn-ref-lang select{background:#eff3f8;color:#113568;border:1px solid #7ba4dd;border-radius:10px;min-width:65px;min-height:44px;font-weight:800;max-width:80px;cursor:pointer}
.ubn-ref-lang select:focus-visible{outline:2px solid #3463a4;outline-offset:2px}
.ubn-ref-lang option{color:#111;background:#fff}
.ubn-ref-post{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #67a0f1;border-radius:13px;padding:12px 20px;background:#fff;color:#1761c8!important;font-weight:800;white-space:nowrap;box-shadow:0 0 18px #4e91ef55}
.ubn-ref-login{border:1px solid #8fa3bf;border-radius:13px;padding:12px 21px;white-space:nowrap;font-weight:800}
.ubn-ref-nav{display:flex;gap:7px;align-items:center;justify-content:space-around;background:#f6f8fb;border-radius:28px;min-height:46px;margin-top:10px;padding:5px 10px;box-shadow:0 8px 15px #0c0a2440;overflow-x:auto;scrollbar-width:thin}
.ubn-ref-nav a{text-decoration:none;color:#161936;font-size:14px;font-weight:800;white-space:nowrap;display:inline-flex;align-items:center;padding:9px 13px;border-radius:14px}
.ubn-ref-nav a:hover,.ubn-ref-nav a:focus-visible{background:#e8edf4;color:#2066c8}
.ubn-ref-nav a:nth-last-child(2){border:1px solid #f9b94c;color:#694009;background:#fff6da}
.ubn-ref-nav a:last-child{color:#203757}
/* hero / flag video remains running, reduced motion support from existing theme */
html body .ubn-purple-home-hero{min-height:430px!important;padding:25px 0 130px!important;background-position:center 48%!important}
html body .ubn-purple-home-hero .ubn-intro{max-width:850px!important}
html body .ubn-purple-home-hero .ubn-intro h1{font-size:clamp(33px,4vw,54px)!important;font-weight:850;line-height:1.05;letter-spacing:-.04em;max-width:600px}
html body .ubn-purple-home-hero .ubn-intro h1 span{display:inline-block;background:linear-gradient(110deg,#216cd5,#256aca);padding:4px 14px 9px;border-radius:17px;color:#fff!important;transform:skew(-5deg);font-style:italic;box-shadow:0 9px 20px #0f41864f}
html body .ubn-purple-home-hero .ubn-kicker{font-size:11px;letter-spacing:.13em;opacity:.8}
html body .ubn-purple-home-hero .ubn-description{font-size:16px;color:white;max-width:650px}
html body .ubn-purple-home-hero .ubn-stock-blue{display:none!important}
.ubn-ref-types{font-weight:650;color:white;font-size:17px;text-shadow:0 2px 7px #13112d}
.ubn-ref-benefits{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}
.ubn-ref-benefits span{padding:10px 14px;background:linear-gradient(145deg,#597caecc,#1d2b59cc);border-radius:16px;font-size:12px;font-weight:700;color:#fff;border:1px solid #ffffff2f}
html body .ubn-purple-home-search{margin-top:-118px!important;padding:0 0 20px!important;position:relative;z-index:10}
html body .ubn-purple-home-search .ubn-search{padding:12px 20px 16px;border-radius:25px;border:1px solid #e9eef5;box-shadow:0 18px 45px #2062bf2b}
html body .ubn-purple-home-search .ubn-search-tabs{display:inline-flex;vertical-align:top;max-width:100%;margin:0 0 12px!important}
html body .ubn-purple-home-search .ubn-search-tabs fieldset{border:0;gap:0}
html body .ubn-purple-home-search .ubn-city{display:none}
html body .ubn-purple-home-search .ubn-ref-type-tabs{display:flex;gap:0;border:1px solid #e4eaf3;border-radius:18px;overflow-x:auto;background:#f9fbfd;justify-content:space-around;padding:4px;margin:0 0 11px}
.ubn-ref-type-tabs a{display:flex;flex:1 0 auto;align-items:center;justify-content:center;text-align:center;padding:12px 11px;color:#233043;font-size:13px;font-weight:800;text-decoration:none;border-radius:12px;white-space:nowrap}
.ubn-ref-type-tabs a:hover,.ubn-ref-type-tabs a:focus-visible{background:#e8edf4;color:#2063c0}
.ubn-ref-type-tabs a:first-child{background:linear-gradient(120deg,#156ce5,#1d63c4);color:#fff}
html body .ubn-purple-home-search .ubn-search-fields{display:grid!important;grid-template-columns:1fr 1fr 1fr 1fr 1.1fr!important;gap:8px!important;padding:0!important}
html body .ubn-purple-home-search .ubn-search-fields label{background:white!important;border:1px solid #dae2ee!important;color:#191d45!important;box-shadow:0 4px 10px #0a12400d;padding:7px 12px!important;font-size:11px;font-weight:750}
html body .ubn-purple-home-search .ubn-search-fields label.ubn-query{grid-column:auto!important}
html body .ubn-purple-home-search .ubn-search-fields input,html body .ubn-purple-home-search .ubn-search-fields select{font-weight:750;font-size:14px!important}
html body .ubn-purple-home-search .ubn-search-fields button{min-height:56px;font-size:13px!important;font-weight:850;border-radius:12px!important}
/* Offer grid: left advanced filter, three cards and graceful fallback to 2/1 columns */
html body .ubn-ref-offers{padding:8px 0 55px!important;background:#f8fafc}
.ubn-ref-offers-grid{display:grid;grid-template-columns:285px minmax(0,1fr);gap:22px;align-items:start}
.ubn-ref-filter{position:sticky;top:15px;background:#fff;border:1px solid #e5ebf4;border-radius:17px;padding:20px;box-shadow:0 5px 20px #142b4c0b}
.ubn-ref-filter form{display:flex;flex-direction:column;gap:10px}
.ubn-ref-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:12px;border-bottom:1px solid #eaeff6}
.ubn-ref-filter-heading h2{font-size:19px;color:#151936;margin:0}
.ubn-ref-filter-heading a{font-size:12px;color:#1e64c6;text-decoration:none}
.ubn-ref-filter label{display:block;font-size:12px;font-weight:750;color:#253448;margin:0}
.ubn-ref-filter input,.ubn-ref-filter select{display:block;width:100%;margin-top:5px;min-height:40px;border:1px solid #d7e0ec;border-radius:10px;padding:7px 10px;background:#fcfdfe;color:#1a1b39}
.ubn-ref-filter-button{background:linear-gradient(105deg,#1769dc,#1b69d7);border:0;color:#fff;border-radius:10px;min-height:44px;font-weight:800;margin-top:5px;cursor:pointer}
.ubn-ref-offers-main{min-width:0}
.ubn-ref-offers-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px}
.ubn-ref-offers-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:14px}
.ubn-ref-offers-heading h2{font-size:clamp(24px,2.2vw,33px);font-weight:850;letter-spacing:-.04em;color:#131630;margin:0}
.ubn-ref-offers-heading a{font-size:14px;text-decoration:none;color:#1f63c1;font-weight:800}
.ubn-ref-all{border:1px solid #e1e8f2;padding:8px 12px;background:#fff;border-radius:12px;white-space:nowrap}
html body .ubn-ref-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
html body .ubn-ref-card-grid .property-market-card{min-width:0;border-radius:16px;overflow:hidden;border:1px solid #e1e8f1;background:#fff;box-shadow:0 9px 20px #112a4c12}
html body .ubn-ref-card-grid .property-market-media{aspect-ratio:1.65;overflow:hidden}
html body .ubn-ref-card-grid .property-market-body{padding:14px}
html body .ubn-ref-card-grid .property-market-price-row .price{color:#1e64c6;font-weight:850;font-size:23px}
html body .ubn-ref-card-grid .property-market-title{font-size:15px;font-weight:800}
.ubn-ref-more{text-align:center;margin-top:20px}
.ubn-ref-more a{display:inline-block;background:#fff;border:1px solid #d8e1ee;border-radius:11px;padding:12px 24px;text-decoration:none;color:#2368c8;font-weight:850}
html body .ubn-mobile-bottom-nav{display:none!important} /* existing layout_end mobile nav is the single source */
@media(max-width:1250px){.ubn-ref-top-inner{gap:10px}.ubn-ref-address{display:none}.ubn-ref-nav a{font-size:12px;padding:9px 8px}.ubn-ref-offers-grid{grid-template-columns:235px minmax(0,1fr)}html body .ubn-ref-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:900px){.ubn-ref-phone{font-size:14px}.ubn-ref-brand{min-width:150px}.ubn-ref-brand b{font-size:20px}.ubn-ref-top-inner{flex-wrap:wrap;min-height:60px;padding:10px 0}.ubn-ref-social{display:none}.ubn-ref-nav{justify-content:flex-start}.ubn-ref-refsearch{display:none}html body .ubn-purple-home-search .ubn-search-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body .ubn-purple-home-search .ubn-search-fields label.ubn-query{grid-column:span 2!important}}
@media(max-width:720px){body:has(.ubn-ref-header) .container{width:calc(100% - 24px)}.ubn-ref-header{padding-bottom:7px}.ubn-ref-phone{display:none}.ubn-ref-top-inner{gap:8px}.ubn-ref-brand img{width:39px;height:39px}.ubn-ref-brand b{font-size:19px}.ubn-ref-brand small{font-size:7px}.ubn-ref-post{padding:9px 10px;font-size:11px}.ubn-ref-login{padding:9px 10px;font-size:11px}.ubn-ref-lang select{font-size:12px}.ubn-ref-nav{min-height:43px;max-width:none!important;width:calc(100% - 24px)!important;border-radius:13px}.ubn-ref-nav a{font-size:12px}html body .ubn-purple-home-hero{min-height:425px!important;padding:28px 0 120px!important}html body .ubn-purple-home-hero .ubn-intro h1{font-size:clamp(31px,8vw,47px)!important}html body .ubn-purple-home-hero .ubn-description{font-size:13px}.ubn-ref-types{font-size:13px}.ubn-ref-benefits{gap:6px}.ubn-ref-benefits span{font-size:10px;padding:7px 9px}html body .ubn-purple-home-search{margin-top:-92px!important}html body .ubn-purple-home-search .ubn-search{padding:12px;border-radius:20px}html body .ubn-purple-home-search .ubn-ref-type-tabs{justify-content:flex-start}html body .ubn-purple-home-search .ubn-ref-type-tabs a{font-size:12px;padding:10px 15px}html body .ubn-purple-home-search .ubn-search-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body .ubn-purple-home-search .ubn-search-fields label.ubn-query,html body .ubn-purple-home-search .ubn-search-fields button{grid-column:span 2!important}.ubn-ref-offers-grid{display:block}.ubn-ref-filter{position:static;margin:0 0 18px;padding:12px}.ubn-ref-filter form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ubn-ref-filter-heading,.ubn-ref-filter-button{grid-column:1/-1}.ubn-ref-offers-heading{align-items:flex-start}.ubn-ref-all{display:none}html body .ubn-ref-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){.ubn-ref-brand{min-width:0}.ubn-ref-brand small{display:none}.ubn-ref-post{order:5;width:100%;flex:1}.ubn-ref-top-inner{justify-content:space-between}html body .ubn-ref-card-grid{grid-template-columns:minmax(0,1fr)!important}.ubn-ref-offers-heading>div{gap:4px}.ubn-ref-offers-heading a{font-size:12px}}
@media(prefers-reduced-motion:reduce){.ubn-ref-header *,.ubn-ref-offers *{transition:none!important}}
