/* Price Popup Content Styles */
.price-popup-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popup-price-inputs label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--agentbox-heading-color);
}

.popup-price-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

.nowselling-property {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.nowselling-property:hover {
  transform: translateY(-5px);
}

.nowselling-property .property-image {
  position: relative;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
}

.nowselling-property .property-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nowselling-property .property-details {
  padding: 15px;
}

.nowselling-property .property-price {
  color: var(--agentbox-heading-color);
  font-size: 1.2em;
  margin: 0 0 10px 0;
}

.nowselling-property .property-title {
  font-size: 1.1em;
  margin: 0 0 10px 0;
  color: var(--agentbox-heading-color);
}

.nowselling-property .property-address {
  color: var(--agentbox-body-color);
  margin: 0 0 15px 0;
  font-size: 0.9em;
}

.nowselling-property .property-features {
  display: flex;
  justify-content: space-between;
  color: var(--agentbox-body-color);
  font-size: 0.9em;
}

.nowselling-property .feature {
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-popup,
.filter-popup-overlay {
  display: none !important;
}

/* Dropdown Panel Styles */
.filter-dropdown {
  display: none;
  position: absolute;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 320px;
  z-index: 1000;
  margin-top: 5px;
}

.filter-dropdown.active {
  display: block;
}

.filter-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.filter-dropdown-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 36px;
  color: var(--agentbox-heading-color);
  margin: 0;
}

.filter-dropdown-header .reset-filters-button {
  background: #e8f8fe;
  border: 1.5px solid #76d1f4;
  color: #333;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-dropdown-header .reset-filters-button:hover {
  background: #76d1f4;
  color: #fff;
  text-decoration: none;
}

.filter-dropdown-content {
  padding: 20px;
}

/* Popup Footer Buttons */
.filter-dropdown-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 12px;
}

.filter-dropdown-button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-dropdown-clear {
  background: #fff;
  border: 1px solid #e0e0e0;
  color: var(--agentbox-heading-color);
}

.filter-dropdown-clear:hover {
  background: #f8f9fa;
  border-color: #d0d0d0;
}

.filter-dropdown-apply {
  background: #76d1f4;
  color: var(--agentbox-heading-color);
}

.filter-dropdown-apply:hover {
  background: #43b7e6;
}

.filter-option {
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95em;
  color: var(--agentbox-body-color);
  font-weight: 400;
  text-align: center;
  border: 1.5px solid #c6c6c6;
  background: #fff;
  margin-bottom: 8px;
  border-radius: 10px;
}

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

.filter-option:hover {
  background-color: #e8f8fe;
  border-color: #76d1f4;
  color: var(--agentbox-heading-color);
}

.filter-option.selected {
  background-color: #e8f8fe;
  border-color: #76d1f4;
  color: var(--agentbox-heading-color);
  font-weight: 500;
}

.optioned-selection {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  z-index: 1;
}

.all-filters-section[data-target="region"] .optioned-selection {
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
}

.optioned-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95em;
  line-height: 1;
  color: var(--agentbox-body-color);
  font-weight: 400;
  text-align: center;
  border: 1px solid #c6c6c6;
  background: #ffffff;
  border-radius: 10px;
}

.optioned-option:hover {
  background-color: #e8f8fe;
  border-color: #76d1f4;
  color: var(--agentbox-heading-color);
}

.optioned-option.selected {
  background-color: #e8f8fe;
  border-color: #76d1f4;
  color: var(--agentbox-heading-color);
  font-weight: 500;
}

/* Price inputs inside dropdown */
.popup-price-inputs {
  margin-bottom: 10px;
}

.popup-price-inputs:last-child {
  margin-bottom: 0;
}

.popup-price-inputs label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9em;
  color: #555555;
}

.popup-price-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

/* Price Range Slider Styles */
.price-slider-container {
  padding: 0 8px;
}

.price-slider {
  height: 2px;
  margin: 15px 0;
}

.price-labels {
  display: none;
}

.price-display {
  font-size: 0.9em;
  color: var(--agentbox-body-color);
  margin-top: 8px;
}

/* noUiSlider Custom Styles */
.noUi-target {
  border: none;
  background-color: #e0e0e0;
  box-shadow: none;
}

