/* RaysList mobile v5: one responsive layer, no stacked viewport patches. */
.rl-mobile-radius,.rl-mobile-subcategory,.rooms-mobile-follow,.rooms-mobile-home{display:none}
@media (max-width:760px), (max-height:500px) and (pointer:coarse) {
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:auto}
  body{max-width:100%;overflow-x:hidden;touch-action:auto}
  body input:not([type=checkbox]):not([type=radio]),body select,body textarea{font-size:16px!important}
  body .rl-header .rl-header-inner{height:54px;min-height:54px;padding:0 12px;gap:10px;flex-wrap:nowrap}
  body .rl-header .rl-brand{font-size:20px;gap:7px;letter-spacing:-.8px;flex:none}
  body .rl-header .rl-brand-mark{width:28px;height:28px;font-size:17px;border-radius:9px}
  body .rl-header .rl-header-nav{gap:6px;margin-left:auto;flex:none}
  body .rl-header .rl-header-nav .rl-nav-link{display:none!important}
  body .rl-header .rl-header-nav .rl-post{min-height:44px;height:44px;padding:0 12px;font-size:14px;border-radius:10px}
  body .rl-header .rl-header-search{display:none!important}
  body .rl-header .rl-mobile-nav{display:block;flex:none}
  body .rl-header .rl-mobile-nav summary{display:grid;place-items:center;padding:0;width:44px;height:44px}
  body .rl-header .rl-mobile-nav summary>.rl-icon{width:23px;height:23px}
  body .rl-header .rl-mobile-nav nav{top:46px;max-height:calc(var(--rl-visible-height,100dvh) - 64px);overflow:auto;overscroll-behavior:contain}
  body .rl-header .rl-mobile-nav nav a{min-height:44px;padding:10px 12px;box-sizing:border-box}
  body:not(.rl-rooms-page):not(.rl-form-page){padding-bottom:calc(62px + env(safe-area-inset-bottom))!important}
  body .hub-mobilebar{display:flex;position:fixed;left:0;right:0;bottom:0;height:calc(56px + env(safe-area-inset-bottom));box-sizing:border-box;padding:0 6px env(safe-area-inset-bottom);gap:2px;align-items:center;justify-content:space-around}
  body .hub-mobilebar a{min-width:0;flex:1;min-height:48px;justify-content:center;gap:2px;font-size:11px;line-height:1.2}
  body .hub-mobilebar .rl-icon{width:21px;height:21px}
  body .hub-mobilebar .hub-mobile-post>.rl-icon{margin:0;width:20px;height:20px;padding:4px;border-radius:9px}
  body.rl-mobile-keyboard:not(.rl-rooms-page) .hub-mobilebar{display:none}

  /* Homepage: location in header, one search field, categories, one control row. */
  body.rl-home .rl-header .rl-header-nav{display:none}
  body.rl-home .rl-header .rl-location{display:flex;flex:1;min-width:0;max-width:none;margin-left:auto;min-height:44px;padding:0 6px;background:none;border:0;font-size:13px;gap:5px;justify-content:flex-end}
  body.rl-home .rl-header .rl-location>span{max-width:100%;min-width:0}
  body.rl-home .rl-header .rl-location>.rl-icon{width:15px;height:15px}
  body.rl-home .rl-header .rl-location>.rl-icon:last-child{display:none}
  body.rl-home.rl-map-first .rl-main{padding:0 12px 20px;width:100%;min-width:0}
  body.rl-home.rl-map-first .rl-hero{padding:6px 0 0}
  body.rl-home.rl-map-first .rl-search{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:44px;min-height:46px;margin:0;padding:0;border-radius:11px;gap:0;overflow:hidden;box-shadow:none}
  body.rl-home.rl-map-first .rl-query{grid-column:1;grid-row:1;min-width:0;min-height:44px;gap:9px;padding:0 10px;border:0}
  body.rl-home.rl-map-first .rl-query>.rl-icon{width:19px;height:19px}
  body.rl-home.rl-map-first .rl-query input{height:44px;padding:0;font-size:16px!important;line-height:1.3}
  body.rl-home.rl-map-first .rl-search-location,body.rl-home.rl-map-first .rl-radius{display:none}
  body.rl-home.rl-map-first .rl-search-submit{grid-column:2;grid-row:1;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border-radius:0 9px 9px 0;font-size:0}
  body.rl-home.rl-map-first .rl-search-submit>.rl-icon{display:block;width:19px;height:19px}
  body.rl-home.rl-map-first .rl-categories{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;justify-content:flex-start;padding:5px 0;margin:0;border:0;overscroll-behavior-x:contain}
  body.rl-home.rl-map-first .rl-categories::-webkit-scrollbar{display:none}
  body.rl-home.rl-map-first .rl-category{flex:none;min-width:max-content;min-height:44px;padding:0 10px;gap:6px;border-radius:9px;font-size:14px}
  body.rl-home.rl-map-first .rl-category>.rl-icon{width:17px;height:17px}
  body.rl-home.rl-map-first .rl-discover{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:8px;padding-top:0}
  body.rl-home.rl-map-first .rl-section-heading{grid-column:1;grid-row:1;display:flex;flex-wrap:nowrap;gap:0;margin:0;min-width:0}
  body.rl-home.rl-map-first .rl-section-heading>div:first-child{display:none}
  body.rl-home.rl-map-first .hub-save-search{display:none!important}
  body.rl-home.rl-map-first .rl-view-toggle{margin:0;flex:none;padding:2px;gap:2px;border-radius:10px}
  body.rl-home.rl-map-first .rl-view-toggle button{min-height:40px;font-size:14px;padding:0 10px;gap:5px}
  body.rl-home.rl-map-first .rl-view-toggle .rl-icon{width:17px;height:17px}
  body.rl-home.rl-map-first .rl-toolbar{grid-column:2;grid-row:1;margin:0;gap:0}
  body.rl-home.rl-map-first .rl-filter-buttons{width:auto;gap:0;flex-wrap:nowrap}
  body.rl-home.rl-map-first .rl-subcat-pill,body.rl-home.rl-map-first .rl-pill[data-open-filters=price],body.rl-home.rl-map-first .rl-pill[data-open-filters=posted],body.rl-home.rl-map-first .rl-sort,body.rl-home.rl-map-first #clearFilters{display:none}
  body.rl-home.rl-map-first .rl-pill[data-open-filters=all]{display:flex;min-height:44px;height:44px;padding:0 10px;font-size:14px;gap:6px;border-radius:10px}
  body.rl-home.rl-map-first .hub-active-filters{grid-row:2;grid-column:1/-1;margin:0;gap:5px}
  body.rl-home.rl-map-first .hub-active-filters button{min-height:36px;font-size:13px}
  body.rl-home.rl-map-first .rl-discover:has(#activeFilterChips:empty) .rl-workspace{grid-row:2}
  body.rl-home.rl-map-first .rl-view-toggle [data-view=grid]{order:-1}
  body.rl-home.rl-map-first .rl-workspace{grid-row:3;grid-column:1/-1;min-width:0}
  body.rl-home:not([data-market-view=map]) .rl-workspace .rl-results{display:block}
  body.rl-home:not([data-market-view=map]) .rl-workspace .rl-map-panel{display:none}
  body.rl-home[data-market-view=map] .rl-workspace .rl-results{display:none}
  body.rl-home.rl-map-first .rl-workspace .rl-grid{display:grid;grid-template-columns:1fr;gap:9px}
  body.rl-home.rl-map-first .rl-workspace .rl-card{display:grid;grid-template-columns:100px minmax(0,1fr);border-radius:11px;min-width:0;min-height:114px;box-shadow:none}
  body.rl-home.rl-map-first .rl-workspace .rl-card:hover{transform:none}
  body.rl-home.rl-map-first .rl-workspace .rl-card-image{grid-column:1;grid-row:1;aspect-ratio:auto;min-height:114px;height:100%;border-radius:0}
  body.rl-home.rl-map-first .rl-workspace .rl-card-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  body.rl-home.rl-map-first .rl-workspace .rl-card-body{grid-column:2;grid-row:1;padding:10px 38px 10px 12px;min-width:0}
  body.rl-home.rl-map-first .rl-workspace .rl-card-price{font-size:18px;line-height:1.3;margin-bottom:4px}
  body.rl-home.rl-map-first .rl-workspace .rl-card h3{font-size:15px;line-height:1.4;margin:0;overflow-wrap:anywhere}
  body.rl-home.rl-map-first .rl-workspace .hub-card-category,body.rl-home.rl-map-first .rl-workspace .hub-card-date{display:none}
  body.rl-home.rl-map-first .rl-workspace .rl-card-location{font-size:12px;margin-top:6px;gap:3px}
  body.rl-home.rl-map-first .rl-workspace .rl-save{width:40px;height:40px;top:3px;right:2px;border:0;box-shadow:none;background:transparent}
  body.rl-home.rl-map-first .rl-workspace .rl-save .rl-icon{width:21px;height:21px}
  body.rl-home.rl-map-first .rl-results-footer{margin-top:8px;padding-top:8px;font-size:13px;gap:6px}
  body.rl-home.rl-map-first .rl-load-more{min-height:44px;font-size:14px;padding:8px 12px}
  body.rl-home.rl-map-first .rl-empty{min-height:240px;padding:22px}
  body.rl-home:not([data-market-view=map]) #freshSection,body.rl-home .hub-saved-search-strip,body.rl-home .hub-recent-section,body.rl-home .hub-community-section,body.rl-home .rl-more,body.rl-home .hub-post-banner,body.rl-home .rl-directory{display:none!important}
  body.rl-home.rl-map-first .rl-workspace.is-map-view .rl-map-panel{min-height:260px;height:var(--map-height,55dvh);max-height:none;position:relative;top:0;border-radius:10px}
  body.rl-home.rl-map-first .rl-map-auto{top:10px;right:10px;max-width:calc(100% - 65px);padding:7px 9px;font-size:12px;gap:5px;min-height:38px;white-space:normal;line-height:1.3}
  body.rl-home.rl-map-first .rl-map-caption{padding:6px 9px;max-width:calc(100% - 70px)}
  body.rl-home.rl-map-first .rl-map-caption strong,body.rl-home.rl-map-first #mapCaption{font-size:12px}
  body.rl-home.rl-map-first .rl-map-locate{width:44px;height:44px}

  /* Native dialogs fit the visible screen; the content inside can scroll. */
  body dialog.rl-dialog,body dialog.hub-dialog{box-sizing:border-box;position:fixed;inset:auto;left:12px;top:calc(var(--rl-visible-offset,0px) + 12px);margin:0!important;width:calc(100% - 24px);max-width:none;max-height:calc(var(--rl-visible-height,100dvh) - 24px);padding:16px;border-radius:15px;overflow-y:auto;overscroll-behavior:contain;scroll-padding:12px}
  body .rl-dialog .rl-dialog-heading,body .hub-dialog .hub-dialog-top{align-items:center;gap:8px;margin-bottom:10px}
  body .rl-dialog .rl-dialog-heading{position:sticky;top:-16px;background:#fff;z-index:3}
  body .rl-dialog .rl-dialog-heading h2,body .hub-dialog h2{font-size:21px;line-height:1.2;letter-spacing:-.4px}
  body .rl-dialog .rl-dialog-heading button,body .hub-dialog [data-close]{width:44px;height:44px;min-width:44px;padding:10px;flex:none}
  body .rl-dialog p,body .hub-dialog p{font-size:14px;line-height:1.5;margin:8px 0 12px}
  body .rl-dialog #locationForm>p:first-of-type{display:none}
  body .rl-dialog label,body .hub-dialog label{font-size:14px;line-height:1.4}
  body .rl-dialog input,body .rl-dialog select,body .hub-dialog input,body .hub-dialog textarea{min-height:44px;max-width:100%;min-width:0}
  body .rl-dialog .rl-location-entry{display:flex;gap:8px;align-items:stretch}
  body .rl-dialog .rl-location-entry input{flex:1;min-width:0;width:0;padding:10px}
  body .rl-dialog .rl-location-entry button{min-height:44px;min-width:70px;padding:8px 12px;flex:none}
  body .rl-dialog .rl-current-location{min-height:44px;max-width:100%;white-space:normal;padding:10px;font-size:15px}
  body .rl-dialog .rl-mobile-radius,body .rl-dialog .rl-mobile-subcategory{display:flex;flex-direction:column;gap:6px;margin:12px 0}
  body .rl-dialog .rl-mobile-radius select,body .rl-dialog .rl-mobile-subcategory select{width:100%;padding:10px;border:1px solid #e6e1ee;border-radius:9px;background:#fff}
  body .rl-dialog .rl-filter-scroll{max-height:none;overflow:visible;padding-right:0}
  body .rl-dialog .rl-dialog-actions{position:sticky;bottom:-16px;background:#fff;z-index:1;padding:12px 0;margin-top:8px}
  body .rl-dialog .rl-location-note{font-size:12px;line-height:1.5}
  body .rl-dialog .rl-location-choice{min-height:44px;padding:12px;font-size:14px}

  /* Chat: exactly one screen. Only the messages/pickers scroll, not the document. */
  html:has(body.rl-rooms-page){height:100%;overflow:hidden!important;overscroll-behavior:none}
  body.rl-rooms-page{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;overscroll-behavior:none;touch-action:auto!important}
  body.rl-rooms-page>.rl-header,body.rl-rooms-page>.hub-mobilebar,body.rl-rooms-page .rooms-page-heading,body.rl-rooms-page .hub-rooms-toolbar,body.rl-rooms-page .hub-chat-tools,body.rl-rooms-page .hub-compose-help,body.rl-rooms-page .hub-footer,body.rl-rooms-page .rl-footer{display:none!important}
  body.rl-rooms-page .rooms-app{position:fixed!important;inset:0 auto auto 0!important;top:var(--rl-chat-offset,0px)!important;width:100%!important;max-width:none!important;height:var(--rl-chat-height,100dvh)!important;min-height:0!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;contain:layout;touch-action:auto}
  body.rl-rooms-page .rooms-header{flex:0 0 52px;height:52px;min-height:52px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;padding:0 8px;background:#fff;border-bottom:1px solid #eae4f0;backdrop-filter:none;z-index:8}
  body.rl-rooms-page .rooms-header #openMenuBtn{display:inline-flex;visibility:visible;width:44px;height:44px;padding:10px;border:0;border-radius:9px}
  body.rl-rooms-page .rooms-title,body.rl-rooms-page .rooms-room{min-width:0}
  body.rl-rooms-page .rooms-room strong{font-size:16px;line-height:1.3;font-weight:650;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#292238}
  body.rl-rooms-page .rooms-brand,body.rl-rooms-page .rooms-room>span,body.rl-rooms-page .hub-room-controls>[data-follow-room]{display:none}
  body.rl-rooms-page .hub-room-controls{gap:0;min-width:0}
  body.rl-rooms-page .hub-room-about summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;box-sizing:border-box;list-style:none}
  body.rl-rooms-page .hub-room-about summary::-webkit-details-marker{display:none}
  body.rl-rooms-page .hub-room-about summary .rl-icon{width:22px;height:22px}
  body.rl-rooms-page .hub-room-about>div{top:46px;right:0;width:min(280px,calc(100vw - 24px));max-height:calc(var(--rl-chat-height,100dvh) - 72px);overflow:auto;padding:16px;box-sizing:border-box;font-size:14px;line-height:1.6}
  body.rl-rooms-page .rooms-mobile-follow{display:flex;min-height:44px;margin:10px 0}
  body.rl-rooms-page .rooms-mobile-home{display:block;min-height:44px;padding:10px 0;box-sizing:border-box}
  body.rl-rooms-page .rooms-main{flex:1 1 0;display:flex;min-height:0;overflow:hidden}
  body.rl-rooms-page .rooms-desktop-rooms{display:none}
  body.rl-rooms-page .rooms-content{display:flex;flex-direction:column;flex:1 1 0;min-width:0;min-height:0;height:auto;overflow:hidden}
  body.rl-rooms-page .rooms-messages{display:flex;flex-direction:column;flex:1 1 0;min-height:0;height:auto;max-height:none;gap:10px;padding:12px;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scroll-behavior:auto;overflow-anchor:none}
  body.rl-rooms-page .rooms-messages>*{flex:0 0 auto}
  body.rl-rooms-page .hub-chat-welcome{display:none}
  body.rl-rooms-page .rooms-messages:not(:has(.rooms-msg)) .hub-chat-welcome{display:block;padding:20px 12px}
  body.rl-rooms-page .rooms-msg{max-width:90%;min-width:0;padding:9px 11px;border-radius:12px;box-shadow:none;overflow-wrap:anywhere}
  body.rl-rooms-page .rooms-msg-head{gap:7px;margin-bottom:6px}
  body.rl-rooms-page .rooms-avatar{width:25px;height:25px;flex:none;font-size:13px}
  body.rl-rooms-page .rooms-name{font-size:13px;max-width:150px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.rl-rooms-page .rooms-time{font-size:11px;flex:none;margin-left:auto;color:#84758e}
  body.rl-rooms-page .rooms-body{font-size:15px;line-height:1.55;color:#463a50}
  body.rl-rooms-page .rooms-media{max-width:100%;margin-top:6px}
  body.rl-rooms-page .rooms-media img{display:block;max-width:100%;width:auto;max-height:250px;object-fit:contain;border-radius:9px}
  body.rl-rooms-page .rooms-composer{position:relative;flex:0 0 auto;margin:0;padding:7px 8px max(7px,env(safe-area-inset-bottom));min-height:0;z-index:5;background:#fff;border-top:1px solid #eae4f0;backdrop-filter:none}
  body.rl-rooms-page[data-chat-keyboard=true] .rooms-composer{padding-bottom:7px}
  body.rl-rooms-page .rooms-compose-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:end;gap:6px;min-width:0}
  body.rl-rooms-page .rooms-composer .rooms-icon,body.rl-rooms-page .rooms-send{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:11px;box-sizing:border-box;font-size:23px}
  body.rl-rooms-page .rooms-send .rl-icon{width:21px;height:21px}
  body.rl-rooms-page .rooms-input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;max-height:104px;height:44px;padding:10px 11px;font-size:16px!important;line-height:22px;border-radius:12px;border:1px solid #e2d9eb;background:#faf8fc;color:#342a40;resize:none;overflow-y:auto;scroll-margin:0;box-shadow:none}
  body.rl-rooms-page .rooms-input:focus{border-color:#8f75e8;outline:2px solid #b09bf4!important;outline-offset:0!important}
  body.rl-rooms-page .rooms-attach{position:absolute;bottom:100%;left:8px;right:8px;box-sizing:border-box;margin:0 0 8px;max-height:min(300px,calc(var(--rl-chat-height,100dvh) - 132px));overflow:auto;overscroll-behavior:contain;background:#fff;box-shadow:0 -5px 30px #30244417;border-radius:12px;padding:10px;z-index:10}
  body.rl-rooms-page .rooms-chip{min-height:44px;padding:8px 12px;font-size:14px;font-weight:600}
  body.rl-rooms-page .rooms-emoji-btn{min-width:0;min-height:40px}
  body.rl-rooms-page .rooms-emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  body.rl-rooms-page #chatSendError{max-height:65px;overflow:auto;font-size:13px!important;font-weight:500!important}
  body.rl-rooms-page .rooms-jump{bottom:calc(var(--rl-composer-height,60px) + 8px);min-height:40px;font-size:13px;padding:8px 14px}
  body.rl-rooms-page .rooms-drawer{top:var(--rl-chat-offset,0px);bottom:auto;height:var(--rl-chat-height,100dvh);z-index:2000}
  body.rl-rooms-page .rooms-drawer-panel{width:min(340px,92vw);padding:12px;overflow-y:auto;overscroll-behavior:contain}
  body.rl-rooms-page .rooms-drawer-panel>*{flex-shrink:0}
  body.rl-rooms-page .rooms-drawer-list{overflow:visible;max-height:none}
  body.rl-rooms-page .rooms-drawer-head{position:sticky;top:-12px;background:#fff;z-index:1;min-height:48px}
  body.rl-rooms-page .rooms-drawer-head button{width:44px;height:44px}
  body.rl-rooms-page .rooms-drawer-link,body.rl-rooms-page .rooms-room-btn{min-height:44px;box-sizing:border-box;font-size:15px;padding:10px 12px}
  body.rl-rooms-page .hub-drawer-search input{min-height:44px;font-size:16px!important}
  body.rl-rooms-page .hub-toast{position:fixed;bottom:auto;top:calc(var(--rl-chat-offset,0px) + 58px);max-width:calc(100% - 24px);font-size:13px;padding:10px 12px;z-index:2100}
}
