
/* =========================================
   Slider & section basics
   ========================================= */
.hrow{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 6px 12px;-webkit-overflow-scrolling:touch}
.hrow::-webkit-scrollbar{height:8px}
.hrow::-webkit-scrollbar-thumb{background:color-mix(in oklab,var(--text) 18%,transparent);border-radius:999px}
.hrow>*{scroll-snap-align:start}
.hcard{min-width:206px;max-width:206px}
@media (max-width:1199.98px){.hcard{min-width:220px;max-width:220px}}
@media (max-width:991.98px){.hcard{min-width:240px;max-width:240px}}
@media (max-width:576px){.hcard{min-width:42vw;max-width:42vw}} /* Phone ~2.3 cards */

.section-head{margin:12px 2px 8px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.section-title{font-weight:800;font-size:1.05rem}
.arrow-btn{border:1px solid var(--border);background:transparent;border-radius:12px;width:42px;height:42px;display:grid;place-items:center}
.arrow-btn:hover{background:color-mix(in oklab,var(--text) 8%,transparent)}
.section-head .row-nav{display:flex;gap:8px;align-items:center}

/* ❌ Hide arrow buttons on phones only */
@media (max-width:576px){
  .section-head .row-nav,
  .section-head .arrow-btn{display:none !important}
}

/* =========================================
   Card (Airbnb-like) — unified look
   ========================================= */
.spot{position:relative;border:none;background:transparent;box-shadow:none;border-radius:14px;overflow:visible}
.spot-media{position:relative;aspect-ratio:1/1 !important;border-radius:14px;overflow:hidden;background:transparent}
.spot-media img{display:block;width:100%;height:100% !important;object-fit:cover !important;object-position:center;border-radius:14px;aspect-ratio:auto !important}
.spot-overlay{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.12))}

/* Elements on top of the image */
.category-chip{position:absolute;top:10px;left:10px;padding:5px 10px;font-size:.75rem;font-weight:700;color:#111;background:rgba(255,255,255,.96);border:1px solid rgba(0,0,0,.06);border-radius:999px;box-shadow:0 3px 8px rgba(0,0,0,.08);backdrop-filter:blur(8px);z-index:2}
.fav-btn{position:absolute;top:10px;right:10px;width:32px;height:32px;border:1px solid rgba(0,0,0,.1);background:#fff;border-radius:999px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 8px rgba(0,0,0,.1);cursor:pointer;z-index:3}
.fav-btn .bi{font-size:15px;color:#111}
.fav-btn.is-fav{background:#111;border-color:#111}
.fav-btn.is-fav .bi{color:#fff}

/* ===== Price — as a "line" below the image, does not cover any element =====
   Note: element is inside .spot-media so we visually push it outside */
.price-badge{
  position:absolute;
  left:12px;
  top:100%;                 /* right under the image */
  transform:translateY(8px);/* small offset */
  background:transparent;   /* no background */
  color:#111;
  font-weight:800;
  font-size:.95rem;
  padding:0;
  border:none;
  border-radius:0;
  z-index:1;                /* lower than heart/category */
  pointer-events:none;      /* does not block card clicks */
}
.spot-meta{
  margin-top:0 !important;
  gap:0 !important;
  padding:0 !important;
}

/* Text under the image */
.spot-title{font-weight:800;color:#111;font-size:clamp(.9rem,.86rem + .2vw,.98rem);margin-bottom:4px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.owner-avatar--placeholder{display:none}
.city-chip{background:none;border:none;padding:0;color:#6b7280;font-size:.86rem}
.spot-footer{display:flex;align-items:center;justify-content:space-between;margin-top:2px}
.spot-footer small{color:#111;font-weight:800;font-size:.88rem}

/* =========================================
   “All items” grid — 2–3–4–5–6 columns
   ========================================= */
.mixed-grid{display:grid;gap:14px;padding-inline:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:576px){ .mixed-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (min-width:768px){ .mixed-grid{grid-template-columns:repeat(4,minmax(0,1fr))} }
@media (min-width:992px){ .mixed-grid{grid-template-columns:repeat(5,minmax(0,1fr))} }
@media (min-width:1200px){ .mixed-grid{grid-template-columns:repeat(6,minmax(0,1fr))} }

/* Same slider look inside “All items” */
.home-shelves .mixed-grid>.spot{border:none;background:transparent;box-shadow:none;border-radius:14px}
.home-shelves .mixed-grid .spot-media{aspect-ratio:1/1 !important;border-radius:14px;overflow:hidden}
.home-shelves .mixed-grid .spot-media img{width:100%;height:100% !important;object-fit:cover !important;border-radius:14px;aspect-ratio:auto !important}
.home-shelves .mixed-grid .category-chip{top:8px;left:8px;padding:4px 9px;font-size:.74rem}
.home-shelves .mixed-grid .fav-btn{top:8px;right:8px;width:28px;height:28px}
.home-shelves .mixed-grid .fav-btn .bi{font-size:14px}
/* Price under the image for all cards as well */
.home-shelves .mixed-grid .price-badge{
  left:10px; top:100%; transform:translateY(8px);
  background:transparent; color:#111; font-weight:800; font-size:.92rem; padding:0; border:none; border-radius:0; z-index:1; pointer-events:none;
}
@supports(padding:max(0px)){ .home-shelves{padding-bottom:max(84px, env(safe-area-inset-bottom,0))} }

/* =========================================
   HERO (top banner) — unchanged
   ========================================= */
.edge-bleed{margin-inline:auto;width:100%;display:flex;justify-content:center}
.hero-carousel{position:relative;max-width:420px;margin:8px auto 14px;border-radius:18px;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.08)}
@media (min-width:576px){ .hero-carousel{max-width:560px} }
@media (min-width:992px){ .hero-carousel{max-width:720px} }
.hero-carousel .carousel-inner,.hero-carousel .carousel-item,.hero-carousel .carousel-item img{border-radius:18px;overflow:hidden}
.hero-carousel .carousel-item{aspect-ratio:3/2}
.hero-carousel .carousel-item img{width:100%;height:100%;object-fit:contain;object-position:center;display:block;background:#eef2f7}
.hero-carousel .carousel-indicators,.hero-carousel .carousel-caption{display:none}
.hero-carousel .carousel-control-prev,.hero-carousel .carousel-control-next{width:10%}

/* Desktop card-wrap under hero */
@media (min-width:992px){
  .edge-bleed{margin-inline:auto;width:auto}
  .hero-carousel{max-width:950px;margin:0 auto 14px}
  .home-shelves{background:#fff;border-radius:18px 18px 0 0;box-shadow:0 8px 26px rgba(0,0,0,.06);margin-top:-80px;padding:16px 18px 20px}
  .home-shelves.container-xl{max-width:1320px}
}

/* =========================================
   Top Strip (3 vertical sliders)
   ========================================= */
.top-strip-wrap{margin:12px 0 6px}
.top-strip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.top-strip{border-radius:16px;overflow:hidden;box-shadow:0 8px 26px rgba(0,0,0,.06);background:#fff;border:1px solid var(--border)}
.top-strip .carousel-item{aspect-ratio:2/3}
.top-strip .carousel-item img{width:100%;height:100%;object-fit:cover;display:block}
.top-strip .carousel-indicators{display:none}
.top-strip .carousel-control-prev,.top-strip .carousel-control-next{width:12%}
@media (max-width:576px){
  .top-strip-grid{grid-template-columns:1fr}
  .top-strip-col:not(:first-child){display:none}
  .top-strip{border-radius:14px}
  .top-strip .carousel-item{aspect-ratio:2/3}
  .top-strip .carousel-item img{width:100%;height:100%;object-fit:contain;object-position:center;background:#eef2f7}
}

/* =========================================
   Location bar (Locbar)
   ========================================= */
:root{
  --sevor-brand:#6C63FF;
  --sevor-ink:#0f172a;
  --sevor-muted:#667085;
  --sevor-bg:#ffffff;
  --sevor-bg-soft:#f7f7fb;
  --sevor-danger:#ea3e41;
}
.home-locbar{background:var(--sevor-bg);border:1px solid var(--border);border-radius:16px;padding:14px 12px;margin-block:16px;box-shadow:0 8px 22px rgba(2,6,23,.06);align-items:center;gap:8px}
.home-locbar .btn{height:46px;border-radius:999px;white-space:nowrap}
#homeCityInput{height:46px;border-radius:999px;border:1px solid var(--border);background:#fafafa;color:var(--sevor-ink);padding-inline:14px;font-weight:600;letter-spacing:.2px;transition:border-color .15s,box-shadow .15s,background .15s}
#homeCityInput::placeholder{color:#9aa3af}
#homeCityInput:focus{background:#fff;border-color:color-mix(in oklab,var(--sevor-brand) 42%,#9aa);box-shadow:0 0 0 4px color-mix(in oklab,var(--sevor-brand) 18%, transparent);outline:none}
.home-locbar .col-6.col-md-3:has(#homeRadius){display:none}
#homeRadius{display:none}
#homeUseGPS{background:var(--sevor-bg-soft);border:1px solid var(--border);color:var(--sevor-ink);font-weight:800;letter-spacing:.2px;display:flex;align-items:center;justify-content:center;gap:6px}
#homeUseGPS::before{content:"📍";display:inline-block;transform:translateY(1px)}
#homeUseGPS:hover{background:#eef0f6}
#homeClearGPS{height:auto;padding:6px 8px 0;border:none;color:var(--sevor-danger);font-weight:700;text-decoration:none}
#homeClearGPS:hover{text-decoration:underline}
.home-locbar .btn.btn-primary{background:linear-gradient(135deg,var(--sevor-brand),color-mix(in oklab,var(--sevor-brand) 72%,#8ab));color:#fff;border:none;font-weight:900;letter-spacing:.3px;box-shadow:0 10px 24px rgba(108,99,255,.22);transition:filter .15s,transform .06s}
.home-locbar .btn.btn-primary:hover{filter:brightness(1.03)}
.home-locbar .btn.btn-primary:active{transform:translateY(1px)}
#homeCitySugg{position:absolute;z-index:1000;display:none;max-height:260px;overflow:auto;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 22px rgba(2,6,23,.06)}
#homeCitySugg>div{padding:.6rem .75rem;font-size:.95rem;color:var(--sevor-ink);border-top:1px solid rgba(2,6,23,.06);cursor:pointer}
#homeCitySugg>div:first-child{border-top:none}
#homeCitySugg>div:hover{background:#f5f3ff}
@media (min-width:992px){
  .home-locbar .col-12.col-md-5{padding-inline-end:8px}
  .home-locbar .col-6.col-md-2.d-grid{justify-items:end}
}
@media (max-width:576px){
  .home-locbar{padding:12px;border-radius:14px}
  #homeUseGPS{margin-top:6px}
  #homeClearGPS{margin-top:2px}
  .home-locbar .btn.btn-primary{margin-top:6px}
}
@media (max-width:576px){
  .spot-title{font-size:.9rem}
  .spot-footer small{font-size:.86rem}
}


/* =========================================
   Force square card on all screens (confirmation)
   ========================================= */
.spot-media,
.home-shelves .mixed-grid .spot-media{aspect-ratio:1/1 !important}
.spot-media img,
.home-shelves .mixed-grid .spot-media img{height:100% !important;object-fit:cover !important}

/* If any external rule changes ratio on desktop */
@media (min-width:577px){
  .spot-media{aspect-ratio:1/1 !important}
  .spot-media img{height:100% !important}
}

/* =====[ ADD-ON | do not edit above ]================================== */
/* Keep images square (confirmation) */
.spot-media{aspect-ratio:1/1!important}
.spot-media img{height:100%!important;object-fit:cover!important}

/* We do not want the price badge on top of the image at all */
.price-badge{display:none!important}

/* Data layout under title: Price → City → Rating */
.spot-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-top:4px;
}
.spot-price{font-weight:900;color:#111;font-size:.95rem}
.spot-price span{font-weight:600;opacity:.85}
.spot-city{color:#6b7280;font-size:.92rem;overflow-wrap:anywhere}
.spot-rating{font-weight:800;color:#111;font-size:.9rem}
.spot-rating::before{content:"★ ";font-weight:900}

/* Reduce spacing since we don’t use the below-image price-badge */
.spot-body{padding:10px 4px 0}

/* Hide the old lines (do not delete HTML) to avoid duplicate info */
.owner-line{display:none!important}
.spot-footer{display:none!important}

/* ===== Locbar Compact (additions only) ===== */
.home-locbar.locbar--compact{
  padding:8px 10px;
  border-radius:12px;
  box-shadow:none;
  gap:8px;
  background:#fff;
}

/* Put elements in one row and smaller size */
.locbar--compact{
  display:grid;
  grid-template-columns: 1fr auto auto auto;
  align-items:center;
}
.locbar--compact .col-12.col-md-5,
.locbar--compact .col-6.col-md-2,
.locbar--compact .col-12.col-md-2{padding:0;margin:0}
.locbar--compact .col-6.col-md-2.d-grid{
  display:grid !important;
  grid-auto-flow:column;
  gap:6px;
  justify-content:start;
}

/* Small, simple city field */
.locbar--compact #homeCityInput{
  height:38px;
  border-radius:10px;
  background:#fff;
  font-weight:600;
  font-size:.92rem;
  padding-inline:10px;
  border:1px solid var(--border);
  box-shadow:none;
}

/* GPS and “Apply” buttons smaller */
.locbar--compact .btn{
  height:38px;
  padding:0 10px;
  border-radius:10px;
  font-weight:700;
  font-size:.9rem;
  white-space:nowrap;
}
.locbar--compact #homeUseGPS{
  background:#fff;
  border:1px solid var(--border);
  color:var(--sevor-ink);
}
.locbar--compact #homeUseGPS::before{content:"📍";margin-inline-end:4px}
.locbar--compact .btn.btn-primary{
  background:var(--sevor-brand);
  box-shadow:none;
}

/* Cancel button as a small link */
.locbar--compact #homeClearGPS{
  padding:0 6px;
  margin:0;
  height:auto;
  line-height:1;
  font-weight:800;
  color:var(--sevor-danger);
}

/* Lighter, smaller suggestions list */
.locbar--compact #homeCitySugg{
  border-radius:10px;
  box-shadow:0 6px 18px rgba(2,6,23,.08);
  max-height:220px;
  font-size:.92rem;
}
.locbar--compact #homeCitySugg>div{padding:.5rem .6rem}
@media (max-width:576px){
  /* On mobile, two rows: (city + GPS) above, (Apply + Cancel) below */
  .locbar--compact{
    grid-template-columns: 1fr auto;
    row-gap:6px;
  }
  .locbar--compact .col-6.col-md-2.d-grid{
    grid-column: 1 / -1;
    justify-content:space-between;
  }
  .locbar--compact .btn{height:36px; font-size:.88rem}
  .locbar--compact #homeCityInput{height:36px; font-size:.9rem}
}

/* ===== Locbar: single simple row (Overrides) ===== */
.home-locbar.locbar--compact{
  padding:6px 8px;
  border-radius:12px;
  box-shadow:none;
  background:#fff;
  gap:8px;
}

/* Single-row grid: city field grows + GPS + Apply + Cancel */
.locbar--compact{
  display:grid;
  grid-template-columns: 1fr auto auto auto; /* always one row */
  align-items:center;
  column-gap:8px;
}

/* Remove default Bootstrap column spacing inside the bar */
.locbar--compact .col-12.col-md-5,
.locbar--compact .col-6.col-md-2,
.locbar--compact .col-12.col-md-2{padding:0;margin:0}

/* GPS/Cancel group always horizontal */
.locbar--compact .col-6.col-md-2.d-grid{
  display:grid !important;
  grid-auto-flow:column;
  gap:8px;
  justify-content:start;
}

/* Smaller, clean city input */
.locbar--compact #homeCityInput{
  height:36px;
  font-size:.9rem;
  border-radius:10px;
  padding-inline:10px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:none;
}

/* All buttons same small height */
.locbar--compact .btn{
  height:36px;
  padding:0 12px;
  border-radius:10px;
  font-weight:700;
  font-size:.9rem;
  white-space:nowrap;
}

/* Simple GPS button (icon only suggested) */
.locbar--compact #homeUseGPS{
  background:#fff;
  border:1px solid var(--border);
  color:var(--sevor-ink);
  padding:0 10px;
}
.locbar--compact #homeUseGPS::before{content:"📍";margin-inline-end:0}

/* Apply button without shadow */
.locbar--compact .btn.btn-primary{
  background:var(--sevor-brand);
  box-shadow:none;
}

/* Cancel as a small inline link */
.locbar--compact #homeClearGPS{
  padding:0 6px;
  margin:0;
  height:auto;
  line-height:1;
  font-weight:800;
  color:var(--sevor-danger);
  border:none;
}

/* Lighter suggestions */
.locbar--compact #homeCitySugg{
  border-radius:10px;
  box-shadow:0 6px 18px rgba(2,6,23,.08);
  max-height:220px;
  font-size:.92rem;
}
.locbar--compact #homeCitySugg>div{padding:.5rem .6rem}

/* Slightly smaller sizes on very small screens */
@media (max-width:420px){
  .locbar--compact #homeCityInput{height:32px;font-size:.86rem}
  .locbar--compact .btn{height:32px;font-size:.86rem;padding:0 8px}
  .locbar--compact{column-gap:6px}
}

/* ====== MOBILE ONE-LINE LOCBAR (HARD OVERRIDE) ====== */
.home-locbar.locbar--compact{
  padding:8px !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:none !important;
  gap:6px !important;
}

/* Fixed grid: growing field + GPS + Apply + Cancel (one line) */
@media (max-width:576px){
  .locbar--compact{
    display:grid !important;
    grid-template-columns: minmax(0,1fr) auto auto auto !important;
    align-items:center !important;
    column-gap:6px !important;
    row-gap:0 !important;
  }
  /* Uniform small sizes */
  .locbar--compact #homeCityInput,
  .locbar--compact .btn{
    height:34px !important;
    font-size:.86rem !important;
    border-radius:10px !important;
  }
  /* City input grows and doesn’t force a new line */
  .locbar--compact #homeCityInput{
    min-width:0 !important;
    padding-inline:10px !important;
    background:#fff !important;
    border:1px solid var(--border) !important;
    box-shadow:none !important;
  }
  /* Compact buttons */
  .locbar--compact #homeUseGPS{
    padding:0 10px !important;
    background:#fff !important;
    border:1px solid var(--border) !important;
    color:var(--sevor-ink) !important;
    white-space:nowrap !important;
  }
  .locbar--compact .btn.btn-primary{
    padding:0 12px !important;
    background:var(--sevor-brand) !important;
    box-shadow:none !important;
  }
  .locbar--compact #homeClearGPS{
    padding:0 6px !important;
    height:auto !important;
    line-height:1 !important;
    font-weight:800 !important;
    color:var(--sevor-danger) !important;
    border:none !important;
    background:transparent !important;
  }
  /* Cancel any rules that might make the grid wrap to two rows */
  .locbar--compact .col-12.col-md-5,
  .locbar--compact .col-6.col-md-2,
  .locbar--compact .col-12.col-md-2{padding:0 !important; margin:0 !important}
  .locbar--compact .col-6.col-md-2.d-grid{
    display:grid !important;
    grid-auto-flow:column !important;
    gap:6px !important;
    justify-content:start !important;
  }
}

/* ======== MOBILE LOCATION CONTROLS ======== */
@media (max-width:576px){
  /* Preserve every control, but give the narrow screen a usable two-row grid. */
  .home-locbar.locbar--compact.row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"city actions" "search search";
    align-items:center !important;
    gap:8px !important;
    padding:8px !important;
    background:#fff !important;
    border-radius:12px !important;
    box-shadow:none !important;
    --bs-gutter-x:0 !important;
    --bs-gutter-y:0 !important;
  }
  .home-locbar.locbar--compact.row > [class*="col-"]{
    width:auto !important;
    min-width:0 !important;
    padding:0 !important;
    margin:0 !important;
  }
  .home-locbar.locbar--compact .col-12.col-md-5{
    grid-area:city;
    position:relative;
  }
  .home-locbar.locbar--compact .col-6.col-md-2.d-grid{
    grid-area:actions;
    display:flex !important;
    align-items:center;
    gap:8px !important;
  }
  .home-locbar.locbar--compact .col-12.col-md-2.d-grid{
    grid-area:search;
    display:grid !important;
  }
  .home-locbar.locbar--compact .btn,
  .home-locbar.locbar--compact #homeCityInput{
    height:44px !important;
    min-height:44px;
    border-radius:10px !important;
    font-size:.9rem !important;
  }
  .home-locbar.locbar--compact #homeCityInput{
    width:100%;
    min-width:0;
    padding-inline:10px !important;
  }
  #homeUseGPS{
    font-size:0 !important;
    padding:0 12px !important;
  }
  #homeUseGPS::before{
    content:"📍" !important;
    font-size:18px !important;
    line-height:1 !important;
    margin:0 !important;
  }
  #homeClearGPS{
    height:44px !important;
    padding:0 8px !important;
    line-height:1 !important;
  }
  .home-locbar.locbar--compact .btn.btn-primary{ width:100%; }
  .home-locbar.locbar--compact #homeCitySugg{
    inset-inline:0;
    top:calc(100% + 6px);
    width:auto;
  }
}
@media (max-width:360px){
  .home-locbar.locbar--compact.row{
    grid-template-columns:1fr;
    grid-template-areas:"city" "actions" "search";
  }
  .home-locbar.locbar--compact .col-6.col-md-2.d-grid{ justify-content:space-between; }
}