.noUi-connect {
  background: #76d1f4;
}

.noUi-handle {
  border: 2px solid #76d1f4;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none;
  width: 16px !important;
  height: 16px !important;
  right: -8px !important;
  top: -7px !important;
}

.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

/* Segmented Selection Styles */
.segmented-selection {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.segment-option {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.9em;
  line-height: 1;
  color: var(--agentbox-body-color);
  transition: all 0.2s ease;
  position: relative;
  border: 1px solid #c6c6c6;
  overflow: hidden;
  margin-right: -1px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.segment-option:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.segment-option:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  margin-right: 0;
}

.segment-option:not(:first-child):not(:last-child) {
  border-radius: 0;
}

.segment-option:hover {
  background: #e8f8fe;
  color: var(--agentbox-heading-color);
}

.segment-option.selected {
  background: #e8f8fe;
  color: var(--agentbox-heading-color);
  border: 1.5px solid #76d1f4;
  z-index: 2;
}

.segment-option.selected:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.segment-option.selected:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Reset Filters Button */
.reset-filters-button {
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #333;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-filters-button:hover {
  background: #f8f9fa;
}

/* All Filters Content */
.all-filters-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.all-filters-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 0;
  border-bottom: 1px solid #e0e0e0;
}

.all-filters-section:first-child {
  padding-top: 0;
}

.all-filters-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.all-filters-section-title {
  font-size: 16px;
  color: var(--agentbox-heading-color);
  font-weight: 500;
  margin: 0;
}

/* Exact Values Checkbox */
.exact-values-option {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exact-values-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: -5px;
}

.exact-values-option input[type="checkbox"]:checked {
  background-color: #76d1f4;
  border-color: #76d1f4;
}

.exact-values-option label {
  font-size: 14px;
  color: var(--agentbox-body-color);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Filter Dropdown Panel */
.filter-dropdown[data-filter-type="all-filters"] {
  width: 400px;
}

.filter-dropdown-content {
  padding: 24px;
}

/* Reset Filters Button - Inside Popup */
.filter-dropdown[data-filter-type="all-filters"] .reset-filters-button {
  background: none;
  border: none;
  color: var(--agentbox-body-color);
  padding: 4px 8px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-dropdown[data-filter-type="all-filters"] .reset-filters-button:hover {
  color: var(--agentbox-heading-color);
  text-decoration: underline;
}

/* Hide the reset button in the top bar when filters popup is open */
.filter-dropdown.active[data-filter-type="all-filters"]
  ~ .nowselling-filters
  .reset-filters-button {
  display: none !important;
}

.dropdown-group {
  position: relative;
}

.dropdown-group .dropdown-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid #c6c6c6;
  border-radius: 10px;
  min-width: 100px;
  color: var(--agentbox-body-color);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-group .dropdown-button.active {
  background: #e8f8fe;
  color: var(--agentbox-heading-color);
}

.dropdown-group .dropdown-button .selected-value {
  position: relative;
}

.dropdown-group .dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  left: calc(50% - 90px);
  background-color: #ffffff;
  border: 1px solid #c6c6c6;
  padding: 0;
  width: 180px;
  min-width: 100%;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.dropdown-group .dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-group .dropdown-content .dropdown-item {
  position: relative;
  display: block;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  line-height: 20px;
  color: var(--agentbox-body-color);
  font-weight: 500;
  text-align: left;
  background: #ffffff;
}

.dropdown-group .dropdown-content .dropdown-item:hover,
.dropdown-group .dropdown-content .dropdown-item.selected {
  background: #e8f8fe;
  color: var(--agentbox-heading-color);
}

/* Update filter group to not show reset button container when not needed */
.filter-group:empty {
  display: none;
}

/* Map Info Window */
.map-info-window {
  position: relative;
  max-width: 300px;
}

.map-info-window.list-window {
  padding-right: 4px;
  padding-bottom: 15px;
}

.map-info-window.single-window {
  padding: 0 15px 20px;
}

.map-info-window .cluster-properties-list {
  position: relative;
  padding: 0 4px 10px 16px;
  max-height: 330px;
  overflow-y: auto;
}

.map-info-window .cluster-property-item {
  position: relative;
  padding: 0;
}

.map-info-window .cluster-property-item:not(:last-child) {
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.map-info-window .property-details {
  padding: 15px 0 0;
}

.map-info-window h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--agentbox-heading-color);
  font-family: var(--agentbox-heading-font);
  font-weight: var(--agentbox-heading-font-weight);
  min-height: 40px;
}

.map-info-window p {
  margin: 5px 0;
  font-size: 14px;
  color: var(--agentbox-body-color);
  font-family: var(--agentbox-body-font);
  font-weight: var(--agentbox-body-font-weight);
}

.map-info-window .property-price {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
  width: fit-content;
  max-width: 160px;
  font-family: "Interstate";
}

.map-info-window .property-features {
  gap: 8px;
}

.map-info-window .property-features span {
  gap: 6px;
}

.map-info-window .property-features span svg,
.map-info-window .property-features span img {
  width: 16px;
}

.agentbox-map-marker {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agentbox-map-marker-dot {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  background: #e4002b;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.agentbox-map-marker-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #393a3d;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

#agentbox-madeneat-nowselling-wrapper {
  position: relative;
}

#agentbox-madeneat-nowselling-wrapper .listing {
  position: relative;
  background-color: #ffffff;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#agentbox-madeneat-nowselling-wrapper .listing .property-details {
  padding: 15px;
}

#agentbox-madeneat-nowselling-wrapper .listing:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#agentbox-madeneat-nowselling-wrapper .listing h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--agentbox-heading-color);
  font-family: var(--agentbox-heading-font);
  font-weight: var(--agentbox-heading-font-weight);
  min-height: 40px;
}

