.field-label {
  font-size: 12px;
  font-weight: bold;
}

.property-search-m {
  margin-right: auto;
}

.property-search {
  display: flex;
  align-items: center;
  max-width: 420px;
  /* adjust as needed */
  border: 1px solid #dcdcdc;
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
}

.property-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 16px;
  font-size: 14px;
  border-right: 1px solid #e0e0e0;
  color: #999999;
}

.property-search input::placeholder {
  color: #9e9e9e;
}

.property-search .search-btn {
  border: none;
  background: #f8f8f8;
  padding: 9px 20px;
  cursor: pointer;
  font-size: 16px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  color: #333;
}

.property-search .search-btn:hover {
  background: #f5f5f5;
}


.bell_noti {
  position: relative;
  margin-top: 10px;
}

.bell_noti p {
  position: absolute;
  top: -8px;
  background: red;
  border-radius: 10px;
  height: 16px;
  width: 24px;
  font-size: 11px;
  text-align: center;
  color: #fff;
  font-weight: bold;
  right: -2px;
}

.img-icons>i>span {
  font-size: 12px;
  margin-left: 5px;
}

/* Filters */
.filters {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 1rem 0rem;
  flex-wrap: wrap;
  align-items: center;
}

.filters button {
  position: relative;
  padding: 8.2px 10px;
  /* room for chevron */
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  max-width: 150px;
  color: #333333;
  /* new: keep content on single line and truncate with ellipsis */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#add-locations-btn {
  padding: 7px 10px;
}

.filters button i {
  color: #CCC;
}

/* FontAwesome chevron (solid) */
.filters button::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 0.85rem;
  color: #6b7280;
  transition: transform 180ms ease, color 150ms ease;
  pointer-events: none;
}

/* hide chevrons for all filter buttons by default */
.filters button::after {
  display: none;
}

/* re-enable chevron specifically for the Approvals button */
#btn-approvals::after {
  content: "\f078";
  /* FontAwesome chevron */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 0.85rem;
  color: #6b7280;
  transition: transform 180ms ease, color 150ms ease;
  pointer-events: none;
}

/* rotate when approvals expanded */
#btn-approvals[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
  color: #0056b2;
}

.filter-section {
  padding: 0 32px;
}

.filters .active {
  background: #f1ebff;
  border-color: #4141ff;
  color: #4141ff;
}

.filters .active i {
  color: #3333ff;
}

/* each filter control */
.filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

/* select styling */
.filters select {
  padding: 0.45rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  min-width: 150px;
  font-size: 14px;
}

/* multiple select (locations) better size on desktop */
.filters select[multiple] {
  min-width: 220px;
}

.selected-values {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  color: #374151;
  background: transparent;
  padding: 0;
  border-radius: 999px;
  white-space: nowrap;
}

/* individual pill */
.selected-values .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff6e6;
  padding: 8px 20px 8px 8px;
  border-radius: 5px;
  font-size: 13px;
  color: #666666;
  line-height: 1;
  max-width: 180px;
  text-overflow: ellipsis;
  border: 1px solid #f5e2c0;
  position: relative;
}

/* remove 'x' inside pill */
.selected-values .pill .remove {
  background: #ccc;
  border: 1px solid #e6e6e6;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  color: #6b7280;
  padding: 0;
  cursor: pointer;
  position: absolute;
  right: -14px;
}



/* "+N more" pill */
.selected-values .more-pill {
  background: transparent;
  color: #6b7280;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 13px;
}

