/* RentFind + Landlordey final visual QA layer. 2026-09-28 */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{overflow-x:hidden}
img{max-width:100%}
button,input,select,textarea{font:inherit}
h1,h2,h3,h4,p{overflow-wrap:break-word}
a,button{touch-action:manipulation}

/* Prevent header/action compression and accidental text collisions. */
.rf-header,.ly-topbar{min-width:0}
.rf-brand,.ly-brand,.rf-actions,.ly-topActions,.rf-nav,.ly-nav{min-width:0}
.rf-brand span,.ly-brand span{min-width:0}
.rf-brand strong,.rf-brand b,.ly-brand strong,.ly-brand small{white-space:nowrap}

/* RentFind property detail: stack actions instead of squeezing labels into each other. */
.propertyBody{min-width:0}
.propertyActions{width:100%;display:flex;flex-wrap:wrap;align-items:stretch;gap:10px}
.propertyActions>*{min-width:0;max-width:100%;white-space:normal;text-align:center;line-height:1.25;overflow-wrap:anywhere}
.propertyGrid{min-width:0}
.propertyItem{min-width:0;overflow-wrap:anywhere}
.propertyItem b{line-height:1.2}
.listingWhatsApp{white-space:normal}

/* Long location/facility values never force a card wider than the viewport. */
.card,.landlordCard,.billCard,.contactCard,.ly-linkGrid a,.ly-contactCard{min-width:0}
.cardTitle,.cardMeta,.price,.landlordMeta,.landlordActions,.hintText{overflow-wrap:anywhere}

