.properties-page{
  background:var(--surface-1);
  padding:100px 60px;
}

.prop-page-header{
  text-align:center;
  margin-bottom:40px;
}

.prop-page-header .small{
  letter-spacing:3px;
  font-size:12px;
  color:var(--gold-3);
  margin-bottom:12px;
}

.prop-page-header h2{
  font-family:Cambria, Georgia, serif;
  font-size:40px;
  color:var(--cream);
}

.prop-page-header h2 span{
  font-style:italic;
  color:var(--gold-3);
}

.prop-page-header .prop-lead{
  color:var(--muted);
  font-size:14.5px;
  margin-top:14px;
  max-width:520px;
  margin-left:auto;
  margin-right:auto;
}

.filter-bar{
  justify-content:center;
  align-items:center;
}

.filter-divider{
  width:1px;
  height:24px;
  background:var(--gold-line);
  margin:0 6px;
}

.prop-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}

.prop-grid .card{
  padding-bottom:20px;
  cursor:pointer;
}

.prop-grid .card-content{
  padding:20px 22px 0;
}

@media(max-width:1024px){
  .properties-page{ padding:80px 30px; }
  .prop-grid{ grid-template-columns:1fr 1fr; }
}

@media(max-width:768px){
  .properties-page{ padding:60px 16px; }
  .prop-page-header h2{ font-size:28px; }
  .prop-grid{ grid-template-columns:1fr; }

  /* FILTER BAR — 2 ROWS, HORIZONTALLY SWIPEABLE (scrollbar hidden) */
  .filter-bar{
    display:grid;
    grid-auto-flow:column;
    grid-template-rows:repeat(2, auto);
    justify-content:flex-start;
    align-items:start;
    gap:10px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    padding-bottom:4px;
    margin:0 -16px 0;
    padding-left:16px;
    padding-right:16px;
    scrollbar-width:none;      /* Firefox */
    -ms-overflow-style:none;   /* IE / old Edge */
  }

  .filter-bar::-webkit-scrollbar{
    display:none;              /* Chrome / Safari / new Edge */
  }

  .filter-btn{
    white-space:nowrap;
    scroll-snap-align:start;
    flex-shrink:0;
  }

  .filter-divider{
    display:none;
  }
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination-bar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-top:55px;
  flex-wrap:wrap;
}

.page-arrow{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--gold-line);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:0.3s;
  flex-shrink:0;
}

.page-arrow:hover:not(:disabled){
  background:linear-gradient(135deg,#2c3d1f,#101609);
  border-color:#e6971a;
  color:#ffe08a;
}

.page-arrow:disabled{
  opacity:0.35;
  cursor:not-allowed;
}

.page-arrow svg{
  width:18px;
  height:18px;
}

.page-numbers{
  display:flex;
  gap:8px;
}

.page-num{
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--gold-line);
  background:transparent;
  color:var(--muted);
  font-size:14px;
  cursor:pointer;
  transition:0.3s;
}

.page-num:hover{
  border-color:#ffb627;
  color:#e6971a;
}

.page-num.active{
  background:linear-gradient(135deg,#ffc94d,#e6971a);
  border-color:#e6971a;
  color:#1a1206;
  font-weight:600;
}

@media(max-width:768px){
  .pagination-bar{
    gap:10px;
    margin-top:36px;
  }

  .page-numbers{
    gap:6px;
  }

  .page-num{
    width:34px;
    height:34px;
    font-size:13px;
  }

  .page-arrow{
    width:38px;
    height:38px;
  }
}

/* ================= CATEGORY LEGEND ================= */
.category-legend{
  background:var(--surface-1);
  color:#fff;
  padding:50px 60px;
}

.legend-container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  max-width:1100px;
  margin:0 auto;
}

.legend-col h4{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  margin-bottom:10px;
  color:var(--gold-2);
}

.legend-col svg{
  width:18px;
  height:18px;
}

.legend-col p{
  font-size:13px;
  color:var(--gold-line-strong);
  line-height:1.7;
}

@media(max-width:1024px){
  .category-legend{ padding:40px 30px; }
  .legend-container{ grid-template-columns:1fr; gap:24px; }
}

@media(max-width:768px){
  .category-legend{ padding:40px 20px; }
}

/* ================================================================
   ENQUIRE NOW — MODAL
   ================================================================ */
.enquire-modal{
  position:fixed;
  inset:0;
  z-index:2000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.enquire-modal.active{
  display:flex;
}

.enquire-modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(15,23,34,0.65);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.enquire-modal-box{
  position:relative;
  z-index:2;
  background:var(--surface-2);
  color:var(--cream);
  width:100%;
  max-width:440px;
  padding:42px 34px 34px;
  border-radius:6px;
  max-height:90vh;
  overflow-y:auto;
  animation:enquireModalPop 0.35s ease forwards;
}

@keyframes enquireModalPop{
  from{
    opacity:0;
    transform:translateY(24px) scale(0.97);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.enquire-modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:32px;
  height:32px;
  border:none;
  background:transparent;
  font-size:18px;
  line-height:1;
  color:var(--muted);
  cursor:pointer;
  transition:0.3s;
}

.enquire-modal-close:hover{
  color:var(--cream);
  transform:scale(1.1);
}

.enquire-modal-box .small{
  letter-spacing:3px;
  font-size:12px;
  color:var(--gold-3);
  margin-bottom:8px;
}

.enquire-modal-box h3{
  font-family:Cambria, Georgia, serif;
  font-size:22px;
  line-height:1.3;
  color:var(--cream);
  margin-bottom:26px;
  padding-right:20px;
}

.enquire-modal-box .input-group{
  margin-bottom:22px;
}

.enquire-modal-box .submit-btn{
  margin-top:4px;
}

body.modal-open{
  overflow:hidden;
}

body.modal-open .float-actions{
  display:none !important;
}

@media(max-width:480px){
  .enquire-modal-box{
    padding:36px 22px 26px;
  }

  .enquire-modal-box h3{
    font-size:19px;
  }
}