/* RC1.0.11.20.3 — Mobile Landing Parity Fix
   Phone-only override. Restores the approved hero/search composition after the rollback's
   legacy mobile-first layer. No desktop, workspace, navigation, auth or backend changes. */

@media (max-width:700px){
  /* Premium hero remains a real card on mobile instead of reverting to the old compact search-only surface. */
  body.guest-mode #explore .premium-marketplace-hero{
    display:flex!important;
    flex-direction:column!important;
    width:calc(100vw - 24px)!important;
    min-height:0!important;
    margin:12px auto 0!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #dde5e9!important;
    border-radius:16px!important;
    background:#fffdf9!important;
    box-shadow:0 14px 34px rgba(18,45,65,.075)!important;
  }

  body.guest-mode #explore .marketplace-hero-copy{
    display:block!important;
    order:1!important;
    padding:28px 18px 18px!important;
    background:linear-gradient(145deg,#fffdf9 0%,#fbfbf9 100%)!important;
  }

  /* Undo legacy mobile-first hiding and use the approved public hero copy. */
  body.guest-mode #explore .mobile-marketplace-intro{display:none!important}
  body.guest-mode #explore .marketplace-hero-copy>.marketplace-kicker{
    display:block!important;
    margin:0 0 10px!important;
    color:#a56c24!important;
    font:800 11px/1.25 Inter,system-ui,sans-serif!important;
    letter-spacing:.12em!important;
    text-transform:uppercase!important;
  }
  body.guest-mode #explore .marketplace-hero-copy>h1#marketplace-title{
    display:block!important;
    max-width:none!important;
    margin:0!important;
    color:#143048!important;
    font-family:"Inter Tight",Inter,system-ui,sans-serif!important;
    font-size:clamp(34px,9.5vw,40px)!important;
    font-weight:600!important;
    line-height:1.01!important;
    letter-spacing:-.046em!important;
  }
  body.guest-mode #explore .marketplace-hero-copy>h1#marketplace-title span{
    display:block!important;
    color:#36566c!important;
  }
  body.guest-mode #explore .marketplace-hero-copy>.hero-lead{
    display:block!important;
    max-width:none!important;
    margin:13px 0 20px!important;
    color:#647987!important;
    font-size:14px!important;
    font-weight:500!important;
    line-height:1.52!important;
  }

  /* Search card: restore all four primary fields on phone. */
  body.guest-mode #explore .hero-search-card{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:12px!important;
    overflow:visible!important;
    border:1px solid #dce5e9!important;
    border-radius:13px!important;
    background:#fff!important;
    box-shadow:0 9px 24px rgba(19,48,68,.05)!important;
  }
  body.guest-mode #explore .hero-search-card-head{display:none!important}
  body.guest-mode #explore .hero-search-card .public-search{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:11px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.guest-mode #explore .hero-search-card .public-search>.field,
  body.guest-mode #explore .hero-search-card .public-search>.property-class-field,
  body.guest-mode #explore .hero-search-card .public-search>.subtype-search-field,
  body.guest-mode #explore .hero-search-card .public-search>.rent-search-field,
  body.guest-mode #explore .hero-search-card .public-search>.search-location-field{
    display:block!important;
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  body.guest-mode #explore .hero-search-card .public-search label,
  body.guest-mode #explore .hero-search-card .public-search .search-location-field label,
  body.guest-mode #explore .hero-search-card .public-search .rent-search-field>label{
    position:static!important;
    width:auto!important;
    height:auto!important;
    clip:auto!important;
    overflow:visible!important;
    display:block!important;
    margin:0 0 7px!important;
    color:#587080!important;
    font:700 12px/1.2 Inter,system-ui,sans-serif!important;
    letter-spacing:.01em!important;
    text-transform:none!important;
  }

  /* Remove the legacy pseudo-location glyph; the SVG in the DOM is the canonical icon. */
  body.guest-mode #explore .public-search .search-location-field:before{content:none!important;display:none!important}

  body.guest-mode #explore .location-search-shell{
    display:grid!important;
    grid-template-columns:26px minmax(0,1fr)!important;
    grid-template-rows:48px 42px!important;
    align-items:center!important;
    width:100%!important;
    height:auto!important;
    min-height:102px!important;
    padding:5px 6px 7px 11px!important;
    border:1px solid #d8e2e7!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  body.guest-mode #explore .location-search-icon{
    grid-column:1!important;
    grid-row:1!important;
    width:21px!important;
    height:21px!important;
    color:#68899d!important;
    align-self:center!important;
  }
  body.guest-mode #explore .location-search-shell input{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    height:46px!important;
    min-height:46px!important;
    padding:0 8px!important;
    border:0!important;
    background:transparent!important;
    color:#18344a!important;
    font-size:16px!important;
    font-weight:500!important;
    box-shadow:none!important;
  }
  body.guest-mode #explore .location-inline-actions{
    grid-column:1/-1!important;
    grid-row:2!important;
    display:block!important;
    width:100%!important;
    padding:0!important;
  }
  body.guest-mode #explore .location-current-button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    width:100%!important;
    max-width:none!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 12px!important;
    border:1px solid #a8d7cc!important;
    border-radius:8px!important;
    background:#edf8f5!important;
    color:#087b68!important;
    font-size:14px!important;
    font-weight:750!important;
    white-space:nowrap!important;
  }
  body.guest-mode #explore .location-current-button svg{display:block!important;width:18px!important;height:18px!important}
  body.guest-mode #explore .location-current-button .location-action-long{display:none!important}
  body.guest-mode #explore .location-current-button .location-action-short{display:inline!important}

  body.guest-mode #explore .hero-search-card .public-search select,
  body.guest-mode #explore .hero-search-card .rent-range-trigger{
    display:flex!important;
    width:100%!important;
    height:50px!important;
    min-height:50px!important;
    padding:0 13px!important;
    border:1px solid #d8e2e7!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#18344a!important;
    font-size:16px!important;
    font-weight:600!important;
    box-shadow:none!important;
  }
  body.guest-mode #explore .hero-search-card .public-search select:disabled{
    color:#8d9ca6!important;
    background:#f8fafb!important;
  }
  body.guest-mode #explore .rent-range-trigger{align-items:center!important;justify-content:space-between!important;text-align:left!important}

  /* The old mobile filter sheet is not the primary search UI in this approved card. */
  body.guest-mode #explore .mobile-filter-launch{display:none!important}

  body.guest-mode #explore .hero-search-submit{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    grid-column:1!important;
    width:100%!important;
    height:52px!important;
    min-height:52px!important;
    margin:0!important;
    border:0!important;
    border-radius:9px!important;
    background:#14344d!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:750!important;
    white-space:nowrap!important;
    box-shadow:none!important;
  }

  /* More filters is part of the approved card and must remain visible on phone. */
  body.guest-mode #explore .market-more-filters{
    display:block!important;
    margin:12px 0 0!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #e1e7ea!important;
    border-radius:9px!important;
    background:#fbfcfc!important;
  }
  body.guest-mode #explore .market-more-filters>summary{
    min-height:49px!important;
    padding:0 10px 0 13px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    color:#213c51!important;
    font-size:13px!important;
    font-weight:750!important;
    list-style:none!important;
  }
  body.guest-mode #explore .market-more-filters>summary small{
    display:block!important;
    max-width:55%!important;
    margin-left:auto!important;
    overflow:hidden!important;
    color:#83939e!important;
    font-size:11px!important;
    font-weight:550!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.guest-mode #explore .market-more-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:11px!important;
    margin:0!important;
    padding:12px 13px 13px!important;
    border-top:1px solid #edf1f3!important;
  }

  /* Benefit strip: present, compact and readable. */
  body.guest-mode #explore .hero-support{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
    max-width:none!important;
    margin:15px 0 0!important;
    padding:14px 0 0!important;
    border-top:1px solid #e6ebed!important;
  }
  body.guest-mode #explore .hero-support>.hero-benefit{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
    min-width:0!important;
    padding:0 7px!important;
    text-align:center!important;
    border-right:1px solid #e6ebed!important;
  }
  body.guest-mode #explore .hero-support>.hero-benefit:first-child{padding-left:2px!important}
  body.guest-mode #explore .hero-support>.hero-benefit:last-child{padding-right:2px!important;border-right:0!important}
  body.guest-mode #explore .hero-benefit-icon{
    display:grid!important;
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
  }
  body.guest-mode #explore .hero-benefit-copy b{
    display:block!important;
    color:#18364c!important;
    font-size:11px!important;
    font-weight:750!important;
    line-height:1.28!important;
    white-space:normal!important;
    overflow:visible!important;
  }
  body.guest-mode #explore .hero-benefit-copy small{display:none!important}

  /* Restore the approved property image on phone. */
  body.guest-mode #explore .marketplace-hero-visual{
    position:relative!important;
    display:block!important;
    order:2!important;
    width:100%!important;
    height:clamp(250px,72vw,310px)!important;
    min-height:250px!important;
    overflow:hidden!important;
    background:#e6ecef!important;
  }
  body.guest-mode #explore .hero-property-image{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center 48%!important;
  }
  body.guest-mode #explore .hero-visual-shade{display:block!important;background:linear-gradient(180deg,transparent 58%,rgba(14,29,41,.13) 100%)!important}
  body.guest-mode #explore .hero-visual-copy,
  body.guest-mode #explore .hero-visual-types{display:none!important}

  /* Keep the next section clear of the hero and make the swipe rail obvious. */
  body.guest-mode #explore .marketplace-category-showcase{
    clear:both!important;
    margin-top:0!important;
    padding-top:34px!important;
  }
}

@media (max-width:430px){
  body.guest-mode #explore .premium-marketplace-hero{width:calc(100vw - 18px)!important}
  body.guest-mode #explore .marketplace-hero-copy{padding:25px 14px 16px!important}
  body.guest-mode #explore .marketplace-hero-copy>h1#marketplace-title{font-size:35px!important}
  body.guest-mode #explore .marketplace-hero-copy>.hero-lead{font-size:13.5px!important}
  body.guest-mode #explore .hero-search-card{padding:11px!important}
  body.guest-mode #explore .hero-support>.hero-benefit{padding-inline:5px!important}
  body.guest-mode #explore .hero-benefit-copy b{font-size:10.5px!important}
}