.listing {
  display: flex;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.listing img {
  width: 280px;
  object-fit: cover;
}

.listing img.sample-img {
  width: 350px !important;
  height: 240px !important;
  object-fit: cover;
}

.listing-content {
  padding: 1rem;
  flex: 1;
}

.location {
  margin: 0.3rem 0;
}

.price {
  color: #0a8f08;
  font-weight: bold;
  margin: 0.5rem 0;
}

.desc {
  margin-bottom: 5px;
}

.actions button {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.contact-btn {
  padding: 8px 18px !important;
}

.chat {
  background: #e8f5e9;
  color: #2e7d32;
}

.contact {
  background: #1976d2;
  color: #fff;
  margin-left: 0.5rem;
}

.filter-panel label.active {
  background: #eeeefb;
  border-color: #0056b2;
  color: #666666;
}

/* Filter Panel Close Button */
.filter-panel {
  position: relative;
  box-shadow: 1px 1px 1px #ddd, -1px 0px 1px #ddd;
}

.locations-field .filter-panel {
  flex-direction: column;
  display: flex;
}

/* close button in filter dropdowns */
.filter-panel .filter-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
  padding: 4px;
  border-radius: 4px;
}

.filter-panel .filter-close:hover {
  background: #f3f4f6;
}

/* Two-column layout for listings: left 70%, right 30% */
.listings-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* left column for listings (70%) */
.left-col {
  flex: 0 0 750px;
}

/* right column sidebar (30%) */
.right-col {
  flex: 0 0 30%;
}

/* make listing cards take full width of left column */
.left-col .listing {
  width: 100%;
}

/* simple sidebar block styling */
.sidebar .sidebar-block {
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Verified Toggle Button */
.verified-toggle {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-size: 13px;
}


/* hide chevron for verified/corner toggle buttons and adjust padding */
.filters button.verified-toggle::after,
.filters .verified-toggle::after {
  display: none;
}

.verified-toggle {
  /* reduce right padding (chevron space removed) */
  padding-right: 0.9rem;
}

/* Reset Button */
.reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-size: 16px;
}

.reset-btn:hover {
  background: #f8fafc;
  border-color: #d1d5db;
}

/* ensure icon shows correctly */
.reset-btn i {
  pointer-events: none;
}

/* don't show the filters chevron for the reset button */
.filters .reset-btn::after {
  display: none;
}

/* make checkbox inputs rounded and set check color */
.filter-panel label,
.mobile-checkbox,
.filter-panel .mobile-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .15s, box-shadow .15s;
}

.filter-panel input[type="checkbox"],
.mobile-checkbox input[type="checkbox"],
.filters-mobile input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  /* modern way to change check color */
  accent-color: #3333ff;
  /* rounded box where supported */
  border-radius: 6px;
}

.custom-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

/* hide default checkbox */
.custom-check input {
  display: none;
}

/* checkbox box */
.check-ui {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid #2563eb;
  /* blue */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
}

/* tick icon */
.check-icon {
  width: 12px;
  height: 12px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}

/* text */
.check-text {
  color: #1f2937;
}

/* unchecked state */
.custom-check input:not(:checked)+.check-ui {
  background: transparent;
}

.custom-check input:not(:checked)+.check-ui .check-icon {
  display: none;
}

/* visual active state (uses :has() when available) */
.filter-panel label:has(input[type="checkbox"]:checked),
.mobile-checkbox:has(input[type="checkbox"]:checked),
.locations-field label:has(input[type="checkbox"]:checked) {
  background: #eeeefb;
  box-shadow: inset 0 0 0 1px rgba(11, 132, 255, 0.06);
}

/* fallback active class toggled by JS for browsers without :has() */
.filter-panel label.active,
.mobile-checkbox.active,
.locations-field label.active {
  background: rgba(11, 132, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(11, 132, 255, 0.06);
}

/* focus styles for accessibility */
.filter-panel input[type="checkbox"]:focus,
.mobile-checkbox input[type="checkbox"]:focus {
  outline: 2px solid rgba(11, 132, 255, 0.12);
  outline-offset: 2px;
}

/* ensure reset button doesn't keep extra right padding reserved for chevrons */
.filters .reset-btn {
  color: #666666;
  padding: 0;
  background: none;
  border: none;
  font-size: 12px;
  width: auto;
  height: auto;
  display: block;
}

.filters .reset-btn .reset-text {
  display: block;
}

.filters .reset-btn i {
  color: #000000;
}

/* Mobile filters overlay visibility + slide animation (right -> left) */
.mobile-filters-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
}

/* when open, enable flex layout */
.mobile-filters-overlay.open {
  display: flex;
}

/* panel slides horizontally from right -> left */
.mobile-filter-panel {
  width: 100%;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 100vh;

  /* start off-screen to the right */
  transform: translateX(110%);
  transition: transform 320ms ease;
  will-change: transform;
}

