/* RentFind mobile refinement — intentionally scoped to the homepage.
   Desktop layout and application behaviour remain unchanged. */
@media (max-width:700px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body.rf-app{padding-bottom:0!important;background:#fff}
  body.rf-app main{overflow:visible}

  /* Compact, balanced mobile header */
  .rf-header{height:70px!important;min-height:70px;padding:0 16px!important;gap:10px}
  .rf-brand{gap:8px;min-width:0;flex:1}
  .rf-brand img{width:42px;height:42px;flex:none}
  .rf-brand span{font-size:clamp(16px,4.5vw,19px);white-space:nowrap;gap:3px}
  .rf-actions{gap:9px;flex:none}
  .rf-headerSearch{display:flex!important;align-items:center;justify-content:center;width:26px;height:34px;font-size:25px!important}
  .rf-headerSearch::after{content:none!important}
  .rf-headerSignup{display:inline-flex!important;height:38px;min-width:74px;padding:0 12px;font-size:12px!important}
  .rf-headerSignup::after{content:none!important}
  .rf-actions .menuBtn{display:flex!important;width:30px;height:36px;flex:none}

  /* Hero and search: let content determine height; never clip the form. */
  .rf-premiumHero.rf-referenceHero{height:auto!important;min-height:0!important;margin:0!important;padding:0 0 22px!important;display:block!important;overflow:visible!important;background:#fff}
  .rf-referenceHero .rf-premiumHeroImage{top:0;left:0;right:0;height:350px!important;overflow:hidden}
  .rf-referenceHero .rf-premiumHeroImage img{height:100%;object-fit:cover;object-position:62% center}
  .rf-referenceHero .rf-premiumHeroShade{top:0;left:0;right:0;height:350px!important;background:linear-gradient(90deg,rgba(5,39,68,.88),rgba(5,53,88,.56) 68%,rgba(5,53,88,.28))!important}
  .rf-referenceHero .rf-premiumHeroContent{position:relative!important;z-index:2;width:auto!important;height:auto!important;margin:0!important;padding:34px 18px 0!important}
  .rf-referenceHero .rf-premiumEyebrow{font-size:10px;padding:7px 11px;max-width:max-content}
  .rf-referenceHero h1{font-size:clamp(32px,8.2vw,43px)!important;line-height:1.06!important;letter-spacing:-1.15px!important;margin:20px 0 10px!important;max-width:540px}
  .rf-referenceHero .rf-premiumHeroContent>p{font-size:14px!important;line-height:1.45!important;max-width:490px!important;margin:0!important}
  .rf-referenceHero .desktopBreak{display:none!important}
  .rf-referenceHero .rf-premiumSearch{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;height:auto!important;min-height:0!important;margin:27px 0 0!important;padding:13px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:66px 58px 48px auto!important;gap:9px!important;border:1px solid #e1eaf4!important;border-radius:16px!important;background:#fff!important;box-shadow:0 10px 30px rgba(16,43,76,.14)!important;box-sizing:border-box!important}
  .rf-referenceSearch .rf-searchFieldIcon{display:none!important}
  .rf-referenceSearch .rf-searchFieldBody{grid-column:1/-1!important;grid-row:1!important;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:7px 12px!important;border:1px solid #dce6f1!important;border-radius:10px!important;background:#fff!important}
  .rf-referenceSearch .rf-searchFieldBody label{font-size:11px!important;margin-bottom:2px!important;color:#344861!important}
  .rf-referenceSearch .rf-searchFieldBody input{width:100%!important;height:25px!important;font-size:14px!important;padding:0!important;border:0!important;box-shadow:none!important}
  .rf-referenceSearch .rf-heroSelectField{display:flex!important;grid-row:2!important;height:58px!important;min-width:0!important;padding:7px 10px!important;border:1px solid #dce6f1!important;border-radius:10px!important;background:#fff!important}
  .rf-referenceSearch .rf-heroSelectField:nth-of-type(1){grid-column:1!important;grid-row:2!important}
  .rf-referenceSearch .rf-heroSelectField:nth-of-type(2){grid-column:2!important;grid-row:2!important}
  .rf-referenceSearch .rf-bedroomField{display:none!important}
  .rf-referenceSearch .rf-heroSelectField span{font-size:10px!important;margin-bottom:4px!important}
  .rf-referenceSearch .rf-heroSelectField select{width:100%;font-size:12px!important;min-height:20px}
  .rf-referenceSearch .rf-searchButton{grid-column:1/-1!important;grid-row:3!important;width:100%!important;height:48px!important;border-radius:10px!important;font-size:14px!important}
  .rf-referenceSearch .rf-moreFilters{grid-column:1!important;grid-row:4!important;justify-self:start!important;align-self:center!important;padding:5px 2px!important;font-size:11px!important}

  /* Sections follow the search card naturally — no artificial blank gap. */
  .rf-homeSection{width:100%!important;margin:0!important;padding:26px 18px!important;box-sizing:border-box!important}
  .rf-popularLocations{padding-top:8px!important}
  .rf-sectionHead,.rf-sectionIntro{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:10px!important;margin-bottom:13px!important}
  .rf-sectionHead h2,.rf-sectionIntro h2,.rf-refineIntro h2{font-size:22px!important;line-height:1.18!important;letter-spacing:-.45px!important}
  .rf-sectionHead p,.rf-sectionIntro p{font-size:12px!important;line-height:1.4!important;margin-top:3px!important}
  .rf-viewAll{font-size:10px!important;flex:none}
  .rf-locationGrid{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,42%)!important;grid-template-columns:none!important;overflow-x:auto!important;overflow-y:hidden!important;gap:11px!important;padding:1px 1px 9px!important;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .rf-locationCard{min-width:0;scroll-snap-align:start;border-radius:11px!important}
  .rf-locationCard img{width:100%;height:92px!important;object-fit:cover}
  .rf-locationCard>span{padding:9px!important}
  .rf-locationCard strong{font-size:12px!important}
  .rf-locationCard small{font-size:10px!important}
  .rf-propertyCategories{padding-top:22px!important;padding-bottom:12px!important}
  .rf-categoryTiles{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
  .rf-categoryTiles a{min-width:0;min-height:78px!important;padding:8px 3px!important;border-radius:11px!important;gap:7px!important}
  .rf-categoryTiles a span{font-size:25px!important}
  .rf-categoryTiles a strong{font-size:10px!important;line-height:1.2;text-align:center}

  /* Property cards remain two-up and cannot create horizontal overflow. */
  .rf-listingShowcase{padding-top:20px!important;padding-bottom:25px!important}
  .rf-listingShowcase .rf-sectionHead{align-items:flex-end!important}
  .rf-listingGrid,.grid.rf-listingGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;width:100%;}
  .rf-listingGrid>*{min-width:0!important;max-width:100%;}
  .rf-listingGrid .card{min-width:0;border-radius:11px!important;overflow:hidden}
  .rf-listingGrid .listingImageWrap{height:auto!important;aspect-ratio:1.35/1;}
  .rf-listingGrid .listingImageWrap img{width:100%;height:100%;object-fit:cover}
  .rf-listingGrid .rf-cardBody{padding:0 9px 10px!important;min-width:0}
  .rf-listingGrid .rf-cardPrice strong{font-size:12px!important}
  .rf-listingGrid .cardTitle{font-size:10px!important;line-height:1.35;white-space:normal!important;overflow-wrap:anywhere;padding:5px 0 3px!important}
  .rf-listingGrid .cardMeta{display:flex;flex-wrap:wrap;gap:4px;padding:0 0 5px!important}
  .rf-listingGrid .rf-cardSpecs{font-size:8px!important;white-space:normal!important;flex-wrap:wrap;justify-content:flex-start;gap:6px}
  .rf-listingGrid .viewHint{font-size:10px!important;padding:8px 5px!important}
  .rf-listingShowcase #resultsCount{display:block;font-size:11px;margin-top:5px}

  /* Four process steps in a balanced two-column grid. */
  .rf-howItWorks{width:100%!important;padding:27px 18px!important;background:#eff6ff!important;box-sizing:border-box}
  .rf-howItWorks .rf-sectionHead{margin-bottom:17px!important}
  .rf-stepsGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 13px!important}
  .rf-stepsGrid article{display:flex;align-items:flex-start;gap:9px;min-width:0}
  .rf-stepsGrid article>span{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:#dbeafe;color:#0868e8;font-size:19px}
  .rf-stepsGrid article>div{min-width:0}
  .rf-stepsGrid article strong{font-size:12px!important;line-height:1.3}
  .rf-stepsGrid article strong b{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#0868e8;color:#fff;margin-right:4px}
  .rf-stepsGrid article p{font-size:10px!important;line-height:1.5!important;margin:5px 0 0!important}

  /* Landlordey banner: keep heading, copy and action in distinct areas. */
  .rf-landlordCTA{width:calc(100% - 36px)!important;min-height:0!important;margin:20px auto 28px!important;padding:17px!important;display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:8px 11px!important;border-radius:13px!important;overflow:hidden}
  .rf-landlordMark{grid-column:1;grid-row:1;position:static!important;width:44px!important;height:44px!important;flex:none!important;border-radius:50%!important}
  .rf-landlordMark img{width:35px!important;height:35px!important}
  .rf-landlordCopy{grid-column:2;grid-row:1;min-width:0!important;padding:0!important;max-width:none!important}
  .rf-landlordCopy h2{font-size:15px!important;line-height:1.25!important;letter-spacing:-.2px!important;margin:0 0 5px!important;overflow-wrap:normal;}
  .rf-landlordCopy p{font-size:10px!important;line-height:1.45!important;margin:0!important;max-width:none!important}
  .rf-landlordButton{grid-column:2;grid-row:2;justify-self:start;margin:2px 0 0!important;padding:9px 13px!important;font-size:10px!important;border-radius:9px!important}

  /* Footer compact, readable and never covered by a floating nav. */
  .rf-footer{padding:30px 18px 18px!important;margin:0!important;box-sizing:border-box}
  .rf-footerGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:23px 16px!important}
  .rf-footerGrid>div{min-width:0}
  .rf-footerGrid>div:first-child{grid-column:1/-1}
  .rf-footerBrand{font-size:14px!important;gap:8px}
  .rf-footerBrand img{width:42px!important;height:42px!important}
  .rf-footerGrid h3{font-size:11px!important;letter-spacing:.8px;margin:0 0 10px!important}
  .rf-footerGrid a:not(.rf-footerBrand){display:block;font-size:12px!important;line-height:1.5!important;margin:0 0 8px!important;overflow-wrap:anywhere}
  .rf-footerGrid p{font-size:11px!important;margin:8px 0 0!important}
  .rf-socialFooter a{display:flex!important;align-items:center;gap:8px}
  .rf-socialFooter img{width:23px;height:23px;object-fit:contain}
  .rf-footerBottom{margin-top:18px!important;padding-top:12px!important;font-size:10px!important;line-height:1.5!important}

  /* Bottom navigation is intentionally removed from the mobile experience. */
  .rf-mobileNav,.mobileBottomNav{display:none!important}
  .rf-menuOverlay{z-index:100}
}
@media(max-width:390px){
  .rf-header{padding-left:12px!important;padding-right:12px!important}
  .rf-brand img{width:38px;height:38px}
  .rf-brand span{font-size:16px}
  .rf-actions{gap:6px}
  .rf-headerSignup{min-width:66px;padding:0 9px}
  .rf-referenceHero .rf-premiumHeroContent{padding-left:15px!important;padding-right:15px!important}
  .rf-homeSection{padding-left:15px!important;padding-right:15px!important}
  .rf-locationGrid{grid-auto-columns:48%!important}
  .rf-categoryTiles{gap:7px!important}
  .rf-categoryTiles a{min-height:72px!important}
  .rf-listingGrid,.grid.rf-listingGrid{gap:8px!important}
  .rf-landlordCTA{width:calc(100% - 30px)!important}
}
