/* Theo Properties RC1.0.11.20.5
   Property Class Visibility Consistency Fix
   Keeps the approved property-class showcase visible in Explore regardless of auth state. */

/* Rollback CSS hid this section for signed sessions. Restore it in Explore only. */
body.signed-mode #explore .marketplace-category-showcase{
  display:block!important;
}

/* Match the approved premium presentation for signed Explore sessions. */
body.signed-mode #explore .marketplace-category-showcase{
  max-width:1720px!important;
  margin:0 auto!important;
  padding:58px 54px 54px!important;
  background:#fbfcfc!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.signed-mode #explore .marketplace-category-showcase:before{
  content:"";
  display:block;
  width:52px;
  height:2px;
  margin:0 0 38px!important;
  background:linear-gradient(90deg,#c99548 0 58%,rgba(201,149,72,.22) 58% 100%);
}
body.signed-mode #explore .category-showcase-head{
  display:grid!important;
  grid-template-columns:minmax(0,.95fr) minmax(420px,1.15fr)!important;
  grid-template-areas:"copy title"!important;
  align-items:end!important;
  gap:48px!important;
  margin:0 0 30px!important;
  padding:0 0 28px!important;
  border-bottom:1px solid rgba(18,48,70,.11)!important;
}
body.signed-mode #explore .category-showcase-head>div{grid-area:title!important;min-width:0!important}
body.signed-mode #explore .category-showcase-head>p{
  grid-area:copy!important;
  max-width:630px!important;
  margin:0!important;
  color:#657a89!important;
  font:500 16px/1.48 Inter,system-ui,sans-serif!important;
}
body.signed-mode #explore .category-showcase-head .marketplace-section-kicker{
  display:block!important;
  margin:0 0 13px!important;
  color:#a86f25!important;
  font:800 12px/1.2 Inter,system-ui,sans-serif!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body.signed-mode #explore .category-showcase-head h2{
  margin:0!important;
  color:#112b40!important;
  font:700 clamp(32px,2.3vw,44px)/1.08 "Inter Tight",Inter,system-ui,sans-serif!important;
  letter-spacing:-.035em!important;
  white-space:nowrap!important;
}
body.signed-mode #explore .category-showcase-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  overflow:visible!important;
  padding:0!important;
  background:none!important;
  scroll-snap-type:none!important;
}
body.signed-mode #explore .category-showcase-card.premium-category-card{
  position:relative!important;
  isolation:isolate!important;
  min-width:0!important;
  min-height:0!important;
  aspect-ratio:1.42/1!important;
  border:1px solid rgba(18,48,70,.10)!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center center!important;
  box-shadow:0 12px 28px rgba(25,50,68,.08)!important;
}
body.signed-mode #explore .category-showcase-card.residential{background-image:url('./showcase-houses/house-06.webp')!important;background-position:center 48%!important}
body.signed-mode #explore .category-showcase-card.commercial{background-image:url('./commercial.webp')!important}
body.signed-mode #explore .category-showcase-card.industrial{background-image:url('./industrial.webp')!important}
body.signed-mode #explore .category-showcase-card.agricultural{background-image:url('./farm.webp')!important}
body.signed-mode #explore .category-showcase-card.premium-category-card:before{
  content:""!important;position:absolute!important;inset:0!important;z-index:0!important;
  background:linear-gradient(180deg,rgba(8,26,40,.01) 32%,rgba(8,26,40,.16) 58%,rgba(8,26,40,.84) 100%)!important;
}
body.signed-mode #explore .category-showcase-card.premium-category-card:after{
  content:""!important;position:absolute!important;top:0!important;left:26px!important;width:62px!important;height:3px!important;z-index:2!important;background:#d19a48!important
}
body.signed-mode #explore .premium-category-card-inner{position:relative!important;width:100%!important;height:100%!important;padding:0!important;background:none!important}
body.signed-mode #explore .premium-category-icon{
  position:absolute!important;top:28px!important;left:28px!important;display:grid!important;place-items:center!important;
  width:64px!important;height:64px!important;border-radius:16px!important;background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 8px 20px rgba(12,35,51,.10)!important
}
body.signed-mode #explore .premium-category-icon svg{width:30px!important;height:30px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important}
body.signed-mode #explore .residential .premium-category-icon{color:#d7a24e!important}
body.signed-mode #explore .commercial .premium-category-icon{color:#278a78!important}
body.signed-mode #explore .industrial .premium-category-icon{color:#698394!important}
body.signed-mode #explore .agricultural .premium-category-icon{color:#758443!important}
body.signed-mode #explore .premium-category-copy{position:absolute!important;left:28px!important;right:24px!important;bottom:24px!important}
body.signed-mode #explore .premium-category-copy>span{display:block!important;margin-bottom:5px!important;color:#e4b467!important;font:800 12px/1 Inter,system-ui,sans-serif!important;letter-spacing:.12em!important}
body.signed-mode #explore .premium-category-copy>strong{display:block!important;color:#fff!important;font:700 clamp(22px,1.55vw,28px)/1.05 "Inter Tight",Inter,system-ui,sans-serif!important;text-shadow:0 2px 14px rgba(0,0,0,.22)!important}
body.signed-mode #explore .premium-category-copy>small{display:block!important;margin-top:8px!important;color:rgba(255,255,255,.86)!important;font:650 11px/1.3 Inter,system-ui,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.signed-mode #explore .premium-category-arrow,
body.signed-mode #explore .category-carousel-controls{display:none!important}

