
#filterBar {
  position: relative;
}/* ─────────────────────────────────────── */
/* SEARCH FIELD & CHIPS                   */
/* ─────────────────────────────────────── */
.search-field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 5px;
  gap: 10px;
  max-width: 600px;
}

.search-icon {
  color: #22334a;
  font-size: 16px;
}

#chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-grow: 1;
}

.chip {
  background-color: #0E264A;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  font-family: "gotham", Sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.775px;
}

.chip {
    background-color: #0E264A;
    color: white;
    padding: 1px 12px;
    border-radius: 3px;
    display: flex
;
    align-items: center;
    font-family: "gotham", Sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.775px;
}

.chip .remove-chip {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  font-size: 12px;
}

.submit-btn {
  background: none !important;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #22334a !important;
}
.submit-btn:hover {
     color: #fff !important;
     background: #22334a !important;
}
/* ─────────────────────────────────────── */
/* FILTER POPUP                           */
/* ─────────────────────────────────────── */
.filter-popup {
  position: absolute;
  background: #1f3465;
  color: white;
  padding: 0;
  border-radius: 0;
  min-width: 340px;
  min-height: 200px;
  z-index: 1000;
  display: none;
  font-family: "gotham", Sans-serif;
}

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

.filter-popup .close-popup {
  position: absolute;
  top: 16px;
  right: 16px;
  color: white;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  font-family: sans-serif;
}

.filter-popup .popup-title {
  font-family: "gotham", Sans-serif;
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 4px;
}

.filter-popup .popup-subtitle {
  font-family: "gotham", Sans-serif;
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider-wrapper {
  margin: 20px 0;
}

.labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 10px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.cb-list {
    column-count: 2;
}
.actions button {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 6px 14px 4px;
    cursor: pointer;
    font-family: "gotham", Sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 0;
}

/* ─────────────────────────────────────── */
/* noUiSlider Custom Styling              */
/* ─────────────────────────────────────── */
.noUi-target {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  height: 4px;
  position: relative;
  direction: ltr;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}

.noUi-base {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.noUi-origin {
  position: absolute;
  right: 0;
  top: 0;
  left: 0;
  bottom: 0;
}

.noUi-handle {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: -8px;
  left: -10px;
  background-color: #F0EB74;
  border: none;
  box-shadow: none;
  cursor: pointer;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}

.noUi-horizontal {
  height: 4px;
}

.noUi-horizontal .noUi-handle {
/*
  top: -8px;
  left: -10px;
*/
}
.noUi-horizontal .noUi-handle {
    width: 15px;
    height: 15px;
/*
    right: -12px;
    top: -7px;
*/
    border-radius: 100%;
    background: #F0EB74;
    border: 0;
    box-shadow: none;
}

.noUi-stacking .noUi-handle {
  z-index: 10;
}

.noUi-state-tap .noUi-origin {
  -webkit-transition: left 0.3s, top 0.3s;
  transition: left 0.3s, top 0.3s;
}

.noUi-state-drag * {
  cursor: inherit !important;
}

.noUi-connect {
  background: #F0EB74;
}

/* Remove default handle lines */
.noUi-handle::before,
.noUi-handle::after {
  display: none;
}


.noUi-horizontal .noUi-handle {
  position: absolute !important;
  width: 20px !important;
  height: 20px !important;
  left: 100% !important;
  top: -8px !important;
  transform: translateX(-50%) !important;
  background-color: #F0EB74 !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  cursor: pointer !important;
  z-index: 2 !important;
}

.noUi-handle-upper,
.noUi-touch-area {
  all: unset;
}
.filter-popup.align-left {
  left: 0 !important;
}

.popup-content {
    padding: 2rem;
}
.filter-popup .popup-title {
    font-family: "gotham", Sans-serif;
    font-size: 2rem 3rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.actions {
    display: flex
;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 2rem;
    padding: 2rem 3rem
}

.noUi-connects {
    border-radius: 0;
}

.noUi-horizontal {
    height: 4px;
    border: 0;
}

.noUi-horizontal {
    height: 4px;
    border: 0;
    background: white;
}
.slider-label {
    text-transform: uppercase;
    margin-bottom: 1rem;
    margin-left: -9px;
    font-size: 14px;
}

.slider-group {
    margin: 0.5rem 10px;
}
.cb-search-wrap{
    border-bottom: 1px rgba(255,255,255,0.14) solid;
    padding: 10px 0;
}
.cb-search-wrap {
    display: flex;
    color: white !important;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
}
.cb-search-wrap .cb-search {
    background: none;
    border: none;
    outline: none;
    font-family: "gotham", Sans-serif;
    font-size: 14px;
    padding: 10px 0;
}
.cb-search-wrap i,
.cb-search-wrap .cb-search
{
    color: white;   
}
.cb-search-wrap i {
    color: white;
    margin-right: 12px;
}

@media(max-width: 621px){
    .chip {
        padding: 2.5px 5px;
        border-radius: 1px;
        display: flex;
        font-size: 9px;
        letter-spacing: 0.2px;
        line-height: 1em;
    }
}
/*.cb-list {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px 40px;
}

.cb-group {
  break-inside: avoid; 
}

.cb-group-heading {
  margin: 10px 0 6px;
  font-weight: 700;
  opacity: .8;
}*/
.cb-group-heading {
    color: white !important;
    font-family: "gotham", Sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 1 !important;
}

#scheduleATourDrawer {
    margin-top: 2rem;
}

#scheduleATourDrawer fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    max-width: 100%;
    margin-bottom: 1rem;
}

#scheduleATourDrawer fieldset.form-columns-2 > div:first-child .input {
    margin: 0 15px 0 0 !important;
}
#scheduleATourDrawer fieldset.form-columns-2 > div:last-child .input {
    margin: 0 0 0 0 !important;
}
#scheduleATourDrawer fieldset.form-columns-1 > div:last-child .input {
    margin: 0 0 0 0 !important;
}

