/* Theo Properties RC1.0.11.20.16 — Small Device Explore Density Lock
   Phone-only cleanup for Explore. Tablet and desktop compositions remain unchanged. */

@media (max-width:600px){
  body.theo-app #explore .marketplace-hero-copy{
    padding:22px 14px 14px!important;
  }

  body.theo-app #explore .marketplace-kicker{
    margin-bottom:8px!important;
    font-size:10px!important;
    letter-spacing:.11em!important;
  }

  body.theo-app #explore .premium-marketplace-hero h1,
  body.theo-app #explore .marketplace-hero-copy>h1#marketplace-title{
    font-size:clamp(31px,8.6vw,36px)!important;
    line-height:1.01!important;
  }

  body.theo-app #explore .hero-lead{
    margin:11px 0 15px!important;
    font-size:13.5px!important;
    line-height:1.46!important;
  }

  body.theo-app #explore .hero-search-card{
    padding:10px!important;
    border-radius:11px!important;
  }

  body.theo-app #explore .hero-search-card .public-search{
    gap:8px!important;
  }

  body.theo-app #explore .hero-search-card .public-search label,
  body.theo-app #explore .hero-search-card .public-search .search-location-field label,
  body.theo-app #explore .hero-search-card .public-search .rent-search-field>label{
    margin-bottom:5px!important;
    font-size:12px!important;
    line-height:1.2!important;
  }

  /* Keep location on one compact row. */
  body.theo-app #explore .location-search-shell{
    display:grid!important;
    grid-template-columns:20px minmax(0,1fr) 38px!important;
    grid-template-rows:46px!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    padding:0 5px 0 10px!important;
    border-radius:8px!important;
  }

  body.theo-app #explore .location-search-icon{
    grid-column:1!important;
    width:18px!important;
    height:18px!important;
  }

  body.theo-app #explore .location-search-shell input{
    grid-column:2!important;
    width:100%!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    font-size:16px!important;
  }

  body.theo-app #explore .location-inline-actions{
    grid-column:3!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:38px!important;
    min-width:38px!important;
    gap:0!important;
  }

  body.theo-app #explore .location-view-pin{
    display:none!important;
  }

  body.theo-app #explore .location-current-button{
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:36px!important;
    min-height:36px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border-radius:8px!important;
  }

  body.theo-app #explore .location-current-button svg{
    width:17px!important;
    height:17px!important;
    margin:0!important;
  }

  body.theo-app #explore .location-current-button .location-action-long,
  body.theo-app #explore .location-current-button .location-action-short{
    display:none!important;
  }

  body.theo-app #explore .hero-search-card .public-search select,
  body.theo-app #explore .hero-search-card .rent-range-trigger{
    height:46px!important;
    min-height:46px!important;
    padding-inline:12px!important;
    border-radius:8px!important;
    font-size:16px!important;
  }

  body.theo-app #explore .hero-search-submit{
    height:48px!important;
    min-height:48px!important;
    border-radius:8px!important;
    font-size:15px!important;
  }

  body.theo-app #explore .market-more-filters{
    margin-top:8px!important;
    border-radius:8px!important;
  }

  body.theo-app #explore .market-more-filters>summary{
    min-height:44px!important;
    padding:0 9px 0 11px!important;
    font-size:12.5px!important;
  }

  body.theo-app #explore .market-more-filters>summary small{
    display:none!important;
  }

  body.theo-app #explore .market-more-filters>summary:after{
    width:28px!important;
    height:28px!important;
    flex-basis:28px!important;
    font-size:17px!important;
  }

  /* Compact trust/benefit rows for phones. */
  body.theo-app #explore .hero-support{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:0!important;
    margin:10px 0 0!important;
    padding:6px 0 0!important;
    border-top:1px solid #e3e9ec!important;
    overflow:visible!important;
  }

  body.theo-app #explore .hero-support>.hero-benefit{
    display:grid!important;
    grid-template-columns:30px minmax(0,1fr)!important;
    align-items:center!important;
    gap:10px!important;
    min-height:58px!important;
    padding:8px 0!important;
    border-right:0!important;
    border-bottom:1px solid #e5eaed!important;
    overflow:hidden!important;
  }

  body.theo-app #explore .hero-support>.hero-benefit:first-child,
  body.theo-app #explore .hero-support>.hero-benefit:last-child{
    padding-left:0!important;
    padding-right:0!important;
  }

  body.theo-app #explore .hero-support>.hero-benefit:last-child{
    border-bottom:0!important;
  }

  body.theo-app #explore .hero-benefit-icon{
    width:30px!important;
    height:30px!important;
    flex:0 0 30px!important;
  }

  body.theo-app #explore .hero-benefit-icon svg{
    width:15px!important;
    height:15px!important;
  }

  body.theo-app #explore .hero-benefit-copy{
    min-width:0!important;
    text-align:left!important;
  }

  body.theo-app #explore .hero-benefit-copy b{
    margin:0!important;
    font-size:13px!important;
    line-height:1.2!important;
    text-align:left!important;
    white-space:normal!important;
  }

  body.theo-app #explore .hero-benefit-copy small{
    margin-top:2px!important;
    font-size:11.5px!important;
    line-height:1.28!important;
    text-align:left!important;
    white-space:normal!important;
  }

  /* Reduce the amount of screen consumed before discovery begins. */
  body.theo-app #explore .marketplace-hero-visual{
    height:clamp(220px,62vw,270px)!important;
    min-height:220px!important;
  }

  body.theo-app #explore .hero-property-image{
    object-position:center 45%!important;
  }

  /* Compact the signed-in bottom dock without changing its behavior. */
  body.theo-app{--mobile-dock-space:76px!important}
  #mobile-nav.mobile-nav{
    left:10px!important;
    right:10px!important;
    bottom:max(7px,env(safe-area-inset-bottom))!important;
    min-height:58px!important;
    padding:4px!important;
    gap:3px!important;
    border-radius:15px!important;
  }

  #mobile-nav.mobile-nav button{
    min-height:48px!important;
    gap:2px!important;
    padding:4px 2px!important;
    border-radius:11px!important;
    font-size:8px!important;
  }

  #mobile-nav.mobile-nav button svg{
    width:18px!important;
    height:18px!important;
    flex-basis:18px!important;
  }

  body.signed-mode .content{
    padding-bottom:calc(var(--mobile-dock-space) + env(safe-area-inset-bottom))!important;
  }
}

@media (max-width:380px){
  body.theo-app #explore .premium-marketplace-hero h1,
  body.theo-app #explore .marketplace-hero-copy>h1#marketplace-title{
    font-size:30px!important;
  }
  #mobile-nav.mobile-nav button{font-size:7.6px!important}
}
