/* ==================================================================
   Phones and tablets: the last word on sizes, loaded after every
   page's own stylesheet (layouts/app.blade.php).
   - Phones (up to 700px): no text under 12px (the small spaced labels
     on cards, prices, meta lines and the footer), and every form field
     at 16px — below that, iPhones zoom the page in when a field is
     tapped.
   - Tablets (701–1180px): the very smallest labels (under 11px) come up
     to 11.5px.
   Only font sizes change here; each page keeps its own layout.
   ================================================================== */

@media (max-width:1180px){
  .fx-label,.fx-count>span,.ol-chips small,.px-spec small,.px-price small,.pv-enq-facts small,
  .cy-tile-k,.cy-map-facts dt,.ct-card-label,.inx-pan-no,.inx-dev-grid .no,.inx-orb .no{font-size:11.5px!important}
}

@media (max-width:700px){
  /* form fields: 16px keeps iOS from zooming in on tap */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea{font-size:16px!important}

  /* small spaced labels, meta lines and figures' captions */
  .sh-m-k i,
  .sf-card small,
  .hm-kicker,.hm-field-k,.hm-pcard-dev,.hm-post-meta b,.hm-post-meta span,.ol-chips small,.ol-price small,
  .ab-kicker,.ab-area-kind,
  .ct-card-k,.ct-card-label,
  .fm-office-k,.fm-ticket-k,.fm-sheet-head span,
  .bz-card-cat,.bz-meta>b,.bz-meta>span,.bl-meta>span,.ar-share>span,.ar span.cat,
  .fx-label,.fx-count>span,
  .ca-card-city,.ca-stats dt,
  .cy-oc-city,.cy-tile-k,.cy-map-facts dt,
  .dd-show-price small,
  .px-badge,.px-ref,.px-price small,.px-spec small,
  .pv-spec small,.pv-index b,.pv-hl small,.pv-dev-body small,.pv-comm-body small,.pv-enq-ref i,.pv-enq-facts small,
  .mzx-flow-card small,
  .inx-hero-foot,.inx-pan-no,.inx-dev-grid .no,.inx-orb .no{font-size:12px!important}

  /* figures and their captions under large numbers */
  .ab-tile>span,.hm-stat>span,.pv-field>span{font-size:12.5px!important}

  /* the projects' wordmarks ("by EMAAR", "by ARADA"): part of a logo, kept small but legible */
  .cbx-offer-mark small,.cbx-who-mark small,.cbx-foot-mark i,.inx-mark small{font-size:11px!important}
}

/* popups fit the screen that is actually visible: on phones 100vh runs under the browser's address bar */
.ty-card{max-height:calc(100dvh - 40px)}
.cookie-modal-card{max-height:calc(100dvh - 40px)}
.lbx figure img{max-height:calc(100dvh - 170px)}
@media (max-width:640px){.lbx figure img{max-height:calc(100dvh - 210px)}}