/* panel visible state (slide in from right) */
.mobile-filters-overlay.open .mobile-filter-panel {
  transform: translateX(0);
}

/* closing state: slide back to right */
.mobile-filters-overlay.closing .mobile-filter-panel {
  transform: translateX(110%);
}

/* ensure filters layout fits mobile */
.mobile-filter-content .filters {
  flex-direction: column;
  gap: 12px;
}

/* footer apply button */
.mobile-filter-footer {
  padding: 12px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
}

/* Mobile filter tabs */
.mobile-filter-tabs {
  display: flex;
  gap: 8px;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.mobile-filter-tabs .mobile-tab-btn {
  flex: 1;
  padding: 8px 0px;
  /* border-radius: 8px; */
  border: none;
  background: #fafafa;
  font-weight: 600;
  cursor: pointer;
  background: no-repeat;
  font-size: 13px;
  white-space: nowrap;
}

.mobile-filter-tabs .mobile-tab-btn.active {
  border-color: #6b5cff;
  color: #2b2bff;
  text-decoration: underline;
}

/* mobile-tab panels */
.mobile-tab,
.mobile-locations-top {
  padding: 10px 0;
}

.mobile-tab[style*="display:none"] {
  display: none !important;
}

.sort-by-txt {
  font-weight: bold;
  white-space: nowrap;
  font-size: 12px;
}

/* search heading shown above listings */
.search-heading {
  display: none;
  padding: 8px 0px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

/* mobile filter header buttons (close / reset) */
.mobile-filter-close,
.mobile-filter-reset {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #374151;
  font-weight: 700;
  padding: 8px 0px;
  border-radius: 8px;
  font-size: 14px;
}


.mobile-filter-close:hover {
  background: #e9eef8;
}

/* reset button subtle */
.mobile-filter-reset {
  background: transparent;
  color: #6b7280;
}

.mobile-filter-reset:hover {
  color: #374151;
}

/* mobile footer submit button full width and visible */
.mobile-filter-footer .btn-primary {
  width: auto;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 15px;
  width: 150px;
}

/* ensure mobile locations top area looks separated */
.mobile-locations-top {
  border-bottom: 1px solid #f1f5f9;
  background: #edeff0;
  border-top: 1px solid #ccc;
}

.details {
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-footer {
  padding: 10px 0 0 0;
  margin-bottom: 0 !important;
  justify-content: initial;
  gap: 35px;
  align-items: flex-start;
}

.price-pill {
  right: 0px;
  top: 15px;
  bottom: inherit;
  width: 80px;
  height: 50px;
  line-height: 15px;
  padding-top: 10px;
}

.img-icons {
  right: 95px;
  top: 15px;
  font-size: 12px;
}

.img-icons>a {
  background: rgba(51, 51, 51, 0.3);
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  font-size: 12px;
}

.img-icons>a img {
  width: 16px !important;
  height: auto !important;
  border-radius: 0 !important;
}

.img-icons>a i {
  color: #fff;
  font-size: 12px;
}

.chat-btn {
  border: 1px solid #93c5fd;
  color: #2563eb;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  background: #f3f3ff;
  cursor: pointer;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-loc>button {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 10px;
  text-align: left;
}

.landbit-mob {
  display: none !important;
}

.price-pill span {
  font-size: 16px;
}

.afterlogin-search {
  display: none;
}

.m-filters-btn {
  display: none !important;
}

/* mobile-specific common spacing and styles */
@media (max-width: 768px) {

  /* apply 10px common spacing for mobile filter rows */
  .filters-mobile .filter {
    padding: 5px 0;
  }

  .filters-mobile .options,
  .locations-field-mobile {
    gap: 10px;
    /* common gap */
  }

  /* mobile checkbox label: bordered, padded, rounded */
  .mobile-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #111827;
    transition: background 150ms, border-color 150ms, box-shadow 150ms;
  }

  /* checked/active state for label (uses :has to detect checked state) */
  .mobile-checkbox:has(input[type="checkbox"]:checked) {
    border-color: #3333ff;
    background: #eef2ff;
    box-shadow: 0 1px 6px rgba(107, 92, 255, 0.08);
    color: #3333ff;
  }

  /* ensure checkbox input itself is visually compact inside label */
  .mobile-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
  }

  /* mobile input common class */
  .mobile-input {
    padding: 8px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-size: 12px;
    background: #fff;
    box-sizing: border-box;
  }

  /* mobile-select: share styling with mobile-input */
  .mobile-select {
    padding: 8px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-size: 12px;
    background: #fff;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
  }

  /* mobile filter content: limit height and enable scrolling (content hidden until scroll) */
  .mobile-filter-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(96vh - 120px);
    /* leave space for header/footer inside overlay */
    padding: 12px;
  }

  /* hide native scrollbars while keeping scrollable behavior */
  .mobile-filter-content::-webkit-scrollbar {
    display: none;
  }

  .mobile-filter-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  /* small spacing: ensure consistent 10px gaps inside filters */
  .filters-mobile .filter {
    gap: 5px;
    margin-top: 8px;
  }

  /* hide the filters row on mobile */


  /* mobile pill remove button (touch-friendly round icon) */
  .mobile-locations-top .selected-values .pill .remove {
    background: #ccc;
    border: 1px solid #e6e6e6;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 8px;
    font-size: 16px;
    color: #6b7280;
    padding: 0;
    cursor: pointer;
  }

  .mobile-locations-top .selected-values .pill .remove:hover {
    background: #fff1f2;
    color: #b91c1c;
    border-color: #fca5a5;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .listing {
    flex-direction: column;
  }

  .listing img {
    width: 100%;
    height: 200px;
  }

  .listing img.sample-img {
    width: 100% !important;
    height: 200px !important;
  }

  .search-bar input {
    width: 100%;
  }

  .filters select,
  .filters select[multiple] {
    min-width: 100%;
  }

  .listings-layout {
    flex-direction: column;
  }

  .left-col,
  .right-col {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* Responsive: large desktops / smaller widescreens */
@media (max-width: 1200px) {
  .left-col {
    flex: 0 0 80%;
  }

  .right-col {
    flex: 0 0 35%;
  }

  .venture-card .card-img {
    flex: 0 0 45%;
    min-height: 200px;
  }
}

/* Responsive: medium screens / laptops */
@media (max-width: 992px) {

  /* stack layout: listings above sidebar */
  .listings-layout {
    flex-direction: column;
    gap: 1rem;
  }

  .left-col,
  .right-col {
    flex: 0 0 100%;
    width: 100%;
  }

  .right-col {
    order: 2;
  }

  .left-col {
    order: 1;
  }

  /* make cards slightly taller and image column wider on tablets */
  .venture-card {
    margin: 0 10px;
  }

  .venture-card .card-img {
    flex: 0 0 48%;
    min-height: 200px;
  }

  .venture-card .card-body {
    padding: 16px;
  }

  /* reduce side paddings for better fit */
  .search-bar input {
    width: 100%;
  }
}

/* Responsive: tablets and large phones */
@media (max-width: 768px) {

  /* stacked cards: image above body */
  .venture-card {
    flex-direction: column;
    margin: 0 8px;
    border-radius: 12px;
  }

  .venture-card .card-img {
    width: 100%;
    min-height: 180px;
    flex: 0 0 auto;
  }

  .venture-card .card-body {
    width: 100%;
    padding: 14px;
  }

  /* icons and price pill: keep icon row visible, price pill moves to bottom (existing rule) */
  .img-icons {
    top: 8px;
    right: 10px;
    height: 32px;
    gap: 6px;
  }

  .venture-card .card-img .price-pill,
  .landbit-price,
  .farmland-price {
    top: auto;
    bottom: 20%;
    right: 0px;
  }

  /* results header stacks */
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sort-wrap {
    align-self: stretch;
    display: flex;
    justify-content: flex-end;
  }

  /* touch-friendly icon sizing */
  .img-icons i,
  .video-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .price-pill {
    font-size: 14px;
    padding: 10px;
    border-radius: 20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  /* reduce overall margins */
  .left-col .venture-card {
    margin-bottom: 25px;
  }
}

/* Responsive: small phones */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }


  .logo {
    font-size: 18px;
  }

  .search-bar input {
    padding-right: 44px;
    width: 100%;
    max-width: none;
  }

  .results-header {
    margin: 8px 4px;
  }

  .sort-wrap .sort-by {
    width: 100%;
  }

  .venture-card {
    margin: 0 6px;
    border-radius: 10px;
  }

  .venture-card .card-body {
    padding: 12px;
  }

  .card-footer {
    padding: 10px 0px 0px 0px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-footer .actions {
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
  }

  .img-icons {
    right: 12px;
    top: 8px;
    height: 32px;
    gap: 6px;
  }

  .price-pill {
    right: 10px;
    bottom: 8px;
    font-size: 12px;
    padding: 10px 8px;
  }

  .no-results {
    margin: 8px 6px;
    padding: 14px;
    font-size: 14px;
  }
}

/* Image modal overlay */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1400;
  padding: 20px;
}

.image-modal .image-modal-inner {
  position: relative;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  display: block;
}

.image-modal .image-modal-close {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Image modal navigation buttons and counter */
.image-modal .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #111;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.image-modal .nav-btn.prev {
  left: 12px;
}

.image-modal .nav-btn.next {
  right: 12px;
}

.image-modal .nav-btn:hover {
  transform: translateY(-50%) scale(1.03);
}

.image-modal .image-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 12px;
  z-index: 10;
}

/* keep close button above nav */
.image-modal .image-modal-close {
  z-index: 12;
}

/* Wrapper */
.locations-field .filter-panel {
  width: 260px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Search container */
.locations-field .dropdown-search {
  position: relative;
  padding: 8px 12px;
}

/* Search icon */
.locations-field .dropdown-search i {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0a6;
  font-size: 14px;
}

/* Search input */
.locations-field .location-search-input {
  width: 100%;
  padding: 10px 12px 10px 34px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  outline: none;
  font-size: 13px;
  transition: all 0.2s ease;
}

.locations-field .location-search-input:focus {
  border-color: #3f6df6;
  background: #fff;
}

.locations-field .location-search-input::placeholder {
  color: #9aa0a6;
}

/* List */
.locations-field .locations-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 6px 0;
}

/* Item */
.locations-field .location-item {
  position: relative;
  padding: 10px 18px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover */
.locations-field .location-item:hover {
  background: #f5f7ff;
}

/* Selected */
.locations-field .location-item.selected {
  color: #3f6df6;
  font-weight: 500;
}

/* Font Awesome check icon */
.locations-field .location-item.selected::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #3f6df6;
  line-height: 1;
}

/* Scrollbar */
.locations-field .locations-list::-webkit-scrollbar {
  width: 6px;
}

.locations-field .locations-list::-webkit-scrollbar-thumb {
  background: #dcdcdc;
  border-radius: 10px;
}

.locations-field .locations-list::-webkit-scrollbar-track {
  background: transparent;
}


/* small-screen adjustments keep modal responsive */
@media (max-width: 480px) {
  .image-modal .image-modal-inner {
    padding: 8px;
  }

  .image-modal .image-modal-close {
    width: 32px;
    height: 32px;
    font-size: 16px;
    top: -6px;
    right: -6px;
  }
}

/* No Results Message */
.no-results {
  display: none;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 12px 0;
  text-align: center;
  color: #374151;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-size: 15px;
  line-height: 1.4;
}

.no-results strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: #111827;
}

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0px 0 15px 0;
}

