
/* AsetProperty v0.7.1 — dedicated mobile/tablet app layer.
   Applied by html.apt-app-viewport (<=1200px) and loaded after main.css. */

.apt-app-header,
.apt-app-home{
  display:none;
}

/* Desktop keeps app bottom nav hidden regardless of old rules. */
html:not(.apt-app-viewport) .apt-mobile-bottom-nav{
  display:none!important;
}

html.apt-app-viewport{
  background:#fff;
}
html.apt-app-viewport body.apt-theme-v100{
  margin:0;
  padding:0 0 calc(82px + env(safe-area-inset-bottom,0px));
  background:#fff;
  color:#161816;
  overflow-x:hidden;
}
html.apt-app-viewport body.apt-theme-v100.single-property{
  padding-bottom:72px;
}
html.apt-app-viewport body.apt-theme-v100 .apt-site-shell{
  width:100%;
  max-width:none;
  margin:0;
  background:#fff;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
}
html.apt-app-viewport body.apt-theme-v100 .apt-desktop-header{
  display:none!important;
}
html.apt-app-viewport body.apt-theme-v100 .apt-header{
  position:sticky!important;
  top:0!important;
  z-index:140!important;
  height:60px!important;
  padding:0!important;
  background:rgba(255,255,255,.95)!important;
  border-bottom:1px solid #eeece7!important;
  box-shadow:none!important;
  backdrop-filter:blur(15px)!important;
}
html.apt-app-viewport body.admin-bar.apt-theme-v100 .apt-header{
  top:46px!important;
}
@media(min-width:783px){
  html.apt-app-viewport body.admin-bar.apt-theme-v100 .apt-header{top:32px!important}
}
html.apt-app-viewport .apt-app-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  height:60px;
  padding:0 16px;
}
html.apt-app-viewport .apt-app-header-brand{
  display:flex;
  align-items:center;
  min-width:0;
}
html.apt-app-viewport .apt-app-header .apt-bundled-logo{
  width:auto;
  height:25px;
  max-width:156px;
}
html.apt-app-viewport .apt-app-header-search{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid #e5e2db;
  border-radius:50%;
  background:#f8f7f4;
  color:#1c201a;
}
html.apt-app-viewport .apt-app-header-search svg{font-size:17px}
html.apt-app-viewport .apt-scroll-progress{display:none}

/* Force a true separate homepage presentation. */
html.apt-app-viewport .apt-desktop-home{display:none!important}
html.apt-app-viewport .apt-app-home{display:block!important}
html:not(.apt-app-viewport) .apt-app-home{display:none!important}

/* App home hero */
html.apt-app-viewport .apt-app-hero{
  padding:12px 12px 0;
}
html.apt-app-viewport .apt-app-hero-image{
  position:relative;
  height:340px;
  overflow:hidden;
  border-radius:24px;
  background:var(--app-hero-image,none) center/cover no-repeat;
}
html.apt-app-viewport .apt-app-hero-image.is-brand-placeholder{
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#eeece7,#f8f7f4 58%,#dddad3);
}
html.apt-app-viewport .apt-app-hero-placeholder{
  width:55%;
  opacity:.10;
}
html.apt-app-viewport .apt-app-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(14,16,13,.78) 0%,rgba(14,16,13,.16) 58%,rgba(14,16,13,.02) 100%);
}
html.apt-app-viewport .apt-app-hero-copy{
  position:absolute;
  z-index:2;
  left:22px;
  right:22px;
  bottom:24px;
  color:#fff;
}
html.apt-app-viewport .apt-app-hero-copy h1{
  max-width:440px;
  margin:0 0 9px;
  font-size:38px;
  font-weight:720;
  line-height:.96;
  letter-spacing:-.057em;
}
html.apt-app-viewport .apt-app-hero-copy p{
  max-width:440px;
  margin:0;
  color:rgba(255,255,255,.84);
  font-size:11px;
  line-height:1.55;
}

/* App search */
html.apt-app-viewport .apt-app-search-card{
  position:relative;
  z-index:5;
  margin:-13px 8px 0;
  padding:0 12px 12px;
  border:1px solid #e7e3dc;
  border-radius:20px;
  background:#fff;
  box-shadow:0 14px 34px rgba(28,24,18,.11);
}
html.apt-app-viewport .apt-app-transaction-tabs{
  display:flex;
  gap:20px;
  padding:0 3px;
  border-bottom:1px solid #efede8;
}
html.apt-app-viewport .apt-app-transaction-tabs label{cursor:pointer}
html.apt-app-viewport .apt-app-transaction-tabs input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
html.apt-app-viewport .apt-app-transaction-tabs span{
  display:block;
  padding:13px 2px 10px;
  border-bottom:2px solid transparent;
  color:#90928c;
  font-size:11px;
  font-weight:750;
}
html.apt-app-viewport .apt-app-transaction-tabs input:checked+span{
  border-color:#20271d;
  color:#191c17;
}
html.apt-app-viewport .apt-app-keyword{
  display:flex;
  align-items:center;
  gap:9px;
  height:48px;
  margin-top:10px;
  padding:0 13px;
  border:1px solid #e7e4dd;
  border-radius:13px;
  background:#f9f8f5;
}
html.apt-app-viewport .apt-app-keyword svg{
  flex:0 0 auto;
  font-size:17px;
  color:#70746c;
}
html.apt-app-viewport .apt-app-keyword input{
  min-width:0;
  width:100%;
  height:44px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  font-size:12px;
}
html.apt-app-viewport .apt-app-search-selects{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}
html.apt-app-viewport .apt-app-search-selects label{
  display:grid;
  gap:4px;
  padding:9px 11px;
  border:1px solid #e7e4dd;
  border-radius:13px;
  background:#fff;
}
html.apt-app-viewport .apt-app-search-selects span{
  color:#8b8e87;
  font-size:8px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.04em;
}
html.apt-app-viewport .apt-app-search-selects select{
  width:100%;
  min-width:0;
  height:28px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#1b1d1a;
  font-size:11px;
}
html.apt-app-viewport .apt-app-search-card>button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  height:46px;
  margin-top:9px;
  border:0;
  border-radius:13px;
  background:#20271d;
  color:#fff;
  font-size:12px;
  font-weight:800;
}
html.apt-app-viewport .apt-app-search-card>button svg{font-size:16px}