/* ======= HOME.GLASS OVERRIDES (paste at end of home.html <style>) ======= */

/* 1) Locbar زجاجي بنفس التدرّج (بنفسجي→سماوي) */
.home-locbar{
  background:
    linear-gradient(135deg, rgba(108,99,255,.14), rgba(0,212,255,.10)),
    rgba(56,56,56,.28) !important;
  backdrop-filter: blur(16px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(190%) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  box-shadow:
    0 18px 40px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 2px 0 0 rgba(255,255,255,.06) inset !important;
  color:#fff !important;
}
.home-locbar #homeCityInput{
  background: rgba(255,255,255,.18) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  color:#fff !important;
}
.home-locbar #homeCityInput::placeholder{ color:rgba(255,255,255,.85) !important; }
#homeCitySugg{
  background: rgba(28,28,30,.85) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.12) !important;
  backdrop-filter: blur(14px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(170%) !important;
}
#homeCitySugg>div{ border-top-color: rgba(255,255,255,.10) !important; }
#homeCitySugg>div:hover{ background: rgba(255,255,255,.10) !important; }

/* أزرار GPS / Search / Clear زجاجية */
#homeUseGPS,
.home-locbar .btn.btn-primary,
#homeClearGPS{
  background:
    linear-gradient(135deg, rgba(108,99,255,.18), rgba(0,212,255,.12)),
    rgba(56,56,56,.30) !important;
  border:1px solid rgba(255,255,255,.22) !important;
  color:#fff !important;
  box-shadow:
    0 12px 28px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 2px 0 0 rgba(255,255,255,.06) inset !important;
}
.home-locbar .btn.btn-primary{
  font-weight:900;
}
#homeClearGPS{
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.10)),
    rgba(56,56,56,.22) !important;
}

/* دارك مود لتوافق الألوان */
[data-theme="dark"] .home-locbar{
  background:
    linear-gradient(135deg, rgba(108,99,255,.16), rgba(0,212,255,.10)),
    rgba(28,28,30,.66) !important;
  border-color: rgba(255,255,255,.10) !important;
}
[data-theme="dark"] #homeCitySugg{
  background: rgba(17,17,23,.92) !important;
}

/* 2) أزرار السلايدر (الأسهم) زجاجية */
.arrow-btn{
  background:
    linear-gradient(135deg, rgba(108,99,255,.16), rgba(0,212,255,.10)),
    rgba(56,56,56,.28) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  color:#fff !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,.20),
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 2px 0 0 rgba(255,255,255,.05) inset !important;
}
.arrow-btn .bi{ filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }

/* 3) كروت العناصر: قلب + شارة التصنيف بزجاج خفيف */
.fav-btn{
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.14)),
    rgba(56,56,56,.28) !important;
  border:1px solid rgba(255,255,255,.30) !important;
  color:#fff !important;
  backdrop-filter: blur(10px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
}
.fav-btn .bi{ color:#fff !important; }
.fav-btn.is-fav{
  background:
    linear-gradient(135deg, rgba(108,99,255,.28), rgba(0,212,255,.16)),
    rgba(56,56,56,.35) !important;
  border-color: rgba(255,255,255,.32) !important;
}
.category-chip{
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.82)) !important;
  border:1px solid rgba(0,0,0,.06) !important;
  color:#111 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* 4) حواف الصور + ظل أفخم مثل Airbnb */
.spot-media{
  border-radius:16px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.10) !important;
}
.spot-media img{ border-radius:16px !important; }

