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

/* prop-list-view.css */

/*========== Main Container Layout (Centered) ===============*/
.main-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 768px) {
  .main-container {
    padding: 0 16px 40px 16px;
  }
}

/*========== Property Card Designs & Header ===============*/

.property-card-hd-part {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 16px 0;
  padding: 0;
  width: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.prop-status-btn.active,
.sold-option-btn.active {
  background-color: #13A89E;
  color: white;
  border-color: #13A89E;
}

.prop-card-hd-part1 {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.housing-market-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.no-results-message {
  text-align: center;
  font-size: 1.15rem;
  color: #64748b;
  margin-top: 2.5rem;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  width: 100%;
}

.housing-market-btn button {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  background-color: #fff;
  border: 1.5px solid #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  border-radius: 20px;
  font-weight: 500;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: #374151;
}

.housing-market-btn button:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

/* ── Section heading: "Property listings" ── */
.prop-listing-loc-name {
  color: #111827;
  font-weight: 700;
  font-size: 22px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: -0.2px;
  margin-bottom: 0;
}

/* ── Results count: "List showing X-Y of Z homes" ── */
.prop-card-figure {
  color: #64748b;
  font-size: 13.5px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  margin-top: 0;
  text-align: right;
}

/* ── Property Cards Container (Responsive Grid: 4 / 3 / 2 / 1) ── */
.property-cards-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* 4 cards on desktop (>= 1200px) */
@media (min-width: 1200px) {
  .property-cards-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }
}

/* 3 cards on medium screens / laptops (880px to 1199px) */
@media (max-width: 1199px) and (min-width: 880px) {
  .property-cards-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* 2 cards on tablets / small screens (576px to 879px) */
@media (max-width: 879px) and (min-width: 576px) {
  .property-cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* 1 card on mobile devices (< 576px) */
@media (max-width: 575px) {
  .property-cards-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.property-card-sec {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ── Property Card Structure & Elevation ── */
.property-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef0f5;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  cursor: pointer;
}

.property-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.11);
  transform: translateY(-4px);
  border-color: #dbe0eb;
}

.image-container {
  position: relative;
  width: 100%;
}

/* ── Image Slider ── */
.image-slider-container {
  position: relative;
  width: 100%;
  height: 215px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #f1f3f7;
}

.image-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
  transition: transform 0.4s ease, opacity 0.35s ease;
}

.property-card:hover .property-image {
  transform: scale(1.03);
}

/* ── Bottom Overlay on Image (Price + Specs) ── */
.image-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 14px 10px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.9) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 4;
  pointer-events: none;
}

.image-bottom-overlay .property-price {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.image-bottom-overlay .prop-area-room {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  font-size: 11.5px;
  color: #f8fafc;
  font-weight: 400;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.image-bottom-overlay .prop-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 11.5px;
  color: #ffffff;
}

.image-bottom-overlay .prop-spec-item i {
  font-size: 11px;
  opacity: 0.95;
}

.image-bottom-overlay .prop-spec-divider {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  margin: 0 1px;
}

/* ── Slider Arrows ── */
.slider-prev,
.slider-next {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.88);
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color: #1f2937;
  transition: all 0.2s ease;
  z-index: 5;
  opacity: 0.85;
}

.property-card:hover .slider-prev,
.property-card:hover .slider-next {
  opacity: 1;
}

.slider-prev:hover,
.slider-next:hover {
  background-color: #ffffff;
  color: #000;
  transform: translateY(-50%) scale(1.08);
}

.slider-prev {
  left: 8px;
}

.slider-next {
  right: 8px;
}

/* ── Status Badge (Active/Sold) on image ── */
.prop-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(28, 28, 28, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 3px 10px 3px 8px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 6;
  backdrop-filter: blur(2px);
}

.prop-status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf66;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Favourite Icon ── */
.fav-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  height: 32px;
  width: 32px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.fav-icon:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: scale(1.08);
}

.fav-icon img {
  width: 16px;
  height: 16px;
}

.fav-icon.favourite img {
  filter: brightness(1.3);
}

/* ── Property Details Body (Below Image) ── */
.property-details {
  padding: 12px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #ffffff;
  flex: 1;
  justify-content: center;
}

