/* ========================================================================
   PROPERTY PAGE — Mobile-first responsive CSS (3 breakpoints only)
   File: public/css/property.css
   ======================================================================== */

/* ---------- Design tokens ---------- */
:root{
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  992px;
  --container-xl: 1100px; /* dipakai di filter + featured */
  --radius-card: 12px;

  --clr-text: #1f1f1f;
  --clr-muted: #6b7280;
  --clr-muted-2: #475569;
  --clr-border: #d6d9de;
  --clr-border-2:#ced1d7;
  --clr-bg-soft:#f8f9fb;
  --clr-elev: rgba(17,24,39,.12);
  --brand-dark:#0f172a;
  --brand-red:#a3181e;
}

/* ========================================================================
   SLIDER (Hero) — mobile first
   ======================================================================== */

.page-property .slider-container{
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 0;
  /* biarkan tinggi mengikuti .hs-hero dari headerslider.css */
  height: auto;
}

/* Jangan paksa height hero — biarkan var --h/--h-sm dari headerslider.css yang ngatur */
.page-property .hs-hero{
  border-radius: 0; /* hanya hilangkan radius; JANGAN set height */
}

/* Hilangkan radius pada anak, tapi jangan ubah tinggi */
.page-property .hs-track,
.page-property .hs-slide{ border-radius: 0; }

/* Di halaman property memang tanpa hero card (overlay konten),
   jadi aman disembunyikan jika kebetulan masih ter-render */
.page-property .slider-overlay{ display: none !important; }

/* Biarkan layering default dari headerslider.css
   (hapus override !important pada z-index) */
.page-property .hs-overlay{ z-index: 2; }
.page-property .hs-nav,
.page-property .hs-dots{ z-index: 25; }

/* ========================================================================
   FILTER BAR — posisikan overlap bawah slider (mobile-first)
   ======================================================================== */

.page-property .filter-bar-wrapper{
  display: block !important;
  max-width: var(--container-xl);
  position: relative;
  z-index: 10;
  margin: -36px auto 0; /* overlap ringan di HP */
  padding: 0 12px;
}
.page-property .f-filtergallery,
.page-property 
.f-filter{ 
  margin-top: 0 !important; 
}

/* Hilangkan radius tak diinginkan pada elemen slider */
.page-property .hs-hero,
.page-property .hs-slide{ border-radius: 0 !important; }

/* ========================================================================
   SECTION WRAPPER
   ======================================================================== */

.property-section{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px; /* gutter mobile */
}

/* ========================================================================
   TOOLBAR & CURRENCY SWITCH
   ======================================================================== */

.property-section__toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  justify-content: center; /* default mobile */
}

.property-section__toolbar-label{
  font-size: .9rem;
  color: var(--clr-muted-2);
  font-weight: 600;
}

.currency-switch{
  display: inline-flex;
  padding: 4px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
  gap: 4px;
}

.currency-switch__btn{
  border: none;
  background: transparent;
  color: #1f2937;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .88rem;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.currency-switch__btn.is-active{
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(163,24,30,.24);
}
.currency-switch__btn:not(.is-active):hover{
  background: rgba(163,24,30,.08);
}

/* ========================================================================
   TITLES & EMPTY STATE
   ======================================================================== */

.property-section__title{
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 1rem 0 1.5rem;
  color: var(--clr-text);
}

.property-section__empty{
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  background: var(--clr-bg-soft);
}

/* ========================================================================
   PROPERTY CARD
   ======================================================================== */

.property-card{
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-card);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
  font-family: 'Raleway', Arial, sans-serif;
}
.property-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--clr-elev);
}

.property-card__link{
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail 4:3 tanpa @supports (fallback universal) */
.property-card__thumb{
  position: relative;
  margin: 0;
  background: #f1f2f5;
  overflow: hidden;
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
  isolation: isolate;
  aspect-ratio: 4 / 3;
}
/* Membuat rasio 4:3 via padding-top 75% */
.property-card__thumb::before{
  content: "";
  display: block;
  padding-top: 75%;
}
@supports (aspect-ratio: 4 / 3){
  .property-card__thumb::before{
    display: none;
    padding-top: 0;
  }
}
/* Konten di-absolute agar mengisi area 4:3 */
.property-card__thumb-art,
.property-card__thumb > img{
  position: absolute !important;
  inset: 0;
}
.property-card__thumb > img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  max-width: none;
}

.property-card__thumb-art{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg,#f1f2f5 0%,#dedfe4 100%);
}