/* iPad landscape / compact desktop */
@media (min-width:900px) and (max-width:1280px){
  body.signed-mode #explore .marketplace-category-showcase{padding:44px 30px 42px!important}
  body.signed-mode #explore .category-showcase-head{grid-template-columns:minmax(0,.92fr) minmax(380px,1.08fr)!important;gap:34px!important}
  body.signed-mode #explore .category-showcase-head h2{font-size:32px!important}
  body.signed-mode #explore .category-showcase-head>p{font-size:15px!important}
  body.signed-mode #explore .category-showcase-grid{gap:12px!important}
  body.signed-mode #explore .category-showcase-card.premium-category-card{aspect-ratio:1.32/1!important;border-radius:13px!important}
  body.signed-mode #explore .premium-category-icon{top:16px!important;left:16px!important;width:46px!important;height:46px!important;border-radius:11px!important}
  body.signed-mode #explore .premium-category-icon svg{width:22px!important;height:22px!important}
  body.signed-mode #explore .premium-category-copy{left:18px!important;right:14px!important;bottom:17px!important}
  body.signed-mode #explore .premium-category-copy>strong{font-size:20px!important}
  body.signed-mode #explore .premium-category-copy>small{font-size:12px!important;letter-spacing:.035em!important}
}

/* iPad portrait */
@media (min-width:701px) and (max-width:899px){
  body.signed-mode #explore .marketplace-category-showcase{padding:40px 24px 42px!important}
  body.signed-mode #explore .category-showcase-head{grid-template-columns:1fr!important;grid-template-areas:"title" "copy"!important;gap:14px!important;padding-bottom:22px!important}
  body.signed-mode #explore .category-showcase-head h2{font-size:34px!important;white-space:normal!important}
  body.signed-mode #explore .category-showcase-head>p{max-width:650px!important;font-size:15px!important}
  body.signed-mode #explore .category-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  body.signed-mode #explore .category-showcase-card.premium-category-card{aspect-ratio:1.42/1!important}
  body.signed-mode #explore .premium-category-icon{top:17px!important;left:17px!important;width:46px!important;height:46px!important;border-radius:12px!important}
  body.signed-mode #explore .premium-category-icon svg{width:22px!important;height:22px!important}
  body.signed-mode #explore .premium-category-copy{left:18px!important;right:16px!important;bottom:17px!important}
  body.signed-mode #explore .premium-category-copy>strong{font-size:21px!important}
}

/* Phone: preserve swipe rail parity. */
@media (max-width:700px){
  body.signed-mode #explore .marketplace-category-showcase{padding:30px 14px 34px!important}
  body.signed-mode #explore .category-showcase-head{grid-template-columns:1fr!important;grid-template-areas:"title" "copy"!important;gap:12px!important;padding-bottom:18px!important}
  body.signed-mode #explore .category-showcase-head h2{font-size:28px!important;white-space:normal!important}
  body.signed-mode #explore .category-showcase-head>p{font-size:14px!important}
  body.signed-mode #explore .category-showcase-grid{display:flex!important;overflow-x:auto!important;gap:10px!important;margin:0 -14px!important;padding:0 14px 8px!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important}
  body.signed-mode #explore .category-showcase-card.premium-category-card{flex:0 0 80%!important;width:80%!important;min-height:218px!important;aspect-ratio:1.42/1!important;scroll-snap-align:start!important;border-radius:13px!important}
  body.signed-mode #explore .premium-category-icon{top:15px!important;left:15px!important;width:42px!important;height:42px!important;border-radius:11px!important}
  body.signed-mode #explore .premium-category-icon svg{width:20px!important;height:20px!important}
  body.signed-mode #explore .premium-category-copy{left:16px!important;right:14px!important;bottom:15px!important}
  body.signed-mode #explore .premium-category-copy>span{font-size:10.5px!important}
  body.signed-mode #explore .premium-category-copy>strong{font-size:22px!important}
  body.signed-mode #explore .premium-category-copy>small{font-size:10.5px!important;line-height:1.25!important}
}