/* Mobile RentFind bottom navigation: clear content above it and stable touch targets. */
@media(max-width:760px){
  body.rf-app{padding-bottom:96px}
  .rf-footer{padding-bottom:118px!important}
  .rf-mobileNav{left:10px!important;right:10px!important;bottom:10px!important;width:auto!important;height:70px!important;min-height:70px!important;padding:5px 4px calc(5px + env(safe-area-inset-bottom))!important;border-radius:22px!important}
  .rf-mobileNav a{min-width:0!important;min-height:58px!important;padding:4px 2px!important;overflow:hidden}
  .rf-mobileNav .mobileNavIcon{font-size:20px!important;line-height:1!important}
  .rf-mobileNav small{max-width:100%;font-size:9px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
  .propertyPage{padding-bottom:118px!important}
  .propertyActions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .propertyActions>*{width:100%!important;min-height:50px!important}
  .propertyActions .listingWhatsApp{grid-column:auto!important}
  .propertyGrid{grid-template-columns:1fr!important;gap:9px!important}
  .propertyCover{height:clamp(230px,72vw,340px)!important}
  .propertyTitle{font-size:clamp(30px,9vw,40px)!important;line-height:1.05!important;letter-spacing:-1.1px!important}
  .propertyPrice{font-size:21px!important;line-height:1.2!important}
  .backLink{margin-bottom:12px}
}

/* Landlordey application: no squeezed desktop controls on phones. */
@media(max-width:650px){
  .landlordey-app{padding-bottom:98px!important}
  .landlordey-app .ly-topbar{height:68px!important;padding:0 14px!important;gap:8px!important}
  .landlordey-app .ly-topActions{gap:6px!important}
  .landlordey-app .ly-topActions>a.ly-start{display:none!important}
  .landlordey-app .ly-login{white-space:nowrap;max-width:118px;overflow:hidden;text-overflow:ellipsis}
  .landlordey-app .ly-brand strong{font-size:18px!important}
  .landlordey-app .ly-brand small{font-size:7px!important}
  .landlordey-app .ly-pageHeading h1{font-size:clamp(34px,10vw,46px)!important;line-height:1.03!important;letter-spacing:-1.2px!important}
  .landlordey-app .ly-pageHeading p{font-size:14px!important;line-height:1.55!important}
  .landlordey-app .ly-sectionTitleRow h2{font-size:26px!important;line-height:1.1!important}
  .landlordey-app .ly-sectionTitleRow p{line-height:1.45!important}
  .landlordey-app .landlordCard{padding:0 14px 14px!important}
  .landlordey-app .landlordCardMedia{height:180px!important;margin:0 -14px 13px!important}
  .landlordey-app .landlordCard .cardTitle{font-size:16px!important;line-height:1.3!important}
  .landlordey-app .landlordMeta{grid-template-columns:1fr!important}
  .landlordey-app .landlordMeta span{min-width:0;overflow-wrap:anywhere}
  .landlordey-app .landlordActions{display:grid;gap:8px}
  .landlordey-app .landlordActions>*{min-width:0;white-space:normal;line-height:1.2}
  .landlordey-app .ly-mobileBottomNav{left:10px!important;right:10px!important;bottom:10px!important;height:70px!important;padding:5px 4px calc(5px + env(safe-area-inset-bottom))!important;border-radius:22px!important}
  .landlordey-app .ly-mobileBottomNav a{min-width:0;min-height:58px;padding:4px 2px}
  .landlordey-app .ly-mobileBottomNav small{font-size:8px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* Landlordey editor: keep the modal header, fields and actions readable on every viewport. */
.landlordey-page .modal{align-items:center;justify-items:center}
.landlordey-page .modalCardWide{width:min(1040px,100%);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
.landlordey-page .modalTopRow{position:sticky;top:0;z-index:8;background:inherit}
.landlordey-page .gridForm{min-width:0}
.landlordey-page .gridForm .field{min-width:0}
.landlordey-page .gridForm .input,.landlordey-page .gridForm .select,.landlordey-page .gridForm textarea{max-width:100%;min-width:0}
.landlordey-page .photoPickGrid{min-width:0}
.landlordey-page .photoSlot{min-width:0}
.landlordey-page .photoSlotTap{position:relative;overflow:hidden}
.landlordey-page .photoSlotHint{max-width:80%;text-align:center;line-height:1.25}
.landlordey-page .photoSlotPlus{flex:none}
@media(max-width:650px){
  .landlordey-page .modal{padding:8px!important;align-items:stretch!important}
  .landlordey-page .modalCardWide{width:100%!important;max-height:calc(100dvh - 16px)!important;padding:14px!important}
  .landlordey-page .modalTopRow{min-height:46px}
  .landlordey-page .modalTopRow .detailTitle{font-size:18px!important;line-height:1.2!important;max-width:70%;overflow-wrap:anywhere}
  .landlordey-page .photoPickHeader{align-items:flex-start!important}
  .landlordey-page .uploadZoneCount{white-space:nowrap}
  .landlordey-page .photoPickGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .landlordey-page .photoSlot,.landlordey-page .photoSlotTap{min-height:138px!important}
  .landlordey-page .photoSlotHint{font-size:11px!important}
  .landlordey-page .photoSlotPlus{width:38px!important;height:38px!important;font-size:25px!important}
}

/* Billing cards: prevent amount/cycle labels from colliding. */
.billingPage .billCard h2{min-width:0;flex-wrap:wrap;line-height:1.1}
.billingPage .billAmount{white-space:nowrap}
.billingPage .billCycle{white-space:nowrap}
.billingPage .billingCycleToggle{max-width:100%;overflow:auto}
@media(max-width:760px){
  .billingPage{padding-bottom:24px}
  .billingWrap{width:min(100% - 28px,1120px)!important;padding:42px 0 70px!important}
  .billingHero h1{font-size:clamp(34px,10vw,48px)!important;line-height:1.04!important}
  .billingHero p{font-size:14px;line-height:1.55}
  .billingCycleToggle{width:100%;justify-content:center}
  .billingCycleToggle label{min-width:0;flex:1}
  .billingCycleToggle span{justify-content:center;padding:10px 8px}
  .billCard{padding:22px!important}
  .billCard h2{font-size:26px!important}
  .billBtn{min-height:48px;height:auto;padding:12px 14px;line-height:1.2}
  .paymentPanel{padding:20px!important}
}

/* Footer/social icons remain visible even when the favicon provider is slow. */
.rf-socialFooter img,.ly-socialLink img,.ly-socialRow img{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;display:block!important;object-fit:contain!important;background:#fff!important;border-radius:6px!important;padding:3px!important}

/* Contact cards: don't allow long email/phone strings to overlap. */
.contactCard,.ly-contactCard{overflow-wrap:anywhere}
.contactCard p,.ly-contactCard p,.ly-contactCard strong{overflow-wrap:anywhere}

/* Property gallery: tactile 3D cube carousel. The gallery is fully coded and uses the listing's real images. */
.propertyGallery{margin-bottom:22px;touch-action:pan-y;}
.cubeGallery{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:10px;}
.cubeViewport{position:relative;min-width:0;aspect-ratio:16/10;perspective:1400px;outline:none;overflow:hidden;border-radius:24px;background:#dfeaf5;cursor:grab;box-shadow:0 18px 48px rgba(9,48,82,.16);}
.cubeViewport:active{cursor:grabbing;}
.cubeScene{position:absolute;inset:0;transform-style:preserve-3d;}
.photoCube{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateY(0deg);}
.photoCube.isAnimating{transition:transform .55s cubic-bezier(.22,.72,.24,1);}
.photoCube.turnNext{transform:rotateY(-90deg);}
.photoCube.turnPrev{transform:rotateY(90deg);}
.cubeFace{position:absolute;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat;background-color:#dfeaf5;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;}
.cubeFront{transform:translateZ(0);}
.cubeRight{transform:rotateY(90deg) translateZ(calc(50%));transform-origin:center right;}
.cubeLeft{transform:rotateY(-90deg) translateZ(calc(50%));transform-origin:center left;}
.cubeBack{transform:rotateY(180deg) translateZ(0);}
.cubeFace::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.12));pointer-events:none;}
.cubeArrow{width:44px;height:52px;border:1px solid #d9e5f0;border-radius:15px;background:#fff;color:#14334d;font-size:35px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 24px rgba(8,48,82,.12);transition:transform .18s ease,box-shadow .18s ease,background .18s ease;z-index:3;}
.cubeArrow:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(8,48,82,.17);background:#f7fbff;}
.cubeCounter{position:absolute;right:14px;bottom:14px;padding:7px 10px;border-radius:999px;background:rgba(8,25,45,.72);color:#fff;font-size:12px;font-weight:800;letter-spacing:.2px;backdrop-filter:blur(8px);}
.cubeDots{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin-top:13px;}
.cubeDot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#c7d4e0;cursor:pointer;transition:transform .18s ease,background .18s ease;width:7px;}
.cubeDot.isActive{background:#1597df;transform:scale(1.55);}
.cubeSwipeHint{text-align:center;color:#7a8998;font-size:11px;font-weight:700;margin:9px 0 0;}
.cubePreload{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none;}
.propertyFullItem{margin-top:12px;overflow-wrap:anywhere;}
@media(max-width:760px){
  .cubeGallery{grid-template-columns:40px minmax(0,1fr) 40px;gap:6px;}
  .cubeViewport{aspect-ratio:1/1;border-radius:19px;}
  .cubeArrow{width:36px;height:44px;border-radius:12px;font-size:29px;}
  .cubeCounter{right:10px;bottom:10px;font-size:11px;padding:6px 9px;}
  .cubeSwipeHint{font-size:10px;margin-top:8px;}
}
@media(max-width:420px){
  .cubeGallery{grid-template-columns:32px minmax(0,1fr) 32px;gap:4px;}
  .cubeArrow{width:32px;height:40px;font-size:26px;}
}
/* Email verification UI */
.verifyCard{max-width:520px;width:min(520px,calc(100vw - 28px));}
.verifyCodeInput{text-align:center;letter-spacing:.28em;font-weight:800;font-size:1.25rem;text-transform:uppercase;}
.verifyHint{color:#708594;font-size:.78rem;line-height:1.45;}
#verifyError{white-space:normal;overflow-wrap:anywhere;line-height:1.45;}
@media (max-width:560px){.verifyCard{padding:20px}.verifyCodeInput{font-size:1.1rem;letter-spacing:.22em}}
