/* Urbiax 2026-08-07 conversion + mobile visual refresh.
   Final override layer: intentionally loaded after the legacy theme stack. */
:root{
  --ubx-ink:#101828;
  --ubx-muted:#667085;
  --ubx-line:#e4e7ec;
  --ubx-bg:#f6f8fb;
  --ubx-card:#ffffff;
  --ubx-blue:#2563eb;
  --ubx-blue2:#0ea5e9;
  --ubx-green:#16a34a;
  --ubx-orange:#ea580c;
  --ubx-purple:#7c3aed;
  --ubx-shadow:0 14px 40px rgba(16,24,40,.08);
}

body.urbiax-modern-home-v1,
body.ubx-add-page,
body.ubx-auth-page{
  background:linear-gradient(180deg,#f8fafc 0,#f5f7fb 42%,#f8fafc 100%) !important;
  color:var(--ubx-ink);
}

/* ---------- Home / browse ---------- */
body.urbiax-modern-home-v1 .navbar{
  background:rgba(255,255,255,.92) !important;
  border-bottom:1px solid rgba(16,24,40,.07) !important;
  box-shadow:0 8px 28px rgba(16,24,40,.04) !important;
  backdrop-filter:blur(14px);
}
body.urbiax-modern-home-v1 .navbar .inner{max-width:1240px !important;}
body.urbiax-modern-home-v1 .brand-main{letter-spacing:-.055em !important;}
body.urbiax-modern-home-v1 .nav-actions .btn{border-radius:12px !important;}

body.urbiax-modern-home-v1 .ubx-home-hero-v6{
  position:relative;
  overflow:hidden;
  padding:30px 32px !important;
  border:1px solid rgba(37,99,235,.12) !important;
  border-radius:26px !important;
  background:
    radial-gradient(circle at 86% 18%,rgba(14,165,233,.16),transparent 30%),
    radial-gradient(circle at 70% 110%,rgba(124,58,237,.10),transparent 34%),
    linear-gradient(135deg,#ffffff 0%,#f5f9ff 52%,#eef7ff 100%) !important;
  box-shadow:0 24px 60px rgba(37,99,235,.10) !important;
}
body.urbiax-modern-home-v1 .ubx-home-hero-v6:after{
  content:"";
  position:absolute;right:-55px;top:-75px;width:240px;height:240px;border-radius:50%;
  border:34px solid rgba(255,255,255,.55);pointer-events:none;
}
body.urbiax-modern-home-v1 .ubx-home-hero-copy{position:relative;z-index:1;}
body.urbiax-modern-home-v1 .ubx-home-hero-copy h1{
  max-width:680px !important;
  font-size:clamp(38px,5vw,66px) !important;
  line-height:.98 !important;
  letter-spacing:-.06em !important;
  color:#0f172a !important;
}
body.urbiax-modern-home-v1 .ubx-home-hero-copy p{
  max-width:650px;color:#526078 !important;font-size:16px !important;line-height:1.55 !important;
}
.ubx-value-pills{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;position:relative;z-index:1}
.ubx-value-pills span{
  display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border-radius:999px;
  background:rgba(255,255,255,.80);border:1px solid rgba(37,99,235,.12);
  color:#344054;font-size:12px;font-weight:850;box-shadow:0 5px 14px rgba(16,24,40,.04)
}
.ubx-value-pills span:before{content:"✓";margin-right:6px;color:var(--ubx-green);font-weight:1000}
.ubx-guest-primary-post{
  display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:16px;padding:0 20px;
  border-radius:14px;text-decoration:none !important;color:#fff !important;font-size:15px;font-weight:950;
  background:linear-gradient(135deg,var(--ubx-blue),var(--ubx-blue2));
  box-shadow:0 14px 30px rgba(37,99,235,.25);position:relative;z-index:1
}
.ubx-guest-primary-post:hover{transform:translateY(-1px)}

body.urbiax-modern-home-v1 .mode-tabs-row{margin-top:18px !important;gap:10px !important;}
body.urbiax-modern-home-v1 .primary-mode-tabs{
  padding:5px !important;border-radius:16px !important;background:#fff !important;
  border:1px solid var(--ubx-line) !important;box-shadow:0 8px 22px rgba(16,24,40,.05) !important;
}
body.urbiax-modern-home-v1 .mode-tab{border-radius:11px !important;font-weight:900 !important;}

body.urbiax-modern-home-v1 .ubx-local-seo-strip{
  margin-top:12px !important;border-radius:18px !important;border:1px solid var(--ubx-line) !important;
  background:rgba(255,255,255,.82) !important;box-shadow:0 8px 22px rgba(16,24,40,.035) !important;
}
body.urbiax-modern-home-v1 .ubx-local-seo-links a{border-radius:999px !important;}

body.urbiax-modern-home-v1 .filters-accordion{
  border:1px solid var(--ubx-line) !important;border-radius:18px !important;background:#fff !important;
  box-shadow:0 10px 30px rgba(16,24,40,.055) !important;overflow:hidden;
}
body.urbiax-modern-home-v1 .toolbar .input{border-radius:12px !important;border-color:#d7dde7 !important;background:#fbfcfe !important;}
body.urbiax-modern-home-v1 .toolbar .input:focus{background:#fff !important;border-color:#84adff !important;box-shadow:0 0 0 4px rgba(37,99,235,.10) !important;}
body.urbiax-modern-home-v1 .t-search{border-radius:12px !important;background:linear-gradient(135deg,#2563eb,#0284c7) !important;color:#fff !important;}

body.urbiax-modern-home-v1 #listingsGrid .card-shell{
  overflow:hidden !important;border:1px solid rgba(16,24,40,.09) !important;border-radius:20px !important;
  background:#fff !important;box-shadow:0 10px 28px rgba(16,24,40,.065) !important;
  transition:transform .18s ease,box-shadow .18s ease !important;
}
body.urbiax-modern-home-v1 #listingsGrid .card-shell:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(16,24,40,.10) !important;}
body.urbiax-modern-home-v1 #listingsGrid .thumb{background:#eef2f6 !important;}
body.urbiax-modern-home-v1 #listingsGrid .thumb img{transition:transform .35s ease;}
body.urbiax-modern-home-v1 #listingsGrid .card-shell:hover .thumb img{transform:scale(1.025)}
body.urbiax-modern-home-v1 #listingsGrid .listing-title{letter-spacing:-.025em !important;}
body.urbiax-modern-home-v1 #listingsGrid .listing-tag,
body.urbiax-modern-home-v1 #listingsGrid .ptype-pill{border-radius:999px !important;}
body.urbiax-modern-home-v1 #listingsGrid .modern-card-actions a{border-radius:12px !important;}

/* Persistent mobile conversion dock */
.ubx-mobile-action-dock{display:none}

@media (max-width:680px){
  body.urbiax-modern-home-v1{padding-bottom:82px !important;}
  body.urbiax-modern-home-v1 .container{padding-left:10px !important;padding-right:10px !important;}
  body.urbiax-modern-home-v1 .ubx-mobile-superhero{
    margin:8px 0 10px !important;padding:16px !important;border-radius:22px !important;
    background:
      radial-gradient(circle at 100% 0,rgba(56,189,248,.22),transparent 34%),
      linear-gradient(145deg,#ffffff 0%,#f2f7ff 62%,#eef6ff 100%) !important;
    border:1px solid rgba(37,99,235,.12) !important;
    box-shadow:0 16px 36px rgba(37,99,235,.10) !important;
  }
  body.urbiax-modern-home-v1 .ubx-mobile-superhero h2{
    margin:12px 0 5px !important;font-size:29px !important;line-height:1.00 !important;letter-spacing:-.055em !important;color:#0f172a !important;
  }
  body.urbiax-modern-home-v1 .ubx-mobile-superhero p{margin:0 !important;font-size:13px !important;line-height:1.45 !important;color:#667085 !important;}
  body.urbiax-modern-home-v1 .ubx-ms-brand-main{font-size:25px !important;letter-spacing:-.055em !important;}
  body.urbiax-modern-home-v1 .ubx-ms-adds,
  body.urbiax-modern-home-v1 .ubx-ms-modes{gap:7px !important;margin-top:10px !important;}
  body.urbiax-modern-home-v1 .ubx-ms-btn{min-height:43px !important;border-radius:13px !important;font-size:12.5px !important;}
  body.urbiax-modern-home-v1 .ubx-ms-modes .ubx-ms-btn{background:#fff !important;border:1px solid rgba(16,24,40,.09) !important;box-shadow:0 7px 16px rgba(16,24,40,.045) !important;}
  .ubx-value-pills{gap:6px;margin-top:10px}
  .ubx-value-pills span{min-height:27px;padding:0 9px;font-size:10.5px;background:rgba(255,255,255,.72)}
  .ubx-guest-primary-post{display:flex;width:100%;min-height:46px;margin-top:11px;border-radius:13px;font-size:14px;}

  body.urbiax-modern-home-v1 .mode-tabs-row{margin-top:8px !important;}
  body.urbiax-modern-home-v1 .primary-mode-tabs{width:100% !important;overflow-x:auto !important;scrollbar-width:none;padding:4px !important;}
  body.urbiax-modern-home-v1 .primary-mode-tabs::-webkit-scrollbar{display:none}
  body.urbiax-modern-home-v1 .mode-tab{min-width:max-content !important;padding:9px 13px !important;font-size:12px !important;}
  body.urbiax-modern-home-v1 .rentals-tipbox{display:none !important;}

  body.urbiax-modern-home-v1 .ubx-local-seo-strip{padding:10px !important;margin:8px 0 !important;border-radius:15px !important;}
  body.urbiax-modern-home-v1 .ubx-local-seo-title{font-size:12px !important;margin-bottom:7px !important;}
  body.urbiax-modern-home-v1 .ubx-local-seo-copy{display:none !important;}
  body.urbiax-modern-home-v1 .ubx-local-seo-links{display:flex !important;flex-wrap:nowrap !important;overflow-x:auto !important;gap:6px !important;scrollbar-width:none;padding-bottom:1px;}
  body.urbiax-modern-home-v1 .ubx-local-seo-links::-webkit-scrollbar{display:none}
  body.urbiax-modern-home-v1 .ubx-local-seo-links a{flex:0 0 auto !important;font-size:10.5px !important;padding:6px 9px !important;}

  body.urbiax-modern-home-v1 .filters-accordion{border-radius:15px !important;box-shadow:0 8px 20px rgba(16,24,40,.05) !important;}
  body.urbiax-modern-home-v1 .filters-acc-head{min-height:44px !important;padding:0 12px !important;}
  body.urbiax-modern-home-v1 .filters-acc-title{font-size:13px !important;}
  body.urbiax-modern-home-v1 .toolbar{padding:9px !important;gap:7px !important;}
  body.urbiax-modern-home-v1 .toolbar .input{min-height:43px !important;font-size:13px !important;}

  body.urbiax-modern-home-v1 .filters-summary{margin:9px 0 !important;}
  body.urbiax-modern-home-v1 .results-count{font-size:12px !important;font-weight:850 !important;color:#475467 !important;}

  body.urbiax-modern-home-v1 #listingsGrid{gap:10px !important;}
  body.urbiax-modern-home-v1 #listingsGrid .card-shell{border-radius:16px !important;box-shadow:0 7px 20px rgba(16,24,40,.07) !important;}
  body.urbiax-modern-home-v1 #listingsGrid .listing-title{font-weight:900 !important;}
  body.urbiax-modern-home-v1 #listingsGrid .modern-details-btn{background:linear-gradient(135deg,#2563eb,#0284c7) !important;}

  .ubx-mobile-action-dock{
    position:fixed;left:10px;right:142px;bottom:max(10px,env(safe-area-inset-bottom));z-index:6000;
    display:block;padding:7px;
    border:1px solid rgba(16,24,40,.10);border-radius:18px;background:rgba(255,255,255,.93);
    box-shadow:0 18px 44px rgba(16,24,40,.20);backdrop-filter:blur(15px);
  }
  .ubx-mobile-action-dock a{min-height:45px;border-radius:13px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:13px;font-weight:950;}
  .ubx-mobile-action-dock .post{background:linear-gradient(135deg,#2563eb,#0284c7);color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.22);}
}

/* ---------- Add listing ---------- */
body.ubx-add-page{min-height:100vh;padding-bottom:28px;}
body.ubx-add-page .navbar{
  background:rgba(255,255,255,.94) !important;border-bottom:1px solid var(--ubx-line) !important;
  box-shadow:0 8px 28px rgba(16,24,40,.04) !important;backdrop-filter:blur(14px)
}
body.ubx-add-page .nav-actions .rental-btn,
body.ubx-add-page .nav-actions .sale-btn,
body.ubx-add-page .nav-actions .swap-btn{display:none !important;}
.ubx-add-wrap{max-width:900px !important;margin:0 auto;padding-top:20px !important;}
.ubx-add-hero{padding:22px 24px;margin-bottom:14px;border:1px solid rgba(37,99,235,.13);border-radius:22px;background:linear-gradient(135deg,#fff,#f2f7ff);box-shadow:var(--ubx-shadow)}
.ubx-add-kicker{display:inline-flex;align-items:center;min-height:27px;padding:0 9px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-size:11px;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.ubx-add-hero h1{margin:8px 0 5px;font-size:34px;line-height:1.03;letter-spacing:-.045em;color:#101828}
.ubx-add-hero p{margin:0;color:#667085;font-size:14px;line-height:1.5}
.ubx-add-assurance{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.ubx-add-assurance span{padding:6px 9px;border-radius:999px;border:1px solid #e4e7ec;background:#fff;color:#475467;font-size:11px;font-weight:850}
.ubx-add-assurance span:before{content:"✓";color:#16a34a;margin-right:5px}

#addForm.ubx-add-form{display:grid !important;gap:12px !important;max-width:none !important;padding:0 !important;background:transparent !important;border:0 !important;box-shadow:none !important;}
.ubx-form-card{padding:18px;border:1px solid var(--ubx-line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(16,24,40,.05)}
.ubx-form-card-title{display:flex;align-items:center;gap:9px;margin:0 0 13px;font-size:15px;font-weight:950;color:#101828}
.ubx-form-card-title .num{width:27px;height:27px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:#eef4ff;color:#1d4ed8;font-size:12px;font-weight:1000}
.ubx-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.ubx-form-grid .full{grid-column:1/-1}
body.ubx-add-page label{display:grid;gap:6px;color:#344054;font-size:12px;font-weight:850}
body.ubx-add-page .input{width:100%;min-height:46px;border:1px solid #d0d5dd !important;border-radius:12px !important;background:#fbfcfe !important;color:#101828 !important;font-size:14px !important;padding:10px 12px !important;box-shadow:none !important;}
body.ubx-add-page textarea.input{min-height:118px;resize:vertical;line-height:1.5}
body.ubx-add-page .input:focus{outline:none !important;border-color:#84adff !important;background:#fff !important;box-shadow:0 0 0 4px rgba(37,99,235,.10) !important;}
body.ubx-add-page .hint{font-size:11px !important;line-height:1.35;color:#7c8799 !important;font-weight:650}
.ubx-optional{margin-top:10px;border-top:1px dashed #d9dee7;padding-top:10px}
.ubx-optional summary{cursor:pointer;list-style:none;color:#475467;font-size:12px;font-weight:900}
.ubx-optional summary::-webkit-details-marker{display:none}
.ubx-optional summary:after{content:" +";color:#2563eb}
.ubx-optional[open] summary:after{content:" −"}
.ubx-optional .ubx-form-grid{margin-top:10px}
.filebox{border:1.5px dashed #b8c5d8;border-radius:16px;padding:16px !important;background:#f8fbff;}
#pickPhotosBtn{min-height:44px !important;border-radius:12px !important;background:#fff !important;border:1px solid #b8c5d8 !important;color:#1d4ed8 !important;font-weight:950 !important;}
.media-preview{gap:8px !important}.media-item{width:96px !important;height:76px !important;border-radius:12px !important;}
.ubx-submit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px 2px}
.ubx-submit-note{color:#667085;font-size:11px;line-height:1.4;max-width:430px}
#submitBtn.ubx-submit-btn{min-height:50px !important;min-width:220px;border:0 !important;border-radius:14px !important;color:#fff !important;font-size:14px !important;font-weight:1000 !important;background:linear-gradient(135deg,#2563eb,#0284c7) !important;box-shadow:0 12px 26px rgba(37,99,235,.24) !important;}
#uploadBox{border-radius:20px !important;border:1px solid #e4e7ec !important;box-shadow:0 28px 80px rgba(16,24,40,.18) !important;}

@media (max-width:680px){
  body.ubx-add-page{padding-bottom:88px}
  body.ubx-add-page .navbar .inner{min-height:54px !important;padding:0 10px !important;}
  body.ubx-add-page .brand-sub{display:none !important}
  body.ubx-add-page .brand-main{font-size:24px !important}
  body.ubx-add-page .nav-actions .btn:not(:first-child){display:none !important}
  .ubx-add-wrap{padding:10px 9px 0 !important;}
  .ubx-add-hero{padding:16px;border-radius:18px;margin-bottom:10px}
  .ubx-add-hero h1{font-size:28px;margin-top:7px}
  .ubx-add-hero p{font-size:12.5px}
  .ubx-add-assurance{gap:5px;margin-top:10px}.ubx-add-assurance span{font-size:10px;padding:5px 7px}
  #addForm.ubx-add-form{gap:9px !important}
  .ubx-form-card{padding:13px;border-radius:15px}
  .ubx-form-card-title{margin-bottom:10px;font-size:14px}
  .ubx-form-grid{grid-template-columns:1fr;gap:9px}
  .ubx-form-grid .full{grid-column:auto}
  body.ubx-add-page .input{min-height:45px;font-size:16px !important;/* prevent iOS zoom */}
  body.ubx-add-page textarea.input{min-height:105px}
  .filebox{padding:13px !important}
  .media-item{width:84px !important;height:68px !important}
  .ubx-submit-row{position:fixed;left:9px;right:9px;bottom:max(9px,env(safe-area-inset-bottom));z-index:5500;padding:7px;border:1px solid rgba(16,24,40,.10);border-radius:17px;background:rgba(255,255,255,.94);box-shadow:0 18px 44px rgba(16,24,40,.20);backdrop-filter:blur(14px)}
  .ubx-submit-note{display:none}
  #submitBtn.ubx-submit-btn{width:100%;min-width:0;min-height:48px !important;}
}

/* ---------- Authentication funnel ---------- */
body.ubx-auth-page .container{max-width:500px;margin:0 auto;padding:34px 14px}
body.ubx-auth-page .auth-title,
body.ubx-auth-page .verify-title{font-size:34px !important;line-height:1.02;letter-spacing:-.05em !important;color:#101828;margin:0 0 7px !important}
body.ubx-auth-page .auth-sub,
body.ubx-auth-page .verify-sub{color:#667085 !important;font-size:14px;line-height:1.5;font-weight:650 !important}
body.ubx-auth-page .section{border:1px solid var(--ubx-line) !important;border-radius:18px !important;background:#fff !important;box-shadow:0 14px 40px rgba(16,24,40,.07) !important;padding:18px !important}
body.ubx-auth-page .input{min-height:48px;border-radius:12px !important;border:1px solid #d0d5dd !important;background:#fbfcfe !important;font-size:16px !important}
body.ubx-auth-page .input:focus{outline:none;border-color:#84adff !important;box-shadow:0 0 0 4px rgba(37,99,235,.10) !important;background:#fff !important}
body.ubx-auth-page .btn{min-height:46px;border-radius:12px !important;font-weight:950 !important}
body.ubx-auth-page form .btn[type="submit"]{background:linear-gradient(135deg,#2563eb,#0284c7) !important;color:#fff !important;border:0 !important;box-shadow:0 10px 22px rgba(37,99,235,.20)}
@media(max-width:680px){body.ubx-auth-page .container{padding:24px 11px}body.ubx-auth-page .auth-title,body.ubx-auth-page .verify-title{font-size:30px !important}}
