/* ═══════════════════════════════════════════════════
   Property Listings Pro – Pixel-Perfect v4
   Font: Montserrat  |  Exact screenshot match
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

.proplp-root {
  font-family: 'Montserrat', sans-serif;
  color: #111;
  width: 100%;
}

/* ════════════════════════════════════════
   FILTER BAR
════════════════════════════════════════ */
.proplp-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid #E8E8E8;
    border-top: 1px solid #E8E8E8;

}

/* Pill button base */
.proplp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #D4D4D4;
  border-radius: 13px;
  padding: 13px 17px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  position: relative;
  user-select: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: border-color .14s, background .14s;
}

.proplp-filter-btn {
    width: 16%;
}
div#proplp-more-btn {
    width: 12%;
    justify-content: space-around;
}
div#proplp-more-btn img {
    width: 2.4px;
}
div#community-wrap {
    width: 20%;
}

.proplp-filter-bar {
    justify-content: space-between;
}

input#proplp-keyword::placeholder {
    font-size: 15px;
    font-weight: 500;
    color: #111;
}
.proplp-results-ctrl.proplp-map-btn {
    display: none;
}
.proplp-filter-btn:hover { border-color: #999; }

/* Chevron */
.proplp-chevron {
  width: 10px; height: 6px;
  color: #777; flex-shrink: 0;
  transition: transform .18s;
}
.proplp-dropdown.proplp-open .proplp-chevron,
.proplp-sm-drop.proplp-open .proplp-chevron { transform: rotate(180deg); }

/* Community / building search pill */
.proplp-search-wrap { gap: 7px; }
.proplp-search-ico  { width: 15px; height: 15px; color: #777; flex-shrink: 0; }
.proplp-search-input {
  border: none; outline: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px; font-weight: 500;
  color: #111; background: transparent; flex: 1; min-width: 0;
}
.proplp-search-input::placeholder { color: #999; font-weight: 400; }

/* More Filters */
.proplp-more-btn svg { width: 16px; height: 13px; color: #555; }

/* ════════════════════════════════════════
   DROPDOWN MENUS
════════════════════════════════════════ */
.proplp-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  min-width: 185px;
  background: #fff;
  border: 1.5px solid #E0E0E0;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  z-index: 9999;
  padding: 5px;
  max-height: 260px;
  overflow-y: auto;
}
.proplp-dropdown.proplp-open    .proplp-drop-menu,
.proplp-search-wrap.proplp-open .proplp-drop-menu,
.proplp-sm-drop.proplp-open     .proplp-drop-menu { display: block; }

.proplp-drop-item {
  padding: 9px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 500; color: #333;
  border-radius: 7px; cursor: pointer;
  transition: background .1s;
}
.proplp-drop-item:hover { background: #F5F5F5; }
.proplp-drop-item.proplp-drop-active { background: #F0F0F0; font-weight: 600; color: #111; }

.proplp-price-menu, .proplp-community-menu { min-width: 200px; }
.proplp-sm-drop .proplp-drop-menu { left: auto; right: 0; min-width: 165px; }

/* ════════════════════════════════════════
   MORE FILTERS MODAL
════════════════════════════════════════ */
.proplp-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.38); z-index: 99999;
  align-items: center; justify-content: center;
}
.proplp-modal-overlay.proplp-open { display: flex; }
.proplp-modal {
  background: #fff; border-radius: 16px;
  width: 460px; max-width: 95vw;
  box-shadow: 0 20px 56px rgba(0,0,0,.16);
}
.proplp-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #F0F0F0;
  font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700;
}
.proplp-modal-close {
  width: 30px; height: 30px; background: #F5F5F5; border: none;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.proplp-modal-close svg { width: 11px; height: 11px; }
.proplp-modal-body { padding: 20px 24px; }
.proplp-modal-row { margin-bottom: 20px; }
.proplp-modal-row:last-child { margin-bottom: 0; }
.proplp-modal-row label {
  display: block; font-size: 11px; font-weight: 700; color: #888;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.proplp-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.proplp-chip {
  padding: 7px 16px; background: #F5F5F5;
  border: 1.5px solid #E2E2E2; border-radius: 20px;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500;
  color: #444; cursor: pointer; transition: all .13s;
}
.proplp-chip:hover { border-color: #CCC; }
.proplp-chip.proplp-chip-active { background: #111; border-color: #111; color: #fff; }
.proplp-modal-foot {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 14px 24px; border-top: 1px solid #F0F0F0;
}
.proplp-modal-reset {
  background: none; border: 1.5px solid #E0E0E0; border-radius: 8px;
  padding: 9px 18px; font-family: 'Montserrat', sans-serif;
  font-size: 13.5px; font-weight: 600; color: #666; cursor: pointer;
}
.proplp-modal-apply {
  background: #111; border: none; border-radius: 8px;
  padding: 9px 22px; font-family: 'Montserrat', sans-serif;
  font-size: 13.5px; font-weight: 700; color: #fff; cursor: pointer;
}

/* ════════════════════════════════════════
   RESULTS BAR  — bordered pill-row
   "Properties For Sale in Dubai  |  Results 1400"
   then:  Show [cat▾]  |  Sort ≡  | Most Recent ▾  |  Map View
════════════════════════════════════════ */
.proplp-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  margin: 14px 0 20px;
  border: 1.5px solid #D8D8D8;
  border-radius: 10px;
  gap: 12px;
  flex-wrap: wrap;
}

.proplp-results-left {
  display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap;
}
.proplp-results-label {
  font-size: 13px; font-weight: 500; color: #333;
}
.proplp-results-label #proplp-community-label { font-weight: 700; color: #111; }
.proplp-results-count {
  font-size: 13px; font-weight: 500; color: #555;
}
.proplp-results-count strong { font-weight: 700; color: #111; }
.proplp-res-pipe { color: #CCC; font-size: 14px; line-height: 1; }

.proplp-results-right {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.proplp-results-ctrl {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #555; position: relative;
}
.proplp-ctrl-label { font-weight: 600; color: #222; font-size: 13px; }
.proplp-sort-ico { width: 13px; height: 11px; }

/* Small inline dropdown (results bar) */
.proplp-sm-drop {
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; position: relative;
}
.proplp-sm-drop .proplp-filter-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600; color: #111;
  cursor: pointer;
}

.proplp-map-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #333; cursor: pointer;
}
.proplp-map-btn svg { width: 15px; height: 15px; }

/* ════════════════════════════════════════
   CARDS
════════════════════════════════════════ */
.proplp-cards { display: flex; flex-direction: column; gap: 16px; }

.proplp-cards.proplp-loading { opacity: .45; pointer-events: none; transition: opacity .18s; }

/* Single card */
.proplp-card {
  display: flex;
  border: 1.5px solid #E2E2E2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s, border-color .18s;
}
.proplp-card:hover { box-shadow: 0 4px 22px rgba(0,0,0,.10); border-color: #C8C8C8; }

/* ── Image block ── */
.proplp-card-images {
  display: flex;
  flex: 0 0 540px;
  height: 370px;
  text-decoration: none;
  flex-shrink: 0;
}
.proplp-thumb-item img {
    height: 100% !important;
    object-fit: cover !important;
}
/* Main image — 73% of image block */
.proplp-main-img {
  flex: 0 0 370px;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #E4E4E4;
}
.proplp-main-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .38s ease;
}
.proplp-card:hover .proplp-main-img img { transform: scale(1.04); }

/* Photo count badge */
 .proplp-photo-count {
    position: absolute;
    right: 15px;
    bottom: 15px;
    background: rgba(0, 0, 0, .52);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px 7px 13px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    border-radius: 36px;
}
.proplp-photo-count svg { width: 13px; height: 11px; }

/* 3 stacked thumbnails */
.proplp-thumbs {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 3px; padding-left: 3px;
}
.proplp-thumb-item {
  flex: 1; overflow: hidden; background: #E0E0E0;
}
.proplp-thumb-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .38s ease;
}
.proplp-card:hover .proplp-thumb-item img { transform: scale(1.04); }

/* Placeholder */
.proplp-img-placeholder {
  width: 100%; height: 100%; background: #EBEBEB;
  display: flex; align-items: center; justify-content: center;
}
.proplp-img-placeholder svg { width: 24px; height: 24px; color: #C8C8C8; }

/* ── Details block ── */
.proplp-card-details {
    flex: 1;
    padding: 42px 36px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: center;
}

/* Price */
.proplp-price {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    letter-spacing: 0;
    line-height: 1.1;
}

/* Title */
.proplp-card-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}
.proplp-card-title:hover { color: #111; }

/* Location */
 .proplp-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #232323;
}
.proplp-location svg { width: 11px; height: 14px; color: #888; flex-shrink: 0; }

/* Specs */
.proplp-specs {
  display: flex; align-items: center;
  gap: 9px; font-size: 13px; color: #444; flex-wrap: wrap;
}
.proplp-spec-type { font-weight: 500; }
.proplp-spec-sep  { color: #CCC; }
.proplp-spec { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.proplp-spec svg { width: 15px; height: 13px; color: #888; }

/* Agent */
.proplp-agent { display: flex; align-items: center; gap: 11px; margin-top: 2px; }
.proplp-agent-photo {
  width: 42px !important; height: 42px !important;
  border-radius: 50% !important; object-fit: cover; flex-shrink: 0;
  border: 2px solid #EBEBEB;
}
.proplp-agent-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: #E5E5E5; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #888; flex-shrink: 0;
}
.proplp-agent-name { font-size: 14px; font-weight: 600; color: #111; }

/* CTA buttons */
.proplp-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.proplp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #111;
    background: transparent;
    border: 1.5px solid #000000;
    border-radius: 50px;
    padding: 10px 22px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    white-space: nowrap;
}
.proplp-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.proplp-btn:hover { border-color: #111; background: #FAFAFA; color: #111; text-decoration: none; }
.proplp-btn-wa:hover { border-color: #25D366; color: #25D366; }

/* No results */
.proplp-no-results {
  text-align: center; padding: 56px 20px;
  color: #AAAAAA; font-size: 15px;
}
.proplp-no-results svg { width: 36px; height: 36px; display: block; margin: 0 auto 14px; }

/* ════════════════════════════════════════
   PAGINATION
════════════════════════════════════════ */
.proplp-pagination {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 45px 0 6px; gap: 16px;
}
.proplp-pag-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; color: #333;
  border: 1.5px solid #D0D0D0; border-radius: 50px;
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif; font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.proplp-pag-btn:hover:not(.proplp-pag-dis) {
  border-color: #999; background: #F8F8F8;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.proplp-pag-dis { opacity: .32; pointer-events: none; }

.proplp-pag-center {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: #555;
}
.proplp-pag-sel-wrap { position: relative; display: inline-flex; align-items: center; }
.proplp-pag-sel {
  font-family: 'Montserrat', sans-serif; font-size: 13.5px; font-weight: 700; color: #111;
  background: #fff; border: 1.5px solid #D0D0D0; border-radius: 8px;
  padding: 7px 30px 7px 14px; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color .13s;
}
.proplp-pag-sel:focus { border-color: #888; }
.proplp-pag-chev {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 6px; color: #888; pointer-events: none;
}

/* ════════════════════════════════════════
   RESPONSIVE — TABLET (≤860px)
════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Card: stack vertically */
  .proplp-card { flex-direction: column; }

  /* Image block: full width, fixed height, hide side thumbs */
  .proplp-card-images {
    flex: none;
    width: 100%;
    height: 220px;
  }
  .proplp-main-img {
    flex: 1 1 100%;
    height: 100%;
  }
  .proplp-thumbs { display: none; }

  /* Details block */
  .proplp-card-details {
    padding: 16px 16px 20px;
    gap: 12px;
  }

  /* CTA buttons: smaller on tablet */
  .proplp-btn {
    font-size: 14px;
    padding: 9px 18px;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (≤600px)
════════════════════════════════════════ */
@media (max-width: 1100px) {

  /* ── Filter bar scroll: wrapper handles overflow-x, bar stays visible ── */
  .proplp-filter-scroll-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .proplp-filter-scroll-wrap::-webkit-scrollbar { display: none; }

  /* ── Filter bar: no overflow here so dropdowns aren't clipped ── */
  .proplp-filter-bar {
    flex-wrap: nowrap;
    overflow: visible !important;
    gap: 8px;
    padding: 12px 0;
    justify-content: flex-start;
  }
  .proplp-filter-bar::-webkit-scrollbar { display: none; }

  /* ── Dropdowns: fixed so they escape any overflow context ── */
  .proplp-filter-bar .proplp-drop-menu,
  .proplp-filter-bar .proplp-community-menu {
    position: fixed !important;
    top: auto;
    left: auto;
    z-index: 99999;
  }

  /* All filter buttons: auto-width, no % constraints */
  .proplp-filter-btn {
    flex: 0 0 auto;
    width: auto !important;          /* override inline fixed widths */
    font-size: 13px;
    padding: 10px 14px;
    white-space: nowrap;
    border-radius: 11px;
  }
  div#community-wrap {
    width: auto !important;
    min-width: 160px;
  }
  div#proplp-more-btn {
    width: auto !important;
    gap: 8px;
    justify-content: center;
  }
  div#proplp-more-btn img { width: 3px; }

  /* Keyword input inside search pill */
  .proplp-search-input { font-size: 13px; min-width: 110px; }
  input#proplp-keyword::placeholder { font-size: 13px; }

  /* ── Results bar: clean vertical stack ── */
  .proplp-results-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
    margin: 12px 0 16px;
  }
  .proplp-results-left {
    flex-wrap: wrap;
    gap: 6px;
  }
  .proplp-results-right {
    flex-wrap: wrap;
    gap: 10px;
  }
  .proplp-results-label,
  .proplp-results-count { font-size: 12px; }

  /* ── Cards ── */
  .proplp-card-images { height: 195px; }

  .proplp-card-details {
    padding: 14px 14px 18px;
    gap: 10px;
  }

  .proplp-price { font-size: 17px; }

  .proplp-card-title { font-size: 14px; }

  .proplp-location { font-size: 13px; }

  .proplp-specs { font-size: 12px; gap: 7px; }

  .proplp-agent-name { font-size: 13px; }

  .proplp-agent-photo,
  .proplp-agent-avatar { width: 36px !important; height: 36px !important; }

  /* CTA buttons: compact on mobile */
  .proplp-cta { gap: 8px; }
  .proplp-btn {
    font-size: 13px;
    padding: 9px 16px;
  }

  /* ── Pagination ── */
  .proplp-pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 30px 0 6px;
  }
  .proplp-pag-btn { font-size: 12.5px; padding: 9px 18px; }

  /* ── More Filters modal ── */
  .proplp-modal {
    width: 92vw;
    border-radius: 14px;
  }
  .proplp-modal-head { padding: 16px 18px; font-size: 14px; }
  .proplp-modal-body { padding: 16px 18px; }
  .proplp-modal-foot { padding: 12px 18px; }
  .proplp-chip { font-size: 12px; padding: 6px 13px; }
}


/* ════════════════════════════════════════════════════════
   SEARCH BAR ONLY  –  3-field design (image-matched)
════════════════════════════════════════════════════════ */
.proplp-search-bar-only {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 50px;
  overflow: visible;
  padding: 6px 6px 6px 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,.10);
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

/* ── Each field pill ── */
.proplp-sb-field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

/* Text input field */
.proplp-sb-text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 8px;
  border-right: 1.5px solid #e0e0e0;
}
.proplp-sb-text-wrap .proplp-search-ico {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #888;
}
.proplp-sb-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #222;
  width: 100%;
  padding: 10px 0;
}
.proplp-sb-input::placeholder { color: #aaa; }

/* Dropdown fields */
.proplp-sb-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  cursor: pointer;
  border-right: 1.5px solid #e0e0e0;
  user-select: none;
}
.proplp-sb-dropdown:last-of-type { border-right: none; }

.proplp-sb-label {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  flex: 1;
}
.proplp-sb-dropdown .proplp-chevron {
  width: 10px;
  height: 6px;
  color: #555;
  flex-shrink: 0;
  transition: transform .2s;
}
.proplp-sb-dropdown.proplp-open .proplp-chevron {
  transform: rotate(180deg);
}

/* Dropdown menu */
.proplp-sb-field .proplp-drop-menu,
.proplp-sb-text-wrap .proplp-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  z-index: 9999;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px 0;
}
.proplp-sb-dropdown.proplp-open .proplp-drop-menu,
.proplp-sb-text-wrap.proplp-open .proplp-drop-menu {
  display: block;
}
.proplp-sb-field .proplp-drop-item,
.proplp-sb-text-wrap .proplp-drop-item {
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background .15s;
}
.proplp-sb-field .proplp-drop-item:hover,
.proplp-sb-text-wrap .proplp-drop-item:hover,
.proplp-sb-field .proplp-drop-item.proplp-drop-active,
.proplp-sb-text-wrap .proplp-drop-item.proplp-drop-active {
  background: #f5f5f5;
  color: #111;
}

/* ── Search Button ── */
.proplp-sb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #b5963e;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s;
  letter-spacing: .2px;
}
.proplp-sb-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}
.proplp-sb-btn:hover { opacity: .88; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .proplp-search-bar-only {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 10px;
    gap: 6px;
  }
  .proplp-sb-field,
  .proplp-sb-text-wrap {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1.5px solid #f0f0f0;
    padding: 8px 12px;
  }
  .proplp-sb-dropdown:last-of-type,
  .proplp-sb-text-wrap { border-bottom: none; }
  .proplp-sb-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}

/* Results-only mode: hide filter bar */
.proplp-results-only .proplp-filter-bar { display: none !important; }
