/* ============================================================
   SIMSAR FEATURED UNITS CAROUSEL V21.14
   Horizontal premium cards + auto movement
   ============================================================ */

#page-home{
  --fu-red:#e23628;
  --fu-red-dark:#c93025;
  --fu-ink:#172033;
  --fu-text:#344054;
  --fu-muted:#748095;
  --fu-line:#e4e8ee;
  --fu-soft:#f7f8fa;
}

/* Featured section header */
#page-home .simsar-v214-featured-head{
  margin-top:24px;
  margin-bottom:12px;
  padding:0 2px;
  align-items:flex-end;
}

#page-home .simsar-v214-featured-head h2{
  margin:0;
  color:var(--fu-ink);
  font-size:25px;
  line-height:1.12;
  font-weight:900;
  letter-spacing:-.25px;
}

#page-home .simsar-v214-featured-head p{
  margin:6px 0 0;
  color:var(--fu-muted);
  font-size:11px;
  line-height:1.55;
}

.simsar-v214-featured-tools{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}

.simsar-v214-view-all{
  min-height:38px;
  padding:0 13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dce2e9;
  border-radius:10px;
  background:#fff;
  color:#354258;
  font:inherit;
  font-size:10px;
  font-weight:850;
  cursor:pointer;
}

.simsar-v214-view-all:hover{
  border-color:#e5aaa4;
  color:var(--fu-red);
}

.simsar-v214-nav{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #dce2e9;
  border-radius:10px;
  background:#fff;
  color:#344054;
  font-size:17px;
  line-height:1;
  cursor:pointer;
  transition:border-color .15s ease,color .15s ease,transform .15s ease;
}

.simsar-v214-nav:hover{
  border-color:#e5aaa4;
  color:var(--fu-red);
  transform:translateY(-1px);
}

.simsar-v214-nav:disabled{
  opacity:.4;
  cursor:default;
  transform:none;
}

/* Carousel shell */
.simsar-v214-featured-shell{
  position:relative;
  min-width:0;
}

#page-home #homeGrid.property-grid{
  display:flex !important;
  grid-template-columns:none !important;
  gap:14px !important;
  width:100%;
  padding:4px 3px 14px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

#page-home #homeGrid.property-grid::-webkit-scrollbar{
  display:none;
}

/* Horizontal listing cards */
#page-home #homeGrid > .property-card{
  flex:0 0 clamp(480px,48vw,650px) !important;
  width:clamp(480px,48vw,650px) !important;
  min-width:0;
  min-height:252px;
  display:grid !important;
  grid-template-columns:42% minmax(0,1fr) !important;
  grid-template-rows:1fr;
  overflow:hidden;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  border:1px solid var(--fu-line);
  border-radius:17px !important;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.065) !important;
  transform:none !important;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease !important;
}

#page-home #homeGrid > .property-card:hover{
  border-color:#e8b3ad !important;
  box-shadow:0 15px 36px rgba(15,23,42,.10) !important;
  transform:translateY(-2px) !important;
}

/* Image */
#page-home #homeGrid .property-img{
  width:100% !important;
  height:100% !important;
  min-height:252px !important;
  border-radius:0 !important;
  background-position:center !important;
  background-size:cover !important;
}

#page-home #homeGrid .badges{
  top:11px !important;
  left:11px !important;
  gap:6px !important;
}

#page-home #homeGrid .badge,
#page-home #homeGrid .simsar-v6-type{
  padding:6px 8px !important;
  border-radius:999px !important;
  font-size:8px !important;
  font-weight:900 !important;
}

#page-home #homeGrid .heart{
  width:34px !important;
  height:34px !important;
  top:10px !important;
  right:10px !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.94) !important;
  backdrop-filter:blur(5px);
}

#page-home #homeGrid .img-meta{
  left:10px !important;
  right:10px !important;
  bottom:9px !important;
  font-size:8.5px !important;
}

/* Body */
#page-home #homeGrid .property-body{
  min-width:0;
  padding:17px 17px 15px !important;
  display:flex !important;
  flex-direction:column !important;
}

#page-home #homeGrid .property-top{
  display:block !important;
}

#page-home #homeGrid .property-top h3{
  margin:0 !important;
  max-width:none;
  color:var(--fu-ink);
  font-size:16px !important;
  line-height:1.3 !important;
  font-weight:900 !important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