#agentbox-madeneat-nowselling-wrapper .listing p {
  margin: 5px 0;
  font-size: 14px;
  color: var(--agentbox-body-color);
  font-family: var(--agentbox-body-font);
  font-weight: var(--agentbox-body-font-weight);
}

#agentbox-madeneat-nowselling-wrapper .listing .property-price {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
  width: fit-content;
  max-width: 200px;
  text-align: right;
  font-family: "Interstate";
}

#agentbox-madeneat-nowselling-wrapper .no-results,
#agentbox-madeneat-nowselling-wrapper .error-message {
  text-align: center;
  padding: 20px;
  color: var(--agentbox-body-color);
  grid-column: 1 / -1;
}

#agentbox-madeneat-nowselling-wrapper.loading {
  pointer-events: none;
}

#agentbox-madeneat-nowselling-wrapper.loading .nowselling-list-view-container,
#agentbox-madeneat-nowselling-wrapper.loading .nowselling-map-view-container {
  display: none;
}

.nowselling-loading {
  position: relative;
  width: 100%;
  height: 300px;
  text-align: center;
}

.nowselling-loading .loader {
  position: absolute;
  top: calc(50% - 30px);
  left: calc(50% - 29px);
  width: 58px;
  height: 58px;
  transform: scale(0.6);
}

.nowselling-loading .loader span {
  position: absolute;
  background-color: #ffffff;
  height: 10px;
  width: 10px;
  border-radius: 5px;
  animation-name: f_fadeG;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-direction: normal;
}
.nowselling-loading .loader span:nth-child(1) {
  left: 0;
  top: 23px;
  animation-delay: 0.45s;
}
.nowselling-loading .loader span:nth-child(2) {
  left: 7px;
  top: 7px;
  animation-delay: 0.6s;
}
.nowselling-loading .loader span:nth-child(3) {
  left: 23px;
  top: 0;
  animation-delay: 0.75s;
}
.nowselling-loading .loader span:nth-child(4) {
  right: 7px;
  top: 7px;
  animation-delay: 0.9s;
}
.nowselling-loading .loader span:nth-child(5) {
  right: 0;
  top: 23px;
  animation-delay: 1.05s;
}
.nowselling-loading .loader span:nth-child(6) {
  right: 7px;
  bottom: 7px;
  animation-delay: 1.2s;
}

.nowselling-loading .loader span:nth-child(7) {
  left: 23px;
  bottom: 0;
  animation-delay: 1.35s;
}

