/* ===========================
   POOOL Marketplace Styles
   Based on Figma Design System
   =========================== */

/* ===========================
   1. CSS Variables & Global Styles
   =========================== */
:root {
  /* Colors */
  --color-base-white: #ffffff;
  --color-base-black: #000000;

  /* Gray Scale */
  --color-gray-50: #fafafa;
  --color-gray-200: var(--table-border-color);
  --color-gray-300: #d5d7da;
  --color-gray-400: #a4a7ae;
  --color-gray-500: #717680;
  --color-gray-600: var(--text-secondary);
  --color-gray-700: #414651;
  --color-gray-800: #252b37;
  --color-gray-900: var(--page-title-color);

  /* Brand Colors */
  --color-brand-600: var(--primary-color);
  --color-brand-primary: var(--primary-color);

  /* Brand Green Accent */
  --color-green-accent-50: rgba(3, 255, 136, 0.1);
  --color-green-accent-500: var(--accent-color);

  /* Shadows */
  --shadow-xs: 0px 1px 2px rgba(10, 13, 18, 0.05);
  --shadow-sm:
    0px 1px 3px rgba(10, 13, 18, 0.1), 0px 1px 2px -1px rgba(10, 13, 18, 0.1);
  --shadow-xs-skeuomorphic:
    0px 1px 2px rgba(16, 24, 40, 0.05),
    inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18),
    inset 0px -2px 0px rgba(10, 13, 18, 0.05);
  --shadow-focus-ring: 0px 0px 0px 2px #ffffff, 0px 0px 0px 4px #9e77ed;

  /* Typography */
  --font-family: 'TT Norms Pro', sans-serif;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 30px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#marketplace-body {
  font-family: var(--font-family);
  background: var(--color-gray-50);
  color: var(--color-gray-900);
  margin: 0;
  padding: 0;
  display: block;
  visibility: visible;
  opacity: 1;
  min-height: 100vh;
}

/* ===========================
   2. Page Layout
   =========================== */
.marketplace-page,
#marketplace-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: #f5f5f5;
  visibility: visible;
  opacity: 1;
}

.marketplace-sidebar {
  /* Sidebar is fixed positioned, no need for space here */
  z-index: 100;
}

.marketplace-main,
#marketplace-main {
  width: calc(100% - 256px);
  min-height: 1735px;
  margin-left: 256px;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  background: #fafafa;
  position: relative;
  flex: none;
  order: 1;
  flex-grow: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  visibility: visible;
  opacity: 1;
}

/* ===========================
   3. KYC Notification Bar
   =========================== */
.kyc-notification-container {
  background: #fff9e6;
  border: none;
  border-bottom: 1px solid #f0d000;
  border-radius: 0;
  padding: 12px 32px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  box-sizing: border-box;
}

.kyc-notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.kyc-message {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.kyc-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.kyc-notification-text {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-gray-700);
}

.kyc-link {
  color: var(--color-brand-600);
  text-decoration: underline;
  font-weight: 500;
}

.kyc-link:hover {
  text-decoration: none;
}

.kyc-actions {
  display: flex;
  gap: 8px;
}

.kyc-complete-btn,
.kyc-learn-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kyc-complete-btn {
  background: var(--color-brand-600);
  color: var(--color-base-white);
  border: none;
  box-shadow: none;
}

.kyc-complete-btn:hover {
  opacity: 0.9;
}

.kyc-learn-btn {
  background: var(--color-base-white);
  color: var(--color-gray-700);
  border: 1px solid var(--color-gray-300);
  box-shadow: none;
}

.kyc-learn-btn:hover {
  background: var(--color-gray-50);
}

/* Marketplace Content Wrapper */
.marketplace-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  /* Let content determine height naturally */
  min-height: auto;
  padding: 24px var(--page-padding-x, 32px) var(--page-padding-bottom, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  visibility: visible;
  opacity: 1;
}

/* Inner content wrapper for HTMX updates */
#marketplace-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  visibility: visible;
  opacity: 1;
}

/* ===========================
   4. Page Header
   =========================== */
.page-header {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  height: 44px;
  left: 0;
  top: 48px;
  /* 48px: matches padding-top on all pages */
  z-index: 1;
}

.page-header-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.page-title {
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.02em;
  color: var(--brand-dark-blue);
}

/* ===========================
   5. Filter Bar Container
   =========================== */
.filter-bar-container {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1080px;
  border-radius: var(--radius-lg);
  z-index: 100;
}

