:root{
    --font-1: "Montserrat", sans-serif;
    --dark-blue: #244E73;
    --blue:#2E4E8C;
    --light-blue:#4E98D9;
    --gold:#A6610D;
    --white:#F2F2F2;
}

select {
  appearance: none;        /* Standard */
  -webkit-appearance: none; /* Safari */
  -moz-appearance: none;    /* Firefox */
  background: none;         /* Optional */
}

post-card-sketch
*{font-family: var(--font-1);}
.fsb {display: flex;justify-content: space-between;align-items: center;}
.fcc {display: flex;align-items: center;justify-content: center;}



/* =========================
   TOP HEADER + CAT NAV (UPDATED)
========================= */

.top-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

/* Row */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
}

/* Neutralize your global a/button styles inside header */
.top-header a,
.top-header button{
  background: none;
  padding: 0;
  color: var(--dark-blue);
  border: none;
  text-decoration: none;
}

/* Icon buttons */
.icon-btn{
  width: 42px;
  height: 42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  border-radius: 12px;
  border: 2px solid transparent;
  user-select:none;
  transition: transform .12s ease, background .12s ease;
}
.icon-btn:hover{ background: rgba(78,152,217,.12); }
.icon-btn:active{ transform: scale(.98); }

.menu-btn{ font-size: 30px; line-height:1; }

.search-btn img{
  width: 28px;
  height: 28px;
  display:block;
}

/* Logo */
.brand{
  display:flex;
  align-items:center;
  justify-content:center;
}
.brand img{
  height: 44px;
  width:auto;
  display:block;
}

/* Right group */
.topbar-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Profile circle */
.profile-btn{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow:hidden;
  border: 2px solid var(--dark-blue);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}
.profile-btn img{ width:100%; height:100%; object-fit:cover; }

/* Search drawer */
.search-drawer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
  background: #fff;
}
.top-header.is-search-open .search-drawer{
  max-height: 90px;
  border-top: 1px solid #f0f0f0;
}
.search-inner{ padding: 10px 0 14px; }

