

.imt-toolbar {
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  overflow: visible;
  position: relative;
  z-index: 300;
}
.imt-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  overflow: visible;
}
.imt-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-wrap: wrap;
  overflow: visible;
}
.imt-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.imt-toolbar-bottom {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 0.75rem 0.75rem;
  background: transparent;
}
.imt-control,
.imt-btn {
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  color: #111827;
  font-size: 1.02rem;
}
.imt-control {
  padding: 0 2rem 0 0.75rem;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23111827' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 10px 6px;
}
.imt-btn {
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.imt-search {
  position: relative;
  width: 255px;
  min-width: 220px;
}
.imt-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0 0.75rem 0 2.1rem;
  font-size: 1.02rem;
}
.imt-search svg {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}
.imt-filter-select-collection { width: 260px; }
.imt-filter-select-price { width: 205px; }
.imt-filter-select-beds { width: 190px; }
.imt-filter-select-baths { width: 190px; }
.imt-filter-select-sort { width: 200px; }
.imt-filter-input:focus,
.imt-filter-select:focus,
.imt-search input:focus,
.imt-btn:focus,
.imt-control:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.12);
}
.imt-list-btn {
  font-size: 1.02rem;
  padding: 0 0.9rem;
}
.imt-list-btn .imt-list-icon {
  font-size: 1rem;
  color: #374151;
}
.imt-view-toggle {
  font-size: 1.02rem;
}
.imt-map-mock {
  position: relative;
  min-height: 540px;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 25%, rgba(30, 58, 138, 0.16) 0, rgba(30, 58, 138, 0.16) 8px, transparent 9px),
    radial-gradient(circle at 72% 42%, rgba(30, 58, 138, 0.16) 0, rgba(30, 58, 138, 0.16) 7px, transparent 8px),
    radial-gradient(circle at 55% 72%, rgba(30, 58, 138, 0.16) 0, rgba(30, 58, 138, 0.16) 9px, transparent 10px),
    linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #e2e8f0 100%);
}
.imt-map-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(17, 24, 39, 0.8);
  color: #fff;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}
.imt-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 9999px;
  background: #1f3b78;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.38rem 0.62rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
}
.imt-filter-modal-panel {
  max-height: 85vh;
  overflow-y: auto;
}
.imt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 0.82rem;
  background: #fff;
}
@media (max-width: 1200px) {
  .imt-toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }
  .imt-toolbar-actions {
    justify-content: flex-end;
  }
}
@media (max-width: 768px) {
  .imt-search,
  .imt-filter-select-collection,
  .imt-filter-select-price,
  .imt-filter-select-beds,
  .imt-filter-select-baths,
  .imt-filter-select-sort {
    width: 100%;
    min-width: 0;
  }
  .imt-toolbar-controls {
    width: 100%;
  }
  .imt-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }
}