.property-address-main {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.property-address-sub {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  margin-top: 1px;
}

.property-address {
  font-size: 13px;
  color: #111827;
  line-height: 1.45;
  font-weight: 500;
  cursor: pointer;
}

/* ── Listing ID / Source Meta ── */
.prop-listing-meta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.45;
  border-top: 1px solid #f1f5f9;
  padding-top: 6px;
}

.prop-listing-meta a {
  color: #94a3b8;
  text-decoration: none;
}

/* ── Skeleton styles (Left-to-Right Moving Shimmer) ── */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.property-card.skeleton-card,
.property-card.skeleton,
.skeleton-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eef0f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  pointer-events: none;
  cursor: default;
  transform: none !important;
}

.skeleton-img,
.image-container.skeleton-img {
  width: 100%;
  height: 215px;
  background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 30%, #e2e8f0 50%, #f8fafc 70%, #eef2f6 100%);
  background-size: 250% 100%;
  animation: skeleton-shimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: 12px 12px 0 0;
  position: relative;
  overflow: hidden;
}

.skeleton-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 60px;
  height: 20px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.3) 100%);
  background-size: 250% 100%;
  animation: skeleton-shimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.skeleton-content,
.property-card.skeleton .property-details {
  padding: 14px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  flex: 1;
}

.skeleton-text {
  height: 14px;
  background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 30%, #e2e8f0 50%, #f8fafc 70%, #eef2f6 100%);
  background-size: 250% 100%;
  animation: skeleton-shimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: 6px;
  margin-bottom: 2px;
}

.skeleton-text.short {
  width: 42%;
  height: 18px;
  margin-bottom: 4px;
}

.skeleton-text.long {
  width: 82%;
  height: 13px;
}

.skeleton-text.medium {
  width: 60%;
  height: 12px;
}

.skeleton-text.full {
  width: 95%;
  height: 11px;
  margin-top: 4px;
}

/*====Pagination container design=================*/

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 24px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  width: 100%;
}

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

.page-number {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  width: 38px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #334155;
  transition: all 0.2s ease;
}

.page-number:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.page-number.active {
  background-color: #13A89E;
  color: #fff;
  border-color: #13A89E;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(163, 0, 0, 0.25);
}

.prev-button,
.next-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  width: 38px;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.prev-button:hover,
.next-button:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.prev-button img,
.next-button img {
  height: 20px;
  width: 20px;
}

/*==============Filter stylings=================================
/* General Button Styles */
.list-all-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 16px;
  margin-bottom: 8px;
  width: 100%;
  align-items: center;
  padding-left: 0;
}

/* Ensure that the parent of the dropdown is relatively positioned */
.list-all-filters .dropdown-btn-sec {
  position: relative;
}


button {
  display: flex;
  align-items: center;
  padding: 7px 15px;
  background-color: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  font-size: 14px;
  font-weight: 500;

}

button:hover {
  background-color: #e0e0e0;
  border-color: #888;
  /* Change border color on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Slightly larger shadow on hover */
}


button:hover {
  background-color: #e0e0e0;
  border-color: #888;
}

button img {
  margin-right: 6px;
  height: 14px;
  width: 14px;
}

/* Filter Button Section - with icon first */
.filter-btn-sec button {
  justify-content: flex-start;
  border-radius: 18px;
}

/* Dropdown Button Section - with text first */
.dropdown-btn,
.filter-btn,
.map-btn {
  /* justify-content: space-between; */
  border-radius: 18px;
  font-size: 12px;
  gap: 8px;
}

.custom-tooltip {
  background-color: #e74c3c;
  /* color: white; */
  font-weight: bold;
  border-radius: 4px;
  padding: 5px 8px;
  border: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Modal Container */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Box */
.modal-content {
  position: relative;
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 25px;
  right: 65px;
  width: 40px;
  height: 40px;
  background: #fff;
  color: #aaa;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  line-height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: #000;
  background: #f1f1f1;
}


.close-btn:hover {
  color: #000;
  background: #f1f1f1;
}


/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Dropdown Content - hidden by default */
.filter-content,
.sort-content,
.price-content,
.hometype-content,
.beds-content,
.baths-content,
.sold-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  width: auto;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 100;
  color: #222;
  border-radius: 12px;
}