/* 5) لمسة نصية: العنوان/الميتا داكنة متوافقة */
.spot-title{ color:#0f172a !important; }
.spot-price, .spot-rating{ color:#111 !important; }
.spot-city{ color:#6b7280 !important; }

/* 6) ألواح “home-shelves” تبقى نظيفة على الديسكتوب */
@media (min-width:992px){
  .home-shelves{
    background:#fff !important;
    border-radius:18px 18px 0 0 !important;
    box-shadow:0 8px 26px rgba(0,0,0,.06) !important;
  }
}


/* ========== FINAL HARD OVERRIDE — FIX CARD SPACING ========== */

/* جعل كل العناصر تحت الصورة ملتصقة */
.spot-body{
  padding:6px 6px 0 !important;
}

/* العنوان أقرب */
.spot-title{
  margin-bottom:2px !important;
  line-height:1.18 !important;
}

/* السعر + المدينة + التقييم */
.spot-meta{
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
  margin-top:0 !important;
  padding:0 !important;
}

/* السعر أقرب + أصغر */
.spot-price{
  margin:0 !important;
  padding:0 !important;
  line-height:1.15 !important;
}

/* المدينة قريبة جدًا تحت السعر */
.spot-city{
  margin:0 !important;
  padding:0 !important;
  line-height:1.12 !important;
}

/* التقييم ملتصق تحت المدينة */
.spot-rating{
  margin:0 !important;
  padding:0 !important;
  line-height:1.1 !important;
}

/* حذف أي footer قد يخرب الشكل */
.spot-footer{display:none!important;}
.owner-line{display:none!important;}
.price-badge{display:none!important;}

/* ========== SUPER HARD OVERRIDE — FIX TITLE–PRICE GAP ========== */

/* 1) إزالة كل الـ padding من spot-body مهما كان فوق */
.spot-body{
  padding:4px 4px 0 !important;
}

/* 2) تقريب العنوان من السعر */
.spot-title{
  margin-top:0 !important;
  margin-bottom:2px !important;
  line-height:1.12 !important;
}

/* 3) السعر يصبح مباشرة تحت العنوان */
.spot-price{
  margin-top:0 !important;
  line-height:1.1 !important;
}

/* 4) المدينة مباشرة تحت السعر */
.spot-city{
  margin-top:0 !important;
  line-height:1.08 !important;
}

/* 5) التقييم مباشرة تحت المدينة */
.spot-rating{
  margin-top:0 !important;
  line-height:1.08 !important;
}

/* 6) لمنع أي كود آخر من أخذ السيطرة */
@media (max-width:2000px){
  .spot-body,
  .spot-title,
  .spot-price,
  .spot-city,
  .spot-rating{
    margin-top:0 !important;
  }
}

/* === FIX PRICE GAP — FINAL === */
.spot-body{
  padding:4px 4px 0 !important;
}

.spot-title{
  margin-top:0 !important;
  margin-bottom:2px !important;
  line-height:1.12 !important;
}

.spot-meta{
  margin-top:0 !important;
  gap:0 !important;
}

.spot-price{
  margin:0 !important;
  line-height:1.1 !important;
}

.spot-city{
  margin:0 !important;
  line-height:1.08 !important;
}

.spot-rating{
  margin:0 !important;
  line-height:1.08 !important;
}

/* ===== FINAL FIX — FORCE TITLE, PRICE, CITY, RATING TO STICK ===== */
.spot-body{
  padding:4px 4px 0 !important;
}

.spot-title{
  margin:0 !important;
  padding:0 !important;
  line-height:1.1 !important;
}

.spot-meta{
  margin:0 !important;
  padding:0 !important;
  gap:0 !important;
}

.spot-price{
  margin:0 !important;
  padding:0 !important;
  line-height:1.1 !important;
}

.spot-city{
  margin:0 !important;
  padding:0 !important;
  line-height:1.05 !important;
}

.spot-rating{
  margin:0 !important;
  padding:0 !important;
  line-height:1.05 !important;
}

/* تعطيل أي footer أو كود قديم */
.spot-footer,
.owner-line,
.price-badge{
  display:none !important;
}

.spot-title{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}


/* ==== FINAL FIX (ONE TRUE FIX) ==== */
.spot-body{
  padding:4px 6px 0 !important;
}

.spot-title{
  margin:0 !important;
  padding:0 !important;
  line-height:1.12 !important;
}

.spot-meta{
  margin:0 !important;
  padding:0 !important;
  gap:0 !important;
}

.spot-price,
.spot-city,
.spot-rating{
  margin:0 !important;
  padding:0 !important;
  line-height:1.05 !important;
}


/* ==============================================
   FINAL NO-GAP FIX — Title ⟶ Price ⟶ City ⟶ Rating
   ============================================== */

.spot-body{
  padding:4px 4px 0 !important;   /* أقل padding ممكن */
  margin:0 !important;
}

.spot-title{
  margin:0 !important;
  padding:0 !important;
  line-height:1.12 !important;
}

.spot-meta{
  margin:0 !important;
  padding:0 !important;
  gap:0 !important;
}

.spot-price{
  margin:0 !important;
  padding:0 !important;
  line-height:1.08 !important;
}

.spot-city{
  margin:0 !important;
  padding:0 !important;
  line-height:1.05 !important;
}

.spot-rating{
  margin:0 !important;
  padding:0 !important;
  line-height:1.05 !important;
}

/* إلغاء أي footer قد يضيف مسافة */
.spot-footer,
.owner-line,
.price-badge{
  display:none !important;
}

/* يمنع العنوان من النزول لسطرين */
.spot-title{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.category-chip{
  top:4px !important;
}


/* ===== FIX FAVORITE HEART POSITION ===== */
.spot-media{
  position:relative !important;
  overflow:hidden !important;   /* يمنع القلب من النزول */
}

.fav-btn{
  position:absolute !important;
  top:10px !important;          /* يرجعه فوق */
  right:10px !important;        /* يرجعه يمين */
  z-index:30 !important;        /* يخليه فوق كل العناصر */
}

.category-chip{
  top:10px !important;          /* لإرجاع شارة التصنيف مكانها */
  left:10px !important;
  max-inline-size:calc(100% - 58px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* iPad: retain the mobile Home hierarchy without inheriting desktop shelves. */
@supports (-webkit-touch-callout: none) {
  @media (min-width:769px) and (max-width:1376px) and (min-height:600px) and (any-pointer:coarse) {
    .edge-bleed{
      width:100% !important;
      margin-inline:auto !important;
      padding-inline:20px;
      box-sizing:border-box;
    }
    .hero-carousel{
      width:100%;
      max-width:860px !important;
      margin:12px auto 20px !important;
      border-radius:20px;
    }
    .home-shelves,
    .home-shelves.container-xl{
      max-width:1180px !important;
      margin:16px auto 0 !important;
      padding:0 20px calc(132px + env(safe-area-inset-bottom,0px)) !important;
      background:transparent !important;
      border-radius:0 !important;
      box-shadow:none !important;
    }
    .hrow{gap:16px;padding-inline:0;}
    .hcard{
      min-width:clamp(250px,28vw,320px) !important;
      max-width:clamp(250px,28vw,320px) !important;
    }
    .mixed-grid{
      grid-template-columns:repeat(3,minmax(0,1fr)) !important;
      gap:16px;
      padding-inline:0;
    }
    .top-strip-wrap{max-width:1180px;margin-inline:auto;padding-inline:20px;}
    @media (orientation:landscape){
      .mixed-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
    }
  }
}

/* ========================================================================
   HOME V2 — late, Home-scoped polish. Shared pages continue to use base.html.
   ======================================================================== */
body[data-path="/"]{
  --home-accent:#6c63ff;
  --home-ink:#172033;
  --home-muted:#667085;
  --home-line:rgba(26,32,44,.10);
  --home-ease:cubic-bezier(.2,.7,.2,1);
}

/* Preserve the familiar top search while improving hierarchy and focus. */
body[data-path="/"] header.topbar .searchbar-wrap{
  min-height:46px;
  border-color:rgba(30,41,59,.12);
  box-shadow:0 5px 18px rgba(15,23,42,.055);
  transition:border-color .18s var(--home-ease), box-shadow .18s var(--home-ease), background-color .18s var(--home-ease);
}
body[data-path="/"] header.topbar .searchbar-wrap:focus-within{
  border-color:color-mix(in srgb, var(--home-accent) 48%, #fff);
  box-shadow:0 0 0 3px rgba(108,99,255,.13),0 7px 22px rgba(15,23,42,.08);
}
body[data-path="/"] header.topbar .searchbar .field,
body[data-path="/"] header.topbar .searchbar input{ min-width:0; }
body[data-path="/"] header.topbar .searchbar input{ font-weight:500; text-overflow:ellipsis; }
body[data-path="/"] .m-top-tabs{ gap:clamp(18px,6vw,30px); border-color:rgba(26,32,44,.08); }
body[data-path="/"] .m-top-tabs .m-tab{ min-height:44px; padding-inline:4px; letter-spacing:-.01em; }

/* The base-owned PayPal callout is polished only when it appears on Home. */
body[data-path="/"] .paypal-callout{
  gap:14px;
  padding:13px 14px;
  border:1px solid rgba(177,114,0,.18);
  border-radius:15px;
  color:#5c4300;
  background:linear-gradient(135deg,rgba(255,247,221,.96),rgba(255,252,241,.96));
  box-shadow:0 8px 22px rgba(97,68,0,.06);
}
body[data-path="/"] .paypal-callout > div{ min-width:0; }
body[data-path="/"] .paypal-callout .btn{
  flex:0 0 auto;
  min-height:40px;
  padding-inline:14px;
  border-radius:10px;
  font-weight:800;
  box-shadow:0 5px 13px rgba(108,99,255,.18);
}

/* Retain the existing carousel and ratio; improve image treatment and controls. */
body[data-path="/"] .hero-carousel{
  isolation:isolate;
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(135deg,#f3f4fb,#e9edf8);
  box-shadow:0 14px 32px rgba(15,23,42,.10);
}
body[data-path="/"] .hero-carousel .carousel-item{ background:#eef1f7; }
body[data-path="/"] .hero-carousel .carousel-item img{
  object-fit:cover;
  background:linear-gradient(135deg,#eff1f8,#e5e9f4);
}
body[data-path="/"] :is(.hero-carousel,.top-strip) img.is-fallback{
  object-fit:contain !important;
  padding:18%;
  background:#f0efff;
}
body[data-path="/"] :is(.hero-carousel,.top-strip){ --bs-carousel-transition:transform .52s var(--home-ease); }
body[data-path="/"] :is(.hero-carousel,.top-strip) :is(.carousel-control-prev,.carousel-control-next){
  top:50%; bottom:auto;
  width:42px; height:42px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  background:rgba(17,24,39,.42);
  box-shadow:0 5px 14px rgba(15,23,42,.18);
  opacity:.88;
  transform:translateY(-50%);
  transition:transform .16s var(--home-ease),opacity .16s var(--home-ease),background-color .16s var(--home-ease);
}
body[data-path="/"] :is(.hero-carousel,.top-strip) .carousel-control-prev{ left:12px; }
body[data-path="/"] :is(.hero-carousel,.top-strip) .carousel-control-next{ right:12px; }
@media (hover:hover){
  body[data-path="/"] :is(.hero-carousel,.top-strip) :is(.carousel-control-prev,.carousel-control-next){ opacity:0; }
  body[data-path="/"] :is(.hero-carousel,.top-strip):hover :is(.carousel-control-prev,.carousel-control-next),
  body[data-path="/"] :is(.hero-carousel,.top-strip) :is(.carousel-control-prev,.carousel-control-next):focus-visible{ opacity:1; }
  body[data-path="/"] :is(.hero-carousel,.top-strip) :is(.carousel-control-prev,.carousel-control-next):hover{
    background:rgba(17,24,39,.62);
    transform:translateY(-50%) scale(1.04);
  }
}

/* Location controls: high contrast without the per-control blur/shadow cost. */
body[data-path="/"] .home-locbar.locbar--compact{
  border-color:var(--home-line) !important;
  background:#fff !important;
  color:var(--home-ink) !important;
  box-shadow:0 8px 22px rgba(15,23,42,.06) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
body[data-path="/"] .home-locbar #homeCityInput{
  color:var(--home-ink) !important;
  background:#f8f9fd !important;
  border-color:rgba(30,41,59,.12) !important;
}
body[data-path="/"] .home-locbar #homeCityInput::placeholder{ color:#8791a2 !important; }
body[data-path="/"] .home-locbar #homeCityInput:focus{
  background:#fff !important;
  border-color:rgba(108,99,255,.54) !important;
  box-shadow:0 0 0 3px rgba(108,99,255,.13) !important;
}
body[data-path="/"] #homeUseGPS{
  background:#f8f9fd !important;
  border-color:rgba(30,41,59,.12) !important;
  color:var(--home-ink) !important;
  box-shadow:none !important;
}
body[data-path="/"] .home-locbar .btn.btn-primary{
  background:linear-gradient(135deg,#6c63ff,#7d76ff) !important;
  border-color:transparent !important;
  color:#fff !important;
  box-shadow:0 7px 16px rgba(108,99,255,.22) !important;
}
body[data-path="/"] #homeClearGPS{ color:#b42318 !important; box-shadow:none !important; }
body[data-path="/"] #homeCitySugg{
  border-color:var(--home-line) !important;
  background:#fff !important;
  color:var(--home-ink) !important;
  box-shadow:0 12px 28px rgba(15,23,42,.13) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
body[data-path="/"] #homeCitySugg > button{
  display:flex; align-items:center; gap:8px; width:100%;
  padding:.66rem .75rem; border:0; background:transparent; color:inherit; text-align:start;
}
body[data-path="/"] #homeCitySugg > button:hover,
body[data-path="/"] #homeCitySugg > button:focus-visible{ background:#f2f1ff !important; }

/* Rails and cards retain their current architecture with steadier hierarchy. */
body[data-path="/"] .home-shelves{ min-width:0; }
body[data-path="/"] .section-head{ margin:18px 2px 10px; }
body[data-path="/"] .section-title{
  color:var(--home-ink); font-size:clamp(1rem,.96rem + .2vw,1.12rem);
  font-weight:800; letter-spacing:-.018em;
}
body[data-path="/"] .section-head .text-muted{ white-space:nowrap; }
body[data-path="/"] .arrow-btn{
  width:40px; height:40px;
  border-color:rgba(30,41,59,.12) !important;
  background:#fff !important; color:var(--home-ink) !important;
  box-shadow:0 4px 12px rgba(15,23,42,.06) !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  transition:transform .16s var(--home-ease),background-color .16s var(--home-ease),box-shadow .16s var(--home-ease);
}
@media (hover:hover){
  body[data-path="/"] .arrow-btn:hover{
    background:#f5f4ff !important;
    box-shadow:0 7px 16px rgba(15,23,42,.10) !important;
    transform:translateY(-1px);
  }
}
body[data-path="/"] .hrow{
  gap:14px; padding:6px 4px 14px;
  overscroll-behavior-inline:contain; scroll-behavior:smooth;
  scrollbar-width:thin; scrollbar-color:rgba(108,99,255,.28) transparent;
  touch-action:pan-y;
}
body[data-path="/"] .hrow.is-dragging{ cursor:grabbing; scroll-snap-type:none; user-select:none; }
body[data-path="/"] .spot{ position:relative; min-width:0; }
body[data-path="/"] .spot-link{ display:block; min-width:0; color:inherit; text-decoration:none; }
body[data-path="/"] .spot-media{
  background:linear-gradient(135deg,#eef0f7,#e3e8f4);
  box-shadow:0 8px 20px rgba(15,23,42,.09) !important;
  transition:transform .2s var(--home-ease),box-shadow .2s var(--home-ease);
}
body[data-path="/"] .home-card-image{ background:linear-gradient(135deg,#eef0f7,#e3e8f4); color:transparent; }
body[data-path="/"] .home-card-image.is-fallback{
  object-fit:contain !important; padding:22%; background:#f0efff;
}
body[data-path="/"] .spot-overlay{ background:linear-gradient(180deg,rgba(15,23,42,.02) 35%,rgba(15,23,42,.13)); }
body[data-path="/"] .category-chip{
  top:10px !important; left:10px !important; max-inline-size:calc(100% - 62px);
  padding:4px 8px; border-color:rgba(15,23,42,.08) !important;
  background:rgba(255,255,255,.94) !important;
  box-shadow:0 2px 7px rgba(15,23,42,.08) !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
}
body[data-path="/"] .fav-btn{
  top:10px !important; right:10px !important; width:36px; height:36px;
  border-color:rgba(15,23,42,.10) !important;
  background:rgba(255,255,255,.94) !important;
  box-shadow:0 3px 9px rgba(15,23,42,.12) !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  transition:transform .16s var(--home-ease),background-color .16s var(--home-ease),box-shadow .16s var(--home-ease);
}
body[data-path="/"] .fav-btn .bi{ color:#1f2937 !important; }
body[data-path="/"] .fav-btn.is-fav{
  border-color:#6c63ff !important; background:#6c63ff !important;
  box-shadow:0 5px 12px rgba(108,99,255,.28) !important;
}
body[data-path="/"] .fav-btn.is-fav .bi{ color:#fff !important; }
body[data-path="/"] .fav-btn:active{ transform:scale(.94); }
body[data-path="/"] .spot-body{ padding:8px 4px 0 !important; }
body[data-path="/"] .spot-title{
  display:-webkit-box !important; min-height:0 !important; margin:0 0 2px !important;
  overflow:hidden; color:var(--home-ink) !important; white-space:normal !important;
  -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.18 !important;
}
body[data-path="/"] .spot-meta{ gap:2px !important; }
body[data-path="/"] .spot-price{
  color:#111827 !important; font-size:.96rem; font-variant-numeric:tabular-nums; line-height:1.16 !important;
}
body[data-path="/"] .spot-price span{ color:var(--home-muted); font-size:.82em; font-weight:650; }
body[data-path="/"] .spot-city{
  overflow:hidden; color:var(--home-muted) !important; text-overflow:ellipsis; white-space:nowrap;
}
body[data-path="/"] .spot-rating{
  display:inline-flex; align-items:center; width:max-content; color:#344054 !important; font-variant-numeric:tabular-nums;
}
@media (hover:hover){
  body[data-path="/"] .spot:hover .spot-media,
  body[data-path="/"] .spot:focus-within .spot-media{
    box-shadow:0 12px 25px rgba(15,23,42,.14) !important;
    transform:translateY(-2px);
  }
}
@supports (content-visibility:auto){
  body[data-path="/"] .mixed-grid > .spot{ content-visibility:auto; contain-intrinsic-size:auto 320px; }
}

/* Base-owned Home chrome remains centered by the existing iPad shell. */
body[data-path="/"] .mobile-tabbar{
  box-shadow:0 12px 30px rgba(15,23,42,.28),0 0 0 1px rgba(255,255,255,.13) inset !important;
  backdrop-filter:blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter:blur(12px) saturate(140%) !important;
}
body[data-path="/"] .mobile-tabbar > a{ transition:transform .16s var(--home-ease),background-color .16s var(--home-ease); }
body[data-path="/"] .mobile-tabbar > a:active{ transform:scale(.96); }
body[data-path="/"] #fabAdd{
  box-shadow:0 12px 24px rgba(60,50,170,.30),0 0 0 1px rgba(255,255,255,.18) inset !important;
  transition:transform .16s var(--home-ease),box-shadow .16s var(--home-ease);
}
body[data-path="/"] #fabAdd:active{ transform:scale(.94); }

/* Keyboard focus is explicit even though shared CSS suppresses the default outline. */
body[data-path="/"] :is(.spot-link,.fav-btn,.arrow-btn,.carousel-control-prev,.carousel-control-next,#homeUseGPS,#homeClearGPS,.home-locbar .btn,.m-top-tabs .m-tab,.paypal-callout .btn,.mobile-tabbar > a):focus-visible{
  outline:3px solid rgba(108,99,255,.72) !important;
  outline-offset:3px;
}

/*
 * Desktop-only sizing repair.  The generic `.spot { min-width:0 }` above is
 * useful for grid overflow safety, but it also removes the flex floor from
 * rail cards.  Restore a fixed, non-shrinking rail basis only for desktop
 * browsers; the established `.is-ipad` marker leaves the tablet shell intact.
 */
@media (min-width:992px){
  html:not(.is-ipad) body[data-path="/"] .hrow{
    gap:18px;
    padding-inline:4px;
  }
  html:not(.is-ipad) body[data-path="/"] .hrow > .hcard{
    flex:0 0 clamp(280px,22vw,320px);
    width:clamp(280px,22vw,320px);
    min-width:clamp(280px,22vw,320px);
    max-width:clamp(280px,22vw,320px);
  }
  html:not(.is-ipad) body[data-path="/"] .mixed-grid{
    grid-template-columns:repeat(auto-fit,minmax(264px,1fr));
    gap:20px;
    padding-inline:4px;
  }
}

/*
 * Phone and iPad rails use the browser's own pan, momentum and direction
 * arbitration.  The mouse-only drag enhancer below remains available on
 * desktop, but touch never needs a JavaScript scrollLeft loop.
 */
@media (max-width:768px), (max-height:600px) and (orientation:landscape) and (hover:none) and (pointer:coarse){
  body[data-path="/"] .hrow{
    touch-action:auto;
    scroll-behavior:auto;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
}
@media (min-width:769px) and (max-width:1376px) and (min-height:600px){
  html.is-ipad body[data-path="/"] .hrow{
    touch-action:auto;
    scroll-behavior:auto;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
}

@media (max-width:576px){
  body[data-path="/"] .hero-carousel{ margin-inline:0; border-radius:16px; }
  body[data-path="/"] .hero-carousel :is(.carousel-inner,.carousel-item,.carousel-item img){ border-radius:16px; }
  body[data-path="/"] .section-head{ margin-top:16px; }
  body[data-path="/"] .hcard{ min-width:clamp(148px,42vw,192px); max-width:clamp(148px,42vw,192px); }
  body[data-path="/"] .mixed-grid{ gap:12px; padding-inline:2px; }
  body[data-path="/"] .paypal-callout{
    flex-direction:column;
    align-items:stretch !important;
  }
  body[data-path="/"] .paypal-callout .btn{ width:100%; }
  /* Keep the fixed add button from sitting on the mobile location submit target. */
  body[data-path="/"] .home-locbar .col-12.col-md-2.d-grid{ padding-inline-end:64px !important; }
  body[data-path="/"] :is(.hero-carousel,.top-strip) :is(.carousel-control-prev,.carousel-control-next){ width:40px; height:40px; }
}
@media (max-width:360px){
  body[data-path="/"] .paypal-callout{ padding:12px; }
  body[data-path="/"] .spot-body{ padding-inline:2px !important; }
  body[data-path="/"] .home-locbar .col-12.col-md-2.d-grid{ padding-inline-end:56px !important; }
}
@media (prefers-reduced-motion:reduce){
  body[data-path="/"] :is(.hrow,.spot-media,.fav-btn,.arrow-btn,.mobile-tabbar > a,#fabAdd,.carousel-control-prev,.carousel-control-next){
    scroll-behavior:auto; transition:none !important;
  }
  body[data-path="/"] :is(.hero-carousel,.top-strip) .carousel-item{ transition:none !important; }
}
@media (min-width:769px) and (max-width:1376px) and (min-height:600px){
  html.is-ipad body[data-path="/"] .mobile-tabbar.d-lg-none{ margin-inline:auto !important; }
  html.is-ipad body[data-path="/"] .hrow{ padding-inline:2px; }
}
[data-theme="dark"] body[data-path="/"] .home-locbar.locbar--compact,
body[data-theme="dark"][data-path="/"] .home-locbar.locbar--compact{
  background:#151827 !important; border-color:rgba(255,255,255,.12) !important; color:#f5f6ff !important;
}
[data-theme="dark"] body[data-path="/"] .home-locbar #homeCityInput,
body[data-theme="dark"][data-path="/"] .home-locbar #homeCityInput{
  background:#202437 !important; border-color:rgba(255,255,255,.13) !important; color:#f5f6ff !important;
}
[data-theme="dark"] body[data-path="/"] #homeCitySugg,
body[data-theme="dark"][data-path="/"] #homeCitySugg{ background:#171b2b !important; color:#f5f6ff !important; }

/* ========================================================================
   HOME — 2026 reference redesign
   Kept intentionally separate from the legacy classes above: the markup
   below uses only `.home-*` names so this page can evolve without changing
   shared cards, form controls, navigation, or other routes.
   ======================================================================== */
body[data-path="/"]{
  --home-ref-ink:#111a3d;
  --home-ref-muted:#707991;
  --home-ref-line:rgba(24,34,73,.10);
  --home-ref-surface:#ffffff;
  --home-ref-soft:#f6f7ff;
  --home-ref-purple:#6857f6;
  --home-ref-blue:#4288f5;
  --home-ref-gradient:linear-gradient(135deg,#7056f7 0%,#438cf6 100%);
  --home-ref-shadow:0 10px 28px rgba(31,43,91,.08);
  --home-ref-radius:20px;
  background:#f7f7ff;
}
body[data-path="/"] .page{
  min-width:0;
  background:
    radial-gradient(72% 30rem at 112% 9%,rgba(66,136,245,.14),transparent 70%),
    radial-gradient(60% 28rem at -10% 38%,rgba(104,87,246,.13),transparent 70%),
    radial-gradient(52% 24rem at 60% 96%,rgba(48,201,214,.09),transparent 72%),
    linear-gradient(180deg,#fdfdff 0%,#f6f5ff 50%,#f5fbff 100%);
}
body[data-path="/"] .home-root{
  width:min(100%,1220px);
  margin:0 auto;
  padding:0 clamp(16px,3.3vw,32px) 28px;
  min-width:0;
}

/* Base-owned PayPal node: only its presentation changes on Home. */
body[data-path="/"] .paypal-callout{
  width:min(calc(100% - 32px),1220px);
  margin:10px auto 16px !important;
  padding:6px 10px !important;
  gap:8px !important;
  border:1px solid rgba(93,116,220,.13) !important;
  border-radius:17px !important;
  color:var(--home-ref-ink) !important;
  background:linear-gradient(135deg,#f0f4ff 0%,#eaf4ff 100%) !important;
  box-shadow:0 8px 20px rgba(46,65,139,.07) !important;
}
body[data-path="/"] .paypal-callout.home-paypal-callout{
  position:relative;
  min-height:50px;
  flex-direction:row !important;
  align-items:center !important;
  cursor:pointer;
  text-decoration:none;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
body[data-path="/"] .paypal-callout.home-paypal-callout::after{
  content:"›";
  flex:0 0 auto;
  color:#5f59dc;
  font-size:1.3rem;
  font-weight:500;
  line-height:1;
}
body[data-path="/"] .home-paypal__body{
  display:flex;
  align-items:center;
  flex:1 1 auto;
  gap:8px;
  min-width:0;
}
body[data-path="/"] .home-paypal__icon{
  display:grid;
  place-items:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:11px;
  color:#1677db;
  background:rgba(255,255,255,.84);
  box-shadow:0 3px 9px rgba(61,91,190,.07);
  font-size:19px;
}
body[data-path="/"] .home-paypal__copy{flex:1 1 auto; min-width:0;}
body[data-path="/"] .home-paypal__title{
  margin:0 0 1px;
  color:var(--home-ref-ink);
  font-size:clamp(.84rem,.82rem + .12vw,.94rem);
  font-weight:800;
  letter-spacing:-.02em;
}
body[data-path="/"] .home-paypal__description{
  margin:0;
  overflow:hidden;
  color:var(--home-ref-muted);
  font-size:.7rem;
  line-height:1.15;
  white-space:nowrap;
  text-overflow:ellipsis;
}
body[data-path="/"] .paypal-callout .home-paypal__cta{
  position:absolute !important;
  inset:0 !important;
  z-index:2;
  display:block !important;
  width:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:inherit !important;
  background:transparent !important;
  box-shadow:none !important;
  color:transparent !important;
  font-size:0 !important;
  line-height:0 !important;
  text-decoration:none;
}
body[data-path="/"] .paypal-callout .home-paypal__cta .bi{display:none;}
@media (max-width:430px){
  body[data-path="/"] .paypal-callout.home-paypal-callout{
    flex-direction:row !important;
    align-items:center !important;
  }
  body[data-path="/"] .paypal-callout.home-paypal-callout .home-paypal__body{width:auto;}
}
@media (hover:hover){
  body[data-path="/"] .paypal-callout.home-paypal-callout:hover{
    border-color:rgba(91,93,223,.24) !important;
    transform:translateY(-1px);
    box-shadow:0 11px 23px rgba(46,65,139,.12) !important;
  }
}

/* Branded mobile/tablet header, built from the real global search/bell/account controls. */
body[data-path="/"] header.topbar .home-account-avatar{
  display:inline-grid;
  flex:0 0 auto;
  width:42px;
  height:42px;
  padding:0 !important;
  overflow:hidden;
  place-items:center;
  border:0 !important;
  border-radius:50% !important;
  background:transparent !important;
  box-shadow:none !important;
  line-height:1;
  text-decoration:none;
}
body[data-path="/"] header.topbar .home-account-avatar__image,
body[data-path="/"] header.topbar .home-account-avatar__fallback{
  display:block;
  width:100% !important;
  height:100% !important;
  min-width:0;
  border-radius:inherit;
}
body[data-path="/"] header.topbar .home-account-avatar__image{object-fit:cover;}
body[data-path="/"] header.topbar .home-account-avatar__fallback{
  display:grid;
  place-items:center;
  background:#eef0f8;
  color:#5f50ef;
  font-weight:850;
}
body[data-path="/"] header.topbar .home-account-avatar:focus-visible{
  outline:3px solid rgba(95,80,239,.36);
  outline-offset:3px;
}
body[data-path="/"] header.topbar #notifOpen{line-height:0;}
body[data-path="/"] header.topbar #notifOpen .icon-img{
  display:block;
  position:absolute;
  inset:0;
  width:27px !important;
  height:27px !important;
  margin:auto;
  object-fit:contain;
  transform:translateX(-.5px);
}
@media (max-width:991px){
  body[data-path="/"] header.topbar{
    position:relative !important;
    top:auto !important;
    height:auto !important;
    min-height:0 !important;
    padding:max(13px,env(safe-area-inset-top,0px)) 0 10px !important;
    margin:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  body[data-path="/"] header.topbar::before{display:none !important;}
  body[data-path="/"] header.topbar .topbar__inner{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"brand actions" "search search";
    width:100%;
    height:auto !important;
    min-height:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 16px !important;
    gap:13px 10px !important;
    background:transparent !important;
  }
  body[data-path="/"] header.topbar .brand{
    display:flex !important;
    grid-area:brand;
    min-width:0;
    margin:0 !important;
    gap:10px !important;
  }
  body[data-path="/"] header.topbar .brand-logo{
    display:block !important;
    width:42px;
    height:42px !important;
    max-width:none !important;
    object-fit:contain;
  }
  body[data-path="/"] header.topbar .brand::after{
    content:"SEVOR";
    color:var(--home-ref-ink);
    font-size:1.45rem;
    font-weight:900;
    letter-spacing:-.045em;
  }
  body[data-path="/"] header.topbar .actions{
    display:flex !important;
    grid-area:actions;
    align-items:center;
    justify-content:flex-end;
    min-width:0;
    margin:0 !important;
    gap:7px !important;
  }
  body[data-path="/"] header.topbar .actions > *{display:none !important;}
  body[data-path="/"] header.topbar .actions > .home-admin-dashboard-shortcut,
  body[data-path="/"] header.topbar .actions > #notifOpen,
  body[data-path="/"] header.topbar .actions > .home-account-avatar{display:inline-grid !important;}
  body[data-path="/"] header.topbar .home-admin-dashboard-shortcut{
    display:grid !important;
    place-items:center;
    width:42px;
    height:42px;
    min-width:42px;
    padding:0 !important;
    border:1px solid rgba(99,91,255,.19) !important;
    border-radius:50% !important;
    background:linear-gradient(135deg, rgba(99,91,255,.14), rgba(76,145,255,.16)) !important;
    color:#564bd3 !important;
    box-shadow:0 5px 14px rgba(82,74,190,.10) !important;
  }
  body[data-path="/"] header.topbar .home-admin-dashboard-shortcut:hover{
    color:#4035bd !important;
    background:linear-gradient(135deg, rgba(99,91,255,.21), rgba(76,145,255,.22)) !important;
  }
  body[data-path="/"] header.topbar #notifOpen{
    display:grid !important;
    place-items:center;
    width:42px;
    height:42px;
    min-width:42px;
    padding:0 !important;
    border:1px solid rgba(23,32,63,.08) !important;
    border-radius:50% !important;
    background:rgba(255,255,255,.88) !important;
    box-shadow:0 5px 14px rgba(31,43,91,.055) !important;
  }
  body[data-path="/"] header.topbar form.searchbar{
    display:block !important;
    grid-area:search;
    width:100% !important;
    min-width:0;
    margin:0 !important;
  }
  body[data-path="/"] header.topbar .searchbar-wrap{
    width:100%;
    min-height:58px;
    height:58px;
    padding:8px 13px !important;
    gap:9px;
    border:1px solid rgba(23,32,63,.08) !important;
    border-radius:19px !important;
    background:rgba(255,255,255,.94) !important;
    box-shadow:var(--home-ref-shadow) !important;
  }
  body[data-path="/"] header.topbar .searchbar-wrap > .bi-search{
    flex:0 0 auto;
    color:var(--home-ref-ink);
    font-size:1.34rem;
    opacity:1;
  }
  body[data-path="/"] header.topbar .searchbar .field{min-width:0; gap:7px;}
  body[data-path="/"] header.topbar .searchbar .field:first-of-type{flex:1 1 auto;}
  body[data-path="/"] header.topbar .searchbar .field:last-of-type{flex:0 1 42%;}
  body[data-path="/"] header.topbar .searchbar input{
    min-width:0;
    padding:0 !important;
    color:var(--home-ref-ink) !important;
    font-size:.93rem;
    font-weight:650;
    text-overflow:ellipsis;
  }
  body[data-path="/"] header.topbar .searchbar input::placeholder{color:#8992aa; opacity:1;}
  body[data-path="/"] header.topbar .searchbar .sep{height:30px; background:rgba(23,32,63,.10);}
  body[data-path="/"] header.topbar .searchbar .k{display:none;}
  body[data-path="/"] header.topbar .searchbar .home-search-location-icon{
    flex:0 0 auto;
    color:var(--home-ref-ink);
    font-size:1.15rem;
  }
  body[data-path="/"] .m-top-tabs{display:none !important;}
  body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/login"],
  body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]{
    display:inline-flex !important;
    align-items:center;
    min-height:38px;
    padding-inline:10px !important;
    border-radius:12px;
  }
}
@media (max-width:360px){
  body[data-path="/"] header.topbar .topbar__inner{padding-inline:12px !important;}
  body[data-path="/"] header.topbar .searchbar-wrap{height:54px; min-height:54px; padding-inline:11px !important;}
  body[data-path="/"] header.topbar .searchbar .field:last-of-type{flex-basis:39%;}
  body[data-path="/"] header.topbar .searchbar input{font-size:.84rem;}
}
/* Base applies a search-only iPad shell late in its stylesheet. These higher-
   specificity, Home-only rules intentionally restore the reference header. */
@media (min-width:992px) and (max-width:1376px) and (min-height:600px){
  html.is-ipad body[data-path="/"] header.topbar{
    position:relative !important; top:auto !important; height:auto !important; min-height:0 !important;
    padding:18px 0 12px !important; background:transparent !important;
  }
  html.is-ipad body[data-path="/"] header.topbar::before{display:none !important;}
  html.is-ipad body[data-path="/"] header.topbar .topbar__inner{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"brand actions" "search search";
    width:min(100%,1100px) !important;
    height:auto !important; min-height:0 !important;
    margin:0 auto !important; padding:0 28px !important; gap:15px 12px !important;
    background:transparent !important;
  }
  html.is-ipad body[data-path="/"] header.topbar .brand{display:flex !important; grid-area:brand; margin:0 !important; gap:11px !important;}
  html.is-ipad body[data-path="/"] header.topbar .brand-logo{display:block !important; width:46px; height:46px !important; max-width:none !important; object-fit:contain;}
  html.is-ipad body[data-path="/"] header.topbar .brand::after{content:"SEVOR"; color:var(--home-ref-ink); font-size:1.55rem; font-weight:900; letter-spacing:-.045em;}
  html.is-ipad body[data-path="/"] header.topbar .actions{display:flex !important; grid-area:actions; align-items:center; justify-content:flex-end; margin:0 !important; gap:9px !important;}
  html.is-ipad body[data-path="/"] header.topbar .actions > *{display:none !important;}
  html.is-ipad body[data-path="/"] header.topbar .actions > #notifOpen,
  html.is-ipad body[data-path="/"] header.topbar .actions > .home-account-avatar{display:inline-grid !important;}
  html.is-ipad body[data-path="/"] header.topbar #notifOpen{display:grid !important; place-items:center; width:46px; height:46px; padding:0 !important; border:1px solid rgba(23,32,63,.08) !important; border-radius:50% !important; background:#fff !important; box-shadow:0 5px 14px rgba(31,43,91,.055) !important;}
  html.is-ipad body[data-path="/"] header.topbar .home-account-avatar{width:46px; height:46px;}
  html.is-ipad body[data-path="/"] header.topbar form.searchbar{display:block !important; grid-area:search; width:100% !important; max-width:none !important; margin:0 !important;}
  html.is-ipad body[data-path="/"] header.topbar .searchbar-wrap{width:100%; min-height:62px; height:62px; padding:10px 17px !important; border:1px solid rgba(23,32,63,.08) !important; border-radius:20px !important; background:#fff !important; box-shadow:var(--home-ref-shadow) !important;}
  html.is-ipad body[data-path="/"] header.topbar .searchbar .field{min-width:0; gap:8px;}
  html.is-ipad body[data-path="/"] header.topbar .searchbar .field:first-of-type{flex:1 1 auto;}
  html.is-ipad body[data-path="/"] header.topbar .searchbar .field:last-of-type{flex:0 1 38%;}
  html.is-ipad body[data-path="/"] header.topbar .searchbar input{min-width:0; padding:0 !important; color:var(--home-ref-ink) !important; font-weight:650; text-overflow:ellipsis;}
  html.is-ipad body[data-path="/"] header.topbar .searchbar .k{display:none;}
  html.is-ipad body[data-path="/"] header.topbar .searchbar .home-search-location-icon{flex:0 0 auto; color:var(--home-ref-ink); font-size:1.2rem;}
  html.is-ipad body[data-path="/"] .m-top-tabs{display:none !important;}
}

/* Guest-only Home authentication actions: keep the real links, update only their presentation. */
body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/login"],
body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]{
  box-sizing:border-box;
  display:inline-flex !important;
  align-items:center;
  min-height:42px;
  height:42px;
  border-radius:999px !important;
  font-size:clamp(.78rem,2.25vw,.94rem);
  font-weight:760;
  letter-spacing:-.014em;
  line-height:1;
  text-decoration:none !important;
  white-space:nowrap;
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/login"]{
  min-width:64px;
  justify-content:center;
  padding:0 clamp(11px,1.7vw,16px) !important;
  color:#5d4ee8 !important;
  background:#fff !important;
  border:1px solid rgba(112,86,225,.28) !important;
  box-shadow:0 3px 10px rgba(70,55,143,.065) !important;
}
body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]{
  min-width:112px;
  justify-content:space-between;
  gap:9px;
  padding:0 clamp(12px,2.1vw,18px) !important;
  color:#fff !important;
  background:linear-gradient(110deg,#8354f3 0%,#526ef1 54%,#1bc7e9 100%) !important;
  border:1px solid transparent !important;
  box-shadow:0 5px 14px rgba(80,74,220,.18) !important;
}
body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]::after{
  flex:0 0 auto;
  margin-inline-start:auto;
  color:currentColor;
  content:"→";
  font-size:1.25em;
  font-weight:500;
  line-height:1;
}
html body[data-auth="0"][data-path="/"] header.topbar .actions > #notifOpen{
  display:none !important;
}
body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/login"]:focus-visible,
body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]:focus-visible{
  outline:3px solid rgba(73,126,247,.38);
  outline-offset:3px;
}
@media (hover:hover){
  body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/login"]:hover{
    border-color:rgba(94,76,232,.45) !important;
    box-shadow:0 5px 13px rgba(70,55,143,.09) !important;
  }
  body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]:hover{
    box-shadow:0 7px 17px rgba(80,74,220,.23) !important;
    transform:translateY(-1px);
  }
}
@media (max-width:360px){
  body[data-auth="0"][data-path="/"] header.topbar .actions{gap:5px !important;}
  body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/login"],
  body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]{
    min-height:39px;
    height:39px;
    border-radius:999px !important;
    font-size:.78rem;
  }
  body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/login"]{min-width:55px; padding-inline:9px !important;}
  body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]{min-width:90px; gap:7px; padding-inline:10px !important;}
}
@media (min-width:769px) and (max-width:1376px) and (min-height:600px){
  html.is-ipad body[data-auth="0"][data-path="/"] header.topbar .actions{gap:8px !important;}
  html.is-ipad body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/login"],
  html.is-ipad body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]{
    min-height:44px;
    height:44px;
    font-size:.92rem;
  }
  html.is-ipad body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/login"]{min-width:78px;}
  html.is-ipad body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]{min-width:124px;}
}
@media (prefers-reduced-motion:reduce){
  body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/login"],
  body[data-auth="0"][data-path="/"] header.topbar .actions > a[href="/register"]{transition:none;}
}

/* Hero stays tied to its existing Bootstrap carousel and real banner sources. */
body[data-path="/"] .home-hero-wrap{margin:2px 0 18px;}
body[data-path="/"] .home-hero{
  position:relative;
  isolation:isolate;
  width:100%;
  overflow:hidden;
  border:1px solid rgba(23,32,63,.09);
  border-radius:22px;
  background:#edf0f8;
  box-shadow:0 14px 30px rgba(31,43,91,.10);
}
body[data-path="/"] .home-hero .carousel-inner,
body[data-path="/"] .home-hero .carousel-item{aspect-ratio:1.75 / 1; overflow:hidden;}
body[data-path="/"] .home-hero .carousel-item{background:#eaf0fa;}
body[data-path="/"] .home-hero__image{
  display:block;
  width:100%;
  height:100% !important;
  max-width:none !important;
  object-fit:cover;
  object-position:center;
}
body[data-path="/"] .home-hero__image.is-fallback{object-fit:contain; padding:18%;}
body[data-path="/"] .home-hero .carousel-control-prev,
body[data-path="/"] .home-hero .carousel-control-next{
  top:50%; bottom:auto; width:42px; height:42px; padding:0;
  border:1px solid rgba(255,255,255,.62); border-radius:50%;
  background:rgba(15,24,54,.43); box-shadow:0 4px 12px rgba(10,15,35,.16);
  opacity:.96; transform:translateY(-50%); transition:transform .16s ease,background-color .16s ease;
}
body[data-path="/"] .home-hero .carousel-control-prev{left:12px;}
body[data-path="/"] .home-hero .carousel-control-next{right:12px;}
body[data-path="/"] .home-hero .carousel-control-prev:active,
body[data-path="/"] .home-hero .carousel-control-next:active{transform:translateY(-50%) scale(.94);}
body[data-path="/"] .home-hero .carousel-indicators{
  right:14px; bottom:12px; left:auto; z-index:3; margin:0; gap:7px;
}
body[data-path="/"] .home-hero .carousel-indicators [data-bs-target]{
  box-sizing:border-box; width:10px; height:10px; margin:0; border:1px solid rgba(255,255,255,.8);
  border-radius:50%; background:rgba(255,255,255,.2); opacity:1;
}
body[data-path="/"] .home-hero .carousel-indicators .active{background:#fff;}
@media (hover:hover){
  body[data-path="/"] .home-hero .carousel-control-prev:hover,
  body[data-path="/"] .home-hero .carousel-control-next:hover{background:rgba(15,24,54,.62); transform:translateY(-50%) scale(1.04);}
}

/* The second, location-only search retains its exact existing form contract. */
body[data-path="/"] .home-location-wrap{margin:0 0 27px;}
body[data-path="/"] .home-location-search{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:8px;
  padding:8px;
  border:1px solid rgba(23,32,63,.08);
  border-radius:20px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--home-ref-shadow);
}
body[data-path="/"] .home-location-search__field{
  position:relative;
  display:flex;
  align-items:center;
  min-width:0;
  gap:10px;
  padding:0 10px;
}
body[data-path="/"] .home-location-search__field > .bi{flex:0 0 auto; color:var(--home-ref-ink); font-size:1.35rem;}
body[data-path="/"] .home-location-search #homeCityInput{
  min-width:0;
  height:46px;
  padding:0;
  border:0 !important;
  border-radius:0 !important;
  color:var(--home-ref-ink) !important;
  background:transparent !important;
  box-shadow:none !important;
  font-size:1rem;
  font-weight:650;
}
body[data-path="/"] .home-location-search #homeCityInput::placeholder{color:#8992aa !important; opacity:1;}
body[data-path="/"] .home-location-search #homeCityInput:focus{outline:none;}
body[data-path="/"] .home-location-search:focus-within{border-color:rgba(104,87,246,.42); box-shadow:0 0 0 4px rgba(104,87,246,.10),var(--home-ref-shadow);}
body[data-path="/"] .home-location-search__tool,
body[data-path="/"] .home-location-search__submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:14px;
  font-weight:800;
  white-space:nowrap;
}
body[data-path="/"] .home-location-search__tool{
  width:46px;
  padding:0;
  border:1px solid rgba(23,32,63,.08);
  color:var(--home-ref-ink);
  background:#f7f8fd;
}
body[data-path="/"] .home-location-search__tool .bi{font-size:1.05rem;}
body[data-path="/"] .home-location-search #homeUseGPS::before{content:none !important;}
body[data-path="/"] .home-location-search #homeClearGPS.home-location-search__tool--clear{
  position:absolute;
  top:50%;
  right:4px;
  z-index:2;
  display:none !important;
  width:30px !important;
  min-height:30px !important;
  height:30px !important;
  transform:translateY(-50%);
  padding:0 !important;
  border:0 !important;
  border-radius:10px !important;
  color:#8a93aa !important;
  background:#eef0f7 !important;
}
body[data-path="/"] .home-location-search.has-location #homeClearGPS.home-location-search__tool--clear{display:grid !important; place-items:center;}
body[data-path="/"] .home-location-search.has-location #homeCityInput{padding-inline-end:37px;}
body[data-path="/"] .home-location-search.has-location{grid-template-columns:minmax(0,1fr) auto;}
body[data-path="/"] .home-location-search.has-location #homeUseGPS{display:none !important;}
body[data-path="/"] .home-location-search__submit{
  gap:7px;
  min-width:108px;
  padding:0 17px;
  border:0;
  color:#fff;
  background:var(--home-ref-gradient);
  box-shadow:0 7px 16px rgba(83,88,239,.24);
}
body[data-path="/"] .home-location-search__submit:active{transform:scale(.98);}
body[data-path="/"] .home-location-search #homeCitySugg{
  top:calc(100% + 9px) !important;
  right:0; left:0;
  max-width:none;
  border:1px solid rgba(23,32,63,.10) !important;
  border-radius:15px !important;
  background:#fff !important;
  box-shadow:0 14px 30px rgba(31,43,91,.14) !important;
}
body[data-path="/"] .home-location-search #homeCitySugg > button{border-radius:14px;}

/* Main content and real listing data. */
body[data-path="/"] .home-content{min-width:0;}
body[data-path="/"] .home-section{min-width:0; margin:0 0 8px;}
body[data-path="/"] .home-section__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 1px 5px;
}
body[data-path="/"] .home-section__title{
  margin:0;
  color:var(--home-ref-ink);
  font-size:clamp(1.2rem,1.05rem + .7vw,1.62rem);
  font-weight:900;
  letter-spacing:-.04em;
}
body[data-path="/"] .home-section__link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  color:#5b4df1;
  font-size:.92rem;
  font-weight:800;
  text-decoration:none;
}
body[data-path="/"] .home-section__link .bi{font-size:1.12em;}
body[data-path="/"] .home-feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
body[data-path="/"] .home-listing{
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(23,32,63,.075);
  border-radius:18px;
  background:var(--home-ref-surface);
  box-shadow:0 7px 18px rgba(31,43,91,.055);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
body[data-path="/"] .home-listing__link{display:block; min-width:0; color:inherit; text-decoration:none;}
body[data-path="/"] .home-listing__media{
  position:relative;
  aspect-ratio:1.43 / 1;
  overflow:hidden;
  background:#eef1f8;
}
body[data-path="/"] .home-listing__image{
  display:block;
  width:100%;
  height:100% !important;
  max-width:none !important;
  object-fit:cover;
  transition:transform .28s ease;
}
body[data-path="/"] .home-listing__image.is-fallback{object-fit:contain; padding:18%;}
body[data-path="/"] .home-listing__favorite{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid rgba(23,32,63,.08);
  border-radius:50%;
  color:var(--home-ref-ink);
  background:rgba(255,255,255,.94);
  box-shadow:0 4px 10px rgba(20,28,54,.10);
  transition:transform .16s ease,background-color .16s ease,box-shadow .16s ease;
}
body[data-path="/"] .home-listing__favorite .bi{font-size:1.03rem;}
body[data-path="/"] .home-listing__favorite.is-fav{
  border-color:#6958f6;
  color:#fff;
  background:var(--home-ref-gradient);
  box-shadow:0 6px 14px rgba(83,88,239,.28);
}
body[data-path="/"] .home-listing__favorite:active{transform:scale(.92);}
body[data-path="/"] .home-listing__body{min-width:0; padding:11px 11px 12px;}
body[data-path="/"] .home-listing__title{
  display:-webkit-box;
  margin:0 0 3px;
  overflow:hidden;
  color:var(--home-ref-ink);
  font-size:clamp(.9rem,.87rem + .18vw,1rem);
  font-weight:850;
  line-height:1.18;
  letter-spacing:-.02em;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
body[data-path="/"] .home-listing__price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-width:0;
  gap:8px;
  margin-bottom:7px;
}
body[data-path="/"] .home-listing__price{
  min-width:0;
  overflow:hidden;
  color:#5448e6;
  font-size:1.02rem;
  font-weight:900;
  letter-spacing:-.025em;
  line-height:1.1;
  white-space:nowrap;
  text-overflow:ellipsis;
}
body[data-path="/"] .home-listing__price span{color:var(--home-ref-ink); font-size:.78em; font-weight:700;}
body[data-path="/"] .home-listing__owner{
  display:grid;
  place-items:center;
  flex:0 0 31px;
  width:31px;
  height:31px;
  max-width:none;
  overflow:hidden;
  border:2px solid #fff;
  border-radius:50%;
  color:#fff;
  background:var(--home-ref-gradient);
  box-shadow:0 2px 7px rgba(21,31,63,.16);
  font-size:.75rem;
  font-weight:850;
}
body[data-path="/"] .home-listing__owner img{
  display:block;
  width:100%;
  height:100% !important;
  max-width:none !important;
  object-fit:cover;
}
body[data-path="/"] .home-listing__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-width:0;
  gap:7px;
  color:var(--home-ref-muted);
  font-size:.78rem;
  line-height:1.2;
}
body[data-path="/"] .home-listing__city,
body[data-path="/"] .home-listing__rating{
  display:inline-flex;
  align-items:center;
  min-width:0;
  gap:4px;
  white-space:nowrap;
}
body[data-path="/"] .home-listing__city{overflow:hidden; text-overflow:ellipsis;}
body[data-path="/"] .home-listing__city .bi{flex:0 0 auto; color:#78829c;}
body[data-path="/"] .home-listing__rating{flex:0 0 auto; color:#4b556f; font-weight:750;}
body[data-path="/"] .home-listing__rating .bi{color:#f6b516; font-size:.9rem;}
body[data-path="/"] .home-listing__reviews{color:var(--home-ref-muted); font-weight:650;}
@media (hover:hover){
  body[data-path="/"] .home-listing:hover,
  body[data-path="/"] .home-listing:focus-within{
    z-index:1;
    border-color:rgba(92,80,241,.22);
    box-shadow:0 13px 28px rgba(31,43,91,.12);
    transform:translateY(-2px);
  }
  body[data-path="/"] .home-listing:hover .home-listing__image,
  body[data-path="/"] .home-listing:focus-within .home-listing__image{transform:scale(1.025);}
}

/* Category rails keep their existing arrows and native touch scroll. */
body[data-path="/"] .home-rail-section{margin-top:8px;}
body[data-path="/"] .home-rail-header__actions{display:flex; align-items:center; gap:6px;}
body[data-path="/"] .home-rail-button{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid rgba(23,32,63,.09);
  border-radius:50%;
  color:var(--home-ref-ink);
  background:#fff;
  box-shadow:0 4px 10px rgba(31,43,91,.05);
}
body[data-path="/"] .home-rail{
  display:flex;
  min-width:0;
  gap:14px;
  overflow-x:auto;
  padding:2px 1px 4px;
  overscroll-behavior-inline:contain;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  touch-action:auto;
}
body[data-path="/"] .home-rail::-webkit-scrollbar{display:none;}
body[data-path="/"] .home-rail > .home-listing{
  flex:0 0 clamp(206px,57vw,260px);
  width:clamp(206px,57vw,260px);
  scroll-snap-align:start;
}
/* Only a small batch of category rails is in the first response.  The
   sentinel shows this lightweight three-dot status while the next batch is
   fetched as the visitor approaches the end of the loaded rails. */
body[data-path="/"] .home-category-rails-sentinel{
  display:grid;
  min-height:56px;
  place-items:center;
  margin:4px 0 12px;
}
body[data-path="/"] .home-category-rails-sentinel[hidden]{display:none;}
body[data-path="/"] .home-rails-loader{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  gap:7px;
}
body[data-path="/"] .home-rails-loader[hidden]{display:none;}
body[data-path="/"] .home-rails-loader__dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#6556ef;
  animation:home-rails-loading-dot 1s ease-in-out infinite;
}
body[data-path="/"] .home-rails-loader__dot:nth-child(2){animation-delay:.14s;}
body[data-path="/"] .home-rails-loader__dot:nth-child(3){animation-delay:.28s;}
body[data-path="/"] .home-rails-retry{
  padding:8px 13px;
  border:1px solid rgba(92,80,241,.25);
  border-radius:999px;
  color:#5145c7;
  background:#fff;
  font-weight:750;
}
@keyframes home-rails-loading-dot{
  0%, 80%, 100%{opacity:.28; transform:translateY(0);}
  40%{opacity:1; transform:translateY(-4px);}
}
/* The final rail item is a real Explore link, not a synthetic listing.  It
   deliberately shares the exact rail basis above so the native swipe and the
   existing arrow controls can reach it as the sixth card. */
body[data-path="/"] .home-rail > .home-rail__show-all{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:0;
  padding:18px 16px;
  color:var(--home-ref-ink);
  background:linear-gradient(145deg,#fff 0%,#fbfbff 100%);
  text-decoration:none;
  text-align:center;
}
body[data-path="/"] .home-rail__show-all-collage{
  position:relative;
  display:block;
  width:min(154px,78%);
  height:112px;
  margin:2px auto 15px;
  transition:transform .18s ease;
}
body[data-path="/"] .home-rail__show-all-image{
  position:absolute;
  width:98px;
  height:74px !important;
  max-width:none !important;
  overflow:hidden;
  border:3px solid #fff;
  border-radius:14px;
  background:#eef1f8;
  box-shadow:0 8px 17px rgba(31,43,91,.13);
  object-fit:cover;
}
body[data-path="/"] .home-rail__show-all-image--1{inset:2px auto auto 2px; transform:rotate(-7deg);}
body[data-path="/"] .home-rail__show-all-image--2{inset:18px 0 auto auto; transform:rotate(6deg);}
body[data-path="/"] .home-rail__show-all-image--3{inset:auto auto 1px 27px; z-index:2; transform:rotate(-1deg);}
body[data-path="/"] .home-rail__show-all-label{
  display:block;
  color:var(--home-ref-ink);
  font-size:1.02rem;
  font-weight:900;
  letter-spacing:-.025em;
}
body[data-path="/"] .home-rail__show-all-arrow{
  margin-top:7px;
  color:#6556ef;
  font-size:1.1rem;
}
body[data-path="/"] .home-rail__show-all[dir="rtl"] .home-rail__show-all-arrow{transform:scaleX(-1);}
@media (hover:hover){
  body[data-path="/"] .home-rail__show-all:hover{
    color:var(--home-ref-ink);
    border-color:rgba(92,80,241,.25);
    background:linear-gradient(145deg,#fff 0%,#f6f4ff 100%);
  }
  body[data-path="/"] .home-rail__show-all:hover .home-rail__show-all-collage{transform:translateY(-2px);}
}
body[data-path="/"] .home-rail__show-all:focus-visible,
body[data-path="/"] .home-all-section__show-all:focus-visible{
  outline:3px solid rgba(73,126,247,.42);
  outline-offset:3px;
}

/* Existing image-only highlight content remains on Home, but no longer competes with the main listings. */
body[data-path="/"] .home-highlights{margin:36px 0;}
body[data-path="/"] .home-highlight-grid{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(210px,78%);
  gap:14px;
  overflow-x:auto;
  padding:2px 1px 12px;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
body[data-path="/"] .home-highlight-grid::-webkit-scrollbar{display:none;}
body[data-path="/"] .home-highlight-carousel{
  overflow:hidden;
  border:1px solid rgba(23,32,63,.08);
  border-radius:18px;
  background:#edf0f8;
  box-shadow:0 8px 18px rgba(31,43,91,.06);
  scroll-snap-align:start;
}
body[data-path="/"] .home-highlight-carousel .carousel-item{aspect-ratio:2 / 3;}
body[data-path="/"] .home-highlight-carousel img{display:block; width:100%; height:100% !important; max-width:none !important; object-fit:cover;}

body[data-path="/"] .home-all-section{margin-bottom:calc(18px + env(safe-area-inset-bottom,0px));}
body[data-path="/"] .home-listing-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
body[data-path="/"] .home-empty{
  padding:30px 20px;
  border:1px dashed rgba(23,32,63,.16);
  border-radius:18px;
  color:var(--home-ref-muted);
  text-align:center;
  background:rgba(255,255,255,.62);
}
body[data-path="/"] .home-all-section__actions{
  display:flex;
  justify-content:center;
  margin:18px 0 4px;
}
body[data-path="/"] .home-all-section__show-all{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:11px 19px;
  border:1px solid rgba(92,80,241,.20);
  border-radius:14px;
  color:#5146d8;
  background:#fff;
  box-shadow:0 7px 16px rgba(31,43,91,.06);
  font-weight:850;
  text-decoration:none;
}
@media (hover:hover){
  body[data-path="/"] .home-all-section__show-all:hover{color:#fff; background:var(--home-ref-gradient); border-color:transparent;}
}

/* Home content keeps its own top spacing; shared navigation remains base-owned. */
@media (max-width:991px){
  body[data-path="/"] .page{padding-top:0 !important;}
  body[data-auth="0"][data-path="/"] header.topbar form.searchbar{display:none !important;}
  body[data-auth="0"][data-path="/"] header.topbar .topbar__inner{grid-template-areas:"brand actions";}
}

/* Breakpoint-specific content proportions. iPad is kept out of desktop sizing. */
@media (max-width:360px){
  body[data-path="/"] .home-root{padding-inline:12px;}
  body[data-path="/"] .paypal-callout{width:calc(100% - 24px); padding:6px 10px !important; gap:8px !important;}
  body[data-path="/"] .paypal-callout.home-paypal-callout{min-height:48px; flex-direction:row !important; align-items:center !important;}
  body[data-path="/"] .home-paypal__icon{flex-basis:32px; width:32px; height:32px; border-radius:10px; font-size:18px;}
  body[data-path="/"] .home-paypal__description{font-size:.68rem;}
  body[data-path="/"] .paypal-callout .home-paypal__cta{width:auto !important; min-height:0 !important; padding:0 !important; font-size:0 !important;}
  body[data-path="/"] .home-location-search{grid-template-columns:minmax(0,1fr) auto; padding:7px;}
  body[data-path="/"] .home-location-search__submit{grid-column:1 / -1; min-height:42px; width:100%;}
  body[data-path="/"] .home-location-search #homeCityInput{height:42px; font-size:.9rem;}
  body[data-path="/"] .home-listing__body{padding:9px 9px 10px;}
  body[data-path="/"] .home-listing__owner{flex-basis:27px; width:27px; height:27px;}
  body[data-path="/"] .home-listing__meta{font-size:.72rem; gap:4px;}
  body[data-path="/"] .home-feature-grid,
  body[data-path="/"] .home-listing-grid{gap:10px;}
}
@media (min-width:577px) and (max-width:991px){
  body[data-path="/"] .home-root{padding-inline:clamp(22px,5vw,48px);}
  body[data-path="/"] .home-feature-grid,
  body[data-path="/"] .home-listing-grid{grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px;}
  body[data-path="/"] .home-rail > .home-listing{flex-basis:clamp(230px,32vw,288px); width:clamp(230px,32vw,288px);}
  body[data-path="/"] .home-highlight-grid{grid-auto-columns:minmax(220px,32%);}
}
@media (min-width:992px){
  html:not(.is-ipad) body[data-path="/"] .page{padding-top:24px !important;}
  html:not(.is-ipad) body[data-path="/"] .home-root{padding-inline:clamp(28px,4vw,52px);}
  html:not(.is-ipad) body[data-path="/"] .home-hero-wrap{max-width:900px; margin:8px auto 24px;}
  html:not(.is-ipad) body[data-path="/"] .home-hero{border-radius:26px;}
  html:not(.is-ipad) body[data-path="/"] .home-hero :is(.carousel-inner,.carousel-item){aspect-ratio:1.7 / 1;}
  html:not(.is-ipad) body[data-path="/"] .home-location-wrap{max-width:960px; margin:0 auto 36px;}
  html:not(.is-ipad) body[data-path="/"] .home-feature-grid,
  html:not(.is-ipad) body[data-path="/"] .home-listing-grid{grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px;}
  html:not(.is-ipad) body[data-path="/"] .home-rail > .home-listing{flex-basis:280px; width:280px;}
  html:not(.is-ipad) body[data-path="/"] .home-highlight-grid{grid-auto-flow:initial; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible;}
  html:not(.is-ipad) body[data-path="/"] .home-highlight-carousel .carousel-item{aspect-ratio:3 / 4;}
  html:not(.is-ipad) body[data-path="/"] .paypal-callout{width:min(calc(100% - 64px),1120px); margin-top:18px !important;}
}
@media (min-width:769px) and (max-width:1376px) and (min-height:600px){
  html.is-ipad body[data-path="/"] .page{padding-top:0 !important;}
  html.is-ipad body[data-path="/"] .home-root{width:min(100%,1180px); padding:0 28px 30px;}
  html.is-ipad body[data-path="/"] .paypal-callout{width:min(calc(100% - 56px),1100px); margin:12px auto 20px !important;}
  html.is-ipad body[data-path="/"] .home-hero-wrap{max-width:980px; margin:2px auto 26px;}
  html.is-ipad body[data-path="/"] .home-hero :is(.carousel-inner,.carousel-item){aspect-ratio:1.7 / 1;}
  html.is-ipad body[data-path="/"] .home-location-wrap{max-width:920px; margin:0 auto 34px;}
  html.is-ipad body[data-path="/"] .home-feature-grid,
  html.is-ipad body[data-path="/"] .home-listing-grid{grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px;}
  html.is-ipad body[data-path="/"] .home-rail > .home-listing{flex-basis:270px; width:270px;}
  html.is-ipad body[data-path="/"] .home-highlight-grid{grid-auto-columns:minmax(230px,31%);}
}
@media (min-width:769px) and (max-width:1376px) and (min-height:600px) and (orientation:landscape){
  html.is-ipad body[data-path="/"] .home-feature-grid,
  html.is-ipad body[data-path="/"] .home-listing-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}

/* Compact the Home hand-off from header → banner → location search → featured. */
body[data-path="/"] .paypal-callout{margin:6px auto 10px !important;}
body[data-path="/"] .home-hero-wrap{margin:0 0 10px;}
body[data-path="/"] .home-location-wrap{margin:0 0 17px;}
body[data-path="/"] .home-location-search{
  gap:4px;
  padding:3px;
  border-radius:999px;
  box-shadow:0 6px 16px rgba(31,43,91,.07);
}
body[data-path="/"] .home-location-search__field{gap:7px; padding-inline:8px;}
body[data-path="/"] .home-location-search__field > .bi{font-size:1.05rem;}
body[data-path="/"] .home-location-search #homeCityInput{height:38px; font-size:.9rem;}
body[data-path="/"] .home-location-search__tool,
body[data-path="/"] .home-location-search__submit{
  min-height:38px;
  border-radius:999px;
}
body[data-path="/"] .home-location-search__tool{
  width:38px;
  height:38px;
  border-color:rgba(23,32,63,.09);
  background:#f8f9fd;
  box-shadow:none;
}
body[data-path="/"] .home-location-search__tool .bi{font-size:.92rem;}
body[data-path="/"] .home-location-search #homeClearGPS.home-location-search__tool--clear{
  width:26px !important;
  min-height:26px !important;
  height:26px !important;
  right:4px;
  border-radius:50% !important;
}
body[data-path="/"] .home-location-search__submit{
  min-width:90px;
  padding-inline:12px;
  font-size:.88rem;
  box-shadow:0 5px 12px rgba(83,88,239,.19);
}
@media (max-width:360px){
  body[data-path="/"] .home-location-search{
    grid-template-columns:minmax(0,1fr) 36px auto;
    gap:4px;
    padding:3px;
  }
  body[data-path="/"] .home-location-search #homeCityInput{height:36px; font-size:.84rem;}
  body[data-path="/"] .home-location-search__tool{
    width:36px;
    min-height:36px;
    height:36px;
  }
  body[data-path="/"] .home-location-search__submit{
    grid-column:auto;
    width:auto;
    min-width:82px;
    min-height:36px;
    padding-inline:10px;
    font-size:.84rem;
  }
}
@media (min-width:992px){
  html:not(.is-ipad) body[data-path="/"] .paypal-callout{margin:10px auto 12px !important;}
  html:not(.is-ipad) body[data-path="/"] .home-hero-wrap{margin:4px auto 14px;}
  html:not(.is-ipad) body[data-path="/"] .home-location-wrap{margin:0 auto 22px;}
}
@media (min-width:769px) and (max-width:1376px) and (min-height:600px){
  html.is-ipad body[data-path="/"] .paypal-callout{margin:9px auto 12px !important;}
  html.is-ipad body[data-path="/"] .home-hero-wrap{margin:0 auto 15px;}
  html.is-ipad body[data-path="/"] .home-location-wrap{margin:0 auto 22px;}
}

/* The bell changes only when the existing unread count is truly non-zero. */
body[data-path="/"] header.topbar #notifOpen{
  isolation:isolate;
  overflow:visible;
}
body[data-path="/"] header.topbar #notifOpen .icon-img{z-index:1;}
body[data-path="/"] header.topbar #notifOpen.notification-bell--unread{
  border-color:rgba(255,255,255,.28) !important;
  background:linear-gradient(135deg, #7659f4 0%, #439af3 100%) !important;
  box-shadow:0 8px 18px rgba(81,83,225,.26) !important;
}
body[data-path="/"] header.topbar #notifOpen.notification-bell--unread .icon-img{
  filter:brightness(0) invert(1);
}
body[data-path="/"] header.topbar #notifOpen .notification-bell__twinkles{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease, visibility 0s linear .2s;
}
body[data-path="/"] header.topbar #notifOpen.notification-bell--unread .notification-bell__twinkles{
  opacity:1;
  visibility:visible;
  transition-delay:0s;
}
body[data-path="/"] header.topbar #notifOpen .notification-bell__twinkle{
  position:absolute;
  display:block;
  color:#fff;
  font-size:7px;
  font-style:normal;
  font-weight:800;
  line-height:1;
  opacity:0;
  text-shadow:0 1px 3px rgba(27,39,119,.24);
  transform:scale(.55);
}
body[data-path="/"] header.topbar #notifOpen .notification-bell__twinkle::before{content:"✦";}
body[data-path="/"] header.topbar #notifOpen .notification-bell__twinkle--one{top:7px; left:7px; animation-delay:0s;}
body[data-path="/"] header.topbar #notifOpen .notification-bell__twinkle--two{top:8px; right:8px; font-size:6px; animation-delay:.8s;}
body[data-path="/"] header.topbar #notifOpen .notification-bell__twinkle--two::before{content:"✧";}
body[data-path="/"] header.topbar #notifOpen .notification-bell__twinkle--three{bottom:7px; left:8px; font-size:6px; animation-delay:1.45s;}
body[data-path="/"] header.topbar #notifOpen .notification-bell__twinkle--four{right:9px; bottom:7px; font-size:5px; animation-delay:2.1s;}
body[data-path="/"] header.topbar #notifOpen.notification-bell--unread .notification-bell__twinkle{
  animation:home-notification-twinkle 3.2s ease-in-out infinite;
}
body[data-path="/"] header.topbar #notifOpen .notif-ping{z-index:3;}
body[data-path="/"] header.topbar #notifOpen .notif-count{
  z-index:4;
  border:2px solid #fff;
  box-shadow:0 2px 5px rgba(25,33,74,.16);
}
@keyframes home-notification-twinkle{
  0%, 100%{opacity:.14; transform:scale(.6);}
  42%{opacity:.92; transform:scale(1);}
  65%{opacity:.36; transform:scale(.78);}
}
@media (prefers-reduced-motion:reduce){
  body[data-path="/"] :is(.home-listing,.home-listing__image,.home-listing__favorite,.home-hero .carousel-control-prev,.home-hero .carousel-control-next,.paypal-callout .home-paypal__cta,#fabAdd){transition:none !important;}
  body[data-path="/"] .home-rail{scroll-behavior:auto;}
  body[data-path="/"] .home-rails-loader__dot{animation:none; opacity:1; transform:none;}
  body[data-path="/"] .paypal-callout.home-paypal-callout{transition:none !important;}
  body[data-path="/"] header.topbar #notifOpen .notification-bell__twinkles{transition:none !important;}
  body[data-path="/"] header.topbar #notifOpen.notification-bell--unread .notification-bell__twinkle{animation:none !important; opacity:0 !important;}
}
body[data-path="/"] :is(.home-listing__link,.home-listing__favorite,.home-section__link,.home-rail-button,.home-location-search__tool,.home-location-search__submit,.home-hero .carousel-control-prev,.home-hero .carousel-control-next,header.topbar .brand,header.topbar #notifOpen,header.topbar form.searchbar input):focus-visible{
  outline:3px solid rgba(104,87,246,.63) !important;
  outline-offset:3px;
}

/* Home-only background ornaments. These are static vector strokes only:
   no image downloads, JavaScript, animation, filters, or interactive layer. */
body[data-path="/"] .home-root{
  position:relative;
  isolation:isolate;
}
body[data-path="/"] .home-root::before,
body[data-path="/"] .home-root::after{
  content:"";
  position:absolute;
  top:156px;
  bottom:78px;
  z-index:-1;
  width:42px;
  pointer-events:none;
  background-repeat:repeat-y;
  background-position:center top;
}
body[data-path="/"] .home-root::before{
  left:-8px;
  background-size:42px 520px;
}
body[data-path="/"] .home-root::after{
  right:-8px;
  background-size:42px 560px;
  background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MiIgaGVpZ2h0PSI1NjAiIHZpZXdCb3g9IjAgMCA0MiA1NjAiIGZpbGw9Im5vbmUiPgogIDxwYXRoIGQ9Ik0yOCAzNHYxMk0yMiA0MGgxMiIgc3Ryb2tlPSIjMzBDOUQ2IiBzdHJva2Utb3BhY2l0eT0iLjU1IiBzdHJva2Utd2lkdGg9IjEuMzUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgogIDxwYXRoIGQ9Ik0yMCA5MWMtNC43IDAtOC41IDMuOC04LjUgOC41IDAgNi40IDguNSAxNS4xIDguNSAxNS4xczguNS04LjcgOC41LTE1LjFDMjguNSA5NC44IDI0LjcgOTEgMjAgOTFaIiBzdHJva2U9IiM0Mjg4RjUiIHN0cm9rZS1vcGFjaXR5PSIuNDUiIHN0cm9rZS13aWR0aD0iMS4yIi8+CiAgPGNpcmNsZSBjeD0iMjAiIGN5PSI5OS41IiByPSIyLjIiIGZpbGw9IiM2ODU3RjYiIGZpbGwtb3BhY2l0eT0iLjM4Ii8+CiAgPHBhdGggZD0iTTM5IDE2NWMtMjAtMTMtMzIgMTEtMTkgMjgiIHN0cm9rZT0iIzY4NTdGNiIgc3Ryb2tlLW9wYWNpdHk9Ii4zNCIgc3Ryb2tlLXdpZHRoPSIxLjMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgogIDxjaXJjbGUgY3g9IjIwIiBjeT0iMTkzIiByPSIyLjMiIGZpbGw9IiMzMEM5RDYiIGZpbGwtb3BhY2l0eT0iLjQ1Ii8+CiAgPHBhdGggZD0iTTE1IDI1OGgxMmEzIDMgMCAwIDEgMyAzdjhhMyAzIDAgMCAxLTMgM0gxNWEzIDMgMCAwIDEtMy0zdi04YTMgMyAwIDAgMSAzLTNaIiBzdHJva2U9IiM2ODU3RjYiIHN0cm9rZS1vcGFjaXR5PSIuNDMiIHN0cm9rZS13aWR0aD0iMS4xNSIvPjxjaXJjbGUgY3g9IjIxIiBjeT0iMjY1IiByPSIyLjUiIHN0cm9rZT0iIzQyODhGNSIgc3Ryb2tlLW9wYWNpdHk9Ii40OCIgc3Ryb2tlLXdpZHRoPSIxLjEiLz4KICA8Y2lyY2xlIGN4PSIzMiIgY3k9IjMzMSIgcj0iMiIgZmlsbD0iIzQyODhGNSIgZmlsbC1vcGFjaXR5PSIuNDUiLz4KICA8cGF0aCBkPSJNOCAzNzV2MTJNMiAzODFoMTIiIHN0cm9rZT0iIzY4NTdGNiIgc3Ryb2tlLW9wYWNpdHk9Ii41NSIgc3Ryb2tlLXdpZHRoPSIxLjI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KICA8cGF0aCBkPSJNNDAgNDM0Yy0xNS0xNS0yOSAzLTIxIDIwIiBzdHJva2U9IiMzMEM5RDYiIHN0cm9rZS1vcGFjaXR5PSIuMzUiIHN0cm9rZS13aWR0aD0iMS4yIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KICA8Y2lyY2xlIGN4PSIxOSIgY3k9IjQ1NCIgcj0iMi4yIiBmaWxsPSIjNjg1N0Y2IiBmaWxsLW9wYWNpdHk9Ii40Ii8+CiAgPHBhdGggZD0iTTI5IDUxNHYxME0yNCA1MTloMTAiIHN0cm9rZT0iIzQyODhGNSIgc3Ryb2tlLW9wYWNpdHk9Ii41IiBzdHJva2Utd2lkdGg9IjEuMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPg==");
}
@media (max-width:360px){
  body[data-path="/"] .home-root::before,
  body[data-path="/"] .home-root::after{
    width:34px;
    opacity:.72;
  }
  body[data-path="/"] .home-root::before{left:-7px; background-size:34px 421px;}
  body[data-path="/"] .home-root::after{right:-7px; background-size:34px 453px;}
}

/* The left edge is drawn directly by CSS, so it never requests an asset. */
body[data-path="/"] .home-root::before{
  background-image:
    radial-gradient(circle at 6px 55px,rgba(104,87,246,.42) 0 2px,transparent 2.45px),
    radial-gradient(circle at 27px 80px,rgba(48,201,214,.47) 0 2.45px,transparent 2.95px),
    radial-gradient(ellipse 17px 22px at 8px 242px,transparent 0 59%,rgba(48,201,214,.35) 60% 64%,transparent 65%),
    radial-gradient(circle at 25px 271px,rgba(104,87,246,.42) 0 2px,transparent 2.45px),
    radial-gradient(ellipse 9px 9px at 18px 338px,transparent 0 61%,rgba(104,87,246,.43) 62% 69%,transparent 70%),
    radial-gradient(circle at 30px 458px,rgba(48,201,214,.46) 0 2.2px,transparent 2.65px),
    radial-gradient(ellipse 18px 10px at 20px 493px,transparent 0 64%,rgba(104,87,246,.3) 65% 69%,transparent 70%);
}

/* One tiny static vector tile gives the full Home background the same quiet
   SEVOR detail without adding requests, scripts, or layout work. */
body[data-path="/"] .page{
  background-image:
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODQiIGhlaWdodD0iMzQwIiB2aWV3Qm94PSIwIDAgMTg0IDM0MCIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0iTTE1IDQ4djEyTTkgNTRoMTIiIHN0cm9rZT0iIzY4NTdGNiIgc3Ryb2tlLW9wYWNpdHk9Ii4yOCIgc3Ryb2tlLXdpZHRoPSIxLjMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgogIDxjaXJjbGUgY3g9IjQ0IiBjeT0iODAiIHI9IjIuNCIgZmlsbD0iIzMwQzlENiIgZmlsbC1vcGFjaXR5PSIuMjgiLz4KICA8cGF0aCBkPSJNLTQgMTI5YzI0LTIyIDQ3LTUgMzQgMjEiIHN0cm9rZT0iIzQyODhGNSIgc3Ryb2tlLW9wYWNpdHk9Ii4yIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CiAgPGNpcmNsZSBjeD0iMjkiIGN5PSIxNTAiIHI9IjIiIGZpbGw9IiM2ODU3RjYiIGZpbGwtb3BhY2l0eT0iLjI1Ii8+CiAgPHBhdGggZD0iTTE0OCA3NWMtNC43IDAtOC41IDMuOC04LjUgOC41IDAgNi40IDguNSAxNS4xIDguNSAxNS4xczguNS04LjcgOC41LTE1LjFjMC00LjctMy44LTguNS04LjUtOC41WiIgc3Ryb2tlPSIjNjg1N0Y2IiBzdHJva2Utb3BhY2l0eT0iLjI1IiBzdHJva2Utd2lkdGg9IjEuMTUiLz4KICA8Y2lyY2xlIGN4PSIxNDgiIGN5PSI4My41IiByPSIyLjIiIGZpbGw9IiM0Mjg4RjUiIGZpbGwtb3BhY2l0eT0iLjIyIi8+CiAgPHBhdGggZD0iTTU5IDE4NmMwLTQgMy03IDctN3M3IDMgNyA3LTMgNy03IDctNy0zLTctN1oiIHN0cm9rZT0iIzMwQzlENiIgc3Ryb2tlLW9wYWNpdHk9Ii4yMiIgc3Ryb2tlLXdpZHRoPSIxLjEiLz4KICA8cGF0aCBkPSJNMTMzIDIwOGgxM2EzIDMgMCAwIDEgMyAzdjhhMyAzIDAgMCAxLTMgM2gtMTNhMyAzIDAgMCAxLTMtM3YtOGEzIDMgMCAwIDEgMy0zWiIgc3Ryb2tlPSIjNjg1N0Y2IiBzdHJva2Utb3BhY2l0eT0iLjIyIiBzdHJva2Utd2lkdGg9IjEuMDUiLz4KICA8Y2lyY2xlIGN4PSIxMzkuNSIgY3k9IjIxNSIgcj0iMi40IiBzdHJva2U9IiM0Mjg4RjUiIHN0cm9rZS1vcGFjaXR5PSIuMjYiIHN0cm9rZS13aWR0aD0iMSIvPgogIDxwYXRoIGQ9Ik0xOSAyNzFjMTUtMTcgMzctOCAzNCAxMyIgc3Ryb2tlPSIjNjg1N0Y2IiBzdHJva2Utb3BhY2l0eT0iLjIiIHN0cm9rZS13aWR0aD0iMS4xIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KICA8Y2lyY2xlIGN4PSI1MyIgY3k9IjI4NCIgcj0iMi4xIiBmaWxsPSIjMzBDOUQ2IiBmaWxsLW9wYWNpdHk9Ii4yNyIvPgogIDxwYXRoIGQ9Ik0xNjAgMjkydjEyTTE1NCAyOThoMTIiIHN0cm9rZT0iIzMwQzlENiIgc3Ryb2tlLW9wYWNpdHk9Ii4zIiBzdHJva2Utd2lkdGg9IjEuMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CiAgPGNpcmNsZSBjeD0iOTkiIGN5PSIzMjEiIHI9IjIiIGZpbGw9IiM2ODU3RjYiIGZpbGwtb3BhY2l0eT0iLjIzIi8+Cjwvc3ZnPg=="),
    radial-gradient(72% 30rem at 112% 9%,rgba(66,136,245,.14),transparent 70%),
    radial-gradient(60% 28rem at -10% 38%,rgba(104,87,246,.13),transparent 70%),
    radial-gradient(52% 24rem at 60% 96%,rgba(48,201,214,.09),transparent 72%),
    linear-gradient(180deg,#fdfdff 0%,#f6f5ff 50%,#f5fbff 100%);
  background-position:center 72px,112% 9%,-10% 38%,60% 96%,0 0;
  background-repeat:repeat,no-repeat,no-repeat,no-repeat,no-repeat;
  background-size:184px 340px,auto,auto,auto,auto;
}