#page-home #homeGrid .price{
  margin-top:8px;
  color:var(--fu-red) !important;
  font-size:18px !important;
  line-height:1.1;
  font-weight:900 !important;
  white-space:nowrap;
}

#page-home #homeGrid .location{
  margin:8px 0 11px !important;
  color:#657287 !important;
  font-size:9.5px !important;
  line-height:1.45;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Key specs */
#page-home #homeGrid .features{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:7px !important;
  margin-top:1px;
}

#page-home #homeGrid .features > div{
  min-width:0;
  padding:8px 6px !important;
  border:1px solid #ebedf1;
  border-radius:9px !important;
  background:#fafbfc;
  text-align:center;
}

#page-home #homeGrid .features b{
  display:block;
  color:#263249;
  font-size:12px !important;
  line-height:1.1;
}

#page-home #homeGrid .features span{
  display:block;
  margin-top:3px;
  color:#8892a2;
  font-size:7.5px !important;
}

/* Keep the card clean and marketplace-like */
#page-home #homeGrid .more-row{
  display:none !important;
}

#page-home #homeGrid .reward-line{
  display:none !important;
}

/* Actions */
#page-home #homeGrid .card-actions{
  display:flex !important;
  flex-wrap:wrap;
  align-items:center;
  gap:6px !important;
  margin-top:auto !important;
  padding-top:12px !important;
}

#page-home #homeGrid .card-actions .btn{
  min-height:34px !important;
  padding:0 10px !important;
  border-radius:8px !important;
  font-size:8.5px !important;
  font-weight:850 !important;
}

#page-home #homeGrid .card-actions .simsar-v2113-card-btn{
  max-width:150px;
}

/* Carousel footer */
.simsar-v214-carousel-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 4px;
  margin-top:1px;
}

.simsar-v214-position{
  color:#7b8798;
  font-size:9px;
  font-weight:750;
}

.simsar-v214-dots{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
}

.simsar-v214-dot{
  width:6px;
  height:6px;
  padding:0;
  border:0;
  border-radius:999px;
  background:#d7dce4;
  cursor:pointer;
  transition:width .18s ease,background .18s ease;
}

.simsar-v214-dot.active{
  width:20px;
  background:var(--fu-red);
}

.simsar-v214-auto-label{
  display:flex;
  align-items:center;
  gap:6px;
  color:#8a94a3;
  font-size:8px;
  white-space:nowrap;
}

.simsar-v214-auto-label::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#34a36f;
}

/* Soft right edge cue */
.simsar-v214-featured-shell::after{
  content:"";
  position:absolute;
  z-index:2;
  top:0;
  right:0;
  width:28px;
  height:calc(100% - 15px);
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(247,248,250,.75));
  border-radius:0 14px 14px 0;
}

/* Tablet */
@media(max-width:1100px){
  #page-home #homeGrid > .property-card{
    flex-basis:600px !important;
    width:600px !important;
  }
}

/* Mobile */
@media(max-width:760px){
  #page-home .simsar-v214-featured-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .simsar-v214-featured-tools{
    width:100%;
    margin-left:0;
  }

  .simsar-v214-view-all{
    margin-right:auto;
  }

  #page-home #homeGrid.property-grid{
    gap:10px !important;
    padding-right:12px;
  }

  #page-home #homeGrid > .property-card{
    flex:0 0 min(88vw,430px) !important;
    width:min(88vw,430px) !important;
    min-height:0;
    grid-template-columns:1fr !important;
    grid-template-rows:205px auto;
  }

  #page-home #homeGrid .property-img{
    height:205px !important;
    min-height:205px !important;
  }

  #page-home #homeGrid .property-body{
    padding:13px !important;
  }

  #page-home #homeGrid .property-top h3{
    font-size:15px !important;
  }

  #page-home #homeGrid .price{
    font-size:17px !important;
  }

  #page-home #homeGrid .card-actions{
    margin-top:10px !important;
  }

  .simsar-v214-featured-shell::after{
    width:16px;
  }
}

@media(prefers-reduced-motion:reduce){
  #page-home #homeGrid.property-grid{
    scroll-behavior:auto;
  }

  #page-home #homeGrid > .property-card{
    transition:none !important;
  }
}
