@charset "UTF-8";
.search-box {
  background: #4e1f1a;
  padding: 20px;
  border-radius: 10px;
  color: gray;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.location-selector {
  background: #eee;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.search-bar input {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
  border-radius: 4px;
  background: #f8f8f8;
  min-width: 200px;
}

.search-btn {
  background: #d92925;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.filter-bar {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.filter-bar button {
  background: #2c1813;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  width: 32%;
}

/* === POPUP TỈNH/THÀNH === */
.province-popup {
  position: absolute;
  background: #fff;
  color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 1140px;
  top: 100%;
  left: 0;
  z-index: 2;
  display: none;
}

.province-popup h4 {
  margin: 10px 0;
  font-size: 16px;
  font-weight: 600;
}

.top-provinces {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  justify-content: space-between;
}

.province-card {
  position: relative;
  width: 140px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
}

.province-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.province-card .overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.province-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 12px;
  margin-top: 15px;
}

.province-list span {
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.province-list span:hover {
  background: #eee;
}

/* === POPUP CHUNG (loại hình & giá) === */
.popup-panel {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  color: #000;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 300px;
  padding: 20px;
  display: none;
  z-index: 2;
}

#projectPopup {
  width: 33%;
  top: 100%;
  left: 0;
}

#pricePopup {
  width: 33%;
  top: 100%;
  left: 33%;
}

#areaPopup {
  width: 34%;
  top: 100%;
  left: 66%;
}

.popup-panel h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-options {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
}

.panel-options label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
}

.popup-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.popup-actions button {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-reset {
  background: #eee;
}

.btn-apply {
  background: #d92925;
  color: #fff;
}

.price-range {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.price-range input {
  width: 45%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.range-slider {
  width: 100%;
  margin: 10px 0;
}

.area-range {
  display: flex;
  gap: 20px;
}
.area-range input {
  border-radius: 5px;
}

.email-alert-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
}

.email-alert-toggle .icon {
  background-color: #fdbb0b;
  border-radius: 50%;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-alert-toggle .bell-icon {
  font-size: 16px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  margin-left: auto;
}

.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: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2dc275;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

@keyframes shake-bell {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(-15deg);
  }
  30% {
    transform: rotate(10deg);
  }
  45% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(6deg);
  }
  75% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.bell-icon {
  display: inline-block;
  animation: shake-bell 1s ease-in-out infinite;
  transform-origin: top center;
}

.custom-phone-btn {
  float: right;
}

.vip-badge {
  background-color: #e60000;
  color: white;
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
  text-transform: uppercase;
}

.filter-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.search-input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 200px;
  flex: 1;
}

.filter-select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 130px;
  background-color: #fff;
}

.filter-btn {
  padding: 8px 12px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

.total-duan p {
  margin-bottom: 0px;
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  height: 66px !important;
  margin-top: 2px !important;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.main-image img {
  height: 179px !important;
  width: 100% !important;
}

.sub-image img {
  height: 68px !important;
  width: 100% !important;
}