#scheduleATourDrawer input[type="text"],
#scheduleATourDrawer input[type="email"],
#scheduleATourDrawer input[type="tel"],
#scheduleATourDrawer input[type="number"],
#scheduleATourDrawer select,
#scheduleATourDrawer textarea  {
    background: #94adce !important;
    color: #475C75 !important;
    min-height: 50px !important;
    padding:8px !important;
    border-radius: 3px;
    border: none !important;
    width: 100%;
}
#scheduleATourDrawer input[type="text"].hs-input::placeholder,
#scheduleATourDrawer input[type="email"]::placeholder,
#scheduleATourDrawer input[type="tel"]::placeholder,
#scheduleATourDrawer input[type="number"]::placeholder,
#scheduleATourDrawer textarea::placeholder {
    color: #475C75 !important;
}
#scheduleATourDrawer textarea {
    color: #475C75 !important;
    height: 100px !important;
}
#scheduleATourDrawer .actions {
     display: flex !important;
     padding: 0 !important;
}
#scheduleATourDrawer label.hs-form-booleancheckbox-display span {
 color: #475C75 !important;
}
#scheduleATourDrawer .hs-richtext.hs-main-font-element span {
    font-family: Sans-Serif;
     color: #475C75 !important;
     font-size: 11px !important;
     line-height: 12px !important;
}
#scheduleATourDrawer input[type="submit"]{
    font-family: "gotham", Sans-serif;
    font-weight: normal !important;
    background: transparent !important;
    display: block !important;
    width: 100%;
    max-width: 255px;
    text-align: center;
    margin: 0 !important;
    padding: 10px !important;;
    color: var(--e-global-color-primary) !important;
    border-radius: 100px !important;
    border: 1px gba(249,98,57,1) solid !important;
}

