/* My Home Albania v4.2.71 — global mobile-first safety layer */
html,body{max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
img,video,iframe,canvas,svg{max-width:100%}
input,select,textarea,button{max-width:100%;min-width:0}
main,.portal-main,.panel,.card,.mha-guest-booking-card,.mha-guest-card{min-width:0}
:where(h1,h2,h3,h4,p,span,b,strong,small,a,button,label,td,th){overflow-wrap:anywhere;word-break:normal}
.table-wrap,.mha-table-wrap,[class*="table-wrap"]{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
table{max-width:100%}

@media(max-width:820px){
  body{font-size:15px;padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  main{width:100%;max-width:100%;overflow-x:hidden}
  .site-header{padding-left:14px!important;padding-right:14px!important}
  .site-header .brand-logo img{max-width:118px;height:auto}
  .portal-main,.section,.page-hero,.mha-listing,.mha-guest-account-shell,.mha-guest-auth-shell,.mha-about-page{padding-left:14px!important;padding-right:14px!important}
  .panel,.mha-guest-booking-card,.mha-guest-card,.portal-card,.settings-card,.review-center-list .mha-admin-review{padding:16px!important;border-radius:16px!important}

  :where(.form-grid,.two-col,.portal-stats,.mha-bank-box,.mha-payer-box,.mha-guest-grid,.mha-guest-overview,.mha-guest-profile-meta,.review-admin-kpis,.settings-grid,.settings-toggles,.mha-calm-kpis,.mha-calm-strip,.finance-queue-stats,.finance-queue-filters,.job-proof-grid,.mha-about-values,.mha-contract-grid,.mha-estimate-grid,.mha-feature-row,.mha-amenities,.mha-rules){grid-template-columns:1fr!important}

  .portal-head,.mha-guest-account-head,.mha-guest-booking-title,.mha-guest-profile-top,.settings-hero,.mha-support-head,.mha-support-admin-hero{flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  .portal-head h1,.mha-guest-booking-title h2,.mha-guest-profile-top h2{font-size:clamp(24px,7vw,32px)!important;line-height:1.08!important}

  .mha-guest-booking-card h2{font-size:clamp(24px,7vw,32px)!important;line-height:1.08!important;max-width:100%}
  .mha-guest-booking-card{overflow:hidden}
  .mha-payment-state{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;align-items:start!important}
  .mha-payment-state>*{min-width:0!important;max-width:100%!important}
  .mha-direct-guest,.mha-direct-guest.guest-required{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}
  .mha-direct-guest a,.mha-direct-guest.guest-required div{margin-left:0!important;width:100%}
  .mha-direct-guest.guest-required div{display:grid!important;grid-template-columns:1fr!important}

  .mha-booking-timeline{grid-template-columns:repeat(5,minmax(0,1fr))!important;overflow:visible!important;gap:4px!important;padding:0!important}
  .mha-booking-timeline:before{display:none!important}
  .mha-booking-timeline>div{font-size:9px!important;line-height:1.15!important;min-width:0!important;gap:5px!important}
  .mha-booking-timeline i{width:28px!important;height:28px!important;font-size:11px!important}
  .mha-booking-timeline>div>*{max-width:100%!important}

  .mha-guest-booking-card :where(.actions,.button-row,.portal-actions,.mha-booking-actions,.mha-guest-actions){display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important}
  .mha-guest-booking-card :where(.btn,.mini-btn,button,a.btn){width:100%!important;justify-content:center!important;text-align:center!important;white-space:normal!important;min-height:46px}

  .mha-support-form,.mha-support-filter,.mha-support-admin-grid,.mha-support-reply{grid-template-columns:1fr!important}
  .mha-support-conversation article{max-width:92%!important}

  .mha-gallery-stage,.mha-gallery-stage.single-photo,.mha-gallery-stage .gallery-item,.mha-gallery-stage .gallery-item.main,.mha-gallery-stage .gallery-item:nth-child(n+4){height:260px!important}
  .mha-gallery-stage .gallery-item,.mha-gallery-stage .gallery-item.main,.mha-gallery-stage .gallery-item:nth-child(n+4){flex-basis:90%!important}
  .mha-listing-header h1{font-size:clamp(30px,9vw,40px)!important;line-height:1.03!important}

  .property-grid,.partner-grid,.service-grid,.steps,.dashboard-showcase,.split,.apply-wrap{grid-template-columns:1fr!important}
  .property-card,.partner-card,.service-card{min-width:0!important}
  .property-card h2,.property-card h3{font-size:clamp(24px,7vw,31px)!important;line-height:1.08!important}

  .mha-premium-hero{grid-template-columns:1fr!important;min-height:0!important}
  .mha-premium-media{min-height:320px!important;order:0!important}
  .mha-premium-copy{padding:38px 18px!important}
  .mha-premium-copy h1{font-size:clamp(38px,11vw,52px)!important}
  .mha-estimate-card{position:static!important;width:auto!important;margin:16px!important}
  .mha-proof-strip,.mha-live-proof{grid-template-columns:1fr 1fr!important}
  .mha-proof-strip>div{padding:16px 10px!important}

  footer{padding:42px 18px calc(110px + env(safe-area-inset-bottom,0px))!important;grid-template-columns:1fr!important}
  footer>div:not(.brand){justify-content:flex-start!important;flex-wrap:wrap!important}

  .flash{left:12px!important;right:12px!important;transform:none!important;width:auto!important;max-width:none!important}
  .mha-header-popover{left:12px!important;right:12px!important;width:auto!important;max-width:calc(100vw - 24px)!important}

  .mha-photo-lightbox,.property-lightbox{max-width:100vw!important;overflow:hidden!important}

  input,select,textarea{font-size:16px!important}
  button,.btn,.mini-btn{min-height:44px}
  textarea{min-height:110px}
}

@media(max-width:520px){
  body{font-size:14px}
  .portal-main,.section,.page-hero,.mha-listing,.mha-guest-account-shell,.mha-guest-auth-shell,.mha-about-page{padding-left:12px!important;padding-right:12px!important}
  .panel,.mha-guest-booking-card,.mha-guest-card,.portal-card{padding:14px!important}

  .portal-stats,.mha-guest-overview,.mha-guest-profile-meta,.review-admin-kpis,.mha-calm-kpis,.mha-proof-strip,.mha-live-proof{grid-template-columns:1fr!important}

  .mha-gallery-stage,.mha-gallery-stage.single-photo,.mha-gallery-stage .gallery-item,.mha-gallery-stage .gallery-item.main,.mha-gallery-stage .gallery-item:nth-child(n+4){height:235px!important}
  .mha-gallery-stage .gallery-item,.mha-gallery-stage .gallery-item.main,.mha-gallery-stage .gallery-item:nth-child(n+4){flex-basis:94%!important}

  .mha-booking-timeline{gap:2px!important}
  .mha-booking-timeline>div{font-size:8px!important}
  .mha-booking-timeline i{width:26px!important;height:26px!important;font-size:10px!important}

  .mha-payment-choice,.mha-payer-box,.mha-bank-box{padding:13px!important}
  .mha-pay-option{padding:12px!important}
  .mha-deposit-preview{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}

  .mha-premium-media{min-height:260px!important}
  .mha-premium-actions{display:grid!important;grid-template-columns:1fr!important}
  .mha-premium-actions .btn{width:100%!important}

  .login-card,.install-card,.mha-guest-auth-card{padding:22px 16px!important}
  .login-card h1,.install-card h1{font-size:32px!important}

  .mha-support-conversation article{max-width:96%!important}
  .mha-support-admin-stats{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  .mha-support-admin-stats span{min-width:0!important}
}

/* theme-safe mobile surfaces */
body[data-mha-theme="dark"] :where(.mha-guest-booking-card,.mha-payment-choice,.mha-pay-option,.mha-payer-box,.mha-bank-box,.panel,.portal-card){color:#f4eee4}
body[data-mha-theme="light"] :where(.mha-guest-booking-card,.mha-payment-choice,.mha-pay-option,.mha-payer-box,.mha-bank-box,.panel,.portal-card){color:#17231f}

/* v4.2.71 — Owner personal-use request, mobile-first and theme-safe. */
.owner-use-request,.owner-use-history{min-width:0}
.owner-use-request .owner-use-head{gap:14px;align-items:flex-start}
.owner-use-request .owner-use-head>div{min-width:0}
.owner-use-request .owner-use-head h2,.owner-use-request .owner-use-head p{overflow-wrap:anywhere}
.owner-calendar-event.owner-calendar-manual{border-style:dashed}
@media (max-width:760px){.owner-use-request{padding:18px!important}.owner-use-request .owner-use-head{display:grid!important;grid-template-columns:1fr!important}.owner-use-request .owner-use-head .status{justify-self:start}.owner-use-request .owner-use-form{grid-template-columns:1fr!important;gap:12px!important}.owner-use-request .owner-use-form>label,.owner-use-request .owner-use-form>.full,.owner-use-request .owner-use-form>button{grid-column:1/-1!important;width:100%!important;min-width:0!important}.owner-use-request input,.owner-use-request select,.owner-use-request textarea{width:100%!important;min-width:0!important;font-size:16px!important}.owner-use-history .table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.owner-use-history table{min-width:620px}.owner-calendar-event.owner-calendar-manual{font-size:9px!important;line-height:1.2!important}}


/* v4.2.74 — Direct Booking draft recovery: mobile-first + dark/light safe. */
.mha-booking-draft-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;padding:13px 14px;border:1px solid rgba(244,184,63,.42);border-radius:14px;background:rgba(244,184,63,.10);color:inherit;box-shadow:0 8px 22px rgba(0,0,0,.08)}
.mha-booking-draft-banner>div{min-width:0;display:grid;gap:3px}.mha-booking-draft-banner b{font-size:.94rem;line-height:1.35;overflow-wrap:anywhere}.mha-booking-draft-banner small{font-size:.78rem;line-height:1.45;opacity:.82;overflow-wrap:anywhere}.mha-booking-draft-banner .mini-btn{flex:0 0 auto;min-height:42px;white-space:nowrap}
html[data-mha-theme="dark"] .mha-booking-draft-banner{background:linear-gradient(135deg,rgba(244,184,63,.13),rgba(11,31,47,.92));border-color:rgba(244,184,63,.38);color:#f7f9fb}
html[data-mha-theme="dark"] .mha-booking-draft-banner small{color:#c7d2dc;opacity:1}
html[data-mha-theme="light"] .mha-booking-draft-banner{background:#fff9ea;border-color:#e9c56f;color:#17212b;box-shadow:0 8px 22px rgba(20,32,44,.08)}
html[data-mha-theme="light"] .mha-booking-draft-banner small{color:#5b6772;opacity:1}
@media(max-width:640px){.mha-booking-draft-banner{align-items:stretch;flex-direction:column;padding:12px;margin-bottom:12px}.mha-booking-draft-banner .mini-btn{width:100%;min-height:44px}.mha-booking-draft-banner b{font-size:.9rem}.mha-booking-draft-banner small{font-size:.76rem}}
