/* ---------- typeahead (existing, kept) ---------- */
.twitter-typeahead { width:100%; }
.tt-menu{
  width:auto;
  margin-top:5px;
  background:#FFF;
  padding:6px 1px;
  font-size:14px;
  color:#666;
  box-shadow:0 1px 2px rgba(0,0,0,.075) inset;
  border:1px solid #666;
  cursor:pointer;
}
.tt-suggestion{ padding:5px; text-align:left; width:auto; margin:0; }
.tt-suggestion:hover{ background:#E8E8E8; }

/* ---------- Floating Action Button (hidden by default; mobile-only below) ---------- */
.filter-fab{
  position: fixed;
  right: 16px;
  bottom: 88px;                 /* lift above footer */
  z-index: 10020;
  display: none;                 /* desktop/tablet hidden */
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 9999px;
  background: #FF3D00;          /* Airbik orange */
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.12);
  cursor: pointer;
  user-select: none;
}
.filter-fab .fab-icon{ line-height:1; font-size:18px; }
.filter-fab .fab-label{ line-height:1; font-size:14px; }

@media (max-width: 375px){
  .filter-fab{ padding:12px; gap:0; }
  .filter-fab .fab-label{ display:none; }
}

/* Show the FAB only on mobile */
@media (max-width: 768px) {
  .filter-fab { display: inline-flex; }
}

/* ---------- Backdrop ---------- */
#filters-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 10010;
  display: none;                 /* toggled with .show */
}
#filters-backdrop.show{ display: block; }

/* ---------- Bottom Sheet (NO transforms) ---------- */
#filters-sheet{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-height: 85vh;
  min-height: 40vh;
  background: #fff;
  z-index: 10030;
  display: none;                 /* toggled by .open */
  flex-direction: column;
  overflow: hidden;              /* clip to rounded corners */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -8px 28px rgba(0,0,0,.15);
}

/* 1-px red top border that follows the rounded corners */
#filters-sheet::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:16px;                   /* carrier for radius */
  border-top:1px solid #ff3d00;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  pointer-events:none;
  z-index:2;
}

#filters-sheet.open{ display: flex; }

.filters-sheet__header{
  position: sticky; top:0;
  background:#fff;
  padding:10px 16px;
  border-bottom:1px solid #eee;
}
.filters-sheet__grabber{
  width:44px; height:5px;
  border-radius:9999px;
  background:#E0E0E0;
  margin:6px auto 10px;
}
.filters-sheet__title{
  margin:0 0 6px 0;
  font-size:16px; font-weight:600; color:#111;
  text-align:center;
}

.filters-sheet__body{
  position: relative;            /* positioning context for menus */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding:12px 16px 20px;
}

/* each row provides a positioning context for absolute menus */
.filters-sheet__body .form-group,
.filters-sheet__body .dropdown,
.filters-sheet__body .dropup,
.filters-sheet__body .btn-group,
.filters-sheet__body .select-wrapper {
  position: relative;
}

/* Footer row inside the bottom sheet */
.filters-sheet__footer{
  position: sticky;          /* stays visible while filters scroll */
  bottom: 0;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* left + right ends */
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  z-index: 2147482002;
  /* iOS safe area support */
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

/* Ensure buttons render inline-flex and don’t collapse */
.filters-sheet__footer .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}

/* If something overrides layout, force it on mobile */
@media (max-width: 768px){
  #filters-modal .filters-sheet__footer{
    display: flex !important;
    justify-content: space-between !important;
  }
}

/* Menus/dropdowns inside the sheet sit ABOVE content and anchor to their field */
#filters-sheet .dropdown-menu,
#filters-sheet .tt-menu,
#filters-sheet .autocomplete-menu,
#filters-sheet .select2-dropdown{
  position: absolute;            /* not fixed */
  z-index: 10040;
  top: 100% !important;
  left: 0 !important;
  min-width: 100%;
}

/* Prevent body scroll while open (iOS friendly) */
body.filters-open{ overflow: hidden; }


/* --- Radio groups --- */
.rb-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}
.rb-legend {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #111;
}

.rb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.rb-item input[type="radio"] {
  appearance: none;
  width: 14px; height: 14px;
  border: 2px solid #9ca3af;  /* gray-400 */
  border-radius: 50%;
  display: inline-block;
  position: relative;
  outline: none;
}
.rb-item input[type="radio"]:checked {
  border-color: #ff3d00;       /* Airbik orange */
}
.rb-item input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  transform: translate(-50%, -50%);
  background: #ff3d00;
  border-radius: 50%;
}

.rb-item:hover { border-color: #cbd5e1; }
.rb-item:has(input[type="radio"]:checked) {
  border-color: #ff3d00;
  box-shadow: 0 0 0 2px rgba(255,61,0,0.12);
}

/* Compact in sheet */
.rb-group--sheet .rb-item { padding: 9px 10px; }

/* Mobile: inline filters hidden, bottom-sheet shows (you already have these patterns) */
@media (max-width: 768px){
  #searchFilterMain { display: none !important; }
}



.listing-link { display:block; }
.overlay-container img { display:block; width:100%; height:auto; }

/* kill hover-only effects on touch so there’s no “first tap = hover” */
@media (hover:none) {
  .overlay-container .overlay { pointer-events:none; } /* decorative only on mobile */
}


html[data-app="AirbikApp"] .hideinapp,
html.inApp .hideinapp {
	display: none !important;
}

html[data-app="AirbikApp"] .showinapp,
html.inApp .showinapp {
   display: flex !important;
}