.search-heading {
  display: block;
  /* JS will toggle */
  font-weight: 700;
  color: #000000;
  font-size: 12px;
}

.sort-wrap .sort-by {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 36px 8px 10px;
  /* leave room on the right for the chevron */
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 25px;
  font-size: 13px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* keep header compact on small screens */
@media (max-width: 768px) {
  .results-header {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }

  .sort-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
  }
}

/* global checkbox size override */
input[type="checkbox"] {
  width: 15px;
  height: 15px;
  /* keep native appearance for accessibility */
  -webkit-appearance: checkbox;
  appearance: checkbox;
  vertical-align: middle;
  /* center inline checkbox with surrounding text */
}

/* Desktop checkbox sizing (was 16px) */
.desktop-checkbox input[type="checkbox"] {
  margin: 0 6px 0 0;
  width: 15px;
  height: 15px;
}

/* Mobile checkbox sizing (was 16px) */
.mobile-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
}

/* Desktop checkbox styling (compact version of .mobile-checkbox) */
.desktop-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #111827;
  transition: background 120ms, border-color 120ms, box-shadow 120ms;
}

.desktop-checkbox input[type="checkbox"] {
  margin: 0 6px 0 0;
  width: 15px;
  height: 15px;
}

/* wrapper for button + selected-values to position dropdown */
.filter .field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* default dropdown container used by JS (kept inline positioning for specific cases above) */
.filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1000;
}

