/* trestle-filters-clean.css - clean, consistent UI */
#trestle-filter-bar{
  margin-top:-92px;
  background:#fff;
  /*border-radius:8px;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);*/
  padding:5px;
  border-bottom: 1px solid #dee2e6;


  /*margin-bottom:16px;*/
  }
  
 /**** -------***/ 
.trestle-row{/*display:flex;flex-wrap:wrap;align-items:center;gap:10px*/ 
	align-items: center;
    gap: 0px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;}
    
 .c-search-bar__search-icon
{
	margin-right: auto;
    padding: 11px 17px;
    cursor: pointer;
    vertical-align: middle;
    line-height: 8px;
    position: relative;
    left: 0px;
}
.c-search-bar__location {
    position: relative;
    display: flex;
    flex: auto;
    z-index: 1;
    max-width: 100%;
    padding: 0 5px;
} 
.c-search-bar__location .select2-selection--multiple
{
	border: 0px !important;
  display: block !important;
}
.c-search-bar__save-clear-btns
{
	margin-right: 14px;
  display: flex;
    align-items: center;
}
.c-search-bar__filters
{
	display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    height: 50px;
    gap: 14px;
    padding-right: 14px;
    border-top: 0px solid #edeff1;
}
.c-search-bar__filters .select2-container
{
	width:110px !important;
    border-radius: 4px !important;
}
.c-search-bar__filters .select2-selection--multiple {
    border-radius: 4px !important;
    min-height: 36px !important;
    padding: 3px 0px 4px !important;
}
.c-search-bar__filters .select2-search__field
{
	vertical-align: middle !important;
    margin-left: 0px !important;
    text-align:center !important;
}
#trestle-reset
{
	border:0px !important;
}
#trestle-save
{
	padding: 3px 21px 4px;
    background-color: #333d68;
    border-radius: 4px;
    color: #fff !important;
    overflow: hidden;
    box-shadow: none;
    min-height: 36px !important;
}
#select2-trestle-type-results, #select2-trestle-status-results
{
	width:265px !important;
    border-radius:0px !important;
   
    background:#fff !important;
}
.c-search-bar__filters .select2-dropdown
{
	 border-bottom: 4px solid #333d68;
     width: 265px !important;
 
}
/***** ------*****/ 

