/* Africa.Luxury 1.7.505 — mobile shelf continuity + final View All slide. */
@media (max-width:699px) {
  /* Same quiet material behind search, filter rail and listings. No separate
     grey strip or shadow edge where the filter rail meets Featured Properties. */
  body.al-hp-body {
    background:#fafaf9!important;
    background-image:radial-gradient(ellipse 95% 370px at 48% 190px,
      rgba(255,255,255,.93), rgba(250,250,249,0) 100%)!important;
    background-repeat:no-repeat!important;
  }
  body.al-hp-body .al462-mobile-home,
  body.al-hp-body #alx-main-content,
  body.al-hp-body .al-discovery,
  body.al-hp-body .al-home-shelves,
  body.al-hp-body .al-home-shelf {
    background:transparent!important;
    background-image:none!important;
    border-bottom:0!important;
  }
  body.al-hp-body .al462-mobile-home {
    box-shadow:none!important;
    padding-bottom:13px!important;
    overflow:visible!important;
  }
  /* Original rail uses overflow-x:auto; the box-shadows were being clipped
     abruptly at the bottom of its 9px padding, creating a hard horizontal seam.
     Give the shadows room to decay completely before the next heading. */
  body.al-hp-body .al462-mobile-home .al462-filter-strip {
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    padding-top:8px!important;
    padding-bottom:22px!important;
    margin-top:-6px!important;
    margin-bottom:-13px!important;
  }
  body.al-hp-body .al462-mobile-home .al462-filter-pill:not(.is-active) {
    box-shadow:0 4px 11px rgba(24,40,53,.085),
      0 10px 17px rgba(24,40,53,.035),
      inset 0 1px 1px rgba(255,255,255,.96)!important;
  }
  body.al-hp-body .al-home-shelves {
    padding-top:7px!important;
    gap:25px!important;
  }
  body.al-hp-body #al-featured-properties .al-shelf-heading {
    margin-top:0!important;
  }

  /* True 15-page maximum, with the last page always View All.
     Desktop receives the full original listing list unchanged. */
  body.al-hp-body .al-home-shelf .al-shelf-track > .al505-over-limit,
  body.al-hp-body .al-home-shelf .al-shelf-track > .al-shelf-placeholder,
  body.al-hp-body .al-home-shelf .al-shelf-track > .al-shelf-card[hidden] {
    display:none!important;
  }
  body.al-hp-body .al-home-shelf .al-shelf-track > .al505-view-all[hidden] {display:none!important;}
  body.al-hp-body .al-home-shelf .al-shelf-track > .al505-view-all {
    display:flex!important;
    flex-direction:column!important;
    flex:0 0 100%!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:always!important;
    box-sizing:border-box!important;
    border-radius:22px!important;
    overflow:hidden!important;
    border:1px solid rgba(205,181,134,.25)!important;
    box-shadow:0 8px 23px rgba(26,43,56,.085)!important;
    background:linear-gradient(145deg,#ffffff 0%,#faf8f3 100%)!important;
    padding:0!important;
    align-self:stretch!important;
    min-height:325px!important;
  }
  body.al-hp-body .al505-view-all .al505-all-link {
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    box-sizing:border-box;
    min-height:325px;
    width:100%;height:100%;
    gap:12px;
    padding:35px 25px 23px;
    text-decoration:none!important;
    color:#0a2b43!important;
    background:radial-gradient(circle at 80% 10%,rgba(225,177,96,.18),transparent 42%),
      radial-gradient(circle at 18% 95%,rgba(7,46,70,.055),transparent 51%);
  }
  body.al-hp-body .al505-all-link:focus-visible {
    outline:3px solid #c39349!important;outline-offset:-5px;
  }
  body.al-hp-body .al505-all-emblem {
    display:grid;place-items:center;
    width:74px;height:74px;flex:0 0 74px;
    border-radius:24px;
    background:linear-gradient(150deg,#efc277,#bc812e);
    color:#fff;
    box-shadow:0 12px 26px rgba(141,92,26,.18),inset 0 2px 2px rgba(255,255,255,.30);
    font:500 40px/1 system-ui,sans-serif;
  }
  body.al-hp-body .al505-all-eyebrow {
    margin-top:6px;
    font:700 10px/1.4 var(--al-font-ui,Arial,sans-serif);
    color:#aa7931;letter-spacing:.12em;
  }
  body.al-hp-body .al505-all-title {
    font:700 clamp(27px,7vw,33px)/1.08 var(--al-font-ui,Arial,sans-serif);
    letter-spacing:-.035em;color:#09283f;
  }
  body.al-hp-body .al505-all-subtitle {
    font:500 13px/1.35 var(--al-font-ui,Arial,sans-serif);
    color:#667889;max-width:245px;
  }
  body.al-hp-body .al505-all-foot {
    align-self:stretch;
    margin-top:auto;padding-top:17px;
    border-top:1px solid rgba(171,144,106,.14);
    display:flex;align-items:center;justify-content:space-between;
    gap:8px;font:500 11px/1.4 var(--al-font-ui,Arial,sans-serif);
    color:#77869a;
  }
  body.al-hp-body .al505-all-count {font-weight:700;white-space:nowrap;color:#af823e;}
  body.al-hp-body .al505-view-all:active .al505-all-emblem {
    box-shadow:inset 3px 4px 9px rgba(99,59,13,.30)!important;
  }
  /* Last counter belongs to the card, not a separate pagination band. */
  body.al-hp-body .al-home-shelf .al-shelf-track > .al-shelf-card .al504-card-guide[hidden] {
    display:none!important;
  }
}
@media (min-width:700px) {
  .al505-view-all{display:none!important}
  .al505-over-limit{display:initial}
}
@media (prefers-reduced-motion:reduce) {
  .al505-view-all,.al505-all-link,.al505-all-emblem {animation:none!important;transition:none!important;}
}