/* ===========================
   6. Status Tabs
   =========================== */
.status-tabs {
  position: static;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px;
  gap: 4px;
  width: 100%;
  max-width: 1080px;
  height: 56px;
  background: var(--color-base-white);
  border: 1px solid var(--color-gray-200);
  box-shadow: none;
  border-radius: 30px;
  z-index: 1;
}

.status-tab {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  flex: 1;
  height: 44px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-base-black);
  transition: all 0.2s ease;
}

.status-tab:hover:not(.active) {
  background: var(--color-gray-50);
  color: var(--color-gray-900);
}

.status-tab.active {
  background: #98FB96 !important;
  border: none !important;
  box-shadow: none !important;
  color: #0000FF !important;
  font-weight: 700;
}

/* ===========================
   7. Filter Controls
   =========================== */
.filter-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0px;
  gap: 12px;
  width: 100%;
  max-width: 1080px;
  height: 70px;
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

/* Dropdowns Container */
.filter-dropdowns {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 12px;
  width: 592px;
  height: 70px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

/* Filter Dropdown */
.filter-dropdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 6px;
  /* Exact 6px between label and dropdown */
  height: 70px;
  flex: none;
  flex-grow: 0;
}

.filter-dropdown:nth-child(1) {
  width: 200px;
  order: 0;
}

.filter-dropdown:nth-child(2) {
  width: 200px;
  order: 1;
}

.filter-dropdown:nth-child(3) {
  width: 168px;
  order: 2;
}

/* Label Wrapper */
.filter-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  margin: 0px;
  gap: 2px;
  height: 20px;
  /* Exact height - no extra space */
  max-height: 20px;
  flex: none;
  order: 0;
  flex-grow: 0;
  overflow: hidden;
}

.filter-label-text {
  display: block;
  height: 20px;
  /* Exact text height */
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  /* Same as height - no extra space */
  color: #414651;
  flex: none;
  order: 0;
  flex-grow: 0;
  margin: 0;
  padding: 0;
}

/* Different label widths for each dropdown */
.filter-dropdown:nth-child(1) .filter-label-text {
  width: auto;
  /* Location */
  white-space: nowrap;
}

.filter-dropdown:nth-child(2) .filter-label-text {
  width: auto;
  /* Investment type */
  white-space: nowrap;
}

.filter-dropdown:nth-child(3) .filter-label-text {
  width: auto;
  /* Type of property */
  white-space: nowrap;
}

.help-icon {
  width: 16px;
  height: 16px;
  flex: none;
  order: 2;
  flex-grow: 0;
  cursor: help;
}

/* Dropdown Input Wrapper */
.dropdown-wrapper {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  /* Remove padding - will use select padding instead */
  gap: 0;
  height: 44px !important;
  /* Exact height */
  background: #ffffff;
  border: 1px solid #d5d7da;
  box-shadow: none;
  border-radius: 8px;
  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Specific widths for each dropdown - Location */
#filter-bar-location .dropdown-wrapper,
.filter-dropdown:nth-child(1) .dropdown-wrapper {
  width: 200px !important;
}

/* Investment Type */
#filter-bar-investment .dropdown-wrapper,
.filter-dropdown:nth-child(2) .dropdown-wrapper {
  width: 200px !important;
}

/* Property Type */
#filter-bar-property .dropdown-wrapper,
.filter-dropdown:nth-child(3) .dropdown-wrapper {
  width: 168px !important;
}

.dropdown-wrapper:hover {
  border-color: #a4a7ae;
}

.dropdown-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  /* Icon doesn't block clicks */
  z-index: 1;
}

.dropdown-select {
  width: 100%;
  height: 100%;
  /* Full height of wrapper */
  border: none;
  background: transparent;
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 400;
  /* Regular weight by default */
  font-size: 16px;
  line-height: 44px;
  /* Match wrapper height for vertical centering */
  color: var(--text-secondary);
  /* Gray for placeholder state */
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0 40px 0 42px;
  /* Left: icon space, Right: chevron space */
  margin: 0;
}

/* When option is selected */
.dropdown-select:valid:not([value=""]) {
  font-weight: 500;
  /* Medium weight for selected text */
  color: var(--page-title-color);
  /* Dark color for selected */
}

.dropdown-select option {
  padding: 8px;
  font-weight: 400;
  color: var(--page-title-color);
}