.search-box{
  display:flex;
  align-items:center;
  border: 2px solid var(--dark-blue);
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 25px rgba(36,78,115,.08);
}
.search-box input{
  width:100%;
  min-width:0;
  height:46px;
  padding: 0 12px;
  border:none;
  outline:none;
  font-size:16px;
}
.search-go{
  width:56px;
  height:46px;
  border-left:2px solid var(--dark-blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background: linear-gradient(180deg, rgba(78,152,217,.25), rgba(78,152,217,.05));
}
.search-go img{ width:20px; height:20px; display:block; }

/* =========================
   Category row + Language dropdown (RIGHT)
========================= */
.cat-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.cat-row{
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.cat-row-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}

/* Category nav */
.cat-nav{
  display: flex;
  gap: 14px;
  white-space: nowrap;
  will-change: transform;
}
.cat-nav::-webkit-scrollbar{ height: 6px; }

.cat-item {
  text-decoration: none;
  flex: 0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 6px;
  border-radius: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(36,78,115,.15);
  background: linear-gradient(180deg, rgba(78,152,217,.18), rgba(255,255,255,1));
  box-shadow: 0 8px 16px rgba(36,78,115,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}
.catbtn{
  text-decoration: none;
  flex: 0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 6px;
  border-radius: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(36,78,115,.15);
  background: linear-gradient(180deg, rgba(78,152,217,.18), rgba(255,255,255,1));
  box-shadow: 0 8px 16px rgba(36,78,115,.06);
  transition: transform .12s ease, box-shadow .12s ease;
  height: 70px !important;
}
.cat-item:hover , .catbtn:hover{ transform: translateY(-1px); box-shadow: 0 12px 20px rgba(36,78,115,.10); }
.cat-item img, .catbtn img{
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.cat-item span , .catbtn span{
  font-size: 13px;
  font-weight: 800;
  color: var(--dark-blue);
  white-space: nowrap;
  text-align: center;
}

/* Language dropdown */
.lang-dd{
  position: relative;
  flex: 0 0 auto;
}

.lang-btn{
  height: 44px;
  min-width: 84px;
  padding: 0 14px;
  border-radius: 14px;
  border: 2px solid rgba(36,78,115,.25);
  background: linear-gradient(180deg, rgba(36,78,115,.10), rgba(78,152,217,.08));
  color: var(--dark-blue);
  font-weight: 900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(36,78,115,.08);
}

.lang-caret{ font-size: 14px; opacity:.8; }

.lang-menu{
  position:absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 55px;
  border-radius: 14px;
  border: 2px solid rgba(36,78,115,.18);
  background: #fff;
  box-shadow: 0 18px 28px rgba(0,0,0,.12);
  padding: 8px;
  display:none;
  z-index: 1000;
}

.lang-dd.is-open .lang-menu{ display:block; }

.lang-item{
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: none;
  cursor:pointer;
  background: #fff;
  color: var(--dark-blue);
  font-weight: 800;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .12s ease, transform .12s ease;
}
.lang-item:hover{
  background: rgba(78,152,217,.18);
}
.lang-item:active{
  transform: scale(.98);
}

/* =========================
   Responsive
========================= */
@media (max-width: 480px){
  .brand img{ height: 38px; }
  .icon-btn, .profile-btn{ width: 40px; height: 40px; }
  .search-btn img{ width: 22px; height: 22px; }

  /* .cat-row-inner{ gap: 10px; } */
  .cat-item img { width: 34px; height: 34px; }
  .catbtn img{ width: 15px; height: 15px; }
  .cat-item span { font-size: 10px; white-space: wrap; }
  .catbtn span{ font-size: 8px; white-space: wrap; }
  .sub-categories-under {font-size: 7px !important;}
  .lang-btn{ height: 40px; min-width: 76px; }
  .top-header a {width: 20%;}
  .cat-arr {font-size: 20px !important;}
}

@media (max-width: 360px){
  .brand img{ height: 34px; }
  .cat-item , .catbtn{ padding: 7px 9px; }
  .lang-btn{ padding: 0 10px; }
}



/* ====== Stories wrapper ====== */
.ad-area { padding: 22px 0; }

/* Desktop layout */
.ad-wrap-stories{
  display: flex;
  align-items: center;
  gap: 18px;
}

/* New Ad card */
.ad-new-sticky{
  flex: 0 0 260px;
}

/* Slider window */
.ad-slider{
  flex: 1;
  height: 180px;
  overflow: hidden; /* desktop */
}

/* Track (desktop animation uses transform) */
.ad-track{
  display: flex;
  gap: 30px;
  height: 360px;
  transform: translateX(0);
  transition: transform 450ms ease;
}

.ad-card{
  width: 260px;
  height: 180px !important;
  border: 1px solid #244E7340;
  background: #fff;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.ad-img{ width:100%; height:100%; object-fit: cover; }

.ad-profile{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--dark-blue);
  overflow: hidden;
  background: #fff;
  z-index: 2;
}
.ad-profile img{ width:100%; height:100%; object-fit: cover; }

/* ====== MOBILE: Facebook Stories Style ====== */
@media (max-width: 600px){

  .ad-wrap-stories{
    align-items: flex-start;
    gap: 12px;
  }

  /* New ad always visible */
  .ad-new-sticky{
    flex: 0 0 92px;
    border-radius: 14px;
  }
  .ad-plus{ font-size: 44px; }
  .ad-new-text{ font-size: 11px; text-align: center; padding: 0 6px; }

  /* Slider becomes horizontal scroll (swipe) */
  .ad-slider{
    /* height: 160px !important; */
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .ad-slider::-webkit-scrollbar{ height: 0; }

  /* Track becomes natural scroll row */
  .ad-track{
    height: 160px;
    gap: 10px;
    transform: none !important;
    transition: none !important;
    padding-right: 14px;
  }

  /* Story cards */
  .ad-card{
    width: 72vw !important;     /* story width */
    max-width: 110px;
    border-radius: 14px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .ad-profile{
    width: 38px;
    height: 38px;
    top: 8px;
    right: 8px;
  }
}

/* =========================
   LOCATION UI (Accordion) - CSS
========================= */

/* Wrapper (you already have these, keep if needed) */
.filter-sec{ padding: 18px 0; }
.filter-row{ margin-bottom: 12px; }
.filter-bottum{
  border: 2px solid rgba(36, 78, 115, 0.25);
  border-radius: 14px;
  background: linear-gradient(rgba(78, 152, 217, 0.18), rgb(255, 255, 255));
  padding: 4px 14px;
  color: rgb(36, 78, 115);
  cursor: pointer;
  margin-left: 5px;
}
.filter-icon {
  width: 20px;
}

/* Location button */
.loc-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border:2px solid rgba(36,78,115,.25);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(78,152,217,.18), #fff);
  padding: 14px;
  color: #244E73;
  font-weight: 900;
  cursor: pointer;
}
.loc-title{ font-weight: 900; }
.loc-value{
  flex: 1;
  text-align: center;
  font-weight: 400;
  opacity: .9;
}
.loc-caret{ font-size: 14px; opacity:.8; }

/* Panel */
.loc-panel{
  margin-top: 10px;
  border:2px solid rgba(36,78,115,.18);
  border-radius: 14px;
  background:#fff;
  overflow: hidden;
  display:none;
}
.loc-panel.open{ display:block; }

/* District list */
.dist-list{
  list-style:none;
  padding: 0;
  margin: 0;
  max-height: 320px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

/* District row */
.dist-item{
  border-bottom: 1px solid #edf2f7;
}
.dist-item:last-child{ border-bottom: none; }

/* District button */
.dist-btn{
  width:100%;
  text-align:left;
  background:#f7fbff;
  padding: 12px 12px;
  font-weight: 600;
  color: #244E73;
  border: none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-size: 16px;
}
.dist-btn:active{ transform: scale(.99); }

/* Caret rotate when open */
.dist-btn .caret{
  transition: transform .18s ease;
  opacity: .8;
}
.dist-item.open .dist-btn .caret{
  transform: rotate(180deg);
}

/* Cities list (hidden until open) */
.city-ul{
  list-style:none;
  padding: 10px 12px 14px;
  margin: 0;
  display:none;
  background:#fff;
}
.dist-item.open .city-ul{ display:block; }

/* City item */
.city-li{
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 400;
  border: 1px solid rgba(36,78,115,.12);
  color: #244E73;
  background:#fff;
  cursor:pointer;
  margin-bottom: 8px;
}
.city-li:last-child{ margin-bottom: 0; }
.city-li:hover{ background: rgba(78,152,217,.12); }
.city-li:active{ transform: scale(.99); }

/* Selected city */
.city-li.active{
  background: rgba(78,152,217,.22);
  border-color: rgba(36,78,115,.25);
}

/* Search input inside location panel */
.loc-search{
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}

.loc-search input{
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(36,78,115,.18);
  outline: none;
  font-size: 14px;
  color: var(--dark-blue);
  background: #f7fbff;
  font-weight: 500;
}

.loc-search input:focus{
  border-color: rgba(36,78,115,.35);
  box-shadow: 0 8px 20px rgba(36,78,115,.08);
}


/* Mobile tweaks */
@media (max-width: 600px){
  .loc-value{ font-size: 14px; }
  .dist-btn{ padding: 12px 10px; }
  .city-ul{ padding: 10px 10px 12px; }
}



/* KM */
.km-row{
  border:2px solid rgba(36,78,115,.12);
  border-radius: 14px;
  padding: 12px 12px 0 12px;
  background: #fbfdff;
}
.km-labels{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--dark-blue);
  font-weight: 400;
  font-size: 10px;
}
.km-now{
  background: rgba(78,152,217,.18);
  border: 1px solid rgba(36,78,115,.18);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Slider styled like pole + dot */
/* =========================
   KM POLE (Dual range + fill)
========================= */

/* pole area */
.km-pole.dual{
  position: relative;
  height: 40px;
}

/* base line (pole) */
.km-track{
  position:absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(36,78,115,.18);
}

/* selected area */
.km-fill{
  position:absolute;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(36,78,115,.65); /* default selected */
  transition: background .25s ease; /* smooth when color changes after 2s */
}

/* after 2 seconds only change color */
#kmWrap.is-after2s .km-fill{
  background: var(--dark-blue); /* becomes darker */
}

/* two range inputs over same pole */
.km-range{
  position:absolute;
  left:0; right:0;
  top:0;
  width:100%;
  height:40px;
  appearance:none;
  background: transparent;
  pointer-events:none; /* IMPORTANT: so both can work */
}

/* allow thumb to be draggable */
.km-range::-webkit-slider-thumb{
  appearance:none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--dark-blue);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
  cursor:pointer;
  pointer-events:auto;
}
.km-range::-moz-range-thumb{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--dark-blue);
  cursor:pointer;
  pointer-events:auto;
}

/* bubbles above thumbs */
.km-bubble{
  position:absolute;
  top: -20px;
  transform: translateX(-50%);
  font-weight: 800;
  color: var(--dark-blue);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(36,78,115,.18);
  white-space: nowrap;
  pointer-events:none;
}

/* Price fields */
.price-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.price-field{
  border:1px solid rgba(36,78,115,.18);
  border-radius: 14px;
  background: #fff;
  padding: 14px 12px;
  text-align:left;
  color: var(--dark-blue);
  font-size: 10px;
}
.price-label{ display:block; font-weight: 400; opacity:.85; }
.price-val{ display:block; margin-top: 6px; font-weight: 400; font-size: 10px; }

/* Responsive */
@media (max-width: 600px){
  .loc-value{ font-size: 14px; }
  .loc-cols{ grid-template-columns: 1fr; }
  .loc-col{ border-right:none; border-bottom: 1px solid #edf2f7; }
  .loc-col:last-child{ border-bottom:none; }
  .price-row{ grid-template-columns: 1fr; }
}

/* ===== Price popup v2 ===== */
.pmodal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}
.pmodal.open{ display:block; }

.pmodal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
}

.pmodal-card{
  position:absolute;
  left: 50%;
  bottom: 150px;
  transform: translateX(-50%);
  width: min(520px, 92vw);
  background:#fff;
  border-radius: 18px;
  border:2px solid rgba(36,78,115,.18);
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  padding: 14px;
}

.pmodal-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 6px 4px 10px;
}
.pmodal-title{ color: var(--dark-blue); }
.pmodal-x{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 2px solid rgba(36,78,115,.18);
  background:#fff;
  color: var(--dark-blue);
  font-size: 18px;
}