.price-content {
  min-width: 650px;
  /* increased width for better spacing */
  padding: 20px;

}

.price-display {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  font-size: 14px;
  /* gap: 10px; */
}

.min-price,
.max-price {
  flex: 1;
  padding: 10px;
  /* border-radius: 8px;
  border: 1px solid #ccc; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #f9f9f9; */
}

.input-group-prepend select {
  min-width: 80px;
  /* or 100px depending on currency code size */
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  height: 60px;
}

.input-group input {
  min-width: 100px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: 60px;
}

/* Optional: adjust width of currency select */
.currency-select {
  max-width: 100px;
  height: 60px;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.alt-price {
  width: 300px;
}

/* Remove border radius from the input's left side */
.input-group .form-control:not(.currency-select) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Align and space the blocks better */
.price-alt-content {
  margin-top: 15px;
  margin-bottom: 15px;
}

.hyphen {
  font-size: 24px;
}


.hyphen {
  width: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  /* border:2px solid black; */
}

.sort-content {
  min-width: 200px;
}

.sold-content {
  min-width: 120px;
}

.hometype-content {
  min-width: 200px;
}

.hometype-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.hometype-content li {
  display: flex;
  align-items: center;
  margin: 5px 0;

}

.home-type-symbol {
  margin-right: 12px;
}

.hometype-content label {
  display: flex;
  align-items: center;
  width: 100%;
}

.home-type-checkbox {
  margin-left: auto;
  /* This ensures that the checkbox is aligned to the right */
}

.selected-filter-value {
  display: flex;
  align-items: center;
  background-color: #e0f0ff;
  padding: 5px 10px;
  border-radius: 12px;
  margin-left: 8px;
  font-size: 14px;
  cursor: default;
}

.remove-filter {
  margin-left: 8px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
}


.beds-content,
.baths-content {
  min-width: 100px;
}

/* Additional styling for dropdown items */
.sort-content ul,
.price-content ul,
.hometype-content ul,
.beds-content ul,
.baths-content ul,
.sold-content ul {
  padding: 0;
  list-style-type: none;
  margin: 0;
}

.sort-content li,
.price-content li,
.hometype-content li,
.beds-content li,
.baths-content li,
.sold-content li {
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.sort-content li:hover,
.price-content li:hover,
.hometype-content li:hover,
.beds-content li:hover,
.baths-content li:hover,
.sold-content li:hover {
  background-color: #f0f0f0;
}

.filter-btn-sec,
.sort-btn-sec,
.price-btn-sec,
.hometype-btn-sec,
.beds-btn-sec,
.baths-btn-sec,
.sold-btn-sec {
  position: relative;
  /* Make these containers the reference for absolute positioning */
}

/* New listing type button section */
.listingtype-btn-sec {
  margin-left: auto;
  /* Pushes to the right */
  position: relative;
  margin-right: 2%;
}

/* Dropdown content for listing type */
.listingtype-content {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  /* Align right under the button */
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 150px;
  /* height:20px; */
  /* border-radius: 12px; */
}

.listingtype-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.listingtype-content li {
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.listingtype-content li:hover {
  background-color: #f0f0f0;
}

/* Ensure the button looks rectangular */
.listingtype-btn-sec .dropdown-btn {
  border-radius: 2px;
  /* slightly rounded, rectangular look */
  padding: 10px 16px;
  font-size: 13px;
  border: 2px solid #ccc;
  height: 30px;
}

/* Triangle icon styling */
.dropdown-icon-triangle {
  margin-left: 8px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* When dropdown is open, rotate triangle */
.dropdown-btn.open .dropdown-icon-triangle {
  transform: rotate(180deg);
}


/* Dropdown icon (up and down) */
.dropdown-icon {
  transition: transform 0.3s ease;
}

/* Adjust the positioning of the dropdown icon */

.dropdown-btn .dropdown-icon {
  width: 12px;
  /* optional: size */
  height: auto;
}

/* Rotate icon when dropdown is opened */
.open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-btn.open {
  background-color: #f0f0f0;
  /* Highlight background when open */
}

.sec-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  /* Very light gray */
  margin: 20px 0;
  /* Adjust spacing as needed */
}

.filter-progress {
  height: 4px;
  background-color: #007bff;
  width: 0%;
  transition: width 0.5s ease;
  margin-top: 10px;
  border-radius: 2px;
}


/* Style for the price slider container */
/* Price slider container */
.price-slider-container {
  position: relative;
  width: 100%;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Graph Line */
.price-graph-line {
  position: relative;
  height: 10px;
  background-color: #ddd;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 5px;
}

.price-progress {
  position: absolute;
  height: 100%;
  background-color: #4caf50;
  /* Green color for price range */
  width: 0%;
  /* Initially, no progress */
  border-radius: 5px;
}

/* Common styles for both sliders */
.price-slider {
  position: absolute;
  top: -12px;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background-color: #fff;
  z-index: 1;
  outline: none;
  cursor: pointer;
}

/* Min slider specific styling */
.min-slider {
  background: linear-gradient(to right, #4caf50 0%, #4caf50 50%, #fff 50%, #fff 100%);
}

/* Max slider specific styling */
.max-slider {
  background: linear-gradient(to right, #fff 0%, #fff 50%, #f44336 50%, #f44336 100%);
}

/* Range label displaying the selected price range */
.price-range {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* Style for the price range label */
#priceRangeLabel {
  font-size: 18px;
  color: #333;
  text-align: center;
}

/*All filter Button action*/
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4
  }

  to {
    opacity: 1
  }
}

.all-filter-btn-overlay {
  overscroll-behavior-x: contain;
  overscroll-behavior-y: contain;
  visibility: hidden;
  background-color: rgba(14, 14, 14, 0.568627451);
  overflow-y: auto;
  overflow-x: hidden;
  top: 34px !important;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100vh - 34px) !important;
  min-height: calc(100vh - 34px) !important;
  z-index: 9999;
  position: fixed;
  box-sizing: inherit;
  transition-delay: 0.75ms;
}

.all-filter-drop-down-overlay {
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  position: relative;
  margin: 0;
  z-index: 10000;
  transition: opacity 150ms ease-out, transform 255ms cubic-bezier(0.175, 0.745, 0.425, 1.11);
  margin-left: 0;
  width: 380px !important;
  max-width: 90vw !important;
  min-width: 320px !important;
  margin-top: 0;
  opacity: 1;
  transform: none;
  min-height: 100%;
  height: 100% !important;
  display: flex;
  flex-direction: column;
}

.all-filter-drop-down {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.filter-drop-down-body-all-sec {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  height: 100% !important;
  width: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  gap: 16px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.filter-drop-down-body-all-sec::-webkit-scrollbar {
  width: 5px;
}

.filter-drop-down-body-all-sec::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.filter-drop-down-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #edf2f7;
  height: 56px;
  min-height: 56px;
  background: #ffffff;
  position: relative;
}

.filter-reset {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  padding: 0;
}

.filter-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12.5px;
  border-radius: 20px;
  font-weight: 600;
}

.filter-reset-btn:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.all-filter-heading {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  text-align: center;
  flex: 1;
  margin-right: 32px;
}

.all-filter-btn-sec {
  min-height: 60px;
  width: 100%;
  padding: 12px 18px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf2f7 !important;
  background: #ffffff;
  margin-top: auto;
  box-sizing: border-box;
}

.all-filter-inn-btn {
  height: 38px;
  width: 100%;
  border-radius: 20px;
  border: 1.5px solid #d1d5db;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.all-filter-inn-btn:hover {
  cursor: pointer;
}

.apply-btn {
  background-color: var(--kf-red, #13A89E) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(163, 0, 0, 0.25);
}

.apply-btn:hover {
  background-color: var(--kf-red-dark, #850000) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(163, 0, 0, 0.35);
}

/* ── Search History (in All filters modal footer) ─────────────────────── */

.search-history-wrapper {
  position: relative;
  width: 45%;
}

.search-history-wrapper .all-filter-inn-btn {
  width: 100%;
}

.search-history-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 320px;
  max-width: 90vw;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 60;
  padding: 8px 0;
}

.search-history-dropdown.show {
  display: block;
}

.search-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-history-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.search-history-item:last-child {
  border-bottom: none;
}

.search-history-item:hover {
  background-color: #f5f5f5;
}

.search-history-location {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.search-history-filters {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.search-history-time {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.search-history-empty,
.search-history-loading {
  padding: 16px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

/* ── Remove filters chip (top filter bar) ──────────────────────────────── */

.clear-filters-btn {
  border-radius: 18px;
  font-size: 12px;
  gap: 6px;
  color: #b3261e;
  border-color: #b3261e;
}

.clear-filters-btn:hover {
  background-color: #fbeceb;
  border-color: #b3261e;
}

.clear-filters-x {
  font-size: 11px;
}

/* ── No-results state with an active-filters call to action ───────────── */

.no-results-message .remove-filters-action-btn {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 20px;
  border-radius: 18px;
  border: 1px solid #222;
  background-color: #222;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.no-results-message .remove-filters-action-btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.hd {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.no-of-beds-body,
.no-of-baths-body {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.beds-option,
.baths-option {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background-color: #ffffff;
  color: #374151;
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.beds-option:hover,
.baths-option:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.beds-option.active,
.baths-option.active {
  background-color: var(--kf-red, #13A89E) !important;
  color: #ffffff !important;
  border-color: var(--kf-red, #13A89E) !important;
  font-weight: 600;
}

.all-filter-drop-down-overlay .search-container {
  position: relative;
  width: 100% !important;
}

.all-filter-drop-down-overlay .search-bar {
  width: 100% !important;
  height: 38px;
  padding: 0 36px 0 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1f2937;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  outline: none;
  background: #fafbfc;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.all-filter-drop-down-overlay .search-bar:focus {
  border-color: var(--kf-red, #13A89E);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(163, 0, 0, 0.1);
}

.all-filter-drop-down-overlay .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 14px;
  padding: 0;
}

.prop-status,
.prop-button-container,
.storey-container,
.expand-search-btn-container,
.feature-button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.prop-status-btn,
.prop-type-btn,
.storey-btn,
.expand-search-btn,
.feature-btn,
.sold-option-btn {
  background-color: #ffffff;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 32px;
  white-space: nowrap;
  user-select: none;
  margin: 0;
}

.prop-status-btn:hover,
.prop-type-btn:hover,
.storey-btn:hover,
.expand-search-btn:hover,
.feature-btn:hover,
.sold-option-btn:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.prop-status-btn.active,
.prop-type-btn.active,
.storey-btn.active,
.expand-search-btn.active,
.feature-btn.active,
.sold-option-btn.active {
  background-color: var(--kf-red, #13A89E) !important;
  color: #ffffff !important;
  border-color: var(--kf-red, #13A89E) !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(163, 0, 0, 0.25);
}

.prop-status-symbol,
.prop-type-symbol {
  font-size: 13.5px;
  margin-right: 3px;
}

.sold-options {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}

.filter-drop-down-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  margin-top: 2px;
}

.min-size-div,
.max-size-div {
  flex: 1;
  width: auto;
  height: auto;
  padding: 0;
  box-sizing: border-box;
}

.filter-drop-down-container .custom-dropdown {
  width: 100% !important;
  height: 34px !important;
  padding: 4px 8px !important;
  font-size: 13px !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #ffffff;
  color: #1f2937;
  outline: none;
  font-family: inherit;
}

.filter-drop-down-container .custom-dropdown:focus {
  border-color: var(--kf-red, #13A89E) !important;
}

.hyphen-bwn,
.hyphen-btw {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 2px;
}

.price-alt-content {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 2px 0 0 0 !important;
}

.min-price-alt,
.max-price-alt {
  flex: 1;
  padding: 0 !important;
  max-width: none !important;
}

.price-alt-content .input-group {
  display: flex;
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  height: 34px;
  background: #ffffff;
}

.currency-select {
  border: none !important;
  border-right: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  font-size: 12px !important;
  font-weight: 600;
  color: #374151;
  padding: 0 6px !important;
  outline: none;
  width: auto !important;
  height: 100% !important;
}

.alt-price {
  border: none !important;
  outline: none !important;
  padding: 0 8px !important;
  font-size: 13px !important;
  color: #1f2937;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

.price-alt-content .hyphen {
  color: #9ca3af;
  font-size: 13px;
  padding: 0 2px !important;
}

#showMoreAmenities {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kf-red, #13A89E);
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
}

.filter-close {
  position: absolute;
  top: 12px;
  right: 14px;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #4b5563;
  font-size: 20px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.filter-close:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.filter-close:hover i {
  color: #000;
}

.prop-status,
.feature-button-container,
.prop-button-container,
.storey-container {
  flex-wrap: wrap;
}


/* Extra large devices (desktops > 1200px) */
@media (min-width: 1200px) {
  .all-filter-drop-down-overlay {
    width: 380px !important;
    max-width: 420px !important;
    min-width: 340px !important;
  }
}

/* Medium devices (tablets) */
@media (max-width: 991px) {

  .filter-drop-down-body-sec1,
  .filter-drop-down-body-sec2,
  .filter-drop-down-body-sec3,
  .filter-drop-down-body-sec4,
  .filter-drop-down-body-sec5,
  .filter-drop-down-body-sec8 {
    flex-direction: column;
  }

  .left-body,
  .right-body {
    width: 100%;
    padding: 0;
  }

  .search-container {
    width: 100%;
  }

  .min-size-div,
  .max-size-div {
    width: 100%;
    height: auto;
    padding: 0;
  }

  .custom-dropdown {
    width: 100%;
  }

  .all-filter-inn-btn {
    width: 100%;
    height: 40px;
    font-size: 13.5px;
  }

  .filter-close {
    top: 12px;
    right: 12px;
    height: 32px;
    width: 32px;
    font-size: 18px;
  }
}


/* Small devices (mobile phones) */
@media (max-width: 576px) {
  .filter-reset-btn {
    font-size: 12px;
    padding: 5px 10px;
  }

  .all-filter-heading {
    font-size: 16px;
    font-weight: 700;
  }

  .hd {
    font-size: 13px;
  }

  .storey-btn,
  .prop-type-btn,
  .feature-btn,
  .prop-status-btn,
  .expand-search-btn {
    font-size: 12px;
    padding: 5px 10px;
    height: 30px;
  }

  .beds-option,
  .baths-option {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    font-size: 12px;
    height: 30px;
    padding: 0;
  }

  .no-of-beds-body,
  .no-of-baths-body {
    gap: 5px;
  }

  .filter-close {
    top: 10px;
    right: 10px;
    height: 30px;
    width: 30px;
    font-size: 16px;
  }

  .search-container {
    width: 100%;
  }

  .all-filter-btn-sec {
    gap: 8px;
    padding: 10px 14px;
    padding-bottom: env(safe-area-inset-bottom, 14px);
  }

  .all-filter-inn-btn {
    width: 100%;
    height: 40px;
    font-size: 13.5px;
  }

  .search-bar {
    padding: 0 35px 0 12px;
    font-size: 13px;
    height: 36px;
  }

  .search-icon i {
    font-size: 14px;
  }

  .all-filter-btn-overlay {
    top: var(--navbar-height, 0px);
    height: calc(100dvh - var(--navbar-height, 0px));
    min-height: calc(100dvh - var(--navbar-height, 0px));
  }

  .all-filter-drop-down-overlay {
    min-height: calc(100dvh - var(--navbar-height, 0px));
    height: calc(100dvh - var(--navbar-height, 0px)) !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .filter-drop-down-body-all-sec {
    padding: 12px 14px;
    padding-bottom: 10vh;
  }
}

#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Container for Shared Properties */
.property-shared-sec {
  display: none;
  /* Hidden by default */
  background-color: #fff9e6;
  /* Light yellow/gold tint */
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.shared-section-header h4 {
  margin: 0;
  font-weight: 700;
}

/* Ensure the shared cards grid behaves like the main grid */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
















/* favorites and save for later  */
.image-slider-container {
  position: relative;
  /* ensures buttons position correctly inside image */
}

.card-action-buttons {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  /* bookmark left, heart right */
  z-index: 10;
  pointer-events: none;
  /* let clicks pass through the wrapper */
}

.card-fav-btn,
.card-save-btn {
  pointer-events: all;
  /* but buttons themselves are clickable */
  background: rgba(0, 0, 0, 0.45);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.card-fav-btn:hover,
.card-save-btn:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.1);
}