.mobile-property-only, .mobile-video-player { display: none; }
.desktop-detail-utilities { display: contents; }
@font-face { font-family: "Card Inter"; src: url("../fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Card Noto Arabic"; src: url("../fonts/NotoSansArabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

@media (max-width: 767px) {
  .mobile-property-only { display: block; }

  .market-result:is(article, :hover, :focus-within) {
    background: #FFFFFF;
    border-color: transparent;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 9%);
  }
  .market-result { font-family: "Card Inter", "Card Noto Arabic", sans-serif; }
  .home-latest-grid, .market-results { align-content: start; align-items: start; row-gap: 12px; }
  .market-result > .poster-identity, .market-result .market-result-info,
  .market-result .market-carousel, .market-result .property-card-photo-count { display: none; }
  .market-result .market-result-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: start;
  }
  /* Size each row directly. A spanning row subgrid overestimates the
     intrinsic card height in RTL WebKit with the aspect-ratio photo. */
  .market-result .market-result-link { display: contents; }
  .market-result-link > :is(.mobile-card-heading, .property-card-media, .mobile-card-bottom) { grid-column: 1; }
  .market-result .market-result-link:focus-visible > .mobile-card-heading { outline: 3px solid var(--green); outline-offset: -3px; }
  .market-result .market-result-link .property-card-media { grid-row: 2; align-self: start; height: auto; min-height: 0; aspect-ratio: 2.3 / 1; touch-action: auto; }
  .mobile-card-heading, .mobile-card-bottom { padding: 10px 12px; min-width: 0; }
  .market-result .mobile-card-heading { grid-row: 1; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 8px; text-align: start; }
  .mobile-card-summary { display: grid; justify-items: start; gap: 4px; min-width: 0; }
  .mobile-card-heading h2 { margin: 0; font-size: 17px; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
  .mobile-card-location { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
  .mobile-card-location svg { flex: none; color: var(--green); }
  .market-result .mobile-card-heading .property-card-availability { padding: 0; border: 0; background: transparent; color: inherit; font-size: 11px; line-height: 1.3; }
  .mobile-card-price { display: grid; align-content: start; gap: 3px; margin: 0; text-align: end; overflow-wrap: anywhere; }
  .mobile-card-price strong { color: var(--listing-price-color); font-size: 21px; font-weight: 800; line-height: 1.2; }
  .mobile-card-price small { color: var(--muted); font-size: 12px; line-height: 1.3; }
  .mobile-card-bottom { grid-row: 3; display: grid; gap: 5px; padding-block: 7px 8px; background: #FFFFFF; }
  .mobile-card-bottom h3 { margin: 0 0 3px; color: var(--green); font-size: 12px; font-weight: 700; line-height: 1.25; }
  .mobile-card-utility-group { padding: 5px 6px; border-radius: 7px; background: #E5EEDD; }
  .market-result .market-result-save { position: relative; inset: auto; grid-column: 1; grid-row: 2; justify-self: end; align-self: start; margin: 4px; }
  .market-result .market-result-save :is(a,button) { width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #fff; text-shadow: 0 1px 4px #000, 0 0 5px #000; }
  .market-result-save :is(a,button):focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
  .market-result .market-result-save [aria-hidden=true] { font-size: 30px; }
  .market-save-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mobile-card-facts, .mobile-property-utilities { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; margin: 0; padding: 0; list-style: none; }
  .mobile-card-facts:not(:has(> span)) { display: none; }
  .mobile-card-facts > span, .mobile-property-utilities li { display: grid; justify-items: center; align-content: start; gap: 4px; padding-inline: 3px; text-align: center; font-size: .75rem; overflow-wrap: anywhere; }
  .mobile-card-facts > span + span, .mobile-property-utilities li + li { border-inline-start: 1px solid var(--border); }
  .mobile-card-facts svg, .mobile-property-utilities svg { color: var(--green); }
  .mobile-card-facts:has(> span) + .mobile-property-utilities { border-block-start: 1px solid var(--border); margin-block-start: 9px; padding-block-start: 9px; }
  .mobile-card-byline { margin: 8px 0 0; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
  .mobile-card-bottom :is(.mobile-card-facts, .mobile-property-utilities) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 7px; }
  .mobile-card-bottom .mobile-card-facts:not(:has(> span)) { display: none; }
  .mobile-card-bottom :is(.mobile-card-facts > span, .mobile-property-utilities li) { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; font-size: 11px; line-height: 1.35; }
  .mobile-card-bottom svg { width: 16px; height: 16px; flex: none; }
  .mobile-card-bottom .mobile-card-byline { margin: 0; font-size: 11px; line-height: 1.35; }
  .mobile-card-bottom:not(:has(.mobile-card-detail-group, .mobile-card-utility-group, .mobile-card-byline)) { display: none; }

  .property-detail-page .desktop-detail-utilities, .property-detail-page .detail-gallery-counter.mobile-hide-single-count,
  .property-detail-page .viewer-counter.mobile-hide-single-count,
  .property-detail-page .detail-gallery-video { display: none; }
  .property-detail-page .detail-mobile-features { order: 5; padding: 18px 0; border-block-end: 1px solid var(--border); }
  .detail-mobile-features .card-apartment-features { border: 0; margin: 0; padding: 0; }
  .detail-mobile-features h3 { font-size: 1.15rem; }
  .property-detail-page .mobile-video-tile { display: flex; align-items: center; gap: 12px; order: 0; margin-block-start: 12px; padding: 5px; text-align: start; background: var(--page-background); color: var(--green); border: 1px solid var(--border); border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; }
  .mobile-video-preview { flex: 0 0 42%; position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--green); color: #fff; }
  .mobile-video-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .mobile-video-preview span { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #15231ed1; }
  .mobile-video-player[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: #101512; color: #fff; }
  .mobile-video-player::backdrop { background: #101512; }
  .mobile-video-player button { justify-self: end; min-width: 44px; min-height: 44px; background: #20372b; border: 1px solid #fff; border-radius: 8px; color: #fff; font-size: 1.5rem; }
  .mobile-video-player video { width: 100%; height: 100%; object-fit: contain; }
  html.mobile-video-open { overflow: hidden; }
}