.l_ft {
  width: 100%;
}

/* align checkbox + label content vertically center inside dropdown options */
.filter-panel label {
  padding: 7px;
  /* display: inline-flex; */
  align-items: center;
  gap: 5px;
  font-size: 12px;
  border: 1px solid #CCC;
  border-radius: 5px;
  margin-bottom: 5px;
  white-space: nowrap;
  color: #666666;
}

.filter-panel label:last-child {
  margin-bottom: 0;
}

/* ensure checkbox inside dropdown has consistent margin/alignment */
.filter-panel input[type="checkbox"] {
  margin: 0;
  /* spacing handled by gap on label */
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* Make venture card image + body sit side-by-side on desktop */
.venture-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin: 0;
  margin-bottom: 20px;
}

/* Image column: fixed-ish width while staying responsive */
.venture-card .card-img {
  flex: 0 0 350px;
  min-width: 220px;
  /* avoid becoming too small */
  max-width: 350px;
  height: auto;
  /* allow image area to determine height */
  display: block;
}

.badges {
  top: 15px;
  gap: 3px;
}

/* Ensure the image fills the column */
.venture-card .card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 15px 0 0 15px;
}

/* Body column: take remaining space, stack content vertically */
.venture-card .card-body {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding: 15px;
}

.m-btn-city {
  border: none;
  background: none;
}