.property-card__thumb-circle{
  position: absolute;
  top: 16%;
  left: 18%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(187,190,198,.65);
}

.property-card__thumb-mountain{
  position: absolute;
  bottom: -10px;
  width: 60%;
  height: 60%;
  background: #c7c9d0;
  clip-path: polygon(0% 100%, 0% 60%, 40% 20%, 80% 70%, 100% 40%, 100% 100%);
}
.property-card__thumb-mountain--left{ left: -6%; opacity: .65; }
.property-card__thumb-mountain--right{ right: -6%; }

.property-card__body{
  padding: 1.1rem 1.2rem 1.3rem; /* mobile padding */
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.property-card__head{
  display: grid;
  grid-template-columns: 1fr; /* mobile: satu kolom */
  align-items: start;
  gap: .9rem;
}

.property-card__heading{
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.property-card__label{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-muted);
  letter-spacing: .12em;
}
.property-card__label-type,
.property-card__label-sep{
  font-family: 'Raleway', Arial, sans-serif;
  letter-spacing: .18em;
}
.property-card__label-id{
  font-family: 'Barlow Condensed','Barlow',Arial,sans-serif;
  font-size: 1.05rem;
  letter-spacing: .1em;
}

.property-card__title{
  margin: 0;
  font-family: 'Barlow Condensed','Barlow',Arial,sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--clr-text);
}

.property-card__price{
  display: grid;
  grid-auto-rows: auto;
  justify-items: start;  /* mobile: kiri */
  text-align: left;
  gap: .2rem;
  color: var(--clr-text);
  font-family: 'Barlow Condensed','Barlow',Arial,sans-serif;
}
.property-card__currency{
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clr-muted);
}
.property-card__amount{
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.property-card__meta{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  column-gap: 1rem;
  row-gap: .75rem;
  align-items: start;
}
.property-card__meta-item{
  display: inline-flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
  color: #41454d;
  min-width: 0;
}
.property-card__meta-item span{
  display:block;
  line-height:1.35;
  word-break:break-word;
}
.property-card__meta-item i{
  flex-shrink: 0;
  font-size: 1.05rem;
  color: var(--brand-dark);
}

/* ========================================================================
   HOME — FEATURED PROPERTY BLOCKS
   ======================================================================== */

.home-featured-property{
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 12px;
}
.home-featured-property__title{
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-bottom: .35rem;
}
.home-featured-property__subtitle{
  color: #4b5563;
  font-size: .98rem;
  letter-spacing: .02em;
}

.property-card--featured{ border-width: 2px; border-color: #c6c9d3; }
.property-card--featured .property-card__price{ gap: .25rem; }
.property-card--featured .property-card__title{ font-size: 1.5rem; }
.property-card--featured .property-card__meta-item{ font-size: .9rem; }

/* ========================================================================
   BREAKPOINTS — 3 jenis saja
   ======================================================================== */

/* 1) TABLET ≥ 768px */
@media (min-width: 568px){
  /* Filter overlap sedikit lebih besar & gutter lebih lega */
  .page-property .filter-bar-wrapper{ margin-top: -52px; padding: 0 16px; }

  /* Card spacing */
  .property-card__body{ padding: 1.25rem 1.35rem 1.5rem; }

  /* Header card jadi 2 kolom (judul + harga) */
  .property-card__head{
    grid-template-columns: 1fr auto;
    gap: 1.1rem;
  }

  /* Harga kembali rata kanan */
  .property-card__price{
    justify-items: end;
    text-align: right;
  }

  /* Meta grid sedikit lebih lega */
  .property-card__meta{
    column-gap: 1.2rem;
    row-gap: .85rem;
  }

  .f-filter{
    margin-top: 50px !important;
  }
}

/* 2) DESKTOP ≥ 992px */
@media (min-width: 992px){
  /* Tinggi slider dinaikkan bertahap */
  .page-property .slider-container{ height: 420px; }
  .page-property .hs-hero{ height: 420px !important; }

  /* Layout container & toolbar */
  .property-section{ padding: 0 16px; }
  .property-section__toolbar{ justify-content: flex-start; }

  /* Filter bisa sedikit lebih overlap di desktop */
  .page-property .filter-bar-wrapper{ margin-top: -60px; }
}

/* 3) DESKTOP LEBAR ≥ 1200px */
@media (min-width: 1200px){
  .page-property .slider-container{ height: 500px; }
  .page-property .hs-hero{ height: 500px !important; }
}




