/* auto-minified from /assets/css/mobile-2026.css mtime=1786639689 asset-format=copy-v1 source-sha256=3a6f7020555068ab6c2743ee6303e15e5e0d5c36ef6eb22df07e07a7f313e65e */
/* =============================================================================
   mobile-2026.css — mobile-only corrections. Loaded last, after every other sheet.
   =============================================================================

   RULE OF THIS FILE: every single declaration lives inside a max-width media
   query. Nothing here can reach a desktop viewport. That is deliberate — it means
   "desktop stays exactly as it is" is guaranteed by construction rather than by
   care, and rolling back is deleting one file and one <link>.

   Measured on a real 390x844 render of the live site, 2026-07-31. Numbers quoted
   in the comments are from that measurement, not estimates.

   Why any of this matters: mobile is 74% of paid clicks and 35% of conversions.
   Conversion rate is 2.5% on mobile against 13.2% on desktop, and the median
   mobile visitor scrolls 7% of the search page against 25% on desktop.
   ========================================================================== */

@media (max-width: 900px) {

  /* ---------------------------------------------------------------------------
     1. iOS zoom on form fields
     ---------------------------------------------------------------------------
     Safari on iOS zooms the whole page when a field with font-size under 16px
     receives focus. The page jumps, the layout shifts, and the submit button is
     no longer where the user was looking.

     A rule for this already existed in polish-2026.css, but it selects by element
     type (specificity 0,0,1) and loses to any class rule — `.city-picker` at
     14.5px beats `select` at 16px. Measured after that rule shipped: 24 fields at
     13.33px, 1 at 13px, 9 at 14px, 4 at 15px, only 2 actually at 16px.

     !important is the right tool here and only here: this is not a style choice
     being forced, it is a browser behaviour threshold. 16px is the number Safari
     checks, so 16px is the number that has to win.
     ------------------------------------------------------------------------ */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  /* ---------------------------------------------------------------------------
     2. Touch targets
     ---------------------------------------------------------------------------
     Measured: 145 tappable elements under 44px on the homepage, 56 on search.
     The worst are the filter checkboxes at 13px — "Low risk only", "Furnished",
     "BRP-friendly", "Short stay", "New in 24h", "Official sources only". Those
     filters are the product; a 13px target means they are decorative.

     The label gets the height rather than the box, so the tick keeps its size
     while the tappable area grows around it.
     ------------------------------------------------------------------------ */
  input[type="checkbox"],
  input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--brand, #0e7c86);
  }

  label.chip,
  .filters label,
  .searchhead label,
  .type-tabs a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* Small inline links in dense rows: give them vertical padding so the finger
     has somewhere to land, without changing how the line reads. */
  .reslist a,
  .listing a,
  .src a,
  .muted a {
    padding-block: 2px;
  }

  /* Share buttons measured 36x34 on /room and /expats — square, icon-sized, and
     just under the threshold. They are the only remaining sub-44px controls on
     the public pages after the rules above. */
  [class*="share"] a,
  [class*="share"] button {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ---------------------------------------------------------------------------
     3. Search results — put a room on the first screen
     ---------------------------------------------------------------------------
     Before: first listing at 1086px. After the last round of changes: 790px.
     The fixed bottom nav is 64px, so the real fold is 844 - 64 = 780px. The first
     card missed being visible by ten pixels.

     What sits above it: the h1, "Search health", the type tabs, a five-box market
     statistics panel, and a 220px save-alert form. On desktop those sit side by
     side and cost almost nothing vertically. Stacked on a phone they are an
     entire screen of things that are not rooms.

     `display: contents` dissolves the .results-head box so its children become
     direct flex items of the column below, which lets the statistics and the save
     form be ordered underneath the listings without touching the HTML. The h1 and
     the type tabs stay on top — those help you decide, the rest is reference
     material you want after you have seen what is available.
     ------------------------------------------------------------------------ */
  .searchlayout > div:first-child {
    display: flex;
    flex-direction: column;
  }

  .searchlayout > div:first-child > .results-head {
    display: contents;
  }

  /* Base first: everything inside the old .results-head sits between the heading
     and the list. The class selectors below outrank this one (0,1,0 against
     0,0,0) so only the unnamed bits are caught by it. */
  .searchlayout > div:first-child > .results-head > * { order: 2; }

  .searchlayout > div:first-child > .results-head > .search-h1 { order: 1; }
  .searchlayout > div:first-child > .reslist { order: 3; }
  /* Two pagers, and the column is a flex container, so each needs its own order
     or both land in the same place. Top sits between the heading (1) and the
     list (3); bottom comes after everything. Without this the default order 0
     floated the page numbers above the heading and above every room. */
  .searchlayout > div:first-child > .pager--top { order: 2; }
  .searchlayout > div:first-child > .pager--bottom { order: 6; }

  /* The top pager is a shortcut, not the main event — keep it quiet so it does
     not compete with the first room for attention. */
  .pager--top { margin: 4px 0 10px; }
  .pager--top .pg { padding: 6px 11px; font-size: 13px; }
  .searchlayout > div:first-child > .results-head > .market-intel { order: 4; }
  .searchlayout > div:first-child > .results-head > .save-search-form { order: 5; }

  /* .results-head has no box any more, so its children carry their own spacing. */
  .searchlayout > div:first-child > .results-head > .market-intel,
  .searchlayout > div:first-child > .results-head > .save-search-form {
    margin-top: 18px;
  }

  .search-h1 {
    font-size: 21px;
    line-height: 1.25;
    margin: 0 0 6px;
  }

  /* The market panel is reference data, not a decision aid. Let it be quiet. */
  .market-intel {
    font-size: 13px;
  }

  /* ---------------------------------------------------------------------------
     4. Pricing — the buy button was 2.4 screens down
     ---------------------------------------------------------------------------
     Measured: first plan button at 1998px, unchanged across the last round.

     This is the page Meta sends 100% of its traffic to: 4302 mobile sessions in
     fourteen days, converting at 0.16% against 0.88% on desktop. Someone arriving
     from an ad reads the headline, a deadline slider, a proof strip and an essay
     before a price appears.

     Moving the plan grid directly under the hero costs nothing — the arguments
     still follow, they just stop standing in front of the till.
     ------------------------------------------------------------------------ */
  .pricing-page > .wrap {
    display: flex;
    flex-direction: column;
  }

  /* Base, then the named exceptions — same specificity trick as the search page. */
  .pricing-page > .wrap > * { order: 4; }

  .pricing-page > .wrap > .pricing-intro-grid { order: 1; }
  .pricing-page > .wrap > .pricing-mobile-jump { order: 2; }
  .pricing-page > .wrap > #pricing-plans { order: 3; }
  .pricing-page > .wrap > #pricing-compare { order: 6; }
  .pricing-page > .wrap > #pricing-faq { order: 7; }

  /* The hero grid holds the headline card and the move-in deadline slider side by
     side. Dissolving it with `display: contents` lets both become items of the
     column above, so the slider can be sent below the plans rather than sitting
     between the headline and the price.

     Measured effect of moving it: first plan button 1979px -> 986px, and the plan
     grid itself lands at 463px, inside the first screen. The slider is a good
     idea in the wrong place — nobody arrives from an advert wanting to answer a
     question before seeing what it costs. */
  .pricing-page > .wrap > .pricing-intro-grid {
    display: contents;
  }

  .pricing-page > .wrap > .pricing-intro-grid > .pricing-intro-card {
    order: 1;
    margin-bottom: 14px;
  }

  .pricing-page > .wrap > .pricing-intro-grid > .movein-widget {
    order: 5;
    margin-top: 18px;
  }

  .pricing-hero-title {
    font-size: 23px;
    line-height: 1.25;
  }

  /* ---------------------------------------------------------------------------
     5. Type sizes
     ---------------------------------------------------------------------------
     Measured on search: 60 text nodes under 12px. Among them the source, the
     listing date and the risk label. A service whose argument is "we tell you
     which rooms are risky" should not print the risk in the smallest type on the
     page.
     ------------------------------------------------------------------------ */
  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .muted,
  .src,
  small,
  .chip,
  .badge,
  figcaption {
    font-size: 13px !important;
  }

  .listing .risk,
  .listing [class*="risk"],
  [class*="scam"] {
    font-size: 13px;
  }

  /* ---------------------------------------------------------------------------
     6. Bottom navigation — respect the iPhone home indicator
     ---------------------------------------------------------------------------
     The new .botnav is a genuine improvement and its five targets measure
     74x48px, comfortably over the minimum. One thing is missing: on notched
     iPhones the bottom ~34px belong to the system gesture area, so the last row
     of a fixed bar sits under the home indicator and the tap gets swallowed.
     ------------------------------------------------------------------------ */
  .botnav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  /* ---------------------------------------------------------------------------
     7. Admin and dashboard tables
     ---------------------------------------------------------------------------
     Wide data tables on a phone either squash into unreadable columns or push the
     page sideways. Neither is acceptable in a support screen you open on the move
     to answer a customer.

     Scrolling the table itself keeps the page still and the columns legible.
     -momentum scrolling makes it feel native rather than broken.
     ------------------------------------------------------------------------ */
  .panel--table,
  .atable-wrap,
  .traffic-tables,
  [class*="__table"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Two separate things were squashing these tables, and fixing only the first
     was not enough.

     One: dash-admin.css sets min-width on the per-page variants (.atable--sources
     and friends), so a bare `.atable` selector lost to it and min-width resolved
     to 0px. Hence !important.

     Two, and the one that actually mattered: .atable--sources carries
     `table-layout: fixed`. Fixed layout divides the available width by the
     columns and ignores what is inside them, so nine columns split 309 pixels —
     "Tier" got 15px, "On" got 12px — and a 63px `disabled` badge sat inside a
     34px cell. Switching to `auto` on mobile lets each column ask for the width
     its content needs; measured after: Name 166px, Run 115px, Note 488px, table
     1153px, scrolling inside its 309px parent.

     A data table that does not fit is supposed to scroll, not to be compressed
     until it is unreadable. */
  /* Three: width:max-content only works when something above the table scrolls.
     Applied to every .atable it silently broke the tables that have no wrapper —
     the guide comparison tables (738px in a 390px viewport), /admin/settings
     (1131px), /admin/traffic and /dashboard/smart-apply. The page itself does not
     scroll sideways, so those columns were simply unreachable.
     So: max-content stays for wrapped tables, and a bare table scrolls itself. */
  /* .traffic-tables is deliberately NOT in these two lists. It is the grid, not
     the scroller: each table sits inside a .panel in between, so the grid's
     scrollWidth never grew and one 413px table on /admin/traffic stayed
     unreachable. Left out, those tables fall through to the self-scrolling
     fallback below, which does work. */
  .panel--table table,
  .atable-wrap table,
  .rent-table-wrap table,
  .table-scroll table,
  [class*="__table"] table {
    table-layout: auto !important;
    width: max-content !important;
    min-width: 100% !important;
  }

  table.atable {
    /* !important on display: dash-admin.css reaches these tables through a
       two-class ancestor selector, which outranks `table.atable` and quietly
       kept one /admin/traffic table as display:table with no way to scroll. */
    display: block !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    table-layout: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Must come after the block above: a table already inside a scroller keeps
     being a real table, otherwise it would scroll inside a scroller. */
  .panel--table table.atable,
  .atable-wrap table.atable,
  .rent-table-wrap table.atable,
  .table-scroll table.atable,
  [class*="__table"] table.atable {
    display: table !important;
    width: max-content !important;
    max-width: none !important;
  }

  table.atable th,
  table.atable td,
  .panel--table th,
  .panel--table td {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    padding: 10px 12px;
  }

  /* Pills and badges inside table cells: keep them on one line too, otherwise a
     two-word label like "12 campanii" becomes a tower of its own inside an
     already narrow column. */
  .atable [class*="pill"],
  .atable .badge,
  .atable .chip,
  [class*="daily-pill"] {
    white-space: nowrap;
    display: inline-block;
  }

  /* Two-column dashboard grids have nothing to gain from being two columns at
     390px; they only halve the space each side gets.
     .pricing-intro-grid and .searchlayout are deliberately NOT in this list —
     both are turned into flex columns above so their children can be reordered,
     and forcing display:block here would silently undo that. */
  .dash-grid-2 {
    grid-template-columns: 1fr !important;
  }

  .searchlayout {
    grid-template-columns: 1fr !important;
  }

  /* Definition lists in the admin user panel read better stacked than as a grid
     of clipped pairs. */
  .admin-user-context__section dl {
    display: block;
  }

  .admin-user-context__section dt {
    margin-top: 10px;
    font-size: 12px;
    opacity: .75;
  }

  .admin-user-context__section dd {
    margin: 2px 0 0;
    font-size: 15px;
  }

  /* ---------------------------------------------------------------------------
     8. Things that should never happen on a phone
     ------------------------------------------------------------------------ */

  /* Long unbroken strings — source URLs, e-mail addresses, listing references —
     are the usual cause of a page that scrolls sideways.

     `break-word`, NOT `anywhere`. The two look interchangeable and are not:
     `anywhere` also feeds into the min-content intrinsic size, so a flex item is
     allowed to shrink to the width of one character. The first version of this
     file used `anywhere` and applied it to every <a>, which collapsed the
     Sections nav in /admin/traffic into vertical columns of single letters —
     the links measured 8 to 20 pixels wide. `break-word` wraps long words
     without ever offering to be that narrow.

     Navigation is excluded outright: a menu label should wrap at spaces or not
     at all, never mid-word. */
  td,
  dd,
  .src,
  .muted,
  p a,
  li a,
  td a {
    overflow-wrap: break-word;
  }

  nav a,
  .botnav a,
  .type-tabs a,
  .admin-traffic-toc a,
  [class*="-toc"] a,
  [class*="nav"] a {
    overflow-wrap: normal;
    word-break: normal;
  }

  /* Clip sideways overflow without creating a scroll container. `overflow-x:
     hidden` on html+body is a known iOS Safari bug: vertical touch-scroll
     stays dead until the main thread finishes (Leaflet, images, etc.). */
  html {
    overflow-x: clip;
  }
  body {
    overflow-x: clip;
  }

  /* Sticky headers stacking on top of each other eat a phone screen alive. */
  .dssh-savebar {
    position: static;
  }
}

/* ---------------------------------------------------------------------------
   Narrow phones (iPhone SE and similar). Everything above still applies.
   ------------------------------------------------------------------------ */
@media (max-width: 400px) {

  .search-h1,
  .pricing-hero-title {
    font-size: 20px;
  }

  /* Five type tabs across 390px leaves each one too narrow to read; let them
     scroll horizontally instead of wrapping into an unreadable stack. */
  .type-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .type-tabs::-webkit-scrollbar {
    display: none;
  }

  .type-tabs a {
    flex: 0 0 auto;
  }
}

/* ---------------------------------------------------------------------------
   Touch targets and minimum legible type (mobile audit, 2026-08-09).
   Measured at 390px: rotator dots were 9px wide, several dashboard links were
   16–18px tall, and a few labels rendered at 8–10px. Nothing here changes what
   the page looks like on a desk — it only makes small controls reachable with
   a thumb and small print readable at arm's length.
   --------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Dots stay 9px visually; the tappable square around each grows to 25px.
     The gap widens to match, because overlapping targets make the tap
     ambiguous — the finger lands between two dots and either may win. */
  .landlord-rotator__dots{gap:16px}
  .landlord-rotator__dots button{position:relative}
  .landlord-rotator__dots button::after{content:"";position:absolute;inset:-8px;border-radius:50%}

  /* Inline "see more" style links sat at 16–18px tall. Vertical padding lifts
     them past 30px without pushing the surrounding text apart. */
  .panel h3 .see,
  .hcc__alert-link,
  .roommates-view,
  .subs-email,
  .admin-user-profile-link{display:inline-block;padding-block:7px}

  /* 8px uppercase is decoration pretending to be a label. */
  /* (was 10px here; superseded by the 11.5px list below — 10px still read as
     guesswork on a phone in daylight) */
  .landlord-page-head__eyebrow{font-size:11px}

  /* Admin column headers were 10–10.5px; the tables already scroll sideways,
     so a legible header costs nothing but a little more scrolling.
     !important, reluctantly and only here: dash-admin.min.css sets these from
     `.atable tr.th th` and, on the users page, from a five-class selector. Any
     selector strong enough to win that on every admin page would be a worse
     thing to leave behind than one honest !important. */
  .atable th,
  .wrap.dash table th{font-size:11.5px !important}

  /* Labels that measured 10–10.5px on a phone. Small caps at 10px is legible
     on a 27" monitor at arm's length and guesswork on a phone in daylight.
     Listed one by one rather than as a blanket minimum, so nothing that was
     deliberately tiny changes size by accident. */
  .start-here-chat__label,
  .listing-card__priority,
  .term-opt__save,
  .billing-eyebrow,
  .ai-quota-stat__meta,
  .landlord-rotator__kicker,
  .traffic-daily-dow,
  .sources-last__time,
  .hcc__state,
  .dmain .eyebrow,
  /* Second pass, 12 Aug: labels that arrived with the newer sections. Same rule
     as before — named one by one, so nothing deliberately tiny is caught by a
     blanket minimum. */
  .lr-v-label,
  .dssh-engine-shell__console-label,
  .roommates-houseboard__state,
  .hcc__shortlist-label,
  .subs-mom-delta,
  .subs-mom-eur,
  .traffic-daily-today,
  .promo-campaign-type{font-size:11.5px !important}

  /* Room Share (new section) shipped with its own scale: 9–11px across the
     cards, the route picker, the map steps and the filter labels. Measured on
     /room-share at 390px. Each selector below is one whose only rendered size
     is under the floor — no bare `.badge` or bare `span`, for the same reason
     the note under this block gives for `.eyebrow`. */
  .nav-room-share__badge,
  .roommates-route-picker__option em,
  .roommates-map b,
  .roommates-map span,
  .roommates-card__facts span,
  .roommates-card__intent strong,
  .roommates-tags span,
  .roommates-verification-badge,
  .roommates-houseboard__guardrail,
  .roommates-plan-explainer__footer p,
  .roommates-filters label,
  .roommates-filters .dssh-field-label,
  .roommates-pricing-section__note,
  .roommates-houseboard li strong{font-size:11.5px !important}

  /* The search form and the budget-range widget: field labels at 10–11px, the
     scale ends at 9.5px and the distance hints at 9px — the smallest readable
     text on the two pages that carry the most traffic (/ and /{city}/search). */
  .searchbox .f label,
  .search-fields .f label,
  .budget-range__labelrow label,
  .budget-range__scale span,
  .budget-range__value b,
  .home-budget-range__caption,
  .f-hint,
  .match-estimate-widget__label,
  .dssh-ai-badge,
  .market-intel div span{font-size:11.5px !important}

  /* 119x28 is under the thumb floor and these two badges are the primary
     action on every roommate card. */
  .roommates-verification-badge{min-height:32px;display:inline-flex;align-items:center}

  /* Bottom tab bar labels were 9.5px — the smallest text anywhere on the site,
     on the control used most often. 10.5px still fits the longest label
     ("Landlords") inside its 65px column at 390px. */
  nav.botnav a{font-size:10.5px !important}

  /* Deliberately NOT a bare `.eyebrow`: the class is used all over the site at
     12–13px, and a fixed 11.5px !important would shrink those rather than grow
     the one 10px instance on /landlords. CSS has no minimum-font-size, so a
     blanket floor here would quietly make most of the site smaller. */

  /* Admin action buttons sat at 22–25px tall. This is internal tooling, so the
     bar is lower than for the public site, but a 22px target still means
     mis-taps on every row. */
  /* .dmain too: the admin filter and bulk bars sit directly in the main column,
     not inside a .panel, so the earlier pair of selectors walked straight past
     "Pending queue", "All listings" and "Remove selected" at 25px tall. */
  .dmain .btn-sm,
  .panel .btn-sm,
  .atable .btn{min-height:30px !important;display:inline-flex;align-items:center}

  /* A 25px-wide link is a coin toss with a thumb. Widen the target without
     touching the avatar or initials inside it. */
  .admin-user-profile-link{min-width:30px;justify-content:center}

  /* ---------------------------------------------------------------------------
     WhatsApp priority support, back on phones
     ---------------------------------------------------------------------------
     The dashboard sidebar is display:none here, and everything in it is reachable
     from the account menu — every item except one. The Sprint support link lives
     in .side-foot and had no mobile equivalent, so it vanished with the sidebar.
     Whichever state it is in, that is the wrong thing to lose: for a Sprint
     subscriber it is the support channel they pay for, and for everyone else it
     is the Sprint upsell. Either way the gate should be the plan, not the width
     of the screen — and WhatsApp is a phone app, so the phone is exactly where
     the link is worth the most.

     display:contents on the aside lets one child through without unhiding the
     rest. :has() is what selects that child; where it is unsupported the link
     simply stays hidden, which is today's behaviour, so this cannot regress. */
  .wrap.dash .side--dash:has(.side-support-link){display:contents}
  /* !important on the hide, because .side-nav is set to display:flex by a rule
     that outranks this one — without it the whole 17-item sidebar navigation
     reappears on mobile, duplicating the account menu. */
  .wrap.dash .side--dash:has(.side-support-link) > *{display:none !important}
  .wrap.dash .side--dash > .side-foot:has(.side-support-link){
    display:block !important;order:99;margin:20px 0 0;padding-top:16px;border-top:1px solid var(--line,#e4ecef);
  }
  .wrap.dash .side-support-link{display:flex;align-items:center;gap:8px;min-height:44px}
}
/* Product visual — mobile.
   The overlay is a half-width panel sitting on the left of the illustration,
   which works on a wide screen and not at all on a phone: 48% of 340px is 164px,
   so "Use what is already included" broke onto three lines, the block needed
   308px inside a 227px figure, and overflow:hidden cut the heading at the top
   and the button off the bottom.
   On mobile the caption spans the full width and sits at the bottom behind a
   vertical scrim, and the image gets a taller box so the illustration still
   reads above it. !important is needed because the base styles are inline. */
@media (max-width:640px){
  .product-visual--overlay .product-visual__img{
    height:300px!important;max-height:300px!important;
    object-fit:cover!important;object-position:center 28%!important;
  }
  .product-visual--overlay .product-visual__overlay{
    width:auto!important;inset:auto 0 0 0!important;
    align-items:flex-end!important;padding:36px 18px 16px!important;
    background:linear-gradient(180deg,rgba(239,250,250,0) 0%,rgba(239,250,250,.55) 22%,rgba(239,250,250,.93) 48%,rgba(239,250,250,.99) 70%)!important;
  }
  .product-visual--overlay h2{font-size:18px!important;margin:3px 0 6px!important;line-height:1.25!important}
  .product-visual--overlay p{font-size:13px!important;line-height:1.45!important;margin:0 0 12px!important}
  .product-visual--overlay .eyebrow{font-size:10px!important}
}