/* Currency segmented */
.seg-row{
  display:flex;
  gap: 10px;
  margin-bottom: 12px;
}
.seg-btn{
  flex:1;
  border-radius: 14px;
  border:2px solid rgba(36,78,115,.18);
  background:#fff;
  color: var(--dark-blue);
}
.seg-btn.is-active{
  background: var(--dark-blue);
  border-color: var(--dark-blue);
  color:#fff;
}

/* Input */
.pinput-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
  border:2px solid var(--dark-blue);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 12px;
}
.pcur, .psuf{
  color: var(--dark-blue);
}
.pinput{
  width:100%;
  border:none;
  outline:none;
  font-size: 18px;
  color:#111;
}

/* Units */
.unit-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.unit-btn {
  opacity: 0.45;      /* light color when NOT selected */
  background: #fff;
  border-color: rgba(36,78,115,.25);
}

.unit-btn.is-active {
  opacity: 1;         /* dark color when selected */
  background: var(--dark-blue);
  color: #fff;
}


/* Footer */
.pmodal-actions{
  display:flex;
  gap: 10px;
}
.btn-lite, .btn-main{
  flex:1;
  border-radius: 14px;
  border:2px solid var(--dark-blue);
}
.btn-lite{ background:#fff; color: var(--dark-blue); }
.btn-main{ background: var(--dark-blue); color:#fff; }




/* ===== Post Card V2 ===== */
/* =========================
   POST CARD (SKETCH STYLE)
========================= */

.post-card-sketch{
  border: 1px solid var(--dark-blue);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  max-width: 920px;
  margin-bottom : 20px;
}

/* MEDIA AREA */
.pc-media{
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #eef3fb;
}
.pc-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  position: relative;
}
.pc-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* USER TOP LEFT */
.pc-user{
  position:absolute;
  top: 12px;
  left: 12px;
  display:flex;
  align-items:center;
  gap: 10px;
  z-index: 5;
}
.pc-avatar{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--dark-blue);
  overflow:hidden;
  background:#fff;
}
.pc-avatar img{ width:100%; height:100%; object-fit: cover; }

