/* Listas desplegables de Habittel (hb-select.js): select y combobox con diseño propio. */
.hbdd { position: relative; min-width: 0; }
.field .hbdd, .fd .hbdd { width: 100%; }
select.hbddn {
  position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important;
  pointer-events: none !important; padding: 0 !important; border: 0 !important; overflow: hidden !important;
}
.hbddb {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  border: 0; background: none; color: #12343b; cursor: pointer; text-align: left;
  font: 500 16px Figtree, sans-serif; padding: 0;
}
.hbddb svg { flex: none; color: #1f5963; transition: transform .2s; }
.hbddb[aria-expanded="true"] svg { transform: rotate(180deg); }
.hbddl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* en el buscador del home */
.top .search .field .hbddb { font-size: 18px; padding: 2px 0; min-height: 28px; }
/* en la barra de filtros del listado (píldoras) */
.hbl .fbi .hbddb, .hbl .geo-notice-actions .hbddb {
  width: auto; border: 1px solid rgba(18, 52, 59, .14); border-radius: 999px; background: #fff;
  padding: 9px 14px 9px 16px; font-size: 15px; box-shadow: 0 2px 8px rgba(18, 52, 59, .05); transition: border-color .15s;
}
.hbl .fbi .hbddb:hover, .hbl .fbi .hbddb[aria-expanded="true"],
.hbl .geo-notice-actions .hbddb:hover, .hbl .geo-notice-actions .hbddb[aria-expanded="true"] { border-color: #1f5963; }
/* en formularios (publicar propiedad, ayuda) */
.hbp .fd .hbddb {
  padding: 13px 16px; border: 1.5px solid rgba(18, 52, 59, .2); border-radius: 14px; background: #fff;
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.hbp .fd .hbddb:hover, .hbp .fd .hbddb[aria-expanded="true"] { border-color: #1f5963; }
.hbp .fd .hbddb[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(31, 89, 99, .15); }

/* panel de opciones */
.hbddm {
  position: fixed; z-index: 3000; background: #fbf8f2; border: 1px solid rgba(18, 52, 59, .1);
  border-radius: 18px; padding: 6px; box-shadow: 0 18px 44px rgba(18, 52, 59, .22);
  max-height: min(320px, 60vh); overflow: auto; overscroll-behavior: contain; max-width: calc(100vw - 24px);
}
.hbddm[hidden] { display: none; }
.hbddo {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 14px;
  border-radius: 12px; font: 500 16px Figtree, sans-serif; color: #1c2526; cursor: pointer; outline: 0;
  white-space: normal; overflow-wrap: anywhere;
}
.hbddo:hover, .hbddo:focus, .hbddo.is-focused { background: rgba(214, 195, 165, .38); }
.hbddo[aria-selected="true"] { background: rgba(31, 89, 99, .1); color: #1f5963; }
.hbddg { padding: 10px 14px 4px; font-size: 12px; font-weight: 600; color: #5c6b6d; }
.hbcb-empty { padding: 16px; color: #5c6b6d; font-size: 14px; margin: 0; }

/* combobox de estado (input + flecha) */
.top .search .field { position: relative; }
.hbcb-toggle {
  position: absolute; right: 12px; bottom: 15px; border: 0; background: none; color: #1f5963;
  cursor: pointer; padding: 3px; line-height: 0;
}
.hbcb-toggle svg { transition: transform .2s; }
.hbcb-toggle.on svg { transform: rotate(180deg); }
.top .search .field input#hbEstado { padding-right: 34px; }