.dropdown-chevron {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  /* Chevron doesn't block clicks */
  z-index: 1;
}

/* More Filters Button */
.more-filters-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  gap: 4px;
  width: 134px;
  height: 40px;
  margin-top: 10px;
  /* Centers it vertically in the 70px container */
  background: #ffffff;
  border: 1px solid #d5d7da;
  box-shadow: none;
  border-radius: 8px;
  flex: none;
  order: 1;
  flex-grow: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.more-filters-btn:hover {
  background: #fafafa;
}

.more-filters-btn-icon {
  width: 20px;
  height: 20px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.more-filters-btn-text {
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #414651;
  flex: none;
  order: 1;
  flex-grow: 0;
  padding: 0px 2px;
  white-space: nowrap;
}

/* ===========================
   8. Search Bar
   =========================== */
.search-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 12px;
  width: 100%;
  height: 44px;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.search-input-wrapper {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: var(--input-padding, 10px 14px);
  gap: 8px;
  height: var(--input-height, 44px);
  background: var(--input-bg, #FFFFFF);
  border: 1px solid var(--input-border-color, #D0D5DD);
  box-shadow: none;
  border-radius: var(--input-border-radius, 8px);
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  order: 0;
}

.search-input-wrapper:focus-within {
  border-color: var(--input-border-focus, #0000FF);
  box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.08);
}

.search-icon {
  width: 20px;
  height: 20px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.search-input {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 24px;
  border: none;
  background: transparent;
  font-family: var(--font-family, "TT Norms Pro", sans-serif);
  font-style: normal;
  font-weight: 400;
  font-size: var(--input-font-size, 16px);
  line-height: 24px;
  color: var(--input-text-color, #101828);
  outline: none;
  box-shadow: none;
  flex: 1 1 auto;
  order: 1;
}

.search-input::placeholder {
  color: var(--input-placeholder-color, #667085);
}

.search-input:focus {
  outline: none;
  box-shadow: none;
}

/* Clear Button */
.clear-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  gap: 6px;
  width: 78px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #d5d7da;
  box-shadow: none;
  border-radius: 8px;
  flex: none;
  order: 1;
  flex-grow: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #414651;
}

.clear-btn:hover {
  background: #fafafa;
}

/* Search Button */
.search-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  gap: 6px;
  width: 91px;
  height: 44px;
  background: var(--primary-color);
  box-shadow: none;
  border-radius: 8px;
  flex: none;
  order: 2;
  flex-grow: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
}

.search-btn:hover {
  background: var(--primary-color);
}

/* ===========================
   9. Properties Section
   =========================== */
.properties-section {
  position: static;
  width: 100%;
  max-width: 1080px;
  z-index: 0;
  padding-bottom: 100px;
}

.property-grid,
.property-grid-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 344px));
  gap: 24px;
  width: 100%;
  align-items: stretch; /* equal-height rows */
}

.property-grid-item {
  width: 344px;
  display: flex; /* allow child card to stretch full height */
}

/* ===========================
   10. Property Card
   ===========================
   Property card styles moved to static/css/property-card.css.

   ===========================
   11. Property Gallery
   ===========================
   Property gallery styles moved to static/css/property-card.css.

   ===========================
   12. Property Content
   ===========================
   Property content styles moved to static/css/property-card.css.

   ===========================
   13. Infinite Scroll & Animation
   =========================== */

/* Infinite scroll trigger */
.infinite-scroll-trigger {
  height: 1px;
  margin-top: 50px;
  visibility: hidden;
}

/* Loading indicator */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 0;
  width: 100%;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--table-border-color);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-indicator span {
  font-family: 'TT Norms Pro', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #717680;
}

/* HTMX loading class */
.htmx-request .loading-indicator {
  display: flex;
}

/* Hide pagination - replaced by infinite scroll */
.pagination-container {
  display: none;
}

/* Button wrap containers */
.button-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  width: auto;
  height: 20px;
  flex: 1;
}

.button-wrap.left {
  order: 0;
  justify-content: flex-start;
}

.button-wrap.right {
  order: 2;
  justify-content: flex-end;
}

/* Previous/Next buttons */
.pagination-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 6px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex: none;
  flex-grow: 0;
}

.pagination-nav.prev {
  width: 85px;
  order: 0;
}

.pagination-nav.next {
  width: 58px;
  order: 0;
}

.pagination-nav:hover {
  opacity: 0.8;
}