.pc-user-name{
  font-weight: 800;
  color: var(--dark-blue);
}
.pc-user-sub{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 10px;
  color:#6d7a88;
}
.pc-dot{
  width:10px;
  height:10px;
  border-radius: 50%;
  background:#2ecc71;
  display:inline-block;
}
.pc-sep{ opacity:.6; }

/* BOTTOM LEFT: ICONS + TITLE */
.pc-bottom-left{
  position:absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
}
.pc-media-icons{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 6px;
}
.pc-ic-badge{
  width: 34px;
  height: 28px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(36,78,115,.18);
}
.pc-ic{
  width: 18px;
  height: 18px;
  fill: var(--dark-blue);
}
.pc-360{
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,.35);
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(36,78,115,.45);
  border: 1px solid rgba(255,255,255,.25);
}

.pc-title {
  color: var(--dark-blue);
}

.location-image {
  width: 20px;
  margin-right: 10px;
}

/* PRICE BOTTOM RIGHT (sketch style) */
.pc-price{
  position:absolute;
  right: 12px;
  bottom: 20px;
  display:flex;
  gap: 10px;
  align-items: baseline;
  z-index: 5;
  color:#fff;
  text-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.pc-price > *{
  font-size: 18px;
  text-shadow: 2px 1px 0 var(--dark-blue);
}

/* BODY */
.purpose {
  margin: 10px 0;
  align-items: center;
}
.purpose-idea {
  color: var(--dark-blue);
  font-weight: 600;
}

/* STATS ROW */
.pc-stats{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--dark-blue);
  font-size: 10px;
  font-weight: bold;
}
.pc-stat{
  display:flex;
  align-items:center;
  gap: 4px;
}
.pc-stat-lbl{ opacity:.85; }