.m-btn-city .fa-location-dot {
  color: #000000;
}

.landbit-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  color: #fff;

}

.landbit-icons a {
  background: rgba(51, 51, 51, 0.3);
  border-radius: 24px;
  /* width: 30px; */
  height: 30px;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landbit-desk a {
  width: 30px;
}

.landbit-icons a img {
  width: 16px !important;
  height: auto !important;
  display: block !important;
}

.landbit-icons a i {
  font-size: 14px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Responsive: stack cards on small screens (keep existing mobile behavior) */
@media (max-width: 768px) {
  .venture-card {
    flex-direction: column;
  }

  .venture-card .card-img {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: 180px;
    /* match existing mobile height */
  }

  .venture-card .card-img img {
    border-radius: 0px 0 0 0px;
  }

  .venture-card .card-body {
    width: 100%;
  }
}

.mobile-filter-header {
  display: flex;
  justify-content: space-between;
  /* push buttons to edges */
  align-items: center;
  gap: 10px;
  /* space between items if they don't stretch */
  padding: 8px 12px;
  background: #edeff0;
}

.change_city {
  position: relative;
  /* ensure dropdown positions relative to this row */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #edeff0;
  border-bottom: 1px solid #eee;
}

/* dropdown positioned under the button, right-aligned */
.city-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  z-index: 1300;
  min-width: 180px;
}

/* small adjustments for panel inside dropdown */
.city-dropdown .filter-panel {
  padding: 6px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

/* individual city button */
.m-city-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  color: #333333;
}

.m-city-item .fa-location-dot {
  font-size: 14px;
  color: #333333;
}

.m-city-item:hover,
.m-city-item:focus {
  background: #f3f4f6;
  outline: none;
}

/* ensure dropdown fits on very small screens */
@media (max-width: 480px) {
  .city-dropdown {
    right: 8px;
    left: 8px;
    min-width: auto;
  }
}

.change-city-text {
  display: inline-flex;
  /* horizontal layout */
  align-items: center;
  /* vertical center */
  gap: 10px;
  /* spacing between label and city */
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}

/* ensure heading inside stays inline and doesn't add extra margin/line-break */
.change-city-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  display: inline-block;
  line-height: 1;
}

