.modal-content {
  border-radius: 8px;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  padding: 15px 20px;
}

.modal-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.filter-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.filter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0;
}

.filter-item:hover {
  background-color: #f8f9fa;
}

.item-left {
  display: flex;
  align-items: center;
}

.item-left i {
  width: 20px;
  color: #555;
  text-align: center;
}

.sub-items .filter-item {
  padding-left: 55px;
}

.form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #e03c31;
  border-color: #e03c31;
}

.btn-reset {
  color: #222;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  margin-left: 1rem;
}

.btn-apply {
  background-color: #e03c31;
  color: white;
  padding: 8px 30px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.btn-apply:hover {
  background-color: #c03026;
  color: white;
}

.price-filter-wrapper,
.area-filter-wrapper {
  width: 100%;
}

.price-filter-wrapper .input-group,
.area-filter-wrapper .input-group {
  height: 4rem;
}

.price-filter-wrapper .input-group input,
.area-filter-wrapper .input-group input {
  font-size: 1.5rem;
}

.price-options-list,
.area-options-list {
  overflow-y: auto;
}

.range-slider-container {
  position: relative;
  width: 100%;
  height: 2rem;
  background: #e9ecef;
  border-radius: 10px;
  margin-top: 3rem;
}

.slider-price-track,
.slider-area-track {
  position: absolute;
  height: 100%;
  background: #e03c31;
  border-radius: 10px;
  z-index: 1;
}

.range-input {
  position: absolute;
  width: 100%;
  height: 3rem;
  top: -0.5rem;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  z-index: 2;
}

.range-input::-webkit-slider-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e03c31;
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.range-input::-webkit-slider-thumb:hover {
  background: #f8f9fa;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.box-type-filter {
  width: 80%;
  height: 4.5rem;
  margin: 2rem auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  background-color: #eff1f5;
  padding: 4px;
  border-radius: 2rem;
  overflow: hidden;
  align-items: center;
}

.slider-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 8px);
  height: calc(100% - 8px);
  background-color: #1c1f22;
  border-radius: 2rem;
  transition: all 0.3s ease;
  z-index: 0;
}