.imt-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
.imt-collection-custom {
  position: relative;
  width: 260px;
  z-index: 320;
}
.imt-custom-trigger {
  width: 100%;
  text-align: left;
}
.imt-custom-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 290px;
  max-height: 330px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  z-index: 330;
}
.imt-custom-option {
  width: 100%;
  border: 0;
  background: #fff;
  color: #111827;
  text-align: left;
  padding: 0.75rem 0.9rem;
  font-size: 1.02rem;
  line-height: 1.35;
  cursor: pointer;
}
.imt-custom-option:hover {
  background: #f3f4f6;
}
.imt-custom-option.is-active {
  background: #1f3b78;
  color: #fff;
}
.imt-inline-custom {
  position: relative;
  z-index: 320;
}
.imt-beds-custom { width: 190px; }
.imt-baths-custom { width: 190px; }
.imt-sort-custom { width: 200px; }
.imt-inline-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-align: left;
  padding-right: 2rem;
}
.imt-inline-trigger svg {
  width: 14px;
  height: 14px;
  color: #111827;
  flex: 0 0 auto;
}
.imt-trigger-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.imt-inline-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  z-index: 330;
}
.imt-baths-custom .imt-inline-menu { min-width: 220px; }
.imt-sort-custom .imt-inline-menu { min-width: 240px; }
.imt-inline-option {
  width: 100%;
  border: 0;
  background: #fff;
  color: #111827;
  text-align: left;
  padding: 0.68rem 0.9rem;
  font-size: 0.95rem;
  line-height: 1.3;
  cursor: pointer;
}
.imt-inline-option:hover {
  background: #f3f4f6;
}
.imt-inline-option.is-active {
  background: #1f3b78;
  color: #fff;
}
.imt-price-custom {
  position: relative;
  width: 205px;
  z-index: 320;
}
.imt-price-trigger {
  width: 100%;
  text-align: left;
}
.imt-price-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 318px;
  background: #f3f4f6;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  z-index: 330;
  padding: 0.8rem 0.8rem 0.9rem;
}
.imt-price-head {
  display: none;
}
.imt-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0;
}
.imt-price-field {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
  background: #f3f4f6;
  color: #9ca3af;
  height: 34px;
  padding: 0 0.5rem;
}
.imt-price-field span {
  flex: 0 0 auto;
  font-size: 0.92rem;
}
.imt-price-field input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.2;
  padding-left: 0.3rem;
}
.imt-price-field input::-webkit-outer-spin-button,
.imt-price-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.imt-price-field input[type='number'] {
  -moz-appearance: textfield;
}
.imt-price-slider-wrap {
  position: relative;
  height: 28px;
  margin-top: 1rem;
}
.imt-price-track,
.imt-price-track-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 9999px;
}
.imt-price-track {
  background: #d1d5db;
}
.imt-price-track-fill {
  background: #1f3b78;
  left: 0;
  right: auto;
  width: 100%;
}
.imt-price-range {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.imt-price-range::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.imt-price-range::-moz-range-track {
  height: 4px;
  background: transparent;
}
.imt-price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #fff;
  border: 3px solid #1f3b78;
  margin-top: -5px;
  pointer-events: auto;
  cursor: pointer;
}
.imt-price-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #fff;
  border: 3px solid #1f3b78;
  pointer-events: auto;
  cursor: pointer;
}
.imt-price-scale {
  display: flex;
  justify-content: space-between;
  color: #1f3b78;
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.imt-price-actions {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.imt-price-reset {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.82rem;
  text-decoration: underline;
  padding: 0;
}
.imt-price-apply {
  border: 0;
  border-radius: 0.5rem;
  background: #1f3b78;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1;
  height: 36px;
  padding: 0 1rem;
}
.imt-price-apply:hover {
  background: #173161;
}
@media (max-width: 768px) {
  .imt-price-custom {
    width: 100%;
  }
  .imt-price-panel {
    width: 100%;
  }

  .imt-beds-custom,
  .imt-baths-custom,
  .imt-sort-custom {
    width: 100%;
  }
  .imt-inline-menu {
    width: 100%;
    min-width: 100%;
    max-width: none;
  }

}
@media (max-width: 768px) {
  .imt-collection-custom {
    width: 100%;
  }
  .imt-custom-menu {
    width: 100%;
  }
}



/* imt modal v2 */
.imt-filter-modal-panel {
  background: #f3f4f6;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  color: #1f2937;
}
.imt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid #d1d5db;
}
.imt-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: #1f2937;
}
.imt-modal-close {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
}
.imt-modal-body {
  padding: 1rem 1rem 0.9rem;
  overflow-y: auto;
}
.imt-modal-section {
  margin-bottom: 1.2rem;
}
.imt-modal-title {
  margin: 0 0 0.7rem;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 600;
  color: #374151;
}
.imt-modal-chip-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.imt-modal-chip {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  border: 1px solid #cdd5df;
  background: #eceff2;
  color: #374151;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.imt-modal-chip.is-active {
  background: #1f3b78;
  border-color: #1f3b78;
  color: #fff;
}
.imt-modal-sort-row {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.imt-modal-sort-btn {
  min-width: 142px;
  height: 44px;
  border-radius: 0.45rem;
  border: 1px solid #cbd5e1;
  background: #eceff2;
  color: #374151;
  font-size: 1rem;
  font-weight: 500;
  padding: 0 0.9rem;
}
.imt-modal-sort-btn.is-active {
  border-color: #1f3b78;
  background: #1f3b78;
  color: #fff;
}
.imt-modal-price-wrap {
  margin-top: 0.4rem;
}
.imt-modal-price-slider {
  position: relative;
  height: 28px;
}
.imt-modal-price-track,
.imt-modal-price-track-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 9999px;
}
.imt-modal-price-track {
  background: #cbd5e1;
}
.imt-modal-price-track-fill {
  background: #7dc6ee;
  left: 0;
  right: auto;
  width: 100%;
}
.imt-modal-price-range {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.imt-modal-price-range::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.imt-modal-price-range::-moz-range-track {
  height: 4px;
  background: transparent;
}
.imt-modal-price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  border: 2px solid #7dc6ee;
  background: #fff;
  margin-top: -5px;
  pointer-events: auto;
  cursor: pointer;
}
.imt-modal-price-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  border: 2px solid #7dc6ee;
  background: #fff;
  pointer-events: auto;
  cursor: pointer;
}
.imt-modal-price-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #4b5563;
}
.imt-modal-footer {
  border-top: 1px solid #d1d5db;
  padding: 0.9rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.imt-modal-apply,
.imt-modal-reset {
  border: 0;
  height: 40px;
  border-radius: 0.45rem;
  padding: 0 0.95rem;
  font-size: 1rem;
  font-weight: 600;
}
.imt-modal-apply {
  background: #1f3b78;
  color: #fff;
}
.imt-modal-reset {
  background: #c8ced8;
  color: #111827;
}
@media (max-width: 768px) {
  .imt-modal-header h3 { font-size: 1.3rem; }
  .imt-modal-title { font-size: 1.05rem; }
  .imt-modal-chip { width: 42px; height: 42px; font-size: 1rem; }
  .imt-modal-sort-btn { min-width: 128px; font-size: 0.95rem; }
  .imt-modal-price-scale { font-size: 1rem; }
  .imt-modal-apply,
  .imt-modal-reset { font-size: 0.95rem; }
}