#scheduleATourDrawer input[type="submit"] {
     color: #fff !important;
    background: linear-gradient(to right, #1f3465 50%, rgba(249,98,57,1) 50%) !important;
    background-size: 200% 100% !important;
    background-position:right bottom !important;
    transition:all 1.27s ease;
    min-width: 255px;
}
#scheduleATourDrawer input[type="submit"]:hover {
    background-position:left bottom !important;
}
select#how_did_you_hear_about_us-5a205aea-8ac9-4569-b99b-c88a1edb7b88 {
    max-width: 96%;
}
#scheduleATourDrawer select {
    border-right: 8px #CCE5FF solid !important;
    margin-right: 35px !important;
}

@media(max-width: 621px){
    #scheduleATourDrawer fieldset.form-columns-2 > div:first-child .input {
    margin: 0 0 0 0 !important;
}
#scheduleATourDrawer fieldset.form-columns-2 > div:last-child .input {
    margin: 0 0 0 0 !important;
}
#scheduleATourDrawer input[type="submit"]{
    width: 100%;
    max-width: 100%;
}
#scheduleATourDrawer input[type=text], #scheduleATourDrawer input[type=email], #scheduleATourDrawer input[type=tel], #scheduleATourDrawer input[type=number], #scheduleATourDrawer select, #scheduleATourDrawer textarea {
    font-size: 16px !important;
}
.tour-menu .off-canvas-menu-column.maincol {
    padding: 1rem;
}
.off-canvas-widget.u-tour-widget {
    padding: 1rem 0 6rem;
    border-bottom: 1px #ccc solid;
    border-top: 1px #ccc solid;
    max-width: 100%;
}
h2.wwc-heading-title.elementor-size-default {
    padding-top: 2rem;
}
}


#scheduleATourDrawer .hs-form-booleancheckbox label {
    display: flex;
    align-content: center;
    align-items: flex-start;
    justify-content: flex-start;
}

#scheduleATourDrawer .hs-form-booleancheckbox label input {
     margin-right: 1rem;
}

#scheduleATourDrawer .hs_i_consent_to_receive_communication_from_unionmain_homes_about_their_communities__homes__mortgage_op.hs-i_consent_to_receive_communication_from_unionmain_homes_about_their_communities__homes__mortgage_op.hs-fieldtype-booleancheckbox.field.hs-form-field {
    margin-top: 1rem;
}


/* Mobile: bottom sheet popup with scrollable content and fixed actions */
@media (max-width: 767.98px) {
    .filter-popup {
        background: #0e264b;
    }
    .filter-popup.active {
         position: fixed !important;
            left: 0; right: 0; bottom: 0;
            width: 100% !important;
            height: calc(
              var(--vh, 1vh) * 100
              - var(--header-h, 0px)
              - var(--filterbar-h, 0px)
              - var(--safe-bottom, 0px)
            );
            max-height: calc(
              var(--vh, 1vh) * 100
              - var(--header-h, 0px)
              - var(--filterbar-h, 0px)
              - var(--safe-bottom, 0px)
            );
            border-radius: 16px 16px 0 0;
            overflow: hidden;
            z-index: 9999;
    }
     .filter-popup .actions {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 25px !important;
        background: rgba(17, 25, 44, 0.95);
        border-top: none;
        display: flex;
        gap: 10px;
        justify-content: center;
        align-items: center;
        align-content: center;
        flex-direction: row;
        margin: 0 !important;
    }

  .filter-popup .popup-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
  }

  /* Scrollable main area */
  .filter-popup .popup-content {
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px; /* spacing above actions bar */
  }

  /* Actions bar pinned at the bottom of the popup */
  .filter-popup .actions {
    position: sticky; /* stays visible even while content scrolls */
    bottom: 0;
    left: 0; right: 0;
    padding: 12px 16px;
    background: rgba(17,25,44,0.95); /* match your theme */
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }

  /* Ensure the close button remains reachable */
/*
  .filter-popup .close-popup {
    position: absolute;
    top: 10px; right: 12px;
    z-index: 1;
  }
*/

  /* Optional: safe-area padding for iOS bottom inset */
  .filter-popup .actions {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  /* When popup open, lock page scroll */
  body.modal-open {
    overflow: hidden;
    touch-action: none;
  }
}