.type-sell,
.type-rent {
  width: 50%;
  font-size: 1.75rem;
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.type-sell i,
.type-rent i {
  font-size: 2rem;
  margin-right: 1rem;
}

.type-sell.checked,
.type-rent.checked {
  color: #fff;
}

.type-sell.nochecked,
.type-rent.nochecked {
  color: #737d87;
}

.modalAdvanceFilterRealEstate .modal-body {
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.filter-section {
  padding: 1rem 3rem;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 10px;
}

.filter-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.filter-add {
  display: flex;
  width: 11rem;
  gap: 1rem;
  color: #e03c31;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
}

.filter-add:hover {
  background-color: lightgray;
}

.filter-select-item {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.filter-select-item .left {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #333;
}

.filter-select-item .right {
  color: #999;
}

.badge-recommend {
  background: #dff5e8;
  color: #1d9c63;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
}

.filter-verify-box {
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 10px;
}

.verify-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.verify-title {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.verify-desc {
  padding-left: 18px;
  color: #666;
  font-size: 14px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background: #00a652;
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}

.box-filter-advance {
  position: absolute;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #fff;

  transform: translateX(100%);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.box-filter-advance.active {
  transform: translateX(0);
}

#layout-filter-main {
  transform: translateX(0);
}

.modal-body.slide-sub #layout-filter-main {
  transform: translateX(-30%);
  opacity: 0.4;
}

.modal-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-filter-header .btn-back-filter {
  border: none;
  background: none;
  font-size: 2rem;
  padding: 6px 10px;
  color: #fff;
}

.modal-filter-header .modal-title {
  flex: 1;
  text-align: left;
  margin-left: 6px;
}

.selected-badges {
  display: none;
}

.selected-badges.active {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.filter-badge {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 12px;
  border-radius: 20px;

  background: #f1f1f1;
  font-size: 14px;
}

.filter-badge .remove {
  cursor: pointer;
  font-size: 2rem;
  margin-left: 0.5rem;
  font-weight: 600;
}

#filter-categories-realestate {
  display: block;
  max-width: 20rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#filter-reset-filter-realestate {
  display: none;
}

.sidebar-filter-realestate {
  padding: 20px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-filter-realestate .item-filter {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-filter-realestate .item-filter.active {
  color: #ff5a5f;
  font-weight: bold;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.sidebar-filter-realestate .item-filter:hover {
  background-color: #eee;
}

.map-box-elite {
  display: flex;
  justify-content: center;
  margin-left: 3rem;
  padding: 1rem;
}

.modal-body-select-address {
  padding: 1rem 2rem;
}

.box-select-address {
  display: flex;
  padding: 1rem;
  gap: 2rem;
  justify-content: space-between;
}

.select-address {
  width: 100%;
  position: relative;
}

.select-address p {
  margin-bottom: 1rem;
}

.select-wrapper-address-select {
  position: relative;
  width: 100%;
  pointer-events: auto;
  cursor: pointer;
}

.select-wrapper-address-select.disabled {
  cursor: default;
  pointer-events: none;
}

.select-wrapper-address-select.disabled input {
  border-color: #c1c9d2;
  background-color: #eff1f5;
  border-radius: 20px;
}

.select-wrapper-address-select:hover {
  background-color: rgba(0, 0, 0, 0.169);
  border-radius: 20px;
}

.input-address-select {
  width: 100%;
  height: 5rem;
  position: relative;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: #3e4246;
  font-size: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.169);
  background-color: transparent;
  padding: 0.5rem 6rem 0.5rem 2rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  display: block;
  cursor: pointer;
  text-overflow: ellipsis;
}

.input-address-select::placeholder {
  color: #5c5e61;
}

.icon-CaretDown-select.active {
  transform: rotate(90deg);
}

.icon-CaretDown-select {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.suggestions-address {
  position: absolute;
  display: none;
  padding: 0.5rem 1rem;
  height: auto;
  overflow: auto;
  z-index: 30;
  background: #fff;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.175);
  border-radius: 20px;
  box-sizing: border-box;
  transition: 0.3s ease;
}

.suggestions-address i {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-weight: 600;
}

.suggestions-address .suggestion-item {
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.suggestions-address .suggestion-item.active {
  background-color: #88888847;
}

.suggestions-address .suggestion-item:hover {
  background-color: #f0f0f0;
}

.box-suggestions-address {
  position: relative;
}

.box-suggestions-address .box-input-search-address {
  padding-top: 1rem;
  transform: translateY(-9px);
  margin-bottom: -1rem;
}

.box-suggestions-address .box-input-search-address svg {
  position: absolute;
  top: 1.75rem;
  left: 1rem;
}

.box-input-search-address {
  position: sticky;
  width: 100%;
  top: 0;
  background-color: #fff;
}

.box-input-search-address .clear-input {
  display: none;
  position: absolute;
  right: 1rem;
  left: unset;
  font-weight: 600;
  cursor: pointer;
}

.input-search-address {
  position: sticky;
  top: 0;
  width: 100%;
  height: 4rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: #3e4246;
  font-size: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.169);
  background-color: transparent;
  padding: 0.7rem 4rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  background-color: #fff;
}

.input-search-address:hover {
  background-color: rgba(0, 0, 0, 0.169);
}

.cancel-select-address {
  display: none;
}

.cancel-select-address.active {
  position: sticky;
  display: flex;
  flex-direction: row-reverse;
  bottom: -8px;
  background: #fff;
  z-index: 20;
  padding: 0.5rem;
}

.cancel-select-address.active .btn-cancel-select-address {
  border: 1px solid #3e4143;
  border-radius: 20px;
  color: #0d1011;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 4px rgba(40, 44, 46, 0.078);
  cursor: pointer;
}

#map-container {
  position: relative;
  margin: 4rem 0;
}

#input-address-select-innews {
  cursor: text;
}

#map {
  width: 46rem;
  height: 30rem;
  position: relative;
}

#map .mapboxgl-canvas {
  width: 46rem !important;
  height: 30rem !important;
}

.box-suggestions-address {
  max-height: 20rem;
  overflow-y: auto;
}

.clear-input-tag-ward {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 3.5rem;
  font-size: 2rem;
  cursor: pointer;
  font-weight: 600;
}

.ward-tooltip .mapboxgl-popup-content {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
}

.ward-tooltip .mapboxgl-popup-tip {
  display: none !important;
}

.tool-top-map-filter {
  background: rgba(33, 37, 41, 0.9);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tool-top-map-filter i {
  color: #ff4d4d;
  margin-right: 5px;
}