.pc-mini-ic{
  width: 16px;
  height: 16px;
  fill: var(--dark-blue);
}

.main-details-btn {background: var(--dark-blue);
  padding: 5px 28px;
  border-radius: 5px;
  color: #fefefe;}

/* LOAN BOX */
.pc-loan-row{
  display:flex;
  justify-content:flex-end;
  margin-bottom: 10px;
}
.pc-loan-box{
  border: 1px solid rgba(36,78,115,.18);
  border-radius: 14px;
  padding: 5px;
  background: #fff;
}
.pc-loan-top{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 8px;
}
.pc-loan-lbl{
  color: var(--dark-blue);
  margin-right: auto;
}
.pc-loan-chip{
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid rgba(36,78,115,.18);
  background:#fff;
  color: var(--dark-blue);
  cursor:pointer;
}
.pc-loan-chip.is-active{
  background: var(--dark-blue);
  color:#fff;
  border-color: var(--dark-blue);
}
.pc-loan-mid{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 8px;
}
.pc-loan-month{
  color:#6d7a88;
  font-size: 10px;
}
.pc-loan-amt{
  color: var(--dark-blue);
  font-size: 10px;
}
.pc-apply{
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--dark-blue);
  background: linear-gradient(180deg, rgba(78,152,217,.18), #fff);
  color: var(--dark-blue);
  cursor: pointer;
  font-size: 10px;
}

/* ACTION BUTTONS (List / Call / WhatsApp) */
.pc-actions{
  margin: 10px 0;
}
.pc-btn{
  border-radius: 5px;
  border: 1px solid var(--dark-blue);
  background: linear-gradient(180deg, rgba(78,152,217,.18), #fff);
  color: var(--dark-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  padding: 5px 6px;
  font-size: 10px;
  width: 25%;
}
.pc-btn-whatsapp {
  background: linear-gradient(180deg, rgba(78,152,217,.18), #065640);
  color: #fefefe;
  gap: 0;
}
.pc-btn-call {
  background: linear-gradient(180deg, rgba(78,152,217,.18), #a1b6df);
}
.pc-btn-ic{
  width: 18px;
  height: 18px;
  fill: var(--dark-blue);
}

/* SOCIAL ROW */
.pc-social{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  border-top: 1px solid rgba(36,78,115,.12);
  padding-top: 10px;
}
.pc-social-btn{
  flex: 1;
  height: 42px;
  background: #fff;
  color: var(--dark-blue);
  cursor: pointer;
  border: none;
  font-size: 10px;
}
.pc-social-btn > img {
  margin-right: 4px;
}
.cp-bottom {margin-bottom: 100px;}

/* Mobile */
@media(max-width:600px){
  .pc-title { font-size: 16px; }
  .pc-actions{ grid-template-columns: 1fr; }
  /* span {font-size: 10px;} */
  .dist-btn > span {font-size: 16px;}
}
@media (max-width: 400px) {
  .pc-title {
    font-size: 12px;
  }
}



/* =========================
   Bottom Nav (Mobile + Large)
   uses your variables
========================= */

.bb-footer{
  padding-top: 12px;
  background: transparent;
}

/* Outer pill */
.bb-nav{
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(36,78,115,.98), rgba(22,45,72,.98));
  box-shadow:
    0 22px 40px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.10);
  overflow: visible;
  display: flex;
  justify-content: space-between;
  border-radius: 26px 26px 0 0;
}
.ftd1 {width: 40%;
margin: 20px;}

/* Each item (glass button) */
.bb-item{
  text-decoration: none;
  color: #fff;
  flex-direction: column;
  width: 31%;
  border-radius: 18px;
  padding: 10px 0;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 12px 20px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}

.bb-item:hover{ transform: translateY(-1px); background: rgba(255,255,255,.14); }
.bb-item:active{ transform: translateY(0); }

.bb-ic svg{
  width: 26px;
  height: 26px;
  fill: #fff;
  opacity: .95;
}
@media screen and (max-width:850px) {
  .ftd1{margin: 10px;}
}

.bb-txt{
  font-size: 13px;
  opacity: .95;
}

/* Active state */
.bb-item.is-active{
  background: rgba(78,152,217,.22);
  border-color: rgba(78,152,217,.55);
}

/* Center big + button */
.bb-center{
  border-radius: 0 0 80px 80px;
  border: 1px solid rgba(255,255,255,.18);
  background:
  radial-gradient(circle at 50% 35%, rgba(78,152,217,.95), rgba(36,78,115,.95));
  box-shadow:
    0 26px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.18);
  cursor: pointer;
  margin-bottom: 10px;
  width: 10%;
}

.bb-plus{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;

  margin: 0 auto;
  color: #fff;
  font-weight: 1000;
  font-size: 42px;

  background: rgba(0,0,0,.12);
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

/* Make center glow ring */
.bb-center::after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events:none;
}
.footer-icon {
  width: 20px;
}

/* =========================
   Mobile tuning
========================= */
@media (max-width: 850px){

  .bb-item{
    min-height: 68px;
    border-radius: 16px;
  }

  .bb-ic svg{ width: 15px; height: 15px; }
  .bb-txt{ font-size: 10px;text-align: center; }

  .bb-plus{
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}
@media screen and (max-width:500px) {
  .bb-item {padding: 0;}
  .bb-center {width: max-content;}
}
@media screen and (max-width:400px) {
  .pc-body {
    font-size: 10px;
  }
}

/* Very small phones */
@media (max-width: 360px){
  .bb-txt{ font-size: 5px;text-align: center; }
  .bb-item{ min-height: 50px; }
}

.bb-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  transition: transform .25s ease, opacity .25s ease;
}

.bb-footer.is-hidden{
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}






/* Top buttons row */
.catbar{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Category button */
.catbtn{
  width: 100%;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(36,78,115,.18);
  background: linear-gradient(180deg, rgba(78,152,217,.16), #fff);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  cursor:pointer;
  color: var(--dark-blue);
  font-weight: 400; /* normal */
}


.cat-ic{ font-size: 22px; }
.cat-txt{
  flex:1;
  margin-left: 10px;
  text-align:left;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cat-caret{ opacity:.7; }

/* Panel */
.catpanel{
  display:none;
  margin-top: 10px;
  border: 1px solid rgba(36,78,115,.18);
  border-radius: 14px;
  background:#fff;
  overflow:hidden;
}
.catpanel.open{ display:block; }

/* Main list buttons inside panel */
.mainlist{
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.mainbtn{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(36,78,115,.18);
  background:#fff;
  color: var(--dark-blue);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 12px;
  cursor:pointer;
  font-weight: 400; /* normal */
}

.mainbtn .caret{ opacity:.7; transition: transform .18s ease; }
.mainitem.open .mainbtn .caret{ transform: rotate(180deg); }

/* Sub list */
.sublist{
  display:none;
  padding: 8px 10px 12px;
  border-left: 3px solid rgba(78,152,217,.35);
  margin-left: 10px;
  margin-top: -6px;
}

.mainitem.open .sublist{ display:block; }

.sublist a{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(36,78,115,.12);
  background: #fbfdff;
  color: var(--dark-blue);
  text-decoration:none;
  font-weight: 400; /* normal */
  margin-bottom: 8px;
}
.sublist a:last-child{ margin-bottom: 0; }
.sublist a:hover{ background: rgba(78,152,217,.10); }

/* Mobile 320px */
@media (max-width: 600px){
  .catbar{
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cat-ic{ font-size: 18px; }
  .cat-txt{ font-size: 12px; margin-left: 8px; }
  .mainbtn{ height: 42px; }
  .bb-txt{font-size: 6px;}
  
}




:root{
  --font-1: "Montserrat", sans-serif;
  --dark-blue:#244E73;
  --light-blue:#4E98D9;
}

*{ font-family: var(--font-1); box-sizing:border-box; }

/* 15 categories -> wrap into 4 lines */
.catgrid{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* each item same size */
.catbtn{
  flex: 1 1 calc(25% - 10px);   /* 4 per row */
  min-width: 0;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(36,78,115,.18);
  background: linear-gradient(180deg, rgba(78,152,217,.16), #fff);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  cursor:pointer;
  color: var(--dark-blue);
  font-weight: 400; /* normal */
}

.catimg{
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.cattxt{
  flex:1;
  text-align:center;
  font-size: 14px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.caret{ opacity:.7;font-size: 18px; }

/* Panel will be inserted in grid as a full row block */
.catpanel{
  display:none;
  width: 100%;
  margin-top: 0; /* we handle spacing via gap */
  border: 1px solid rgba(36,78,115,.18);
  border-radius: 14px;
  background:#fff;
  overflow:hidden;
}
.catpanel.open{ display:block; }

/* main list buttons */
.mainlist{ padding: 10px; display:flex; flex-direction:column; gap: 10px; }

.mainbtn{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(36,78,115,.18);
  background:#fff;
  color: var(--dark-blue);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 12px;
  cursor:pointer;
  font-weight: 400;
}
.mainbtn .mcaret{ opacity:.7; transition: transform .18s ease; }
.mainitem.open .mainbtn .mcaret{ transform: rotate(180deg); }

/* sub links */
.sublist{
  display:none;
  padding: 8px 10px 12px;
  border-left: 3px solid rgba(78,152,217,.35);
  margin-left: 10px;
  margin-top: -6px;
}
.mainitem.open .sublist{ display:block; }

.sublist a{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(36,78,115,.12);
  background:#fbfdff;
  color: var(--dark-blue);
  text-decoration:none;
  font-weight: 400;
  margin-bottom: 8px;
}
.sublist a:last-child{ margin-bottom: 0; }
.sublist a:hover{ background: rgba(78,152,217,.10); }

/* Responsive 320px */
@media (max-width: 600px){
  .cattxt{ font-size: 12px; }
}

/* Under 400px: show only 5 items + More button */
@media (max-width: 400px){

  /* 3 columns so 5 items can fit nicely + More */
  .catbtn{
    padding: 8px 10px;
    height: auto !important;
    width: 13%;
    flex: auto;
  }

  /* Hide items when collapsed */
  .catbtn.is-hidden{
    display:none !important;
  }

  /* More button style (same size) */
  .catmore{
    justify-content:center;
    gap: 8px;
  }
  /* .catgrid {flex-wrap: nowrap;} */
  .catbtn span {
    font-size: 7px;
    
  }
  .caret {font-size: 20px !important;}
}




/* ===== Category bar like image ===== */
.catbar{
  width:100%;
  border: 1px solid rgba(36,78,115,.18);
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 6 tiles per row on small screens: More + 5 categories */
.cat-tile{
  flex: 1 1 calc((100% - 50px) / 6); /* 6 items with 10px gaps */
  min-width: 0;
  height: 86px;
  border-radius: 5px;
  border: 1px solid rgba(36,78,115,.18);
  background: linear-gradient(180deg, rgba(78,152,217,.16), #fff);
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 6px;
  cursor:pointer;
  color: var(--dark-blue);
  font-weight: 400; /* normal */
}

.cat-ic{
  width: 38px;
  height: 38px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cat-ic img{ width: 38px; height: 38px; object-fit: contain; display:block; }
.cat-ic svg{ width: 30px; height: 30px; fill: var(--dark-blue); opacity:.9; }
.cat-name {
   font-weight: 400;
}
.cat-ic svg{ width: 30px; height: 30px; fill: var(--dark-blue); opacity:.9; }
.vehicle-cat-name {
   font-weight: 800;
}

.cat-name , .vehicle-cat-name{
  font-size: 12px;
  line-height: 1.1;
  text-align:center;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 100%;
 
}

.cat-pill{
  padding: 4px 0;
  border-radius: 999px;
  border: 1px solid rgba(36,78,115,.16);
  background: rgba(78,152,217,.12);
  color: var(--dark-blue);
  font-weight: 400;
  width: 100%;
}

/* Hide extra cats until expanded */
.cat-tile.is-extra{ display:none; }
.catbar.is-expanded .cat-tile.is-extra{ display:flex; }

/* More tile */
.cat-more .cat-pill{ background: rgba(36,78,115,.10); }

/* ===== Responsive (320px) ===== */
@media (max-width: 360px){
  .catbar{ gap: 8px; padding: 8px; }
  .cat-tile{
    flex: 1 1 calc((100% - 40px) / 6);
    height: 82px;
    border-radius: 14px;
  }
  .cat-ic{ width: 34px; height: 34px; }
  .cat-ic img{ width: 34px; height: 34px; }
  .cat-name , .vehicle-cat-name{ font-size: 11px; }
  .cat-pill{ font-size: 10px; padding: 3px 8px; }
}

/* ===== Popup near clicked ===== */
.catpop{
  position: fixed;
  z-index: 5000;
  display:none;
  width: min(340px, 92vw);
  background: #fff;
  border: 1px solid rgba(36,78,115,.20);
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(0,0,0,.18);
  overflow: hidden;
}
.catpop.open{ display:block; }

.catpop-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(36,78,115,.12);
}
.catpop-title{ color: var(--dark-blue); font-weight: 400; }
.catpop-x{
  border: 1px solid rgba(36,78,115,.18);
  background:#fff;
  border-radius: 12px;
  padding: 6px 10px;
  cursor:pointer;
  color: var(--dark-blue);
  font-weight: 400;
}

/* Tabs: For Sale / For Rent / For Lease */
.catpop-tabs{
  display:flex;
  gap: 8px;
  padding: 10px 3px;
  border-bottom: 1px solid rgba(36,78,115,.12);
}
.cattab{
  flex:1;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(36,78,115,.18);
  background:#fff;
  cursor:pointer;
  color: var(--dark-blue);
  font-weight: 800;
  font-size: 9px;
}
.cattab.is-active{
  background: rgba(78,152,217,.14);
}

/* List */
.catpop-list{
  max-height: 260px;
  overflow:auto;
  padding: 10px 12px 14px;
}
.catpop-item{
  width: 100%;
  text-align:left;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(36,78,115,.12);
  background:#fbfdff;
  color: var(--dark-blue);
  cursor:pointer;
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 13px;
}
.catpop-item:last-child{ margin-bottom: 0; }
.catpop-item:hover{ background: rgba(78,152,217,.10); }

@media screen and (max-width:400px) {
  .cat-tile {
   height: auto; 

  }
  .cat-ic img {
    width: 75%;
  }
  .cat-name , .vehicle-cat-name , .cat-pill {
    font-size: 6px;
  }
  .catbar {
    gap: 5px;
  }
  .purpose-idea , .vehicle-number {
    font-size: 15px;
    
  }
  
}

.js-pill .pill-inner{
  display: inline-block;
  transform: translateY(0);
  transition: transform .35s ease;
  will-change: transform;
}

.js-pill.is-anim .pill-inner{
  transform: translateY(-200%);
}

.js-pill{position:relative;display:inline-block;overflow:hidden;vertical-align:middle}
.js-pill .pill-inner{display:inline-block;transform:translateY(0);transition:transform .35s ease;will-change:transform}
.js-pill.is-anim .pill-inner{transform:translateY(-200%)}

.cat-ic-vehicle > img { 
  width: 100%;
}

/* Tick right, text left */
.catpop-check{
  display:flex;
  align-items:center;
  justify-content:space-between;  /* push ends */
  gap:12px;
  padding:10px 12px;
  cursor:pointer;
  width:100%;
}

.catpop-check-text{
  flex:1;                 /* stay left and take space */
  text-align:left;
}

.catpop-check input{
  width:18px;
  height:18px;
  flex:0 0 auto;          /* keep right */
  cursor:pointer;
  margin-left:12px;
}

.catpop-check:hover{
  background:rgba(0,0,0,0.04);
  border-radius:10px;
}


/* Other Filters */

.other-filters > select {
  width: 100%;
  text-align:center;
  padding: 10px 4px;
  border-radius: 14px;
  border: 1px solid rgba(36,78,115,.12);
  background:#fbfdff;
  color: var(--dark-blue);
  cursor:pointer;
  margin-bottom: 8px;
  font-size: 9px;
}
.other-filters {
  width: 33%;
}
.vehicle-filter-section {
  padding-top: 10px;
}
.vehicle-brand-logo {
  width: 30px;
}
.vehicle-number {
  color: var(--dark-blue);
  padding: 5px;
  font-weight: 600;
  }
.purpose-idea {padding: 5px;}
.pc-body {
  padding: 5px;
}

/* All Selections Section */

.all-selections {
  flex-wrap: wrap;
  margin: 5px 0;
}
.single-selections {
  border: 1px solid rgba(36,78,115,.18);
  border-radius: 14px;
  background: #fff;
  padding: 14px 12px;
  text-align: left;
  color: var(--dark-blue);
  margin: 5px 0;
  font-size: 10px;
}

/* card video */

.pc-img{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
}

.pc-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.pc-video{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:none;
  object-fit:cover;
  background:#000;
}