/* if the label span needs a lighter weight */
.change-city-text span:first-child {
  font-weight: 600;
  font-size: 14px;
}

/* explicitly remove any dropdown/chevron visuals or background for the desktop locations-selected area */
#locations-selected,
.locations-field .selected-values {
  background-image: none !important;
  background-repeat: none !important;
  background-position: initial !important;
}

.venture-card .card-body {
  flex: 1 1 auto;
}

/* remove any pseudo-element (chevron) if present */
#locations-selected::after,
.locations-field .selected-values::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
}

/* clear button next to locations-selected (desktop) */
.locations-clear {
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-left: 6px;
  border-radius: 6px;
  font-size: 14px;
}

.locations-clear:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111827;
}

/* keep layout: ensure clear button doesn't overlap dropdown */
.locations-field {
  /* existing inline style kept, this ensures relative positioning used by dropdown */
  /* ...existing styles... */
}

.fa-arrow-right-arrow-left {
  display: none;
}

/* on very small screens hide desktop clear button (mobile has its own controls) */
@media (max-width: 768px) {
  .locations-clear {
    display: none;
  }
}

@media (max-width: 768px) {

  /* ensure venture card stacks vertically on mobile: image above body */
  .venture-card {
    flex-direction: column !important;
  }

  .venture-card .card-img {
    order: 0 !important;
    width: 100% !important;
    flex: 0 0 auto !important;
  }

  .venture-card .card-body {
    order: 1 !important;
    width: 100% !important;
    padding: 10px;
  }

  .venture-card .card-img img {
    object-fit: cover !important;
    border-radius: 12px 12px 0 0 !important;
  }

  /* adjust overlayed elements so they remain visible */
  .venture-card .img-icons {
    right: 86px !important;
    top: 12px !important;
  }

  .venture-card .landbit-icons {
    right: 10px !important;
    top: 12px !important;
  }

  .landbit-desk {
    display: none !important;
  }

  .landbit-mob {
    display: flex !important;
  }

  .landbit-icons a {
    background: rgba(51, 51, 51, 0.3);
    border-radius: 24px;
    /* width: 32px; */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;

  }

  .landbit-desk a {
    width: 32px;
  }

  .landbit-icons a i {
    font-size: 14px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .afterlogin {
    display: none;
  }
}

@media (max-width: 767px) {
  .property-search-m {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    top: 60px;
    background-color: #f5f5f5;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .property-search-m.active {
    display: block;
  }

  .filter-section {
    margin-top: 59px;
    position: fixed;
    z-index: 9;
    background-color: #fff;
    padding: 0.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding-right: 68px;
    width: 100%;
  }

  .filters {
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
    flex-wrap: nowrap;
    margin-right: 40px;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-dropdown {
    position: fixed !important;
    top: 113px !important;
    left: 0;
    right: 0;
    width: 100%;
    margin: auto;
    z-index: 9999;
    border-top: 1px solid #ccc;
    border-radius: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .filter-panel {
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .filters button {
    overflow: visible;
  }

  .mobile-filter-sticky {
    position: fixed;
    right: 0;
    background-color: #f5f5f5;
    border-radius: 0;
    height: 54px;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 5px;
  }

  #btn-reset {
    font-size: 10px;
    padding: 7px 10px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
  }

  .m-filters-btn {
    display: block !important;
    font-size: 10px !important;
  }

  .listings-layout {
    margin-top: 115px;
  }

  .afterlogin-search {
    display: block;
    border: 0;
    color: #333;
    font-size: 19px;
    background-color: transparent;
  }

  #locations-selected {
    display: none;
  }

  #m-dropdown-locations {
    top: 0 !important;
    position: static !important;
    margin: 0 !important;
  }

  #m-locations-selected {
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 5px;
  }

  #m-dropdown-city {
    top: 96px !important;
  }

  .fa-arrow-right-arrow-left {
    display: block;
    transform: rotate(90deg);
  }

  .reset-text {
    display: none !important;
  }



}

.range-wrapper {
  position: relative;
  height: 30px;
}

/* Background track */
.range-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 4px;
  background: #ddd;
  transform: translateY(-50%);
  border-radius: 4px;
}