.pagination-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Arrow icons */
.pagination-arrow {
  width: 20px;
  height: 20px;
  flex: none;
  flex-grow: 0;
}

.pagination-arrow.left {
  order: 0;
}

.pagination-arrow.right {
  order: 2;
}

/* Button text */
.pagination-text {
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  flex: none;
  flex-grow: 0;
}

.pagination-text.prev {
  width: 59px;
  order: 1;
}

.pagination-text.next {
  width: 32px;
  order: 1;
}

/* Pagination numbers container */
.pagination-numbers {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 2px;
  width: auto;
  height: 40px;
  flex: 0 0 auto;
  order: 1;
}

/* Pagination number base */
.page-number {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  flex: none;
  flex-grow: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.page-number-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px;
  position: absolute;
  width: 40px;
  height: 40px;
  left: 0;
  top: 0;
  border-radius: 20px;
}

.page-number-text {
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: var(--text-secondary);
  flex: none;
  order: 0;
  flex-grow: 0;
}

/* Active page number */
.page-number.active {
  background: #fafafa;
}

.page-number.active .page-number-text {
  color: #252b37;
  font-weight: 600;
}

.page-number:hover:not(.active) {
  background: #f5f5f5;
}

.pagination-ellipsis {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  font-family: 'TT Norms Pro', sans-serif;
}

/* Sidebar styles removed - using sidebar-navigation.css instead */

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1280px) {
  .property-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {

  /* Remove all text selection and tap highlight on mobile */
  * {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
  }

  /* Hide desktop sidebar */
  .marketplace-sidebar {
    display: none !important;
  }

  /* Adjust main content for mobile */
  .marketplace-main,
  #marketplace-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 16px !important;
    min-height: calc(100vh - 64px);
    position: relative !important;
    left: 0 !important;
    /* Account for mobile header only */
  }

  /* Adjust content wrapper */
  .marketplace-content-wrapper {
    width: 100% !important;
    padding: 20px 0 0 0 !important;
  }

  /* Hide filter controls on mobile, keep only status tabs */
  .filter-bar-container,
  .filter-controls,
  .filter-dropdowns,
  .search-container {
    display: none !important;
  }

  /* Show only status tabs on mobile */
  .status-tabs {
    display: flex !important;
    margin-bottom: 20px !important;
  }

  #commodities-body .filter-bar-container {
    display: block !important;
  }

  #commodities-body .filter-controls {
    display: flex !important;
  }

  #commodities-body .filter-dropdowns {
    display: none !important;
  }

  #commodities-body #filter-bar-search {
    display: flex !important;
  }

  #commodities-body #filter-bar-more-filters {
    display: inline-flex !important;
  }

  #commodities-body #commodities-extra-filters {
    left: 0 !important;
    right: 0 !important;
    min-width: 0 !important;
    width: calc(100vw - 32px) !important;
    max-width: 420px !important;
  }

  /* Adjust page header */
  .page-header {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 28px !important;
    line-height: 36px !important;
  }

  /* Adjust filter bar container */
  .filter-bar-container {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    margin-bottom: 24px;
  }

  /* Adjust status tabs */
  .status-tabs {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    margin-bottom: 16px;
    padding: 4px;
    height: 48px;
  }

  .status-tab {
    font-size: 14px !important;
    padding: 6px 8px;
    height: 40px;
    cursor: pointer !important;
    border: none !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
  }

  /* Filter controls */
  .filter-controls {
    flex-direction: column;
    width: 100% !important;
    height: auto !important;
    gap: 12px;
  }

  /* Filter dropdowns */
  .filter-dropdowns {
    flex-direction: column;
    width: 100% !important;
    height: auto !important;
    gap: 12px;
  }

  .filter-dropdown {
    width: 100% !important;
  }

  .filter-dropdown .dropdown-wrapper {
    width: 100% !important;
  }

  /* More filters button */
  .more-filters-btn {
    width: 100% !important;
    margin-top: 0 !important;
  }

  /* Search bar */
  .search-bar {
    flex-direction: row;
    width: 100% !important;
    gap: 8px;
  }

  .search-input-wrapper {
    width: 100% !important;
    flex: 1;
  }

  .clear-btn,
  .search-btn {
    width: auto !important;
    min-width: 60px;
  }

  /* Properties section */
  .properties-section {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    padding-bottom: 40px;
  }

  /* Property grid */
  .property-grid,
  .property-grid-content {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 16px;
  }

}