.trestle-utility,.trestle-btn{border:1px solid #d6d6dc;background:#fff;padding:8px 12px;border-radius:4px;cursor:pointer;font-size:14px}

.c-search-bar__filters .trestle-utility, .c-search-bar__filters .trestle-btn
{
	padding: 4px 12px 4px;
	min-height:36px !important;
}

.more-count{background:#2ea86d;color:#fff;padding:3px 7px;border-radius:12px;margin-left:6px;font-size:12px}
.result-row{text-align:right;margin-top:10px;font-weight:600;margin-right: 30px;}

/* anchor & dropdown base - anchored under the button */
.dd-anchor{position:relative}
.trestle-dd{position:absolute;top:calc(100% + 8px);left:0;display:none;background:#fff;border:1px solid #e7e7ea;border-radius:8px;box-shadow:0 12px 30px rgba(0,0,0,0.12);z-index:9999}
.trestle-dd.open{display:block}
.trestle-dd.small{width:260px}
.trestle-dd.wide{width:560px}
.trestle-dd .dd-inner{padding:12px;max-height:460px;overflow:auto}

/* Beds / Baths layout */
.label{font-weight:600;margin-bottom:6px;display:block}
.options-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.options-row button{padding:7px 10px;border:1px solid #ddd;border-radius:6px;background:#fff;cursor:pointer}
.options-row button.active{background:#0073aa;color:#fff;border-color:#0073aa}
.exact{margin-bottom:10px;display:block}

/* accordion panels */
.accordion-item{border-top:1px solid #f2f2f2}
.accordion-toggle{width:100%;text-align:left;padding:8px;background:none;border:0;cursor:pointer;font-weight:700}
.accordion-panel{display:none;padding:8px 0}
.accordion-panel.open{display:block}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px 0px}

/* select2 styling: hide selected tags and show single summary inside container */
.select2-container--default .select2-selection--multiple {
  min-height: 42px;
  max-height: 42px;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 6px;
}
/* commented and will make it working later on
.select2-container .select2-selection--multiple::after {
    content: "▼";
    color: #ccc;
    font-size: 10px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
*/
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 8px;
  margin: 3px 5px 0 0;
  font-size: 14px;
  color: #333;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #777;
  margin-right: 5px;
  cursor: pointer;
}

.select2-container--default .select2-search--inline .select2-search__field {
  min-width: 100px !important;
  margin-top: 0px;
  caret-color: transparent;
}

/* dropdown option layout (checkbox in each row) */
/* --- Select2 Checkbox Dropdown Styling (Fixed) --- */
.select2-container--default .select2-selection--multiple {
  min-height: 36px;
  max-height: 36px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 0px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  /* text-align: center;*/
  justify-content: center;
}

.select2-selection__rendered {
  font-size: 14px !important;
  color: #333 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.select2-search__field {
  margin-top: 0 !important;
  height: 20px !important;
}

.select2-selection__choice {
  display: none !important; /* hide tags */
}

/* Dropdown */
.select2-dropdown {
  border-radius:0px !important;
  border: 1px solid #ccc !important;
  /*box-shadow: 0 4px 10px rgba(0,0,0,0.1);*/
  
}

.select2-results__option {
  padding: 0 !important;
}

.select2-checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 14px;
  color: #333;
}

.select2-results__option--highlighted .select2-checkbox-option {
  background-color: #eef3ff;
}

.select2-checkbox-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1e40af;
}

.select2-container {
  z-index: 999999 !important;
  pointer-events: a;
}

.select2-dropdown {
  z-index: 999999 !important;
}
/* suggestions & city look */
.trestle-city .select2-container{width:550px!important}

/* responsive: dropdowns become fixed at bottom on very small screens */
@media (max-width:800px){
  .dd-anchor .trestle-dd{position:fixed;left:12px;right:12px;top:auto;bottom:12px}
  .trestle-row{flex-direction:column;align-items:flex-start}
  .trestle-city .select2-container{width:100%!important}
}
/* Beds & Baths Dropdown Styling */
.bedbath-dropdown {
  position: relative;
  display: inline-block;
  width: 175px !important;
}
#bedbath-filter-btn
{
	width: 100% !important;
}
.bedbath-popup {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1100;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 320px; /* 🔥 Wider popup */
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

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

.bedbath-buttons {
  display: flex;
  flex-wrap: nowrap; /* 🔥 force single line */
  gap: 0;
  margin-bottom: 12px;
  overflow-x: auto; /* allow scroll if screen is narrow */
}

.bedbath-btn {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 0;
  padding: 6px 0;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
  white-space: nowrap; /* prevent text wrapping */
}

.bedbath-btn:last-child {
  border-right: 1px solid #ccc;
}


.bedbath-btn.active {
  background-color: #1b4f9c;
  color: #fff;
  border-color: #1b4f9c;
}

.bedbath-popup label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bedbath-popup input[type="checkbox"] {
  transform: scale(1.1);
}

/* Price Popup */
.price-dropdown {
  position: relative;
  display: inline-block;
  width:100px !important;
}
#btn-price
{
	 width:100% !important;
}
.price-popup {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 320px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1100;
  display: none;
}

/* 🔥 Inline Row for Min and Max */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.price-field label {
  font-size: 13px;
  margin-bottom: 4px;
  color: #555;
}

.price-field input {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.price-separator {
  font-size: 18px;
  color: #888;
  font-weight: 500;
  margin-top: 0px;
}

/* Price Popup */
/* --- FIX Select2 Multi-Select Tag Visibility --- */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  background-color: #f8f8f8 !important;
  border: 1px solid #ccc !important;
  border-radius: 4px;
  color: #333 !important;
  padding: 2px 6px !important;
  margin: 3px 4px 0 0 !important;
  font-size: 13px;
  line-height: 1.3;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  order: 2;
  color: #666 !important;
  font-weight: bold;
  cursor: pointer;
  
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #000 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  order: 1;
  color: #333 !important;
  font-weight: normal;
  padding-left: 20px;
}

.trestle-select2-tag {
  color: inherit !important;
  display: inline !important;
}

.more-row
{
  width: 100%;
}

.more-col
{
  width: 50%;
}

/* Slide-out More Panel */
.more-filters-panel {
  position: fixed;
  top: 190px; /* adjust based on your header height */
  right: 0;
  width: 550px;
  height: calc(100vh - 120px);
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  border-left: 1px solid #ddd;
  overflow-y: auto;
  transform: translateX(100%);
  border-top: 1px solid #edeff1;
  background-color: #fff;
  box-shadow: inset -6px -3px 8px 0px rgba(0,0,0,.25);
  transition: transform 0.25s ease-in-out;
  z-index: 1050;
  padding: 20px 24px;
}

/* When active */
.more-filters-panel.active {
  transform: translateX(0);
}

/* Optional dark overlay for background */
.more-overlay {
  top: 190px; /* adjust based on your header height */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1045;
}

.more-overlay.active {
  opacity: 1;
  pointer-events: all;
  top: 190px;
}

/* Panel Header */
.more-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.more-filters-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
}

.more-filters-header .close-more {
  font-size: 22px;
  cursor: pointer;
  border: none;
  background: none;
  color: #333;
}

/* Collapsible section styling */
.more-section {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.more-section summary {
  font-size: 16px;
  font-weight: 600;
  color: #1a2b49;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
}

.more-section summary::before {
  content: '+';
  margin-right: 8px;
  font-weight: bold;
}

.more-section[open] summary::before {
  content: '-';
}

.more-section details {
  margin-top: 6px;
}

.more-section div {
  margin-top: 0px;
}

.form-control-float+label
 {
    position: absolute;
    top: 6px;
    left: 1rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 0 .3rem !important;
    background-color: #fff;
    transition: .1s ease-in-out all;
    transform: translateY(0px);
}
.form-control-float+label.is-active {
    height: 16px;
    padding: 0 4px 0 4px;
    color: #333d68;
    font-weight: 700;
    font-size: 11px;
    transform: translate(3px, calc(-50% - 6px));
}
.et_pb_contact_input
{
   padding: 0 .3rem !important;
}
label {
    color: #3c3e41;
    font-size: .875rem;
    margin-bottom: .25rem;
}

.form-control, .multiselect-form-control {
    display: block;
    width: 100%;
    padding: .3rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #333d68;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    border-radius: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    height: calc(2.25rem + 2px);
}
.custom-select, .multiselect-form-control {
    display: inline-block;
    width: 100%;
    height: calc(2.1rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    background: #fff url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>") no-repeat right 0.75rem center;
    background-size: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 0;
    appearance: none;
}
.form-group {
    position: relative;
}
.form-group {
    margin-bottom: 1rem;
}
/*
input, button, select, optgroup, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
*/

@media (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Sort Bar */
/* Outer wrapper ensures sticky works reliably */
.trestle-sticky-bar-wrap {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e6e6e6 !important;
  box-shadow: 0 0 0 rgba(0,0,0,0); /* reset */
}

/* inner container aligns content */
.trestle-sticky-bar-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 18px !important;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* result count */
.trestle-results-count {
  color: #5b6b7a;
  font-size: 14px;
  font-weight: 500;
}

/* controls group */
.trestle-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* sort select */
.trestle-sort-select {
  max-width: 180px !important;
  height: 36px !important;
  padding: 6px 10px !important;
  border: 0px solid #d3d8de !important;
  color: #333 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23555' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708L8.354 9.354a.5.5 0 0 1-.708 0L4.646 6.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

/* map toggle container */
.trestle-map-toggle { display:flex; align-items:center; gap:8px; }

/* switch */
.trestle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.trestle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.trestle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d6dde6;
  transition: .25s;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

.trestle-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .25s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* checked */
.trestle-switch input:checked + .trestle-slider {
  background-color: #0073aa;
}
.trestle-switch input:checked + .trestle-slider:before {
  transform: translateX(20px);
}

/* label */
.trestle-map-label {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

/* small-screen adjustments */
@media (max-width: 800px) {
  .trestle-sticky-bar-inner {
    padding: 12px;
    gap: 10px;
  }
  .trestle-results-count { flex: 1 1 100%; order: 1; }
  .trestle-controls { flex: 1 1 100%; order: 2; justify-content: flex-end; }
}

.cluster-bubble {
  position: absolute;
  background: #1E88E5;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  line-height: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  user-select: none;
  transition: transform .25s ease-out, opacity .25s ease-out, box-shadow .25s ease-out;
}

.cluster-bubble:hover::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(30,136,229,0.35);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  from {
    transform: scale(1);
    opacity: 0.5;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

.cluster-bubble {
  position: absolute;
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1E88E5;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition:
    transform 0.22s ease-out,
    opacity 0.22s ease-out,
    box-shadow 0.18s ease-out;
}

.cluster-bubble.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cluster-bubble:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.filter-bar-padding{
  padding-top: 0px !important;
  margin-top: 0px !important;
}
textarea::placeholder
{
	color:#282828 !important;
}
@media (max-width:980px) {
    .c-search-bar__filters {
        min-width: 100%;
        border-top: 1px solid #edeff1;
    }
    .c-search-bar__location {
        padding: 7px 5px;
     }
     #trestle-filter-bar
     {
     	padding-top:0px !important;
     }
}

@media (max-width:767px) {
    .trestle-map-toggle {display:none;}
}
@media (max-width:730px) {
	.trestle-sticky-bar-inner{padding: 10px 5% !important;}
}