/* Active fill track */
.range-track {
  position: absolute;
  top: 50%;
  height: 4px;
  background: #4141ff;
  /* change to #ff6015 if needed */
  transform: translateY(-50%);
  border-radius: 4px;
  left: 0;
  right: 0;
}

/* Range inputs */
.range-wrapper input[type="range"] {
  position: absolute;
  width: 100%;
  height: 30px;
  appearance: none;
  background: none;
  pointer-events: none;
}

/* Thumb */
.range-wrapper input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #4141ff;
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 2;
}

.range-wrapper input[type="range"]::-webkit-slider-runnable-track {
  background: none;
}

/* ================= HOME PAGE OVERRIDES ================= */
/* Keep the home page layout aligned with css/style.css when listing.css is also loaded. */
body.home-page .venture-card {
  display: block;
  margin: 0 10px;
}

body.home-page .venture-card .card-img {
  position: relative;
  flex: none;
  min-width: 0;
  max-width: none;
  height: 230px;
  display: block;
}

body.home-page .venture-card .card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

body.home-page .venture-card .card-body {
  flex: none;
  display: block;
  width: auto;
  justify-content: initial;
  position: static;
  padding: 14px;
}

body.home-page .venture-card .img-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  color: #fff;
  font-size: 14px;
}

body.home-page .venture-card .img-icons .icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  color: #fff;
  backdrop-filter: blur(4px);
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

body.home-page .venture-card .img-icons .icon-item.circle {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 0;
}

body.home-page .venture-card .img-icons .icon-item img {
  width: 16px;
  height: auto;
}

body.home-page .venture-card .img-icons .icon-item i {
  font-size: 12px;
  cursor: pointer;
}

body.home-page .venture-card .img-icons .icon-item small {
  font-size: 12px;
  opacity: 0.9;
}

body.home-page .venture-card .price-pill {
  position: absolute;
  right: 0;
  bottom: 10px;
  top: auto;
  width: auto;
  height: auto;
  background: #9bf7d8;
  color: #000;
  padding: 6px 10px 6px 15px;
  border-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  font-weight: 700;
  font-size: 13px;
  text-align: right;
  line-height: 18px;
}

body.home-page .venture-card .price-pill span {
  display: block;
  font-size: 17px;
}

body.home-page .venture-card .location {
  font-size: 13px;
  color: #000;
  font-weight: 600;
  margin-bottom: 2px;
}

body.home-page .venture-card .desc {
  font-size: 13px;
  color: #495a6a;
  margin-bottom: 10px;
}

body.home-page .venture-card .details p {
  font-size: 13px;
  color: #495a6a;
  line-height: 1.6;
}

body.home-page .venture-card .details strong {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

body.home-page .venture-card .unit-price strong {
  font-size: 16px;
  font-weight: 700;
}

body.home-page .venture-card .card-footer {
  padding: 12px 14px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.home-page .venture-card .actions {
  display: flex;
  gap: 8px;
}

body.home-page .venture-card .chat-btn {
  border: 1px solid #93c5fd;
  color: #000;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  background: #f3f3ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.home-page .venture-card .contact-btn {
  background: #0056b2;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}

body.home-page .landbit-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  color: #fff;
  font-size: 14px;
}

body.home-page .landbit-price {
  position: absolute;
  right: 0;
  bottom: 10px;
  background: #9bf7d8;
  color: #000;
  padding: 6px 10px 6px 15px;
  border-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  font-weight: 700;
  font-size: 13px;
  text-align: right;
  line-height: 18px;
}

body.home-page .landbit-price span {
  display: block;
  font-size: 17px;
}

body.home-page .farmland-price {
  position: absolute;
  right: 0;
  bottom: 10px;
  background: #9bf7d8;
  color: #000;
  padding: 6px 10px 6px 15px;
  border-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  font-weight: 700;
  font-size: 13px;
  text-align: right;
  line-height: 18px;
}

body.home-page .farmland-price span {
  display: block;
  font-size: 17px;
}

@media (max-width: 768px) {
  body.home-page .venture-card .card-img {
    height: 180px;
  }

  body.home-page .landbit-img {
    height: 180px;
  }

  body.home-page .farmland-img {
    height: 180px;
  }
}