/* App stats */
html.apt-app-viewport .apt-app-stats{
  display:flex;
  gap:9px;
  padding:18px 14px 4px;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
html.apt-app-viewport .apt-app-stats::-webkit-scrollbar{display:none}
html.apt-app-viewport .apt-app-stats article{
  flex:1 0 128px;
  min-width:128px;
  padding:15px 16px;
  border:1px solid #e6e2db;
  border-radius:17px;
  background:#fff;
  box-shadow:0 7px 22px rgba(26,23,18,.035);
  scroll-snap-align:start;
}
html.apt-app-viewport .apt-app-stats strong{
  display:block;
  margin-bottom:5px;
  font-size:31px;
  line-height:1;
  letter-spacing:-.05em;
}
html.apt-app-viewport .apt-app-stats span{
  color:#777a72;
  font-size:10px;
}

/* App sections */
html.apt-app-viewport .apt-app-section{
  padding:39px 14px 42px;
}
html.apt-app-viewport .apt-app-section--soft{
  background:#f7f6f2;
}
html.apt-app-viewport .apt-app-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
html.apt-app-viewport .apt-app-section-head h2{
  max-width:520px;
  margin:0;
  font-size:27px;
  font-weight:680;
  line-height:1.04;
  letter-spacing:-.045em;
}
html.apt-app-viewport .apt-app-section-head>a{
  flex:0 0 auto;
  color:#5d6159;
  font-size:10px;
  font-weight:750;
}

/* Latest property rail is swipeable, not desktop grid forced smaller. */
html.apt-app-viewport .apt-app-property-rail{
  display:flex;
  gap:12px;
  margin-right:-14px;
  padding-right:14px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
html.apt-app-viewport .apt-app-property-rail::-webkit-scrollbar{display:none}
html.apt-app-viewport .apt-app-property-rail .apt-property-card{
  flex:0 0 min(82vw,350px);
  width:min(82vw,350px);
  border-radius:19px;
  box-shadow:0 8px 25px rgba(25,22,17,.055);
  scroll-snap-align:start;
}
html.apt-app-tablet .apt-app-property-rail .apt-property-card{
  flex-basis:340px;
  width:340px;
}
html.apt-app-viewport .apt-app-property-rail .apt-card-media{
  aspect-ratio:1.42/1;
}
html.apt-app-viewport .apt-app-property-rail .apt-card-body{
  padding:14px 15px 16px;
}
html.apt-app-viewport .apt-app-property-rail .apt-card-body h3{
  font-size:17px;
}
html.apt-app-viewport .apt-app-property-rail .apt-card-price{
  font-size:14px;
}

/* Type chips */
html.apt-app-viewport .apt-app-chip-rail{
  display:flex;
  gap:9px;
  margin-right:-14px;
  padding-right:14px;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
html.apt-app-viewport .apt-app-chip-rail::-webkit-scrollbar{display:none}
html.apt-app-viewport .apt-app-chip-rail a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex:0 0 auto;
  min-width:155px;
  padding:14px 15px;
  border:1px solid #e2dfd8;
  border-radius:15px;
  background:#fff;
  scroll-snap-align:start;
}
html.apt-app-viewport .apt-app-chip-rail strong{font-size:12px}
html.apt-app-viewport .apt-app-chip-rail span{
  display:grid;
  place-items:center;
  min-width:27px;
  height:27px;
  padding:0 7px;
  border-radius:999px;
  background:#f1f0eb;
  color:#666a62;
  font-size:9px;
  font-weight:750;
}

/* Locations */
html.apt-app-viewport .apt-app-location-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
html.apt-app-viewport .apt-app-location-grid a{
  display:grid;
  gap:3px;
  padding:14px;
  border:1px solid #e6e3dc;
  border-radius:14px;
  background:#fff;
}
html.apt-app-viewport .apt-app-location-grid strong{
  font-size:12px;
}
html.apt-app-viewport .apt-app-location-grid span{
  color:#84877f;
  font-size:9px;
}
html.apt-app-viewport .apt-app-empty{
  padding:24px;
  border-radius:16px;
  background:#f6f5f1;
  color:#777a72;
  text-align:center;
  font-size:11px;
}

/* Bottom navigation applies to both phone and tablet app viewport. */
html.apt-app-viewport .apt-mobile-bottom-nav{
  position:fixed!important;
  z-index:180!important;
  left:10px!important;
  right:10px!important;
  bottom:max(8px,env(safe-area-inset-bottom,8px))!important;
  display:grid!important;
  grid-template-columns:repeat(5,1fr)!important;
  height:64px!important;
  padding:6px!important;
  border:1px solid rgba(28,32,25,.08)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 14px 38px rgba(25,28,22,.16)!important;
  backdrop-filter:blur(16px)!important;
}
html.apt-app-viewport .apt-mobile-bottom-nav a{
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  gap:3px!important;
  min-width:0!important;
  border-radius:14px!important;
  color:#8a8c86!important;
  font-size:9px!important;
  font-weight:700!important;
}
html.apt-app-viewport .apt-mobile-bottom-nav a svg{font-size:19px!important}
html.apt-app-viewport .apt-mobile-bottom-nav a.is-active{
  background:#20271d!important;
  color:#fff!important;
}
html.apt-app-viewport body.single-property .apt-mobile-bottom-nav{display:none!important}

/* Archive becomes app-like at <=1024 even on tablet. */
html.apt-app-viewport .apt-explore{
  padding:20px 0 42px!important;
}
html.apt-app-viewport .apt-explore .apt-container{
  width:calc(100% - 28px)!important;
}
html.apt-app-viewport .apt-explore-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:4px 0 16px!important;
}
html.apt-app-viewport .apt-explore-head h1{
  margin:0!important;
  font-size:34px!important;
  line-height:1!important;
  letter-spacing:-.045em!important;
}
html.apt-app-viewport .apt-explore-head>p{
  margin:0!important;
  color:#83867e!important;
  font-size:9px!important;
}
html.apt-app-viewport .apt-explore-search{
  position:relative!important;
  top:auto!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
html.apt-app-viewport .apt-explore-tabs{
  display:flex!important;
  gap:7px!important;
  padding:0 0 10px!important;
  overflow-x:auto!important;
  border:0!important;
  scrollbar-width:none!important;
}
html.apt-app-viewport .apt-explore-tabs::-webkit-scrollbar{display:none}
html.apt-app-viewport .apt-explore-tabs label{flex:0 0 auto}
html.apt-app-viewport .apt-explore-tabs span{
  display:block!important;
  padding:8px 13px!important;
  border:1px solid #e3e0d9!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#777a72!important;
  font-size:10px!important;
}
html.apt-app-viewport .apt-explore-tabs input:checked+span{
  border-color:#20271d!important;
  background:#20271d!important;
  color:#fff!important;
}
html.apt-app-viewport .apt-explore-primary{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  padding:0!important;
}
html.apt-app-viewport .apt-explore-primary>label{
  padding:9px 11px!important;
  border:1px solid #e5e2db!important;
  border-radius:13px!important;
  background:#fff!important;
}
html.apt-app-viewport .apt-explore-keyword{
  grid-column:1/-1!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  border-bottom:1px solid #e5e2db!important;
}
html.apt-app-viewport .apt-explore-primary input,
html.apt-app-viewport .apt-explore-primary select{
  height:29px!important;
  font-size:11px!important;
}
html.apt-app-viewport .apt-explore-primary>button{
  grid-column:1/-1!important;
  height:44px!important;
  margin:0!important;
  border-radius:13px!important;
}
html.apt-app-viewport .apt-explore-controls{
  display:flex!important;
  justify-content:flex-start!important;
  gap:7px!important;
  margin-top:9px!important;
  padding:0!important;
  overflow-x:auto!important;
  border:0!important;
  background:transparent!important;
}
html.apt-app-viewport .apt-filter-chip,
html.apt-app-viewport .apt-sort-select,
html.apt-app-viewport .apt-filter-reset{
  flex:0 0 auto!important;
  height:36px!important;
  font-size:10px!important;
}
html.apt-app-viewport .apt-filter-reset{margin-left:0!important}
html.apt-app-viewport .apt-explore-results{padding-top:24px!important}
html.apt-app-viewport .apt-property-grid--explore{
  grid-template-columns:1fr!important;
  gap:13px!important;
}
html.apt-app-tablet .apt-property-grid--explore{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html.apt-app-viewport .apt-property-grid--explore .apt-property-card{
  border-radius:19px!important;
}

/* Filter sheet */
html.apt-app-viewport .apt-explore-advanced{
  position:fixed!important;
  z-index:230!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  max-height:80vh!important;
  padding:0 14px calc(16px + env(safe-area-inset-bottom,0px))!important;
  overflow-y:auto!important;
  border:0!important;
  border-radius:24px 24px 0 0!important;
  background:#fff!important;
  box-shadow:0 -18px 50px rgba(20,22,18,.18)!important;
}
html.apt-app-viewport .apt-explore-advanced[hidden]{display:none!important}
html.apt-app-viewport .apt-mobile-filter-sheet-head{
  grid-column:1/-1!important;
  display:flex!important;
}
html.apt-app-viewport .apt-mobile-filter-apply{
  grid-column:1/-1!important;
  display:block!important;
}
html.apt-app-viewport .apt-mobile-filter-backdrop{
  position:fixed!important;
  z-index:220!important;
  inset:0!important;
  display:block!important;
  background:rgba(14,16,13,.48)!important;
  backdrop-filter:blur(3px)!important;
}
html.apt-app-viewport .apt-mobile-filter-backdrop[hidden]{display:none!important}

/* Property detail app view */
html.apt-app-viewport .single-property .apt-breadcrumbs{display:none!important}
html.apt-app-viewport body.single-property .apt-single-top{
  padding:14px 0 16px!important;
}
html.apt-app-viewport body.single-property .apt-single-heading{
  grid-template-columns:1fr!important;
  gap:9px!important;
}
html.apt-app-viewport body.single-property .apt-single-heading h1{
  font-size:34px!important;
  line-height:1.03!important;
}
html.apt-app-viewport body.single-property .apt-single-price{
  text-align:left!important;
}
html.apt-app-viewport body.single-property .apt-single-price span{display:none!important}
html.apt-app-viewport body.single-property .apt-gallery .apt-container{width:100%!important}
html.apt-app-viewport body.single-property .apt-gallery-grid,
html.apt-app-viewport body.single-property .apt-gallery-grid.is-single{
  display:flex!important;
  gap:8px!important;
  width:100%!important;
  height:auto!important;
  padding:0 14px 8px!important;
  overflow-x:auto!important;
  scroll-snap-type:x mandatory!important;
  scrollbar-width:none!important;
}
html.apt-app-viewport body.single-property .apt-gallery-grid::-webkit-scrollbar{display:none}
html.apt-app-viewport body.single-property .apt-gallery-item,
html.apt-app-viewport body.single-property .apt-gallery-grid.is-single .apt-gallery-item{
  flex:0 0 min(88vw,650px)!important;
  width:auto!important;
  height:330px!important;
  border-radius:18px!important;
  scroll-snap-align:center!important;
}
html.apt-app-tablet body.single-property .apt-gallery-item,
html.apt-app-tablet body.single-property .apt-gallery-grid.is-single .apt-gallery-item{
  height:430px!important;
}
html.apt-app-viewport body.single-property .apt-gallery-item:nth-child(n){display:block!important}
html.apt-app-viewport body.single-property .apt-single-layout{display:block!important}
html.apt-app-viewport body.single-property .apt-contact-card{display:none!important}
html.apt-app-viewport body.single-property .apt-spec-panel,
html.apt-app-viewport body.single-property .apt-description,
html.apt-app-viewport body.single-property .apt-detail-list{
  grid-template-columns:1fr!important;
  gap:14px!important;
}
html.apt-app-viewport body.single-property .apt-spec-grid{
  display:flex!important;
  gap:8px!important;
  overflow-x:auto!important;
  scrollbar-width:none!important;
}
html.apt-app-viewport body.single-property .apt-spec-grid>div{
  flex:0 0 128px!important;
}
html.apt-app-viewport body.single-property .apt-mobile-wa{
  display:flex!important;
  z-index:190!important;
  left:10px!important;
  right:10px!important;
  bottom:max(8px,env(safe-area-inset-bottom,8px))!important;
  height:58px!important;
  border-radius:18px!important;
  background:#20271d!important;
}

/* Footer is deliberately compact in app mode. */
html.apt-app-viewport body:not(.single-property) .apt-footer{
  padding-bottom:92px!important;
}
html.apt-app-viewport .apt-footer-main--simple{
  flex-direction:column!important;
  gap:24px!important;
}
html.apt-app-viewport .apt-footer-bottom--compact{
  flex-direction:column!important;
  gap:7px!important;
}

/* Phone-specific refinements */
html.apt-app-phone .apt-app-hero-image{height:320px}
html.apt-app-phone .apt-app-hero-copy h1{font-size:36px}
html.apt-app-phone .apt-app-location-grid{grid-template-columns:1fr 1fr}
html.apt-app-phone .apt-explore-head{display:block!important}
html.apt-app-phone .apt-explore-head>p{margin-top:5px!important}

/* Tablet-specific refinements */
html.apt-app-tablet .apt-app-hero{
  padding:16px 20px 0;
}
html.apt-app-tablet .apt-app-hero-image{
  height:420px;
}
html.apt-app-tablet .apt-app-hero-copy{
  left:34px;
  bottom:34px;
}
html.apt-app-tablet .apt-app-hero-copy h1{
  max-width:560px;
  font-size:52px;
}
html.apt-app-tablet .apt-app-search-card{
  max-width:760px;
  margin:-20px auto 0;
}
html.apt-app-tablet .apt-app-stats{
  max-width:800px;
  margin:0 auto;
}
html.apt-app-tablet .apt-app-section{
  padding-left:24px;
  padding-right:24px;
}
html.apt-app-tablet .apt-app-location-grid{
  grid-template-columns:repeat(4,1fr);
}


/* ============================================================
   AsetProperty v0.7.2 — app highlights + visual choice buttons
============================================================ */
html.apt-app-viewport .apt-app-highlights{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:18px 14px 4px;
}
html.apt-app-viewport .apt-app-highlight{
  position:relative;
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  min-height:122px;
  padding:18px;
  overflow:hidden;
  border:1px solid #e3dfd8;
  border-radius:20px;
  background:linear-gradient(180deg,#f6f3ed 0%,#efece5 100%);
  box-shadow:0 10px 24px rgba(24,21,16,.05);
}
html.apt-app-viewport .apt-app-highlight-copy{
  position:relative;
  z-index:2;
  display:grid;
  align-content:start;
  gap:6px;
}
html.apt-app-viewport .apt-app-highlight strong{
  display:block;
  font-size:44px;
  line-height:.94;
  letter-spacing:-.06em;
}
html.apt-app-viewport .apt-app-highlight span{
  color:#6b6e67;
  font-size:12px;
}
html.apt-app-viewport .apt-app-highlight-avatars{
  position:relative;
  width:80px;
  flex:0 0 80px;
}
html.apt-app-viewport .apt-app-highlight-avatars span{
  position:absolute;
  width:40px;
  height:40px;
  border:2px solid rgba(255,255,255,.92);
  border-radius:50%;
  box-shadow:0 6px 18px rgba(20,18,15,.08);
}
html.apt-app-viewport .apt-app-highlight-avatars span:nth-child(1){
  top:4px; right:20px;
  background:radial-gradient(circle at 35% 35%,#f7dad3,#be856c 88%);
}
html.apt-app-viewport .apt-app-highlight-avatars span:nth-child(2){
  top:28px; right:0;
  background:radial-gradient(circle at 37% 35%,#eedac8,#91684f 88%);
}
html.apt-app-viewport .apt-app-highlight-avatars span:nth-child(3){
  top:54px; right:24px;
  background:radial-gradient(circle at 35% 35%,#ead3b8,#7f5b42 88%);
}
html.apt-app-viewport .apt-app-highlight-thumb{
  width:108px;
  min-height:74px;
  align-self:flex-end;
  border-radius:16px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0)),
    linear-gradient(135deg,#e4dfd5 0%,#cdc6bb 100%);
  background-size:cover;
  background-position:center;
}
html.apt-app-viewport .apt-app-highlight--rent{
  background:linear-gradient(135deg,#1d231d 0%,#2d3b22 42%,#666a31 100%);
  color:#fff;
}
html.apt-app-viewport .apt-app-highlight--rent span{color:rgba(255,255,255,.82)}
html.apt-app-viewport .apt-app-highlight-mark{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  width:88px;
  flex:0 0 88px;
}
html.apt-app-viewport .apt-app-highlight-mark img{
  width:82px;
  opacity:.18;
  filter:brightness(0) invert(1);
}

html.apt-app-viewport .apt-app-visual-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
html.apt-app-viewport .apt-app-visual-button{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  min-height:132px;
  padding:16px;
  overflow:hidden;
  border:1px solid #e3dfd8;
  border-radius:18px;
  color:#fff;
  isolation:isolate;
  background:linear-gradient(140deg,#2b302b 0%,#5b6846 42%,#bb9f79 100%);
}
html.apt-app-viewport .apt-app-visual-button.has-image{
  background:
    linear-gradient(180deg,rgba(14,17,13,.10),rgba(14,17,13,.58)),
    var(--choice-image) center/cover no-repeat;
}
html.apt-app-viewport .apt-app-visual-button.is-gradient:nth-child(4n+1){
  background:linear-gradient(140deg,#20231f 0%,#556341 46%,#b89b74 100%);
}
html.apt-app-viewport .apt-app-visual-button.is-gradient:nth-child(4n+2){
  background:linear-gradient(140deg,#242824 0%,#565247 42%,#ccc1ad 100%);
}
html.apt-app-viewport .apt-app-visual-button.is-gradient:nth-child(4n+3){
  background:linear-gradient(140deg,#1e201d 0%,#41493f 42%,#a3947d 100%);
}
html.apt-app-viewport .apt-app-visual-button.is-gradient:nth-child(4n){
  background:linear-gradient(140deg,#20241f 0%,#445e39 42%,#907c5c 100%);
}
html.apt-app-viewport .apt-app-visual-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(14,16,13,.02) 0%,rgba(14,16,13,.6) 100%);
  z-index:0;
}
html.apt-app-viewport .apt-app-visual-button strong,
html.apt-app-viewport .apt-app-visual-button em{
  position:relative;
  z-index:1;
}
html.apt-app-viewport .apt-app-visual-button strong{
  max-width:70%;
  font-size:18px;
  line-height:1.06;
  letter-spacing:-.03em;
}
html.apt-app-viewport .apt-app-visual-button em{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(255,255,255,.16);
  backdrop-filter:blur(10px);
}
html.apt-app-viewport .apt-app-visual-button em svg{font-size:14px}

html.apt-app-tablet .apt-app-highlights{
  grid-template-columns:repeat(3,minmax(0,1fr));
  padding-left:24px;
  padding-right:24px;
}
html.apt-app-tablet .apt-app-visual-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
html.apt-app-tablet .apt-app-visual-grid--location{
  grid-template-columns:repeat(4,minmax(0,1fr));
}


/* ============================================================
   AsetProperty v0.7.3 — app replaceable summary images
============================================================ */
html.apt-app-viewport .apt-app-highlight-media{
  position:relative;
  z-index:2;
  overflow:hidden;
  align-self:flex-end;
  flex:0 0 84px;
  width:84px;
  height:76px;
  border-radius:16px;
  background:rgba(255,255,255,.30);
}
html.apt-app-viewport .apt-app-highlight-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
html.apt-app-viewport .apt-app-highlight-media--sale{
  flex-basis:108px;
  width:108px;
}
html.apt-app-viewport .apt-app-highlight-media--rent{
  flex-basis:88px;
  width:88px;
  background:rgba(255,255,255,.12);
}
html.apt-app-tablet .apt-app-highlight-media{
  width:96px;
  height:84px;
  flex-basis:96px;
}
html.apt-app-tablet .apt-app-highlight-media--sale{
  width:124px;
  flex-basis:124px;
}
/* AsetProperty v0.7.4 — app section backgrounds from Website Settings */
html.apt-app-viewport .apt-media-section.has-section-bg{
  position:relative;
  isolation:isolate;
  background-image:
    linear-gradient(180deg,rgba(248,247,244,.91),rgba(248,247,244,.95)),
    var(--ap-section-image)!important;
  background-size:cover!important;
  background-position:center!important;
}


/* ============================================================
   v0.7.5 app shell hardening + banner + responsive
============================================================ */

/* Fallback media-query separation even if viewport bootstrap is cached/late. */
@media(max-width:1200px){
  .apt-desktop-header{display:none!important}
  .apt-app-header{display:flex!important}
}
@media(min-width:1201px){
  .apt-app-header{display:none!important}
  .apt-desktop-header{display:flex!important}
}

/* Remove the historic mobile top gap. On phone/compact tablet WP admin bar
   is not fixed, so sticky header should use top:0. */
html.apt-app-viewport body.apt-theme-v100 .apt-header,
html.apt-app-viewport body.admin-bar.apt-theme-v100 .apt-header{
  top:0!important;
  margin:0!important;
}
@media(min-width:783px) and (max-width:1200px){
  html.apt-app-viewport body.admin-bar.apt-theme-v100 .apt-header{top:32px!important}
}
html.apt-app-viewport .apt-desktop-header{display:none!important}
html.apt-app-viewport .apt-app-header{display:flex!important}

/* Ensure no secondary/legacy header controls remain visible in app mode. */
html.apt-app-viewport .apt-header-cta,
html.apt-app-viewport .apt-menu-toggle,
html.apt-app-viewport .apt-nav{display:none!important}

html.apt-app-viewport .apt-app-banner-wrap{padding:18px 14px 2px}
html.apt-app-viewport .apt-ad-banner{height:128px;border-radius:19px}
html.apt-app-tablet .apt-ad-banner{height:160px}
html.apt-app-viewport .apt-ad-banner-fallback{padding:20px 24px}
html.apt-app-viewport .apt-ad-banner-fallback>img{width:142px}
html.apt-app-viewport .apt-ad-banner-orb{width:230px;height:230px;right:-60px;top:-80px}

/* Old app stats/highlights are gone in v0.7.5. */
html.apt-app-viewport .apt-app-stats,
html.apt-app-viewport .apt-app-highlights{display:none!important}

html.apt-app-viewport .apt-app-visual-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
html.apt-app-viewport .apt-app-visual-button{
  min-height:144px!important;
}
html.apt-app-tablet .apt-app-visual-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
html.apt-app-tablet .apt-app-visual-button{
  min-height:176px!important;
}

/* Slightly more tactile app motion. */
html.apt-app-viewport .apt-app-visual-button:active,
html.apt-app-viewport .apt-property-card:active{
  transform:scale(.985);
}

/* 360–600 phone guard */
@media(max-width:600px){
  html.apt-app-viewport .apt-app-hero{padding:10px 10px 0}
  html.apt-app-viewport .apt-app-hero-image{height:315px}
  html.apt-app-viewport .apt-app-search-card{margin:-12px 6px 0}
  html.apt-app-viewport .apt-app-section{padding-left:12px;padding-right:12px}
}

/* 601–1024 tablet guard */
@media(min-width:601px) and (max-width:1200px){
  html.apt-app-viewport .apt-app-section{padding-left:24px;padding-right:24px}
  html.apt-app-viewport .apt-app-property-rail .apt-property-card{
    flex-basis:340px!important;
    width:340px!important;
  }
}


/* ============================================================
   v0.7.6 mobile/tablet QA
============================================================ */

/* Pure CSS breakpoint fallback: presentation no longer depends only on JS class. */
@media(max-width:1200px){
  .apt-desktop-header,
  .apt-desktop-home{display:none!important}

  .apt-app-header{display:flex!important}
  .apt-app-home{display:block!important}
}
@media(min-width:1201px){
  .apt-app-header,
  .apt-app-home{display:none!important}
  .apt-desktop-header{display:flex!important}
  .apt-desktop-home{display:block!important}
}

/* At initial homepage load, do not let the fixed bottom nav cover Search CTA.
   It slides in after the user begins scrolling. */
@media(max-width:1200px){
  body:has(.apt-app-home):not(.apt-home-nav-visible) .apt-mobile-bottom-nav{
    opacity:0!important;
    transform:translate3d(0,120%,0)!important;
    pointer-events:none!important;
  }
  body:has(.apt-app-home).apt-home-nav-visible .apt-mobile-bottom-nav{
    opacity:1!important;
    transform:translate3d(0,0,0)!important;
    pointer-events:auto!important;
    transition:opacity .28s ease, transform .36s cubic-bezier(.2,.7,.2,1)!important;
  }

  html.apt-app-viewport .apt-app-search-card{
    padding-bottom:12px!important;
  }
  html.apt-app-viewport .apt-app-search-card>button{
    display:flex!important;
    visibility:visible!important;
  }
}

/* Phone: keep hero/search entirely usable before browser chrome + bottom nav. */
@media(max-width:600px){
  html.apt-app-viewport .apt-app-hero-image{
    height:285px!important;
  }
  html.apt-app-viewport .apt-app-hero-copy{
    bottom:20px!important;
  }
  html.apt-app-viewport .apt-app-hero-copy h1{
    font-size:34px!important;
  }
  html.apt-app-viewport .apt-app-search-card{
    margin-top:-10px!important;
  }
  html.apt-app-viewport .apt-app-search-card>button{
    height:44px!important;
  }
}

/* Tablet: explicit app treatment even for 1024/1112/1194 CSS-width devices. */
@media(min-width:601px) and (max-width:1200px){
  html.apt-app-viewport .apt-app-hero{
    padding:16px 22px 0!important;
  }
  html.apt-app-viewport .apt-app-hero-image{
    height:390px!important;
  }
  html.apt-app-viewport .apt-app-search-card{
    width:min(760px,calc(100% - 40px))!important;
    margin:-18px auto 0!important;
  }
  html.apt-app-viewport .apt-app-property-rail .apt-property-card{
    flex-basis:340px!important;
    width:340px!important;
  }
  html.apt-app-viewport .apt-app-visual-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* Visible, lightweight app hero drift. */
@media(max-width:1200px) and (prefers-reduced-motion:no-preference){
  html.apt-app-viewport .apt-app-hero-image.has-image{
    animation:aptHeroDriftApp 12s ease-in-out infinite alternate;
    background-size:106% auto;
  }
  @keyframes aptHeroDriftApp{
    from{background-position:50% 50%}
    to{background-position:53% 48%}
  }
}


/* v0.7.7 archive/detail app overrides */
@media(max-width:1200px){
  html.apt-app-viewport .apt-market-v77-advanced{
    position:fixed!important;
    z-index:230!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    max-height:80vh!important;
    padding:0 14px calc(16px + env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;
    border:0!important;
    border-radius:24px 24px 0 0!important;
    background:#fff!important;
    box-shadow:0 -18px 50px rgba(20,22,18,.18)!important;
  }
  html.apt-app-viewport .apt-market-v77-advanced[hidden]{
    display:none!important;
  }
  html.apt-app-viewport .apt-market-v77-advanced .apt-mobile-filter-sheet-head{
    grid-column:1/-1!important;
    display:flex!important;
  }
  html.apt-app-viewport .apt-market-v77-advanced .apt-mobile-filter-apply{
    grid-column:1/-1!important;
    display:block!important;
  }
  html.apt-app-viewport body.single-property .apt-mobile-bottom-nav{
    display:none!important;
  }
}

html.apt-app-viewport .apt-mobile-bottom-nav--v78{
  grid-template-columns:repeat(4,1fr)!important;
}


/* ============================================================
   v1.0.1 — property archive mobile fixes
============================================================ */
html.apt-app-viewport .apt-market-v77-toolbar{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  margin-top:10px!important;
  padding:0!important;
  overflow:visible!important;
}
html.apt-app-viewport .apt-market-v77-toolbar .apt-filter-chip{
  position:static!important;
  min-width:82px!important;
  height:38px!important;
  justify-content:center!important;
}
html.apt-app-viewport .apt-market-v77-sort{justify-self:end!important;min-width:132px!important}
html.apt-app-viewport .apt-market-v77-sort select{width:100%!important;height:38px!important}
html.apt-app-viewport .apt-market-v100-results-head{
  position:relative!important;
  z-index:1!important;
  margin-top:22px!important;
  margin-bottom:13px!important;
  padding:0 1px!important;
}
html.apt-app-viewport .apt-market-v100-results-head strong{font-size:22px!important;line-height:1.05!important}

/* Backdrop now lives in the same stacking context as the sheet. */
html.apt-app-viewport body.apt-mobile-filter-open .apt-market-v77-search{
  z-index:240!important;
}
html.apt-app-viewport .apt-market-v77-advanced{z-index:260!important}
html.apt-app-viewport .apt-mobile-filter-backdrop{z-index:250!important}
html.apt-app-viewport body.apt-mobile-filter-open{overflow:hidden!important}
html.apt-app-viewport .apt-market-v77-advanced{
  gap:0!important;
  padding-top:0!important;
}
html.apt-app-viewport .apt-market-v77-advanced>label{
  min-width:0!important;
  padding:13px!important;
  border-bottom:1px solid #eeeae3!important;
}
html.apt-app-viewport .apt-market-v77-advanced input{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  padding:0 11px!important;
  border:1px solid #e2dfd8!important;
  border-radius:11px!important;
  background:#faf9f6!important;
}
html.apt-app-viewport .apt-mobile-filter-sheet-head{
  position:sticky!important;top:0!important;z-index:2!important;
  align-items:center!important;justify-content:space-between!important;
  min-height:66px!important;padding:13px 2px!important;background:#fff!important;
}
html.apt-app-viewport .apt-mobile-filter-sheet-head>div{display:grid!important;gap:3px!important}
html.apt-app-viewport .apt-mobile-filter-sheet-head strong{font-size:15px!important}
html.apt-app-viewport .apt-mobile-filter-sheet-head span{font-size:9px!important;color:#81867e!important}
html.apt-app-viewport .apt-mobile-filter-sheet-head button{
  display:grid!important;place-items:center!important;width:38px!important;height:38px!important;
  border:1px solid #e2dfd8!important;border-radius:50%!important;background:#f7f6f2!important;
}
html.apt-app-viewport .apt-mobile-filter-apply{padding-top:13px!important}
html.apt-app-viewport .apt-mobile-filter-apply button{
  width:100%!important;height:46px!important;border:0!important;border-radius:12px!important;
  background:#20271d!important;color:#fff!important;font-weight:800!important;
}


/* ============================================================
   v1.0.2 — definitive Property archive responsive controls
   The advanced sheet is now a sibling of the form, not a child.
============================================================ */
html.apt-app-viewport body.post-type-archive-property .apt-market-v100{
  overflow:visible!important;
  padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-market-v77-search{
  position:relative!important;
  z-index:10!important;
  top:auto!important;
  overflow:visible!important;
  transform:none!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-market-v77-toolbar{
  position:static!important;
  z-index:auto!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-height:48px!important;
  margin:0!important;
  overflow:visible!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-market-v77-toolbar .apt-filter-chip{
  position:static!important;
  z-index:auto!important;
  flex:0 0 auto!important;
  min-width:92px!important;
  height:38px!important;
  margin:0!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-market-v77-sort{
  min-width:0!important;
  margin:0!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-market-v100-results-head{
  position:relative!important;
  z-index:1!important;
  clear:both!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-height:52px!important;
  margin:24px 0 14px!important;
  padding:0!important;
  transform:none!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-market-v77-results{
  position:relative!important;
  z-index:1!important;
  clear:both!important;
  padding-top:0!important;
}

/* Bottom sheet: viewport anchored and independent from search card. */
html.apt-app-viewport body.post-type-archive-property .apt-market-v77-advanced{
  position:fixed!important;
  z-index:1002!important;
  top:auto!important;
  right:auto!important;
  bottom:0!important;
  left:50%!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  width:min(100%,680px)!important;
  max-width:680px!important;
  max-height:min(78dvh,720px)!important;
  margin:0!important;
  padding:0 16px calc(18px + env(safe-area-inset-bottom,0px))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  border:1px solid #e4e0d8!important;
  border-bottom:0!important;
  border-radius:26px 26px 0 0!important;
  background:#fff!important;
  box-shadow:0 -22px 65px rgba(18,20,17,.22)!important;
  transform:translateX(-50%)!important;
  overscroll-behavior:contain!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-market-v77-advanced[hidden]{
  display:none!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-mobile-filter-backdrop{
  position:fixed!important;
  z-index:1001!important;
  inset:0!important;
  display:block!important;
  margin:0!important;
  background:rgba(17,20,16,.48)!important;
  backdrop-filter:blur(3px)!important;
  -webkit-backdrop-filter:blur(3px)!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-mobile-filter-backdrop[hidden]{
  display:none!important;
}
html.apt-app-viewport body.post-type-archive-property.apt-mobile-filter-open{
  overflow:hidden!important;
  touch-action:none!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-market-v77-advanced>label{
  box-sizing:border-box!important;
  min-width:0!important;
  padding:13px 8px!important;
  border:0!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-market-v77-advanced>label>span{
  display:block!important;
  margin-bottom:7px!important;
  color:#777d75!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-market-v77-advanced input{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  padding:0 12px!important;
  border:1px solid #e1ddd6!important;
  border-radius:12px!important;
  background:#faf9f6!important;
  color:#20231f!important;
  font-size:11px!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-mobile-filter-sheet-head{
  position:sticky!important;
  z-index:2!important;
  top:0!important;
  grid-column:1/-1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:68px!important;
  padding:12px 8px!important;
  border-bottom:1px solid #ece8e1!important;
  background:#fff!important;
}
html.apt-app-viewport body.post-type-archive-property .apt-mobile-filter-apply{
  grid-column:1/-1!important;
  display:block!important;
  padding:8px!important;
}

/* PHONE: controls are a clean row below the search fields. */
@media(max-width:600px){
  html.apt-app-phone body.post-type-archive-property .apt-market-v100{
    padding-top:20px!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v77-head{
    margin-bottom:18px!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v77-head h1{
    font-size:38px!important;
    line-height:.96!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v77-search{
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v77-toolbar{
    display:grid!important;
    grid-template-columns:auto minmax(128px,1fr)!important;
    align-items:center!important;
    gap:10px!important;
    margin-top:12px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v77-sort{
    justify-self:stretch!important;
    width:100%!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v77-sort select{
    width:100%!important;
    height:38px!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v100-results-head{
    display:block!important;
    min-height:0!important;
    margin:26px 0 14px!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v100-results-head>div{
    gap:3px!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v100-results-head strong{
    display:block!important;
    font-size:23px!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v100-results-head p{
    margin-top:6px!important;
    font-size:9px!important;
    line-height:1.45!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v77-advanced{
    grid-template-columns:1fr!important;
    width:100%!important;
    max-width:none!important;
    max-height:82dvh!important;
    padding-left:14px!important;
    padding-right:14px!important;
    border-left:0!important;
    border-right:0!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-market-v77-advanced>label,
  html.apt-app-phone body.post-type-archive-property .apt-mobile-filter-apply{
    grid-column:1!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }
  html.apt-app-phone body.post-type-archive-property .apt-mobile-filter-sheet-head{
    grid-column:1!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }
}

/* TABLET: retain the card, but make toolbar a real footer inside it. */
@media(min-width:601px) and (max-width:1200px){
  html.apt-app-tablet body.post-type-archive-property .apt-market-v77-search{
    overflow:visible!important;
    border:1px solid #dedad2!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 12px 34px rgba(24,21,17,.055)!important;
  }
  html.apt-app-tablet body.post-type-archive-property .apt-market-v77-toolbar{
    display:grid!important;
    grid-template-columns:auto minmax(160px,220px)!important;
    justify-content:space-between!important;
    gap:12px!important;
    padding:10px 12px!important;
    border-top:1px solid #ece9e2!important;
    background:#faf9f6!important;
  }
  html.apt-app-tablet body.post-type-archive-property .apt-market-v77-sort{
    width:100%!important;
  }
  html.apt-app-tablet body.post-type-archive-property .apt-market-v77-sort select{
    width:100%!important;
    height:38px!important;
  }
  html.apt-app-tablet body.post-type-archive-property .apt-market-v100-results-head{
    margin-top:30px!important;
  }
  html.apt-app-tablet body.post-type-archive-property .apt-market-v77-advanced{
    bottom:18px!important;
    width:min(calc(100% - 40px),680px)!important;
    border-bottom:1px solid #e4e0d8!important;
    border-radius:26px!important;
  }
}


/* ============================================================
   v1.3.2 — App responsive artwork overrides
============================================================ */
html.apt-app-viewport .apt-app-hero-image{
  background:#e9e7e1!important;
}
html.apt-app-viewport .apt-app-hero-image.has-image{
  overflow:hidden;
}
html.apt-app-viewport .apt-app-hero-image .apt-responsive-art--backdrop{
  z-index:0;
}
html.apt-app-viewport .apt-app-hero-image .apt-responsive-art--contain{
  z-index:1;
}
html.apt-app-viewport .apt-app-hero-overlay{
  z-index:2;
}
html.apt-app-viewport .apt-app-hero-copy{
  z-index:3;
}

/* Stop legacy background animation from zooming/cropping user artwork. */
@media(max-width:1200px) and (prefers-reduced-motion:no-preference){
  html.apt-app-viewport .apt-app-hero-image.has-image{
    animation:none!important;
    background-image:none!important;
    background-size:auto!important;
    background-position:center!important;
  }
}

/* Banner master 2000x600: one ratio everywhere, no border. */
html.apt-app-viewport .apt-ad-banner,
html.apt-app-tablet .apt-ad-banner,
html.apt-app-phone .apt-ad-banner{
  height:auto!important;
  aspect-ratio:10 / 3!important;
  border:0!important;
  outline:0!important;
  border-radius:16px!important;
  box-shadow:none!important;
  background:#f1efe9!important;
}
html.apt-app-viewport .apt-ad-banner.has-media img{
  width:100%;
  height:100%;
  object-fit:contain!important;
}
html.apt-app-viewport .apt-app-banner-wrap{
  padding:16px 10px 2px!important;
}
html.apt-app-tablet .apt-app-banner-wrap{
  padding-left:22px!important;
  padding-right:22px!important;
}


/* ============================================================
   v1.3.3 — App asset-aware responsive media
============================================================ */

/* Remove v1.3.2 full-artwork/backdrop behavior. */
html.apt-app-viewport .apt-app-hero-image>.apt-responsive-art{
  display:none!important;
}

html.apt-app-viewport .apt-app-hero-image{
  overflow:hidden;
  background:#e9e7e1!important;
}
html.apt-app-viewport .apt-app-hero-image>.apt-setting-image--hero{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:60% 50%;
}
html.apt-app-phone .apt-app-hero-image>.apt-setting-image--hero{
  object-position:60% 50%;
}
html.apt-app-tablet .apt-app-hero-image>.apt-setting-image--hero{
  object-position:58% 50%;
}

/* No legacy zoom/drift on uploaded Hero. */
@media(max-width:1200px) and (prefers-reduced-motion:no-preference){
  html.apt-app-viewport .apt-app-hero-image.has-image{
    animation:none!important;
    background-image:none!important;
    background-size:auto!important;
  }
}

/* Banner keeps intrinsic image ratio; no container ratio forcing. */
html.apt-app-viewport .apt-ad-banner,
html.apt-app-tablet .apt-ad-banner,
html.apt-app-phone .apt-ad-banner{
  width:100%;
  height:auto!important;
  aspect-ratio:auto!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  border-radius:15px!important;
}
html.apt-app-viewport .apt-ad-banner.has-media img{
  position:static!important;
  display:block;
  width:100%;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
}

/* Mobile/tablet banner spacing only; image itself decides height. */
html.apt-app-viewport .apt-app-banner-wrap{
  padding:14px 10px 2px!important;
}
html.apt-app-tablet .apt-app-banner-wrap{
  padding-left:22px!important;
  padding-right:22px!important;
}


/* v1.3.4: tablet/mobile banner behavior intentionally unchanged. */


/* ============================================================
   v1.3.5 — Premium app search polish
============================================================ */
html.apt-app-viewport .apt-app-search-card{
  overflow:hidden;
  padding:0 11px 11px!important;
  border:1px solid rgba(48,52,45,.12)!important;
  border-radius:19px!important;
  background:linear-gradient(180deg,#fbfaf7 0%,#f5f2ec 100%)!important;
  box-shadow:
    0 16px 34px rgba(27,30,25,.12),
    0 2px 7px rgba(27,30,25,.035)!important;
}

/* compact pill-style active transaction */
html.apt-app-viewport .apt-app-transaction-tabs{
  gap:6px!important;
  padding:9px 1px 8px!important;
  border-bottom:1px solid rgba(49,53,46,.08)!important;
}
html.apt-app-viewport .apt-app-transaction-tabs span{
  min-width:58px;
  padding:7px 12px!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  color:#7d817a!important;
  text-align:center;
  font-size:10px!important;
  font-weight:760!important;
}
html.apt-app-viewport .apt-app-transaction-tabs input:checked+span{
  border-color:#d8d8cf!important;
  background:#fff!important;
  color:#171b17!important;
  box-shadow:0 3px 10px rgba(26,30,25,.055);
}

/* fields become quiet white surfaces inside warm shell */
html.apt-app-viewport .apt-app-keyword,
html.apt-app-viewport .apt-app-search-selects label,
html.apt-app-viewport .apt-app-search-selects>.apt-home-location-field{
  border:1px solid #e1ddd4!important;
  background:#fff!important;
  box-shadow:none!important;
}
html.apt-app-viewport .apt-app-keyword{
  height:47px!important;
  margin-top:8px!important;
  border-radius:12px!important;
}
html.apt-app-viewport .apt-app-keyword:focus-within,
html.apt-app-viewport .apt-app-search-selects label:focus-within,
html.apt-app-viewport .apt-app-search-selects>.apt-home-location-field:focus-within{
  border-color:#8d9786!important;
  box-shadow:0 0 0 3px rgba(67,83,65,.07)!important;
}
html.apt-app-viewport .apt-app-search-selects{
  gap:8px!important;
  margin-top:8px!important;
}
html.apt-app-viewport .apt-app-search-selects label,
html.apt-app-viewport .apt-app-search-selects>.apt-home-location-field{
  border-radius:12px!important;
}

/* Override old green CTA with a dark premium CTA. */
html.apt-app-viewport .apt-app-search-card>button{
  height:47px!important;
  margin-top:9px!important;
  border:1px solid #141814!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#242b25 0%,#171c18 100%)!important;
  color:#fff!important;
  box-shadow:
    0 10px 24px rgba(18,22,18,.17),
    inset 0 1px 0 rgba(255,255,255,.07)!important;
  font-size:11px!important;
  font-weight:820!important;
  transition:
    transform .18s ease,
    background .18s ease,
    box-shadow .18s ease!important;
}
html.apt-app-viewport .apt-app-search-card>button:hover{
  background:linear-gradient(180deg,#313a32 0%,#202621 100%)!important;
  box-shadow:
    0 13px 28px rgba(18,22,18,.20),
    inset 0 1px 0 rgba(255,255,255,.08)!important;
  transform:translateY(-1px);
}
html.apt-app-viewport .apt-app-search-card>button:active{
  transform:none;
}
html.apt-app-viewport .apt-app-search-card>button:focus-visible{
  outline:3px solid rgba(38,50,39,.18);
  outline-offset:2px;
}

/* Phone keeps the same hierarchy but slightly tighter. */
@media(max-width:600px){
  html.apt-app-viewport .apt-app-search-card{
    padding:0 10px 10px!important;
  }
  html.apt-app-viewport .apt-app-search-card>button{
    height:45px!important;
  }
}

/* Tablet gets a little more breathing room. */
@media(min-width:601px) and (max-width:1200px){
  html.apt-app-viewport .apt-app-search-card{
    padding:0 14px 14px!important;
  }
  html.apt-app-viewport .apt-app-search-card>button{
    height:49px!important;
  }
}


/* v1.3.7 — keep the final buyer-journey controls clear of the semi-app nav. */
@media(max-width:1200px){
  html.apt-app-viewport .apt-detail-v137-related{
    scroll-margin-top:72px;
  }
}


/* v1.3.8 — detail back button must remain visible in app mode. */
html.apt-app-viewport body.single-property .apt-detail-v138-back{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  z-index:4!important;
}
html.apt-app-viewport body.single-property .apt-detail-v138-back>a{
  display:inline-flex!important;
}