.nowselling-loading .loader span:nth-child(8) {
  left: 7px;
  bottom: 7px;
  animation-delay: 1.5s;
}

@keyframes f_fadeG {
  0% {
    background-color: var(--agentbox-heading-color);
  }

  100% {
    background-color: #ffffff;
  }
}

.nowselling-filters-container {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.nowselling-filters-container::after {
  content: "";
  display: block;
  clear: both;
}

.nowselling-filters-container .nowselling-filters {
  float: left;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.nowselling-filters-container .nowselling-toggles {
  float: right;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

/* Filter Button Styles */
.nowselling-filters {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.nowselling-filters .filter-group {
  position: relative;
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 200px;
}

.nowselling-filters .filter-group label {
  display: none;
}

.nowselling-filters .filter-group select,
.nowselling-filters .filter-group input {
  position: relative;
  width: 100%;
  padding: 12px 12px;
  border: 1.5px solid #c6c6c6;
  border-radius: 10px;
  background: #ffffff;
  font-size: 100%;
  color: var(--agentbox-heading-color);
  height: 56px;
  outline: none;
  transition: all 0.3s ease;
  z-index: 0;
}

.nowselling-filters .filter-button {
  width: 100%;
  padding: 12px 12px;
  border: 1.5px solid var(--agentbox-button-bg-color, #000000);
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
  color: var(--agentbox-heading-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  height: 56px;
  transition: all 0.2s ease;
}

.nowselling-filters .filter-button .selected-value {
  color: var(--agentbox-heading-color);
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.nowselling-filters .filter-button svg {
  display: inline-block;
  width: initial;
  height: auto;
}

.nowselling-filters .filter-button svg path {
  fill: var(--agentbox-heading-color) !important;
}

.nowselling-filters .filter-button .arrow-down {
  width: 17px;
}

.nowselling-filters .filter-button .arrow {
  position: relative;
  width: 15px;
  height: 15px;
  margin-left: 8px;
}

.nowselling-filters .filter-button .arrow::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--agentbox-heading-color);
  border-bottom: 2px solid var(--agentbox-heading-color);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nowselling-filters .filter-button:hover {
  border-color: #76d1f4;
  background-color: #e8f8fe;
}

.nowselling-filters .filter-button:hover .arrow::before {
  border-color: #76d1f4;
}

.nowselling-filters .filter-button.active {
  border-color: #76d1f4;
  background-color: #e8f8fe;
}

.nowselling-filters .filter-button.active .arrow::before {
  border-color: #76d1f4;
}

/* View Toggle Styles */
.nowselling-toggles {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.nowselling-toggles .view-toggle-buttons {
  position: relative;
  display: inline-flex;
  padding: 0;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
}

.nowselling-toggles .view-toggle-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fffdfd;
  border: 1px solid var(--agentbox-heading-color, #000000);
  background: transparent;
  color: var(--agentbox-heading-color);
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  box-sizing: border-box;
  height: 56px;
  z-index: 0;
}

.nowselling-toggles .view-toggle-button svg path {
  fill: var(--agentbox-heading-color) !important;
}

.nowselling-toggles .view-toggle-button:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.nowselling-toggles .view-toggle-button:not(:first-child) {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.nowselling-toggles .view-toggle-button svg {
  position: relative;
  display: inline-block;
  width: initial;
  height: auto;
}

.nowselling-toggles .view-toggle-button span {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.nowselling-toggles .view-toggle-button.active {
  background: #e8f8fe;
  border-color: var(--agentbox-button-bg-color, #000000);
  z-index: 3;
}

.nowselling-toggles .view-toggle-button:hover:not(.active) {
  background: #e8f8fe;
  border-color: #76d1f4;
}

.nowselling-toggles .view-toggle-orders {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(100% - 290px);
  flex: 1;
}

.nowselling-toggles .view-counter-text {
  position: relative;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--agentbox-heading-color);
  margin-right: 10px;
}

.nowselling-toggles .view-counter-text span {
  font: inherit;
  color: inherit;
}

.nowselling-toggles .view-orders-buttons {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nowselling-toggles .view-orders-buttons .order-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 6px;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  font-size: 100%;
  color: var(--agentbox-heading-color);
}

.nowselling-toggles .view-orders-buttons .order-button svg {
  position: relative;
  display: inline-block;
  width: initial;
  height: auto;
}

.nowselling-toggles .view-orders-buttons .order-button svg path {
  fill: var(--agentbox-heading-color) !important;
  transition: fill 0.2s ease;
}

@media (min-width: 769px) {
  .nowselling-toggles .view-orders-buttons .order-button:hover svg path {
    fill: #76d1f4 !important;
  }
}

.nowselling-toggles .view-orders-buttons .order-label,
.nowselling-toggles .view-orders-buttons .order-label-by {
  font-size: 100%;
  font-weight: 600;
  color: var(--agentbox-heading-color);
}

.nowselling-toggles .view-orders-buttons .dropdown-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: none;
  outline: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 100%;
  color: var(--agentbox-heading-color) !important;
  transition: all 0.2s ease;
}

.nowselling-toggles .view-orders-buttons .dropdown-button .selected-value {
  color: inherit;
}

.nowselling-toggles .view-orders-buttons .dropdown-button .arrow {
  width: 13px;
}

.nowselling-toggles .view-orders-buttons .dropdown-button svg {
  position: relative;
  width: initial;
  height: auto;
}

.nowselling-toggles .view-orders-buttons .dropdown-button svg path {
  fill: var(--agentbox-heading-color) !important;
  transition: fill 0.2s ease;
}

/*
.nowselling-toggles .view-orders-buttons .dropdown-button:hover {
  color: #76d1f4 !important;
}


.nowselling-toggles .view-orders-buttons .dropdown-button:hover svg path {
  fill: #76d1f4 !important;
}

*/

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 8px;
}

.pagination-container .pagination-button {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1.5px solid #c6c6c6;
  background: #fff;
  border-radius: 10px;
  font-size: 14px;
  color: #666666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-container .pagination-button:hover {
  border-color: #76d1f4;
  background-color: #e8f8fe;
  color: #333333;
}

.pagination-container .pagination-button.active {
  background-color: #e8f8fe;
  border-color: #76d1f4;
  color: #333333;
  font-weight: 500;
}

.pagination-container .pagination-button.disabled {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
  color: #999999;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-container .pagination-button.prev,
.pagination-container .pagination-button.next {
  min-width: 80px;
}

.pagination-container .pagination-button.prev::before,
.pagination-container .pagination-button.next::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-style: solid;
  border-width: 2px 2px 0 0;
  margin: 0 4px;
}

.pagination-container .pagination-button.prev::before {
  transform: rotate(-135deg);
}

.pagination-container .pagination-button.next::after {
  transform: rotate(45deg);
}

.load-more-indicator {
  width: 100%;
  text-align: center;
  padding: 20px;
  color: var(--agentbox-body-color);
  font-size: 100%;
  font-weight: 500;
  text-align: center;
}

.load-more-indicator .load-more-loader {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  transform: scale(0.6);
}

.load-more-indicator .load-more-loader span {
  position: absolute;
  background-color: #ffffff;
  height: 9px;
  width: 9px;
  border-radius: 5px;
  animation-name: m_fadeG;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-direction: normal;
}
.load-more-indicator .load-more-loader span:nth-child(1) {
  left: 0;
  top: 19px;
  animation-delay: 0.45s;
}
.load-more-indicator .load-more-loader span:nth-child(2) {
  left: 6px;
  top: 6px;
  animation-delay: 0.6s;
}
.load-more-indicator .load-more-loader span:nth-child(3) {
  left: 19px;
  top: 0;
  animation-delay: 0.75s;
}
.load-more-indicator .load-more-loader span:nth-child(4) {
  right: 6px;
  top: 6px;
  animation-delay: 0.9s;
}
.load-more-indicator .load-more-loader span:nth-child(5) {
  right: 0;
  top: 19px;
  animation-delay: 1.05s;
}
.load-more-indicator .load-more-loader span:nth-child(6) {
  right: 6px;
  bottom: 6px;
  animation-delay: 1.2s;
}

.load-more-indicator .load-more-loader span:nth-child(7) {
  left: 19px;
  bottom: 0;
  animation-delay: 1.35s;
}

.load-more-indicator .load-more-loader span:nth-child(8) {
  left: 6px;
  bottom: 6px;
  animation-delay: 1.5s;
}

@keyframes m_fadeG {
  0% {
    background-color: var(--agentbox-body-color);
  }

  100% {
    background-color: #ffffff;
  }
}

.load-more-indicator .load-more-text {
  font: inherit;
  color: inherit;
  text-align: center;
  margin-top: 10px;
}

.filter-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nowselling-list-view-container {
  position: relative;
  width: 100%;
}

.nowselling-list-view-container .nowselling-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  margin: 0;
}

.nowselling-map-view-container {
  position: relative;
  display: none;
  overflow: hidden;
  width: 0%;
}

.nowselling-map-view-container .nowselling-map {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nowselling-filters .search-filter-group {
  position: relative;
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: block;
}

.nowselling-filters .search-filter-group .search-input {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 72px 12px 12px;
  border: 1px solid #c6c6c6;
  border-radius: 10px;
  background: #ffffff;
  font-size: 100%;
  color: var(--agentbox-heading-color);
  height: 56px;
  outline: none;
  transition: all 0.3s ease;
  z-index: 0;
}

.nowselling-filters .search-filter-group .search-input:focus {
  border-color: #76d1f4;
  outline: none;
}

.nowselling-filters .search-filter-group .search-button {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px;
  border: 1px solid #76d1f4;
  border-radius: 0 10px 10px 0;
  background: #76d1f4;
  cursor: pointer;
  width: 50px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.nowselling-filters .search-filter-group .clear-button {
  position: absolute;
  top: 50%;
  right: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  padding: 0;
  font-family: "Roboto", sans-serif;
  color: var(--agentbox-heading-color);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  outline: none;
  visibility: hidden;
  opacity: 0;
}

.nowselling-filters
  .search-filter-group
  .search-input:not(:placeholder-shown)
  + .clear-button {
  opacity: 1;
  visibility: visible;
}

.nowselling-filters .search-filter-group .search-button:hover {
  background: #43b7e6;
  border-color: #43b7e6;
}

.nowselling-filters .search-filter-group .search-button svg {
  width: 24px;
}

.nowselling-filters .search-filter-group .search-button svg path {
  fill: var(--agentbox-heading-color) !important;
}

.nowselling-filters .filters-scrollbar {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  padding: 0;
  margin: 0;
  border: none;
}
body {
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

.filters-modal {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 100000;
}

.filters-modal .filters-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: calc(100vh - 40px);
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px auto;
  animation: modalFadeIn 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  top: 50%;
  transform: translate(0, -50%);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.filters-modal .filters-modal-header {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding: 16px 32px;
  border-bottom: 1px solid #e0e0e0;
}

.filters-modal .filters-modal-header .filters-modal-title {
  position: relative;
  font-size: 20px;
  line-height: 40px;
  font-weight: 600;
  color: var(--agentbox-heading-color);
  text-align: left;
}

.filters-modal .filters-modal-header .filters-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: var(--agentbox-heading-color);
}

.filters-modal .filters-modal-header .filters-modal-close:hover {
  color: #76d1f4;
}

.filters-modal .filters-modal-body {
  position: relative;
  display: block;
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.filters-modal .filters-modal-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 16px 32px;
  border-top: 1px solid #e0e0e0;
}

.filters-modal .filters-modal-footer .filters-modal-button-apply {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 45px;
  border: 1px solid #76d1f4;
  border-radius: 10px;
  background: #76d1f4;
  outline: none;
  color: var(--agentbox-heading-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filters-modal .filters-modal-footer .filters-modal-button-apply:hover {
  background: #43b7e6;
  border-color: #43b7e6;
}

.filters-modal .filters-modal-footer .filters-modal-button-clear {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 45px;
  border: 1px solid #ffffff;
  outline: none;
  border-radius: 10px;
  background: #ffffff;
  color: var(--agentbox-heading-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filters-modal .filters-modal-footer .filters-modal-button-clear:hover {
  background: #f5f5f5;
  border-color: #f5f5f5;
}

body .gm-style .gm-style-iw-c {
  padding: 0;
}

body .gm-style .gm-style-iw-tc {
  padding: 0;
}

body .gm-style .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0;
}

body .gm-style .gm-style-iw-chr {
  padding: 0;
}

body .gm-style .gm-style-iw-chr button {
  width: 36px !important;
  height: 36px !important;
}

body .gm-style .gm-style-iw-chr button span {
  margin: 6px !important;
}

@media (max-width: 768px) {
  .view-toggle-button span {
    display: none;
  }

  .view-toggle-button {
    padding: 8px;
  }
}

#agentbox-madeneat-nowselling-wrapper {
  position: relative;
}

#agentbox-madeneat-nowselling-wrapper::after {
  content: "";
  display: block;
  clear: both;
}

#agentbox-madeneat-nowselling-wrapper .nowselling-filters {
  clear: both;
}

/* Side-by-side layout when map view is active */
#agentbox-madeneat-nowselling-wrapper.map-view-active {
  position: relative;
}

#agentbox-madeneat-nowselling-wrapper.map-view-active
  .nowselling-list-view-container {
  float: left;
  width: 30%;
  width: calc((100% - 40px) / 3);
}

#agentbox-madeneat-nowselling-wrapper.map-view-active
  .nowselling-map-view-container {
  position: sticky;
  top: 150px;
  float: right;
  display: block;
  width: calc(70% - 20px);
  width: calc((100% - 40px) / 3 * 2 + 20px);
}

.load-more-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

#agentbox-madeneat-nowselling-wrapper .agentbox-global-button {
  position: relative;
  font-family: var(--agentbox-body-font);
  line-height: 23px;
  font-weight: 400;
  width: 200px;
  background-color: var(--agentbox-button-bg-color, #000000);
  color: var(--agentbox-button-text-color, #ffffff);
  font-size: 14px;
  padding: var(--agentbox-button-padding, 10px 20px);
  border-radius: var(--agentbox-button-border-radius, 4px);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border: 1px solid var(--agentbox-button-bg-color, #000000);
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease;
  margin: 20px auto;
}

#agentbox-madeneat-nowselling-wrapper .agentbox-global-button-pagination {
position: relative;
  font-family: var(--agentbox-body-font);
  line-height: 23px;
  font-weight: 400;
  width: auto;
  color: var(--agentbox-button-hover-bg-color, #333333);
  background-color: transparent;
  border: 1px solid var(--agentbox-button-hover-bg-color, #333333);
  font-size: 14px;
  padding: var(--agentbox-button-padding, 10px 10px);
  border-radius: var(--agentbox-button-border-radius, 4px);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

#agentbox-madeneat-nowselling-wrapper .agentbox-global-button-pagination:hover,
#agentbox-madeneat-nowselling-wrapper .agentbox-global-button-pagination.active {
background-color: var(--agentbox-button-bg-color, #000000);
  border: 1px solid var(--agentbox-button-bg-color, #000000);
  color: var(--agentbox-button-text-color, #ffffff);
  
}

#agentbox-madeneat-nowselling-wrapper .agentbox-global-button:hover {
  border: 1px solid var(--agentbox-button-hover-bg-color, #333333);
  background-color: transparent;
  color: var(--agentbox-button-hover-bg-color, #333333);
}

@media (min-width: 769px) {
  #agentbox-madeneat-nowselling-wrapper.map-view-active .nowselling-grid {
    grid-template-columns: minmax(0px, 1fr);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dropdown-group .dropdown-content {
    left: auto;
    right: 0;
  }

  .all-filters-section {
    padding: 24px 0;
  }

  .filters-modal .filters-modal-content {
    max-width: 100%;
    max-width: calc(100% - 40px);
  }

  .filters-modal .filters-modal-header {
    padding: 16px 16px;
  }

  .filters-modal .filters-modal-header .filters-modal-title {
    font-size: 18px;
    line-height: 32px;
  }

  .filters-modal .filters-modal-body {
    padding: 24px 16px;
  }

  .filters-modal .filters-modal-footer {
    padding: 12px 16px;
  }

  .filters-modal .filters-modal-footer .filters-modal-button-apply {
    height: 42px;
  }

  .filters-modal .filters-modal-footer .filters-modal-button-clear {
    height: 42px;
  }

  .filters-modal .filters-modal-header .filters-modal-close {
    top: 16px;
    right: 16px;
  }

  .nowselling-list-view-container .nowselling-grid {
    grid-template-columns: minmax(0px, 1fr);
  }

  .nowselling-filters-container .nowselling-filters {
    float: none;
    width: 100%;
    margin-bottom: 20px;
  }

  .nowselling-filters-container .nowselling-toggles {
    float: none;
    width: 100%;
  }

  .nowselling-filters {
    flex-wrap: wrap;
    padding: 0;
    gap: 15px 10px;
  }

  .nowselling-filters .search-filter-group {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    z-index: 1;
  }

  .nowselling-toggles .view-orders-buttons {
    position: absolute;
    right: 0;
    top: -62px;
    z-index: 3;
  }

  .nowselling-toggles .view-toggle-buttons {
  }

  .nowselling-filters .filters-scrollbar {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    padding-bottom: 10px;
    overflow-x: auto;
    z-index: 1;
  }

  /* Webkit scrollbar styles (Chrome, Safari) */
  .nowselling-filters .filters-scrollbar::-webkit-scrollbar {
    height: 6px;
  }

  .nowselling-filters .filters-scrollbar::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 6px;
  }

  .nowselling-filters .filters-scrollbar::-webkit-scrollbar-thumb {
    background-color: #c6c6c6;
    border-radius: 6px;
  }

  .nowselling-filters .filters-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #c6c6c6;
  }

  .nowselling-filters .filter-group {
    min-width: 120px;
  }

  .filter-popup {
    width: 95%;
    max-height: 80vh;
  }

  .filter-popup-content {
    max-height: 50vh;
  }

  .nowselling-toggles {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px;
  }

  .nowselling-toggles .view-toggle-orders {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .nowselling-toggles .view-toggle-orders .view-orders-buttons .order-label-by {
    display: none;
  }

  .nowselling-toggles .view-toggle-orders .view-orders-buttons .dropdown-group {
    display: none;
  }

  .nowselling-map-view-container {
    display: none;
    width: 100%;
  }

  #agentbox-madeneat-nowselling-wrapper.map-view-active
    .nowselling-list-view-container {
    float: none;
    width: 100%;
    display: none;
  }

  #agentbox-madeneat-nowselling-wrapper.map-view-active
    .nowselling-map-view-container {
    position: relative;
    top: unset;
    float: none;
    width: 100%;
  }

  .nowselling-map-view-container .nowselling-map {
    height: 600px;
  }

  .filter-dropdown,
  .filter-dropdown[data-filter-type="all-filters"] {
    width: 90vw;
    width: calc(100vw - 40px);
    max-width: 600px;
  }

  .filter-dropdown-title {
    line-height: 32px;
  }

  .nowselling-filters-container .nowselling-filters {
    order: 2;
  }

  .nowselling-filters-container .nowselling-toggles {
    order: 1;
    justify-content: space-between;
    width: 100% !important;
  }

  .nowselling-toggles .view-toggle-buttons {
    width: 100% !important;
  }
  .nowselling-filters-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .nowselling-toggles .view-orders-buttons {
    position: absolute;
    right: 0;
    top: 90px;
    z-index: 3;
  }

  .nowselling-toggles .view-toggle-button {
    width: 50% !important;
    justify-content: center;
  }

  .gm-style .gm-style-iw-c {
    max-width: 300px !important;
  }

  .map-info-window .property-price {
    font-size: 12px;
  }

  .map-info-window .property-price span {
    font-size: 14px;
  }
  
  
}

@media (max-width: 340px) {
  .nowselling-filters .filter-group {
    max-width: 100%;
    width: 100%;
  }

  .nowselling-toggles .view-orders-buttons {
    position: absolute;
    right: auto;
    top: 145px;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
  }

  .nowselling-filters-container {
    margin-bottom: 40px;
  }

  .gm-style .gm-style-iw-c {
    max-width: 260px !important;
  }
}
